/* ============================================================================
   Palm IPTV — landing page styles
   Colors mirror app_colors.dart (single source of truth in the Flutter app).
   Brand/sunset/status tokens are theme-independent; surfaces + text swap
   between [data-theme="dark"] (default) and [data-theme="light"].
   ============================================================================ */

:root {
  /* ── Brand (theme-independent) ── */
  --brand:        #13B295;  /* palm teal-emerald */
  --brand-light:  #4FD8C2;  /* hover / gradients */
  --brand-dark:   #0B8A74;  /* pressed / on-light */
  --accent:       #FF8A4C;  /* sunset orange */
  --accent-dark:  #E06A2C;
  --favorite:     #FF4D6D;  /* tropical rose */
  --success:      #2FB344;
  --warning:      #F08C00;

  --grad-brand:   linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 45%, var(--brand-dark) 100%);
  --grad-sunset:  linear-gradient(120deg, var(--brand) 0%, var(--accent) 100%);

  --radius:       18px;
  --radius-sm:    12px;
  --maxw:         1180px;
  --ease:         cubic-bezier(.22,.61,.36,1);
  --shadow:       0 24px 60px -20px rgba(0,0,0,.55), 0 8px 24px -12px rgba(0,0,0,.4);
  --shadow-soft:  0 12px 32px -16px rgba(0,0,0,.4);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ── Dark palette (default) — AppColors.dark ── */
[data-theme="dark"] {
  --bg:        #0A1416;
  --bg-grad:   radial-gradient(1200px 700px at 78% -8%, rgba(19,178,149,.16), transparent 60%),
               radial-gradient(900px 600px at 8% 4%, rgba(255,138,76,.10), transparent 55%);
  --surface:   #10201F;
  --card:      #16292A;
  --card-2:    #1F3636;
  --variant:   #1F3636;
  --text:      #ECF6F3;
  --text-2:    #9DB2AE;
  --text-3:    #5C706C;
  --divider:   #20302F;
  --brand-on:  var(--brand-light);
  --glass:     rgba(16,32,31,.72);
  --glass-brd: rgba(79,216,194,.14);
}

/* ── Light palette — AppColors.light ── */
[data-theme="light"] {
  --bg:        #F2F8F5;
  --bg-grad:   radial-gradient(1100px 650px at 80% -10%, rgba(19,178,149,.14), transparent 60%),
               radial-gradient(800px 520px at 6% 2%, rgba(255,138,76,.12), transparent 55%);
  --surface:   #FFFFFF;
  --card:      #FFFFFF;
  --card-2:    #E4F0EB;
  --variant:   #E4F0EB;
  --text:      #0C1B19;
  --text-2:    #4C615C;
  --text-3:    #9AACA7;
  --divider:   #DCE8E3;
  --brand-on:  var(--brand-dark);
  --glass:     rgba(255,255,255,.78);
  --glass-brd: rgba(11,138,116,.16);
  --shadow:    0 24px 60px -24px rgba(12,27,25,.22), 0 8px 24px -14px rgba(12,27,25,.14);
  --shadow-soft: 0 12px 30px -18px rgba(12,27,25,.18);
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--bg-grad); pointer-events: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.container--narrow { max-width: 820px; }
.grad-text { background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Buttons ── */
.btn {
  --btn-bg: var(--variant); --btn-fg: var(--text);
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--grad-brand); color: #042b25; box-shadow: 0 12px 28px -10px rgba(19,178,149,.6); }
.btn--primary:hover { box-shadow: 0 18px 38px -10px rgba(19,178,149,.7); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--divider); }
.btn--secondary:hover { border-color: var(--brand); color: var(--brand-on); }
.btn--ghost { background: rgba(127,127,127,.10); color: var(--text); border-color: var(--glass-brd); }
.btn--ghost:hover { background: rgba(127,127,127,.18); }

/* ── Header / nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--glass); border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--divider); }
.nav__inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.14rem; }
.brand__mark { border-radius: 9px; }
.brand__palm { color: var(--brand-on); }
.nav__links { display: flex; gap: 26px; margin-left: 14px; margin-right: auto; }
.nav__links a { color: var(--text-2); font-weight: 600; font-size: .94rem; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: rgba(127,127,127,.10); border: 1px solid var(--glass-brd); color: var(--text);
  cursor: pointer; transition: background .2s, transform .2s;
}
.theme-toggle:hover { transform: rotate(-12deg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav__burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 40px;
  background: rgba(127,127,127,.10); border: 1px solid var(--glass-brd); border-radius: 11px; cursor: pointer; }
.nav__burger span { width: 18px; height: 2px; background: var(--text); margin-inline: auto; transition: .25s; }

/* ── Eyebrows / section heads ── */
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-on);
  padding: 6px 12px; border: 1px solid var(--glass-brd); border-radius: 999px;
  background: rgba(19,178,149,.08); margin-bottom: 18px;
}
.eyebrow--center { display: inline-block; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent)); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px,6vw,68px); }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.section__lead { color: var(--text-2); font-size: 1.08rem; margin-top: 16px; }

/* ── Hero ── */
.hero { position: relative; padding-top: clamp(40px, 6vw, 70px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: -1;
  background: radial-gradient(50% 60% at 70% 30%, rgba(19,178,149,.22), transparent 70%),
              radial-gradient(40% 50% at 20% 10%, rgba(255,138,76,.18), transparent 70%);
  filter: blur(10px);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-bottom: clamp(40px, 6vw, 72px); }
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; }
.hero__sub { color: var(--text-2); font-size: 1.16rem; margin-top: 22px; max-width: 540px; }
.hero__sub strong { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--text-2); font-size: .92rem; }

/* Hero art / phone */
.hero__art { position: relative; display: grid; place-items: center; min-height: 460px; }
.phone {
  width: min(300px, 78vw); aspect-ratio: 9/19.2; background: #05100f;
  border-radius: 40px; padding: 11px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08); position: relative;
}
.phone--hero { transform: rotate(3deg); }
.phone__notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 96px; height: 22px; background: #05100f; border-radius: 999px; z-index: 3; }
.phone__screen { width: 100%; height: 100%; background: var(--bg); border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; }

/* ── Player screen (the swappable 16:9 slot) ── */
.player-screen {
  position: relative; width: 100%; aspect-ratio: 16/9; background: #000; overflow: hidden;
  flex: 0 0 auto;  /* never let the flex column stretch the 16:9 slot */
}
.player-screen--lg { aspect-ratio: 16/9; border-radius: 10px; }
.player-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: .6rem; font-weight: 800; letter-spacing: .08em; color: #fff;
  background: rgba(229,72,77,.92); padding: 3px 7px; border-radius: 6px;
}
.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: .62rem;
}
.player-controls--lg { padding: 12px 16px; font-size: .8rem; gap: 12px; }
.pc-play { font-size: .7rem; }
.pc-bar { flex: 1; height: 4px; background: rgba(255,255,255,.3); border-radius: 999px; overflow: hidden; }
.pc-fill { display: block; height: 100%; width: 38%; background: var(--brand-light); }
.pc-time { font-variant-numeric: tabular-nums; opacity: .9; }
.pc-ico { font-size: .8rem; }
.player-title-lg { position: absolute; top: 14px; left: 16px; right: 80px; z-index: 2; color: #fff; font-weight: 700; font-size: .9rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.player-meta { padding: 12px 14px; background: var(--card); }
.pm-title { font-weight: 700; font-size: .9rem; }
.pm-sub { color: var(--text-2); font-size: .76rem; margin-top: 2px; }

/* floating chip */
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 14px; font-weight: 700; font-size: .82rem;
  background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-soft); color: var(--text);
}
.float-chip svg { color: var(--brand-on); }
.float-chip--sync { right: -6px; bottom: 40px; animation: floaty 5s var(--ease) infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; justify-content: center;
  padding: 20px 24px; border: 1px solid var(--divider); border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 60%, transparent);
}
.trust-strip__label { color: var(--text-2); font-weight: 600; font-size: .9rem; }
.trust-strip__items { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.trust-strip__items li { font-weight: 700; font-size: .92rem; position: relative; padding-left: 18px; }
.trust-strip__items li::before { content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 7px; height: 7px; border-radius: 999px; background: var(--grad-brand); }

/* ── Differentiator features ── */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(34px, 5vw, 56px) 0;
}
.feature--reverse .feature__text { order: 2; }
.feature__num { font-size: 3rem; font-weight: 800; line-height: 1;
  background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .85; }
.feature__badge {
  display: inline-block; margin-bottom: 12px; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #2a1402; background: var(--accent); padding: 5px 11px; border-radius: 999px;
}
.feature__text h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 14px 0 14px; }
.feature__text p { color: var(--text-2); font-size: 1.06rem; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.ticks--2col { grid-template-columns: 1fr 1fr; }
.ticks li { position: relative; padding-left: 28px; font-weight: 600; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 999px;
  display: grid; place-items: center; font-size: .7rem; color: #042b25; background: var(--grad-brand);
}

/* mockups (generic) */
.feature__art { display: grid; place-items: center; }
.mock {
  width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--divider);
  border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; padding: 16px;
}
.mock--browse { padding: 0; }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--divider); }
.mock__dot { width: 9px; height: 9px; border-radius: 999px; background: var(--text-3); opacity: .5; }
.mock__search { margin-left: 10px; flex: 1; font-size: .82rem; color: var(--text-3); background: var(--variant); padding: 6px 12px; border-radius: 999px; }
.mock__carousel { display: flex; gap: 8px; padding: 14px; overflow: hidden; }
.chip { font-size: .8rem; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: var(--variant); color: var(--text-2); white-space: nowrap; }
.chip--on { background: var(--grad-brand); color: #042b25; }
.mock__list { list-style: none; margin: 0; padding: 0 6px 8px; }
.mock__list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.mock__list li:nth-child(odd) { background: color-mix(in srgb, var(--variant) 50%, transparent); }
.ch-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .76rem; color: #042b25; background: var(--grad-brand); }
.ch-name { flex: 1; font-weight: 600; font-size: .92rem; }
.ch-heart { color: var(--text-3); }
.ch-heart.on { color: var(--favorite); }
.mock__perf { display: block; text-align: right; font-size: .72rem; color: var(--brand-on); padding: 0 14px 12px; font-weight: 700; }

/* sync mockup */
.mock--sync { position: relative; min-height: 300px; display: grid; place-items: center; padding: 28px; }
.sync-cloud { position: relative; z-index: 2; display: grid; justify-items: center; gap: 6px; color: var(--brand-on); font-weight: 800; margin-bottom: 56px; }
.sync-cloud span { color: var(--text); font-size: .9rem; }
.sync-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.sync-devices { display: flex; gap: 22px; position: relative; z-index: 2; }
.sync-dev { display: grid; justify-items: center; gap: 5px; }
.sync-dev__scr { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--variant); border: 1px solid var(--divider); }
.sync-dev small { color: var(--text-2); font-weight: 600; }

/* match mockup */
.mock--match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.match-col { display: grid; gap: 9px; }
.match-col__head { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.match-row { font-size: .82rem; font-weight: 600; padding: 9px 11px; border-radius: 10px; background: var(--variant); }
.match-row--ok { background: rgba(19,178,149,.14); color: var(--brand-on); border: 1px solid var(--glass-brd); }
.match-arrow { display: grid; justify-items: center; gap: 4px; color: var(--brand-on); }
.match-arrow small { font-size: .66rem; font-weight: 700; }

/* ── Feature grid ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .2s var(--ease), border-color .2s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--glass-brd); box-shadow: var(--shadow-soft); }
.card__ico { font-size: 1.9rem; margin-bottom: 12px; }
.card h4 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: .96rem; }

/* ── Showcase ── */
.showcase__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px,5vw,60px); align-items: center; }
.screen-frame {
  background: linear-gradient(160deg, #0c1d1c, #061110); padding: 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow);
}
.showcase__note { text-align: center; color: var(--text-3); font-size: .82rem; margin-top: 28px; }

/* ── Pricing ── */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; max-width: 800px; margin-inline: auto; align-items: stretch; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--brand); box-shadow: 0 20px 50px -22px rgba(19,178,149,.55); }
.plan--featured::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: var(--grad-brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan__ribbon { position: absolute; top: -13px; left: 50%; translate: -50% 0; white-space: nowrap;
  font-size: .72rem; font-weight: 800; color: #042b25; background: var(--grad-brand); padding: 5px 14px; border-radius: 999px; }
.plan__name { font-size: 1.3rem; display: flex; align-items: baseline; gap: 8px; }
.plan__cycle { font-size: .8rem; color: var(--brand-on); font-weight: 700; }
.plan__price { display: flex; align-items: baseline; gap: 7px; margin: 16px 0 6px; }
.plan__amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.plan__per { color: var(--text-2); font-weight: 600; }
.plan__tag { color: var(--text-2); font-size: .95rem; min-height: 2.6em; }
.plan__tag strong { color: var(--text); }
.plan__feats { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 11px; flex: 1; }
.plan__feats li { font-size: .95rem; font-weight: 600; }
.plan__feats li.muted { color: var(--text-3); font-weight: 500; }
.plan__feats li strong { color: var(--brand-on); }
.plan__alt { text-align: center; margin-top: 12px; font-size: .82rem; color: var(--text-2); }
.plan__alt a { color: var(--brand-on); font-weight: 700; }
.pricing__foot { text-align: center; color: var(--text-3); font-size: .85rem; margin-top: 26px; }

/* ── Platforms ── */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin-inline: auto; }
.store {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .25s;
}
.store--live { cursor: pointer; }
.store--live:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow-soft); }
.store--soon { opacity: .72; cursor: default; }
.store__ico { font-size: 1.7rem; width: 34px; text-align: center; }
.store__txt { display: grid; line-height: 1.2; margin-right: auto; }
.store__txt small { font-size: .72rem; color: var(--text-2); }
.store__txt strong { font-size: 1.05rem; }
.store__cta { color: var(--brand-on); font-weight: 800; }
.store__badge { font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: rgba(255,138,76,.12); padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255,138,76,.25); }
.platforms__note { text-align: center; color: var(--text-2); font-size: .92rem; margin-top: 26px; }
.platforms__note a { color: var(--brand-on); font-weight: 700; }

/* Content / legitimacy notice */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  max-width: 860px; margin: 34px auto 0; padding: 18px 22px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid rgba(255,138,76,.28); border-radius: var(--radius);
}
.notice__ico { flex: 0 0 auto; font-size: 1.1rem; color: var(--accent); font-weight: 800; line-height: 1.5; }
.notice p { color: var(--text-2); font-size: .9rem; line-height: 1.6; }
.notice strong { color: var(--text); }

/* ── FAQ ── */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 1.04rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-on); font-weight: 700; transition: transform .25s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--text-2); padding-bottom: 18px; font-size: .98rem; }
.faq__item p strong { color: var(--text); }

/* ── Final CTA ── */
.cta { padding: clamp(60px, 8vw, 100px) 0; }
.cta__inner {
  text-align: center; background: var(--grad-brand); color: #042b25; border-radius: 28px;
  padding: clamp(40px, 6vw, 70px) 28px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.cta__inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 10%, rgba(255,138,76,.4), transparent 60%); }
.cta h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); max-width: 720px; margin-inline: auto; position: relative; }
.cta p { margin: 16px auto 0; max-width: 560px; font-size: 1.1rem; opacity: .85; position: relative; font-weight: 600; }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; position: relative; }
.cta .btn--primary { background: #042b25; color: var(--brand-light); box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.cta .btn--ghost { background: rgba(4,43,37,.12); color: #042b25; border-color: rgba(4,43,37,.25); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--divider); padding: 56px 0 30px; margin-top: 20px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer__brand p { color: var(--text-2); font-size: .94rem; margin-top: 14px; max-width: 360px; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.footer__col a { color: var(--text-2); font-size: .94rem; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--divider); }
.footer__bottom p { color: var(--text-3); font-size: .82rem; max-width: 820px; }

/* ════════════════════════ Legal pages (privacy.html / terms.html) ════════ */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal__head { margin-bottom: 30px; }
.legal__back { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-on); font-weight: 700; font-size: .9rem; margin-bottom: 22px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.legal__updated { color: var(--text-2); font-size: .92rem; margin-top: 10px; }
.legal__draft {
  display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 8px; padding: 14px 18px;
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border: 1px solid rgba(240,140,0,.35); border-radius: var(--radius-sm);
  color: var(--text-2); font-size: .88rem; line-height: 1.55;
}
.legal__draft strong { color: var(--text); }
.legal__toc { background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.legal__toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 12px; }
.legal__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.legal__toc li { margin-bottom: 7px; }
.legal__toc a { color: var(--text-2); font-size: .92rem; }
.legal__toc a:hover { color: var(--brand-on); }
.legal__body { font-size: 1rem; line-height: 1.7; color: var(--text); }
.legal__body h2 { font-size: 1.35rem; margin: 38px 0 14px; padding-top: 10px; }
.legal__body h3 { font-size: 1.08rem; margin: 24px 0 10px; }
.legal__body p { color: var(--text-2); margin-bottom: 14px; }
.legal__body ul, .legal__body ol { color: var(--text-2); margin: 0 0 16px; padding-left: 22px; }
.legal__body li { margin-bottom: 8px; }
.legal__body strong { color: var(--text); }
.legal__body a { color: var(--brand-on); font-weight: 600; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .92rem; }
.legal__body th, .legal__body td { text-align: left; padding: 10px 12px; border: 1px solid var(--divider); vertical-align: top; overflow-wrap: anywhere; }
.legal__body th { background: var(--variant); color: var(--text); font-weight: 700; }
.legal__body td { color: var(--text-2); }
.legal__placeholder { color: var(--accent); font-weight: 700; }
@media (max-width: 600px) {
  .legal__toc ol { columns: 1; }
  .legal__body table { font-size: .82rem; }
  .legal__body th, .legal__body td { padding: 8px 9px; }
}

/* ════════════════════════ Responsive ════════════════════════ */
@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__try { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 66px; left: 0; right: 0; padding: 12px 22px 18px;
    background: var(--surface); border-bottom: 1px solid var(--divider); margin: 0;
  }
  .nav__links.is-open a { padding: 13px 0; border-bottom: 1px solid var(--divider); }

  .hero__inner { grid-template-columns: 1fr; gap: 10px; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__art { margin-top: 26px; }

  .feature, .feature--reverse { grid-template-columns: 1fr; gap: 26px; }
  .feature--reverse .feature__text { order: 0; }
  .feature__text { text-align: center; }
  .feature__num { display: inline-block; }
  .ticks { text-align: left; max-width: 420px; margin-inline: auto; }
  .showcase__inner { grid-template-columns: 1fr; }
  .showcase__copy { text-align: center; }
  .ticks--2col { max-width: 480px; }
}

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

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 420px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .ticks--2col { grid-template-columns: 1fr; }
  .trust-strip { flex-direction: column; text-align: center; }
  .mock--match { grid-template-columns: 1fr; }
  .match-arrow { transform: rotate(90deg); margin: 4px 0; }
  .nav__try { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
