/* ═══════════════════════════════════════════════════════════════════════════
   OMS Player — site styles.
   Design tokens are lifted straight from the app (src/themes.js + the inline
   styles in NowSelectedPanel / AIPanel), so the site and the product read as
   one thing. Themes mirror the three the app ships with.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Dark Blue — the app's default theme */
  --bg:        #1c1c1e;
  --bg2:       #2c2c2e;
  --bg3:       #3a3a3c;
  --accent:    #3478f6;
  --accent-dim:#1a3260;
  --text:      #f5f5f7;
  --subtext:   #8e8e93;
  --border:    #38383a;
  --danger:    #ff453a;

  /* Fixed status colours — hardcoded in the app, not part of the theme */
  --go-grad:   linear-gradient(135deg, #16a34a, #22c55e);
  --go-shadow: 0 4px 18px rgba(34, 197, 94, .40);
  --ai-grad:   linear-gradient(135deg, #7c3aed, #a78bfa);
  --purple:    #a78bfa;
  --green:     #22c55e;
  --amber:     #f59e0b;
  --red:       #f87171;

  /* Song colour tags */
  --tag-hotpink: #e91e8c;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --wrap: 1180px;
  --nav-h: 68px;

  --font: 'Rubik', 'Segoe UI', Arial, sans-serif;
}

[data-theme="purple"] {
  --bg: #13111a; --bg2: #1e1b2e; --bg3: #2d2a40;
  --accent: #7c4dff; --accent-dim: #261a4e;
  --subtext: #9e9aa8; --border: #2a2640;
}
[data-theme="cobra"] {
  --bg: #1a1014; --bg2: #261620; --bg3: #33202c;
  --accent: #e91e8c; --accent-dim: #540c32;
  --subtext: #9e8e94; --border: #2e1a24; --danger: #ff6b6b;
}

/* ── base ────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #44444a; border-radius: 5px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 820px; }

/* Parked above the viewport rather than off to the side — a horizontal offset
   pushes the document's scroll width out in RTL. */
.skip {
  position: fixed; inset-inline-start: 16px; top: -80px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: var(--r-md);
  transition: top .2s ease;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: var(--r-md); color: var(--text);
  background: var(--bg3);
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.96); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 16px rgb(0 0 0 / .3); }
.btn-block { display: flex; width: 100%; margin-top: 22px; }

/* store buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-center { justify-content: center; }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px; border-radius: var(--r-md);
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.store:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--bg3); }
.store:active { transform: scale(.97); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }
.store i { font-style: normal; font-size: 11px; color: var(--subtext); letter-spacing: .04em; }
.store b { font-size: 17px; font-weight: 700; }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.stuck { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 94%, transparent); }

.nav-inner { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { border-radius: 10px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.brand-txt i { font-style: normal; font-size: 10.5px; color: var(--subtext); letter-spacing: .07em; text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  padding: 9px 14px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500;
  color: var(--subtext); transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--bg2); }

.nav-tools { display: flex; align-items: center; gap: 10px; flex: none; }

.swatches { display: flex; gap: 6px; padding: 5px; background: var(--bg2); border-radius: 999px; }
.sw {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; padding: 0; transition: transform .15s ease, border-color .2s ease;
}
.sw:hover { transform: scale(1.15); }
.sw.is-on { border-color: var(--text); }
.sw-blue   { background: #3478f6; }
.sw-purple { background: #7c4dff; }
.sw-cobra  { background: #e91e8c; }

.lang {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: var(--r-sm);
  transition: background .2s ease, border-color .2s ease;
}
.lang:hover { background: var(--bg3); border-color: var(--accent); }

.burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-glow {
  position: absolute; inset-block-start: -320px; inset-inline-start: 50%;
  transform: translateX(-50%); width: 1100px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%);
  transition: background .35s ease;
}
[dir="rtl"] .hero-glow { transform: translateX(50%); }

.hero-grid {
  position: relative; display: grid; gap: 64px; align-items: center;
  grid-template-columns: 1fr minmax(300px, 380px);
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent-dim); border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  color: color-mix(in srgb, var(--accent) 72%, #fff);
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: .55; } }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.05;
}
.hero h1 em {
  display: block; font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lead { margin-top: 22px; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--subtext); max-width: 56ch; }

.cta-note { margin-top: 16px; font-size: 13.5px; color: var(--subtext); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-facts li {
  flex: 1 1 150px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px;
}
.hero-facts b { display: block; font-size: 14.5px; font-weight: 700; }
.hero-facts span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--subtext); line-height: 1.45; }

/* ── phone mockup ────────────────────────────────────────────────────────── */
.hero-app { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.phone {
  position: relative; width: 100%; max-width: 340px; aspect-ratio: 9 / 18.6;
  background: #08080a; border: 9px solid #08080a; border-radius: 44px;
  box-shadow: 0 34px 70px rgb(0 0 0 / .55), 0 0 0 1.5px #2a2a2e, inset 0 0 0 1px #000;
}
.phone-notch {
  position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #08080a; border-radius: 0 0 14px 14px; z-index: 5;
}
[dir="rtl"] .phone-notch { transform: translateX(50%); }

.screen {
  position: relative; height: 100%; width: 100%;
  border-radius: 36px; overflow: hidden; background: var(--bg);
  display: flex; flex-direction: column;
  direction: ltr; /* the app UI itself is LTR in both site languages */
}

/* floating AI buttons */
.fab {
  position: absolute; top: 30px; z-index: 6;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 15px; display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 14px rgb(0 0 0 / .45);
  transition: transform .18s ease;
}
.fab:active { transform: scale(.9); }
.fab-mic { left: 12px;  background: var(--go-grad); }
.fab-ai  { right: 12px; background: var(--ai-grad); }

/* Now Playing panel — mirrors NowSelectedPanel.jsx */
.np {
  flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center;
  padding: 26px 12px 10px;
  background: radial-gradient(125% 80% at 50% 0%, color-mix(in srgb, var(--accent) 20%, transparent) 0%, var(--bg2) 58%);
  border-end-start-radius: var(--r-xl); border-end-end-radius: var(--r-xl);
  box-shadow: 0 8px 22px rgb(0 0 0 / .38), inset 0 1px 0 rgb(255 255 255 / .07);
  transition: background .35s ease;
}

.np-transcript {
  display: flex; align-items: center; gap: 6px; max-width: 100%;
  font-size: 10.5px; color: var(--subtext);
  background: color-mix(in srgb, var(--bg3) 70%, transparent);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 8px;
  white-space: nowrap; overflow: hidden;
}
.np-transcript .rec {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none;
  animation: blink 1.3s steps(1) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

/* Art absorbs the free height and stays square — same rule as the app. */
.np-art-wrap {
  flex: 1; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center; padding-block: 4px;
}
.np-art {
  height: 100%; width: auto; aspect-ratio: 1; max-width: 100%;
  border-radius: var(--r-xl);
  display: grid; place-items: center;
  background: var(--tag-hotpink);
  border: 1px solid rgb(255 255 255 / .08);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--tag-hotpink) 33%, transparent), 0 4px 12px rgb(0 0 0 / .4);
  transition: box-shadow .3s ease, opacity .3s ease;
}
.np-title { margin-top: 12px; font-size: 15px; font-weight: 700; text-align: center; }

.np-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 7px;
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg3); color: var(--subtext);
  border-radius: 7px; padding: 3px 7px; font-size: 9.5px; line-height: 1.3;
}
.chip.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.chip .tag { width: 6px; height: 6px; border-radius: 50%; background: var(--tag-hotpink); display: inline-block; }

/* waveform */
.wave {
  display: flex; align-items: center; gap: 1.5px; height: 42px; width: 100%;
  margin-top: 12px; padding-inline: 2px;
}
.wave i { flex: 1; border-radius: 1px; background: var(--bg3); transition: background .18s linear; }
.wave i.on { background: var(--accent); }

/* transport */
.transport { display: flex; gap: 7px; margin-top: 12px; }
.tbtn {
  width: 33px; height: 33px; border-radius: var(--r-md); border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--bg3);
  transition: transform .15s ease, filter .2s ease;
}
.tbtn:active { transform: scale(.9); }
.tbtn svg { width: 15px; height: 15px; }
.tprev, .tnext { color: var(--purple); }
.tplay { background: var(--accent); color: #fff; }
.tstop { color: var(--red); }

/* GO */
.go {
  width: 100%; margin-top: 12px; padding: 11px 0; border: 0; cursor: pointer;
  border-radius: var(--r-lg); color: #fff;
  font-family: inherit; font-size: 17px; font-weight: 900; letter-spacing: .13em;
  background: var(--go-grad); box-shadow: var(--go-shadow);
  transition: transform .15s ease, background .3s ease, box-shadow .3s ease;
}
.go:active { transform: scale(.96); }
.go.is-playing { background: var(--ai-grad); box-shadow: 0 4px 18px rgb(167 139 250 / .35); }
.go.is-delay   { background: linear-gradient(135deg, #b45309, #f59e0b); box-shadow: 0 4px 18px rgb(245 158 11 / .35); }

.tabbar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: var(--bg2); border-top: 1px solid var(--border);
  font-size: 10.5px; color: var(--subtext);
}
.tabbar span:first-child { margin-inline-end: auto; }
.tb-ico {
  width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--bg3);
  display: grid; place-items: center; font-size: 12px; color: var(--text);
}

.phone-cap { font-size: 12.5px; color: var(--subtext); text-align: center; max-width: 320px; }

/* ── section shell ───────────────────────────────────────────────────────── */
.sec { padding: 96px 0; }
.sec-alt { background: color-mix(in srgb, var(--bg2) 55%, var(--bg)); }

.sec-head { max-width: 720px; margin-bottom: 56px; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.kicker-ai { color: var(--purple); }
.sec h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); font-weight: 900; letter-spacing: -.025em; }
.sec-sub { margin-top: 18px; font-size: 1.05rem; color: var(--subtext); }
.mini-h { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; }

/* ── GO section ──────────────────────────────────────────────────────────── */
.go-states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gstate {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 24px; transition: transform .2s ease, border-color .2s ease;
}
.gstate:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.gpill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 78px;
  direction: ltr; /* the button labels read the same way in both site languages */
  padding: 9px 16px; border-radius: var(--r-md); color: #fff;
  font-weight: 900; font-size: 14px; letter-spacing: .1em; margin-bottom: 18px;
}
.gpill-green  { background: var(--go-grad); box-shadow: var(--go-shadow); }
.gpill-purple { background: var(--ai-grad); box-shadow: 0 4px 18px rgb(167 139 250 / .35); }
.gpill-amber  { background: linear-gradient(135deg, #b45309, #f59e0b); box-shadow: 0 4px 18px rgb(245 158 11 / .35); }
.gstate h3 { font-size: 1.12rem; margin-bottom: 10px; }
.gstate p { color: var(--subtext); font-size: 14.5px; }

.go-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.ge {
  background: var(--accent-dim); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-lg); padding: 26px 24px;
}
.ge h4 { font-size: 1.02rem; margin-bottom: 9px; }
.ge p { color: color-mix(in srgb, var(--text) 72%, var(--subtext)); font-size: 14.5px; }

/* ── hands-free: voice + remote ──────────────────────────────────────────── */
.hands-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.hand {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 34px 32px; height: 100%;
  display: flex; flex-direction: column;
}
.hand-ico {
  display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: var(--r-lg); font-size: 25px; margin-bottom: 20px;
}
.hand-ico-voice  { background: var(--go-grad); box-shadow: var(--go-shadow); }
.hand-ico-remote { background: var(--ai-grad); box-shadow: 0 4px 18px rgb(167 139 250 / .35); }
.hand h3 { font-size: 1.4rem; }
.hand-lead { margin-top: 12px; font-size: 15px; color: var(--subtext); }

.hand-list { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.hand-list li { position: relative; padding-inline-start: 26px; font-size: 14.5px; color: var(--subtext); }
.hand-list li::before {
  content: ''; position: absolute; inset-inline-start: 6px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.hand-more {
  margin-top: auto; padding-top: 22px; font-size: 14.5px; font-weight: 600; color: var(--accent);
  transition: opacity .2s ease;
}
.hand-more:hover { opacity: .75; }

/* Remote button map — what each media key actually does. */
.keymap { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.keymap li {
  display: flex; align-items: center; gap: 15px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 13px 16px;
}
.key {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--bg3); color: var(--text);
  display: grid; place-items: center; font-size: 16px;
}
.keymap b { display: block; font-size: 14.5px; }
.keymap span:not(.key) { display: block; margin-top: 2px; font-size: 12.5px; color: var(--subtext); line-height: 1.5; }

/* NEXT is the headline mapping — it is literally the GO action. */
.km-star {
  border-color: color-mix(in srgb, var(--green) 45%, transparent);
  background: color-mix(in srgb, var(--green) 8%, var(--bg));
}
.km-star .key { background: var(--go-grad); color: #fff; box-shadow: var(--go-shadow); }
.km-star b { color: var(--green); font-weight: 800; letter-spacing: .08em; }

.hand-note {
  margin-top: 20px; padding: 14px 17px; font-size: 13.5px; color: var(--subtext);
  background: var(--bg); border-inline-start: 3px solid var(--purple); border-radius: var(--r-sm);
}
/* The hardware requirement is a gate, not a footnote — it reads as amber. */
.hand-note-warn { border-inline-start-color: var(--amber); background: color-mix(in srgb, var(--amber) 7%, var(--bg)); }
.hand-tip { margin-top: 12px; font-size: 13.5px; color: var(--subtext); font-style: italic; }

/* per-action price list */
.pricetable { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.pricetable li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--subtext);
}
.pricetable li:last-child { border-bottom: 0; }
/* Outranks `.plan li::before`, which would otherwise stamp a green tick on
   every price row — equal specificity, and that rule comes later in the file. */
.plan .pricetable li { padding-inline-start: 0; }
.plan .pricetable li::before { content: none; }
.pricetable b {
  font-size: 15.5px; font-weight: 700; color: var(--text); white-space: nowrap;
  font-variant-numeric: tabular-nums; direction: ltr;
}
.pricetable i { font-style: normal; font-size: 12px; color: var(--subtext); margin-inline-start: 4px; }
.plan-foot { margin-top: 22px; font-size: 13.5px; color: var(--subtext); }
.tagline-cost { color: var(--amber); background: rgb(245 158 11 / .13); }

/* ── AI Director ─────────────────────────────────────────────────────────── */
.dir-grid { display: grid; grid-template-columns: 1fr 400px; gap: 52px; align-items: start; }

.engine-list { display: flex; flex-direction: column; gap: 14px; }
.engine-list li {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 17px 19px;
  transition: border-color .2s ease;
}
.engine-list li:hover { border-color: color-mix(in srgb, var(--purple) 45%, var(--border)); }
.eico {
  flex: none; width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--bg3); display: grid; place-items: center; font-size: 17px;
}
.engine-list b { font-size: 15.5px; font-weight: 700; }
.engine-list .tagline {
  display: inline-block; margin-inline-start: 9px; font-size: 11px; font-weight: 600;
  color: var(--green); background: rgb(34 197 94 / .13); padding: 2px 9px; border-radius: 999px;
  vertical-align: middle;
}
.engine-list p { margin-top: 5px; font-size: 14px; color: var(--subtext); }
.note {
  margin-top: 18px; padding: 15px 18px; font-size: 14px; color: var(--subtext);
  background: var(--bg2); border-inline-start: 3px solid var(--green); border-radius: var(--r-sm);
}

/* Director panel mock */
.dir-panel {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: 0 18px 44px rgb(0 0 0 / .35);
  direction: ltr;
}
.dp-head { display: flex; gap: 4px; padding: 12px 14px; background: var(--bg3); }
.dp-tab {
  font-size: 12px; font-weight: 600; color: var(--subtext);
  padding: 6px 14px; border-radius: var(--r-sm);
}
.dp-tab.is-on { background: var(--accent); color: #fff; }
.dp-body { padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; }

.rule {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 14px;
}
/* Explicit placement — auto-placement puts the row-spanning toggle in
   column 1 and pushes the action line onto a third row. */
.rule-kw  { grid-area: 1 / 1; font-size: 13.5px; font-weight: 600; color: var(--text); }
.rule-act { grid-area: 2 / 1; font-size: 11.5px; color: var(--subtext); }
.rule-song { border-inline-start: 3px solid var(--purple); }
.toggle {
  grid-area: 1 / 2 / span 2 / auto; align-self: center;
  width: 34px; height: 19px; border-radius: 999px;
  background: var(--bg3); position: relative; flex: none;
}
.toggle::after {
  content: ''; position: absolute; top: 2.5px; left: 2.5px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--subtext);
  transition: transform .2s ease, background .2s ease;
}
.toggle.is-on { background: color-mix(in srgb, var(--green) 40%, transparent); }
.toggle.is-on::after { transform: translateX(15px); background: var(--green); }

.terminal {
  margin-top: 6px; display: flex; flex-direction: column; gap: 5px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 13px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px;
  color: var(--text);
}
.terminal .t-dim { color: var(--subtext); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 24px; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--purple) 40%, var(--border)); }
.cico { font-size: 24px; display: block; margin-bottom: 14px; }
.card h4 { font-size: 1.02rem; margin-bottom: 9px; }
.card p { font-size: 14.5px; color: var(--subtext); }

/* ── Smart Edit ──────────────────────────────────────────────────────────── */
.smart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }

.prompts { display: flex; flex-direction: column; gap: 14px; }
.prompt {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s ease, transform .2s ease;
}
.prompt:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--purple) 45%, var(--border)); }
.p-you { font-size: 14.5px; font-weight: 500; }
.p-ok {
  align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--green);
  background: rgb(34 197 94 / .12); padding: 4px 12px; border-radius: 999px;
}

.smart-list { display: flex; flex-direction: column; gap: 26px; }
.sl { padding-inline-start: 20px; border-inline-start: 2px solid var(--border); }
.sl h4 { font-size: 1.05rem; margin-bottom: 9px; }
.sl p { font-size: 14.5px; color: var(--subtext); }

/* ── features grid ───────────────────────────────────────────────────────── */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.f {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 26px; transition: transform .2s ease, border-color .2s ease;
}
.f:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.fico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--accent-dim); color: var(--accent); font-size: 20px; margin-bottom: 18px;
}
.f h3 { font-size: 1.1rem; margin-bottom: 11px; }
.f p { font-size: 14.5px; color: var(--subtext); }

/* ── plans ───────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan {
  position: relative; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 36px 32px;
}
.plan-pro {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(165deg, var(--accent-dim), var(--bg2) 62%);
  box-shadow: 0 20px 50px rgb(0 0 0 / .3);
}
.plan-flag {
  position: absolute; top: -13px; inset-inline-start: 32px;
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; padding: 5px 15px; border-radius: 999px;
}
.plan h3 { font-size: 1.55rem; }
.plan-sub { margin-top: 6px; font-size: 14px; color: var(--subtext); }
/* Sized to work either as a real price ("₪19.90 / month") or as a short note. */
.plan-price { margin-top: 6px; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.plan ul { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.plan li { position: relative; padding-inline-start: 28px; font-size: 14.5px; color: var(--subtext); }
.plan li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: -1px;
  color: var(--green); font-weight: 800;
}
.plan .li-meter::before { content: '◔'; color: var(--amber); }

.access { margin-top: 56px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 38px 34px; }
.access h3 { font-size: 1.3rem; margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { display: flex; gap: 15px; align-items: flex-start; }
.snum {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 14.5px;
}
.step p { font-size: 14.5px; color: var(--subtext); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
details {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px 24px; margin-bottom: 12px; transition: border-color .2s ease;
}
details[open] { border-color: color-mix(in srgb, var(--accent) 42%, var(--border)); }
summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; flex: none; font-size: 22px; font-weight: 400; color: var(--accent);
  line-height: 1; transition: transform .25s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 14px; font-size: 14.5px; color: var(--subtext); }

/* ── final CTA + footer ──────────────────────────────────────────────────── */
.final {
  padding: 96px 0;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), var(--bg) 66%);
  border-top: 1px solid var(--border);
  transition: background .35s ease;
}
.final-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 900; letter-spacing: -.025em; }
.final p { margin-top: 16px; color: var(--subtext); font-size: 1.05rem; }

.foot { background: var(--bg2); border-top: 1px solid var(--border); padding: 44px 0; }
.foot-in { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 13px; }
.foot-brand img { border-radius: 10px; }
.foot-brand b { display: block; font-size: 15px; }
.foot-brand span { display: block; font-size: 12.5px; color: var(--subtext); }
.foot-links { display: flex; gap: 22px; margin-inline: auto; flex-wrap: wrap; }
.foot-links a { font-size: 14px; color: var(--subtext); transition: color .2s ease; }
.foot-links a:hover { color: var(--text); }
.foot-copy { font-size: 13px; color: var(--subtext); }

/* ── legal pages (privacy, terms) ────────────────────────────────────────── */
.legal { padding: 60px 0 96px; }
.legal-head { max-width: 760px; margin-bottom: 48px; }
.legal-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.025em; }
.legal-meta { margin-top: 14px; font-size: 13.5px; color: var(--subtext); }
.legal-intro {
  margin-top: 26px; padding: 20px 24px; font-size: 15px;
  background: var(--accent-dim); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-lg); color: color-mix(in srgb, var(--text) 82%, var(--subtext));
}

.legal-body { max-width: 760px; display: flex; flex-direction: column; gap: 40px; }
.legal-body section { scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal-body h2 {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -.015em;
  padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 18px;
}
.legal-body h3 { font-size: 1.02rem; font-weight: 700; margin: 22px 0 8px; }
.legal-body p { font-size: 15px; color: var(--subtext); margin-bottom: 14px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.legal-list { display: flex; flex-direction: column; gap: 11px; margin: 6px 0 14px; }
.legal-list li { position: relative; padding-inline-start: 24px; font-size: 15px; color: var(--subtext); }
.legal-list li::before {
  content: ''; position: absolute; inset-inline-start: 6px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* "what leaves the device" — each destination stated plainly */
.flow { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.flow li {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px 18px;
}
.flow b { display: block; font-size: 14.5px; margin-bottom: 5px; }
.flow span { display: block; font-size: 13.5px; color: var(--subtext); line-height: 1.6; }
.flow code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
  background: var(--bg3); padding: 1px 6px; border-radius: 5px; color: var(--text);
  direction: ltr; display: inline-block;
}

.legal-none {
  border-inline-start: 3px solid var(--green);
  background: color-mix(in srgb, var(--green) 7%, var(--bg2));
  border-radius: var(--r-md); padding: 20px 22px;
}
.legal-none h2 { border: 0; padding: 0; margin-bottom: 12px; }

.legal-toc {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px 24px; margin-bottom: 48px; max-width: 760px;
}
.legal-toc b { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--subtext); margin-bottom: 14px; }
.legal-toc ol { margin: 0; padding-inline-start: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.legal-toc li { font-size: 14px; color: var(--subtext); }
.legal-toc a { color: var(--text); }
.legal-toc a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .legal { padding: 36px 0 68px; }
  .legal-toc ol { grid-template-columns: 1fr; }
}

/* ── reveal on scroll ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  /* Copy stays first once the hero stacks — the headline and the store
     buttons have to be the first thing on screen, not the mockup. */
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .phone { max-width: 300px; }
  .dir-grid, .smart-grid { grid-template-columns: 1fr; gap: 38px; }
  .fgrid, .cards-3, .go-states, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset-block-start: var(--nav-h); inset-inline: 0;
    flex-direction: column; gap: 2px; margin: 0; padding: 14px 20px 24px;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    transform: translateY(-140%); transition: transform .3s ease; z-index: 90;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 12px; font-size: 15.5px; }
  .nav-inner { gap: 12px; }
  .nav-tools { margin-inline-start: auto; }
  .burger { display: flex; }
  .nav-cta, .swatches { display: none; }
}

@media (max-width: 720px) {
  .sec { padding: 68px 0; }
  .hero { padding: 44px 0 68px; }
  .sec-head { margin-bottom: 40px; }
  .fgrid, .cards-3, .go-states, .go-extra, .plans, .steps, .hands-grid { grid-template-columns: 1fr; }
  .hand { padding: 28px 22px; }
  .keymap li { padding: 12px 13px; gap: 12px; }
  .final { padding: 68px 0; }
  .foot-in { flex-direction: column; text-align: center; }
  .foot-links { margin-inline: 0; justify-content: center; }
  .store { flex: 1 1 100%; justify-content: center; }
  .access { padding: 28px 22px; }
  .plan { padding: 30px 24px; }
  .phone { max-width: 268px; border-width: 7px; border-radius: 36px; }
  .screen { border-radius: 30px; }
  .hero-facts li { flex-basis: 100%; }
}
