/* MyPetLogger — marketing site
   Colors derived from the in-app Summary ambient gradient. */

:root {
  --bg: #F7F5FC;
  --bg-raised: #ffffff;
  --text: #0D0A17;
  --text-dim: #4a4358;
  --text-mute: #8a8498;
  --border: rgba(13, 10, 23, 0.08);

  --accent: #6E5AD6;         /* primary — mid of lavender/purple bloom */
  --accent-soft: #B39EF5;    /* light bloom */
  --accent-deep: #4D4DC7;    /* deep bloom */

  --warm: #F37359;           /* coral bloom */
  --warm-soft: #FFCCB8;      /* peach */

  --cool: #4059B3;           /* blue bloom */
  --cool-soft: #B8D1FA;      /* light blue */

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;

  --shadow-sm: 0 2px 12px rgba(13, 10, 23, 0.06);
  --shadow: 0 12px 48px rgba(13, 10, 23, 0.10);
  --shadow-lg: 0 30px 80px rgba(77, 77, 199, 0.18);

  --font: "Nunito", -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", system-ui, sans-serif;
  --font-display: "Nunito", -apple-system, BlinkMacSystemFont, "SF Pro Rounded", system-ui, sans-serif;

  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0A17;
    --bg-raised: #17122A;
    --text: #F3F1FA;
    --text-dim: #BCB4D3;
    --text-mute: #7d7591;
    --border: rgba(255, 255, 255, 0.08);

    --accent: #9488F0;
    --accent-soft: #B39EF5;
    --accent-deep: #6654E2;

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(109, 93, 226, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0D0A17;
  --bg-raised: #17122A;
  --text: #F3F1FA;
  --text-dim: #BCB4D3;
  --text-mute: #7d7591;
  --border: rgba(255, 255, 255, 0.08);

  --accent: #9488F0;
  --accent-soft: #B39EF5;
  --accent-deep: #6654E2;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(109, 93, 226, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.4em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }

p { margin: 0 0 1em; color: var(--text-dim); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right));
}
@media (max-width: 860px) {
  .nav .container {
    padding-inline: max(32px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right));
  }
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 800; letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.nav__logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.nav__lang { position: relative; font-size: 0.85rem; }
.nav__lang > summary {
  list-style: none; cursor: pointer; padding: 8px 12px;
  border-radius: 12px; opacity: 0.75; user-select: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav__lang > summary::-webkit-details-marker { display: none; }
.nav__lang > summary:hover { opacity: 1; background: var(--border); }
.nav__lang[open] > summary { opacity: 1; background: var(--border); }
.nav__lang__menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  list-style: none; margin: 0; padding: 6px;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  min-width: 200px; max-height: 70vh; overflow-y: auto; z-index: 50;
}
.nav__lang__menu li { margin: 0; }
.nav__lang__menu a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 0.9rem;
}
.nav__lang__menu a:hover { background: var(--border); }
.nav__burger {
  display: none;
  background: transparent; border: 0;
  color: var(--text); font-size: 1.6rem; cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-raised);
    padding: 18px max(20px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    border-bottom: 1px solid var(--border);
    gap: 14px;
    align-items: stretch;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav__links.is-open > a { width: 100%; }
  .nav__links.is-open .nav__cta { text-align: center; }
  /* Language picker becomes inline inside the drawer */
  .nav__links.is-open .nav__lang { width: 100%; }
  .nav__links.is-open .nav__lang > summary {
    width: 100%; justify-content: space-between; padding: 8px 0;
  }
  .nav__links.is-open .nav__lang__menu {
    position: static;
    width: 100%; min-width: 0;
    max-height: 240px;
    box-shadow: none;
    margin-top: 8px;
  }
  /* Cheaper effects on phones */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}

/* Disable expensive bloom + parallax on touch devices */
@media (pointer: coarse) {
  .bloom { filter: blur(40px); will-change: auto; opacity: 0.4; }
}

/* Kill phone scroll tilt + reveal motion on small screens — they cause jank */
@media (max-width: 860px) {
  .phone, .phone--tilt, .phone--tilt-right { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; will-change: auto !important; }
}

/* ============ Ambient gradient background ============ */
.bloom-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  transform: translate3d(0,0,0);
  will-change: transform;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bloom { opacity: 0.75; filter: blur(100px); }
}
[data-theme="dark"] .bloom { opacity: 0.75; filter: blur(100px); }
.bloom--1 { top: -10%; right: -8%; width: 560px; height: 560px; background: var(--accent-soft); }
.bloom--2 { bottom: -20%; left: -10%; width: 460px; height: 460px; background: var(--warm-soft); }
.bloom--3 { top: 30%; right: 30%; width: 420px; height: 420px; background: var(--cool-soft); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bloom--1 { background: var(--accent-deep); }
  :root:not([data-theme="light"]) .bloom--2 { background: var(--warm); }
  :root:not([data-theme="light"]) .bloom--3 { background: var(--cool); }
}
[data-theme="dark"] .bloom--1 { background: var(--accent-deep); }
[data-theme="dark"] .bloom--2 { background: var(--warm); }
[data-theme="dark"] .bloom--3 { background: var(--cool); }

/* ============ Sections ============ */
section { position: relative; padding: 100px 0; }
section.tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 80px 0 80px;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  margin-bottom: 0.4em;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-deep), var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.hero__note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-mute);
  display: flex; align-items: center; gap: 8px;
}
.hero__note::before {
  content: "";
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.15);
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ App Store badge ============ */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: var(--bg);
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.appstore:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--bg); }
.appstore svg { width: 28px; height: 28px; }
.appstore__small { display: block; font-size: 0.68rem; font-weight: 500; opacity: 0.7; letter-spacing: 0.05em; }
.appstore__big { display: block; font-size: 1.15rem; line-height: 1; letter-spacing: -0.01em; }
.appstore.is-disabled {
  cursor: not-allowed;
  opacity: 0.78;
  background: color-mix(in srgb, var(--text) 80%, transparent);
  pointer-events: none;
}
.appstore.is-disabled:hover { transform: none; box-shadow: none; }
.nav__cta.is-disabled {
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
}
.nav__cta.is-disabled:hover { transform: none; box-shadow: none; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
  background: transparent;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============ Device Mockup ============ */
/* Bezel PNG (1470×3000) with screen window at 1320×2868 centered.
   Inset: 5.10% horizontal, 2.20% vertical. */
.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1470 / 3000;
  margin: 0 auto;
  background: transparent;
  filter: drop-shadow(0 30px 50px rgba(13, 10, 23, 0.35))
          drop-shadow(0 8px 16px rgba(13, 10, 23, 0.2));
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/iphone-bezel.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
}
.phone__screen {
  position: absolute;
  top: 2.20%;
  left: 5.10%;
  width: 89.80%;
  height: 95.60%;
  border-radius: 11.5%/5.6%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  z-index: 1;
}
.phone__screen img,
.phone__screen picture {
  width: 100%; height: 100%;
  display: block;
}
.phone__screen picture img {
  object-fit: cover;
}
/* Placeholder — LIGHT mode: warm lavender → peach */
.phone__screen--placeholder {
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(165deg, #E8DCFB 0%, #FFCCB8 100%);
}
.phone__placeholder {
  text-align: center;
  padding: 24px;
  color: rgba(13, 10, 23, 0.55);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}
.phone__placeholder svg {
  width: 56px; height: 56px; margin: 0 auto 10px;
  opacity: 0.55;
}
/* Placeholder — DARK mode: deep indigo → coral bloom */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone__screen--placeholder {
    background:
      radial-gradient(circle at 80% 12%, rgba(109, 93, 226, 0.45), transparent 55%),
      radial-gradient(circle at 15% 90%, rgba(243, 115, 89, 0.35), transparent 60%),
      linear-gradient(175deg, #1a1430 0%, #0D0A17 100%);
  }
  :root:not([data-theme="light"]) .phone__placeholder { color: rgba(243, 241, 250, 0.7); }
  :root:not([data-theme="light"]) .phone__placeholder svg { opacity: 0.7; }
}
[data-theme="dark"] .phone__screen--placeholder {
  background:
    radial-gradient(circle at 80% 12%, rgba(109, 93, 226, 0.45), transparent 55%),
    radial-gradient(circle at 15% 90%, rgba(243, 115, 89, 0.35), transparent 60%),
    linear-gradient(175deg, #1a1430 0%, #0D0A17 100%);
}
[data-theme="dark"] .phone__placeholder { color: rgba(243, 241, 250, 0.7); }
[data-theme="dark"] .phone__placeholder svg { opacity: 0.7; }

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-mute);
  transform: rotate(15deg);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .theme-toggle__moon { display: block; }
.theme-toggle .theme-toggle__sun  { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .theme-toggle__moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .theme-toggle__sun  { display: block; }
}
[data-theme="dark"] .theme-toggle .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-toggle__sun  { display: block; }
.phone--tilt { transform: rotate(-4deg) translateY(0); }
.phone--tilt-right { transform: rotate(4deg); }

.phones-stack {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phones-stack .phone { position: absolute; }
.phones-stack .phone:nth-child(1) { transform: translateX(-80px) rotate(-8deg) scale(0.92); z-index: 1; opacity: 0.9; }
.phones-stack .phone:nth-child(2) { z-index: 2; }
.phones-stack .phone:nth-child(3) { transform: translateX(80px) rotate(8deg) scale(0.92); z-index: 1; opacity: 0.9; }

/* ============ Manifesto ============ */
.manifesto {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.manifesto p {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.6;
  color: var(--text-dim);
}
.manifesto strong { color: var(--text); font-weight: 800; }

/* ============ Feature row ============ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.feature-row + .feature-row { margin-top: 140px; }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
  .feature-row + .feature-row { margin-top: 80px; }
}
.feature__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature__kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.feature h2 { margin-bottom: 20px; }
.feature p { font-size: 1.08rem; }
.feature__list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 12px;
}
.feature__list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 1rem; color: var(--text-dim);
}
.feature__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M8.5 13.2L5.3 10l-1.1 1.1 4.3 4.3 9-9L16.4 5.3z'/></svg>") no-repeat center / 18px;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M8.5 13.2L5.3 10l-1.1 1.1 4.3 4.3 9-9L16.4 5.3z'/></svg>") no-repeat center / 18px;
}

/* feature kicker tints */
.feature[data-tint="orange"] .feature__kicker { color: var(--warm); }
.feature[data-tint="orange"] .feature__list li::before { background: var(--warm); }
.feature[data-tint="blue"] .feature__kicker { color: var(--cool); }
.feature[data-tint="blue"] .feature__list li::before { background: var(--cool); }
.feature[data-tint="green"] .feature__kicker { color: #34C759; }
.feature[data-tint="green"] .feature__list li::before { background: #34C759; }
.feature[data-tint="pink"] .feature__kicker { color: #FF3B7F; }
.feature[data-tint="pink"] .feature__list li::before { background: #FF3B7F; }

/* ============ Privacy block ============ */
.pledge {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 0%, rgba(179, 158, 245, 0.25), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(243, 115, 89, 0.18), transparent 60%),
    var(--bg-raised);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.pledge__icon {
  width: 72px; height: 72px; margin: 0 auto 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 32px;
  box-shadow: 0 10px 30px rgba(77, 77, 199, 0.4);
}
.pledge h2 { margin-bottom: 16px; }
.pledge__quote {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-dim);
  font-style: italic;
  max-width: 600px; margin: 0 auto;
}
.pledge__points {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
  text-align: left;
}
@media (max-width: 680px) {
  .pledge__points { grid-template-columns: 1fr; }
  .pledge { padding: 60px 24px; }
}
.pledge__point h4 { font-size: 1rem; margin-bottom: 4px; }
.pledge__point p { font-size: 0.95rem; margin: 0; }

/* ============ Pricing ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 960px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pricing { grid-template-columns: 1fr; } }

.price {
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price--featured {
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(110, 90, 214, 0.2);
}
.price--featured::before {
  content: attr(data-badge);
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.72rem; font-weight: 800;
  padding: 5px 12px; border-radius: 999px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.price__tier { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.price__amount { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; margin: 12px 0 4px; color: var(--text); line-height: 1; }
.price__amount small { font-size: 0.9rem; font-weight: 500; color: var(--text-mute); letter-spacing: 0; }
.price__tag { font-size: 0.95rem; color: var(--text-dim); min-height: 3em; }
.price__list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; flex: 1; }
.price__list li { font-size: 0.95rem; color: var(--text-dim); display: flex; gap: 8px; }
.price__list li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.price__list li.dim { opacity: 0.4; }
.price__list li.dim::before { content: "—"; color: var(--text-mute); }

/* ============ Gallery ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery .phone { max-width: none; transition: transform 0.4s; }
.gallery .phone:hover { transform: translateY(-8px) scale(1.02); }

/* ============ Feature badge grid (watch/widgets/siri) ============ */
.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 860px) { .triad { grid-template-columns: 1fr; } }
.triad__card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.triad__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.triad__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 28px;
  margin-bottom: 20px;
}
.triad__card:nth-child(1) .triad__icon { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
.triad__card:nth-child(2) .triad__icon { background: linear-gradient(135deg, var(--warm), #DB4F36); }
.triad__card:nth-child(3) .triad__icon { background: linear-gradient(135deg, var(--cool), #26448F); }
.triad__card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.triad__card p { font-size: 0.98rem; margin: 0; }

/* ============ Languages strip ============ */
.langs {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 32px;
}
.lang-chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  background: var(--bg-raised);
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.lang-chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq__item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq__q {
  background: none; border: 0; cursor: pointer;
  width: 100%; text-align: left;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.15rem;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 0;
}
.faq__q::after {
  content: "+";
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--accent);
  transition: transform 0.25s;
  line-height: 1;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 1.02rem;
}

/* ============ Founder ============ */
.founder {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.75;
}
.founder p { color: var(--text-dim); margin-bottom: 1.1em; }
.founder p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4.4rem;
  line-height: 0.85;
  font-weight: 900;
  margin: 6px 12px 0 0;
  color: var(--accent);
}
.founder__sig {
  margin-top: 36px;
  font-style: italic;
  color: var(--text);
  font-weight: 700;
}

/* ============ Press / contact ============ */
.press {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}
@media (max-width: 860px) { .press { grid-template-columns: 1fr; } }
.press__card {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--border);
}
.press__card h3 { margin-bottom: 12px; }

/* ============ Changelog teaser ============ */
.changelog { max-width: 780px; margin: 48px auto 0; }
.changelog__entry {
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.changelog__date { font-size: 0.82rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.changelog__title { font-weight: 800; margin: 4px 0; color: var(--text); font-size: 1.05rem; }
.changelog__desc { font-size: 0.95rem; color: var(--text-dim); margin: 0; }

/* ============ Footer ============ */
footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__brand img { width: 36px; height: 36px; border-radius: 10px; }
.footer__brand span { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.footer p { font-size: 0.93rem; color: var(--text-mute); max-width: 360px; }
.footer h4 { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; }
.footer ul a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 0.88rem; color: var(--text-mute);
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.footer__social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1.is-visible { transition-delay: 0.1s; }
.reveal--delay-2.is-visible { transition-delay: 0.2s; }
.reveal--delay-3.is-visible { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ Legal pages ============ */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.legal__meta { color: var(--text-mute); font-size: 0.9rem; margin-bottom: 48px; }
.legal h2 { font-size: 1.5rem; margin-top: 48px; }
.legal p, .legal li { color: var(--text-dim); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* RTL overrides — Arabic */
[dir="rtl"] body { font-family: "Tajawal", "Noto Sans Arabic", var(--font); }
[dir="rtl"] .legal ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .nav__lang--menu { left: 0; right: auto; }
