/* =====================================================================
   HIVE — marketing site. Reuses the app's brand tokens, HEX SVG and
   premium visual language. One purposeful honey→ember gradient, calm
   near-black surfaces, confident typography. No random gradients.
   ===================================================================== */
:root {
  --void: #09090b;
  --carbon: #0e0e12;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .14);
  --honey: #ffb23e;
  --honey-bright: #ffd078;
  --ember: #ff681d;
  --grad: linear-gradient(135deg, #ffd17e 0%, #ffb23e 43%, #ff681d 100%);
  --honey-soft: rgba(255, 178, 62, .12);
  --pulse: #49d889;
  --cream: #f7f3eb;
  --ash: #9a989e;
  --ash-2: #6c6b71;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.3, .3, 1);
  --max: 1120px;
  --pad: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--void);
  color: var(--cream);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: rgba(255, 178, 62, .32); }
.svg-defs { position: absolute; width: 0; height: 0; }

.eyebrow { color: var(--honey); font-size: 12px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

h1, h2, h3 { letter-spacing: -.03em; line-height: 1.04; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(30px, 5vw, 54px); }

/* ---------- Buttons ---------- */
.btn { align-items: center; border-radius: 999px; display: inline-flex; font-size: 15px; font-weight: 700; gap: 9px; justify-content: center; min-height: 50px; padding: 0 24px; transition: transform .25s var(--ease-out), box-shadow .25s, background .25s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #211205; box-shadow: 0 16px 34px -16px rgba(255, 122, 30, .7); }
.btn-primary:hover { box-shadow: 0 20px 44px -16px rgba(255, 122, 30, .85); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--cream); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-lg { min-height: 56px; font-size: 16px; padding: 0 30px; }

/* ---------- HEX mark ---------- */
.hex { display: block; overflow: visible; }
.hex-mark { height: 28px; width: 28px; }
.hex-cta { height: clamp(110px, 16vw, 150px); margin: 0 auto 8px; width: clamp(110px, 16vw, 150px); }
@keyframes hexFloat { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-12px) rotate(.6deg); } }
.hex-breathe { animation: hexFloat 5.5s ease-in-out infinite; }

/* ---------- Nav ---------- */
.nav {
  align-items: center;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: color-mix(in srgb, var(--void) 78%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 14px var(--pad);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-brand { align-items: center; display: flex; font-weight: 800; gap: 10px; letter-spacing: 1px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ash); font-size: 14px; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--cream); }
.nav-side { align-items: center; display: flex; gap: 10px; }
.nav-cta { min-height: 42px; padding: 0 18px; }
.lang-switch { align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ash); display: inline-flex; gap: 2px; height: 42px; padding: 0 4px 0 12px; transition: border-color .2s, color .2s; }
.lang-switch:hover, .lang-switch:focus-within { border-color: rgba(255, 178, 62, .45); color: var(--cream); }
.lang-globe { fill: none; flex: none; height: 15px; stroke: currentColor; stroke-width: 1.6; width: 15px; }
#lang-select { -webkit-appearance: none; appearance: none; background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'><path d='M1 1l3 3 3-3' fill='none' stroke='%239a989e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 8px center; border: 0; color: inherit; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .5px; padding: 8px 22px 8px 5px; }
#lang-select:focus-visible { outline: none; }
#lang-select option { background: #131316; color: var(--cream); }

/* Arabic keeps the LTR layout; per-element dir="auto" is set by i18n.js.
   Letter-spacing breaks cursive Arabic, so zero it for translated text. */
html[lang="ar"] [data-i18n], html[lang="ar"] [data-i18n-html] { letter-spacing: 0; }
.nav.is-scrolled { box-shadow: 0 14px 36px -26px rgba(0, 0, 0, .9); padding-bottom: 11px; padding-top: 11px; }

.nav-toggle { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; display: none; flex-direction: column; gap: 5px; height: 42px; padding: 0 11px; align-items: center; justify-content: center; }
.nav-toggle span { background: var(--cream); border-radius: 2px; display: block; height: 2px; transition: transform .3s var(--ease-out), opacity .3s; width: 18px; }
.nav-toggle.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-menu { background: color-mix(in srgb, #0c0c0f 92%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); display: grid; gap: 2px; left: 12px; padding: 10px; position: absolute; right: 12px; top: calc(100% + 8px); }
.nav-menu[hidden] { display: none; }
.nav-menu a { border-radius: 12px; color: var(--cream); font-size: 15px; font-weight: 650; padding: 12px 14px; }
.nav-menu a:hover { background: var(--surface-2); }

/* ---------- Section scaffolding ---------- */
section { padding: clamp(72px, 11vh, 140px) var(--pad); position: relative; }
.section-head { margin: 0 auto clamp(40px, 6vh, 72px); max-width: 720px; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head p { color: var(--ash); font-size: clamp(15px, 2vw, 18px); margin: 18px auto 0; max-width: 580px; }
.compact-head { margin-bottom: 0; margin-top: clamp(28px, 5vh, 48px); }
.compact-head a { color: var(--honey); font-weight: 800; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; align-items: center; overflow: hidden; padding-top: clamp(56px, 9vh, 110px); text-align: center; }
.hero-glow { background:
    radial-gradient(52% 46% at 50% 30%, rgba(255, 140, 32, .17), transparent 70%),
    radial-gradient(30% 26% at 68% 16%, rgba(255, 200, 110, .08), transparent 70%);
  inset: 0; pointer-events: none; position: absolute; }
.island-tease { align-items: center; background: #050506; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); color: #cfccd2; display: inline-flex; font-size: 12px; font-weight: 700; gap: 9px; margin-bottom: 30px; padding: 9px 16px; position: relative; }
.island-hex-dot { background: var(--grad); border-radius: 50%; box-shadow: 0 0 10px rgba(255, 160, 40, .8); height: 12px; width: 12px; }
.hero h1 { font-size: clamp(42px, 7vw, 82px); max-width: 860px; position: relative; }
.hero-sub { color: var(--ash); font-size: clamp(16px, 2.1vw, 20px); margin-top: 22px; max-width: 600px; position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; position: relative; }

.hero-devices { align-items: flex-start; display: flex; justify-content: center; margin-top: clamp(44px, 7vh, 84px); position: relative; }
.hero-devices .iphone { margin: 0; }
.iphone-main { position: relative; width: clamp(176px, 48vw, 320px); z-index: 3; }
.iphone-side { margin: 0 clamp(-30px, -3vw, -38px); transform: translateY(clamp(30px, 6vw, 64px)) rotate(-5deg) scale(.98); width: clamp(124px, 34vw, 252px); z-index: 2; }
.iphone-side.side-right { transform: translateY(clamp(30px, 6vw, 64px)) rotate(5deg) scale(.98); }
.hero-honesty { color: var(--ash-2); font-size: 11px; font-weight: 700; letter-spacing: .8px; margin-top: clamp(28px, 5vh, 44px); position: relative; text-transform: uppercase; }
.trust-row { color: var(--ash-2); display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 44px); justify-content: center; margin: clamp(26px, 4vh, 40px) auto 0; max-width: var(--max); position: relative; }
.trust-row span { font-size: 13px; font-weight: 700; letter-spacing: .5px; opacity: .8; }

/* ---------- iPhone frame (built in CSS — no Apple imagery) ---------- */
.iphone { --r: clamp(30px, 8.6vw, 56px); margin: 0; }
.iphone-feature { --r: 50px; width: clamp(240px, 30vw, 302px); }
.iphone-frame {
  background: linear-gradient(150deg, #57575f 0%, #1b1b20 30%, #0b0b0e 55%, #3b3b44 88%, #23232a 100%);
  border-radius: var(--r);
  box-shadow:
    0 70px 130px -56px rgba(0, 0, 0, .95),
    0 34px 70px -44px rgba(255, 120, 30, .22),
    0 0 0 1px rgba(255, 255, 255, .05);
  padding: 3px;
  position: relative;
}
/* Side buttons: volume + action (left), power (right) */
.iphone-frame::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .08));
  border-radius: 4px 0 0 4px;
  box-shadow: 0 46px 0 rgba(255, 255, 255, .16), 0 92px 0 rgba(255, 255, 255, .16);
  content: "";
  height: 26px;
  left: -2px;
  position: absolute;
  top: 17%;
  width: 2.5px;
}
.iphone-frame::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .07));
  border-radius: 0 4px 4px 0;
  content: "";
  height: 64px;
  position: absolute;
  right: -2px;
  top: 26%;
  width: 2.5px;
}
.iphone-bezel { background: #050506; border-radius: calc(var(--r) - 3px); padding: clamp(5px, 1.1vw, 9px); }
.iphone-screen { aspect-ratio: 390 / 844; background: #f4efe6; border-radius: calc(var(--r) - clamp(8px, 2vw, 12px)); container-type: inline-size; overflow: hidden; position: relative; }
.iphone-shot { height: 100%; object-fit: cover; object-position: top center; width: 100%; }
.iphone-island { aspect-ratio: 100 / 30; background: #050506; border-radius: 999px; box-shadow: 0 2px 8px rgba(20, 12, 2, .28); left: 50%; position: absolute; top: 1.5%; transform: translateX(-50%); width: 31%; }
.iphone-island.island-live { align-items: center; aspect-ratio: auto; color: #fff; display: flex; gap: 6px; justify-content: center; padding: 3.2% 4%; width: 52%; }
.island-live b { font-size: clamp(8px, 4.2cqw, 11px); font-weight: 700; letter-spacing: .2px; }
.iphone { container-type: inline-size; }
.di-hex { background: var(--grad); box-shadow: 0 0 8px rgba(255, 160, 40, .7); clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%); flex: 0 0 auto; height: clamp(9px, 4.6cqw, 13px); width: clamp(10px, 5.2cqw, 15px); }
.live-pip { background: var(--pulse); border-radius: 50%; box-shadow: 0 0 8px rgba(73, 216, 137, .8); flex: 0 0 auto; height: clamp(5px, 2.4cqw, 7px); width: clamp(5px, 2.4cqw, 7px); animation: pipPulse 1.6s ease-in-out infinite; }
@keyframes pipPulse { 50% { opacity: .45; transform: scale(.8); } }

.screen-caption { color: var(--ash-2); font-size: 11px; font-weight: 700; letter-spacing: .8px; margin-top: 16px; text-align: center; text-transform: uppercase; }

/* ---------- Dynamic Island / Live Activity showcase ---------- */
.island-section { overflow: hidden; }
.island-stage { margin: 0 auto clamp(44px, 7vh, 72px); max-width: 720px; }
.island-demo {
  align-items: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(255, 150, 36, .1), transparent 62%),
    radial-gradient(120% 90% at 50% 100%, #101014, #08080b 70%);
  border: 1px solid var(--line);
  border-radius: 34px;
  display: flex;
  justify-content: center;
  min-height: clamp(230px, 34vw, 280px);
  padding: 28px;
  position: relative;
}
.ila-shell {
  background: #050506;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--ila-r, 999px);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6);
  height: var(--ila-h, 62px);
  overflow: hidden;
  position: relative;
  transition: width .6s var(--ease-spring), height .6s var(--ease-spring), border-radius .6s var(--ease-out);
  width: var(--ila-w, 240px);
}
.island-demo[data-state="compact"] { --ila-w: min(240px, 74vw); --ila-h: 60px; --ila-r: 999px; }
.island-demo[data-state="expanded"] { --ila-w: min(480px, 86vw); --ila-h: 164px; --ila-r: 44px; }
.island-demo[data-state="complete"] { --ila-w: min(460px, 86vw); --ila-h: 96px; --ila-r: 48px; }
.island-demo[data-state] .ila-shell { width: var(--ila-w); height: var(--ila-h); border-radius: var(--ila-r); }

.ila { align-items: center; display: flex; inset: 0; justify-content: center; opacity: 0; padding: 0 22px; pointer-events: none; position: absolute; transform: scale(.9); transition: opacity .3s var(--ease-out), transform .45s var(--ease-out); }
.island-demo[data-state="compact"] .ila-compact,
.island-demo[data-state="expanded"] .ila-expanded,
.island-demo[data-state="complete"] .ila-complete { opacity: 1; transform: none; transition-delay: .18s; }

.ila-compact { gap: 10px; }
.ila-compact .di-hex { height: 15px; width: 17px; }
.ila-km { color: #fff; font: 700 15px var(--font); letter-spacing: .2px; }
.ila-compact .live-pip { height: 8px; width: 8px; }

.ila-expanded { flex-direction: column; gap: 16px; justify-content: center; }
.ila-head { align-items: center; display: flex; gap: 10px; width: 100%; }
.ila-head .di-hex { height: 15px; width: 17px; }
.ila-head b { color: #fff; font-size: 14.5px; }
.gps-chip { background: rgba(73, 216, 137, .13); border: 1px solid rgba(73, 216, 137, .3); border-radius: 999px; color: var(--pulse); font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .6px; margin-left: auto; padding: 4px 9px; text-transform: uppercase; }
.ila-metrics { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); width: 100%; }
.ila-metrics small { color: var(--ash); display: block; font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.ila-metrics b { color: #fff; font: 800 clamp(16px, 4.4vw, 22px) var(--mono); letter-spacing: -.5px; }

.ila-complete { gap: 14px; justify-content: flex-start; }
.ila-check { align-items: center; background: rgba(73, 216, 137, .14); border: 1px solid rgba(73, 216, 137, .32); border-radius: 50%; color: var(--pulse); display: flex; flex: 0 0 auto; height: 38px; justify-content: center; width: 38px; }
.ila-check svg { height: 18px; width: 18px; }
.ila-done { flex: 1; min-width: 0; text-align: left; }
.ila-done b { color: #fff; display: block; font-size: 14.5px; }
.ila-done small { color: var(--ash); display: block; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ila-view { background: var(--honey-soft); border: 1px solid rgba(255, 178, 62, .3); border-radius: 999px; color: var(--honey-bright); flex: 0 0 auto; font-size: 11px; font-style: normal; font-weight: 800; padding: 6px 12px; }

.island-controls { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.island-dot { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ash); cursor: pointer; font-family: var(--font); font-size: 12.5px; font-weight: 700; padding: 9px 18px; transition: color .25s, background .25s, border-color .25s; }
.island-dot:hover { color: var(--cream); }
.island-dot.is-active { background: var(--honey-soft); border-color: rgba(255, 178, 62, .4); color: var(--honey-bright); }

.island-notes { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 0 auto; max-width: var(--max); }
.island-notes article { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; }
.island-notes b { font-size: 17px; }
.island-notes p { color: var(--ash); font-size: 14px; margin-top: 10px; }

/* ---------- Bento feature cards ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); margin: 0 auto; max-width: var(--max); }
.bento-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; display: flex; flex-direction: column; gap: 12px; grid-column: span 2; padding: 28px 26px; transition: transform .35s var(--ease-out), border-color .35s, background .35s; }
.bento-card:hover { background: var(--surface-2); border-color: var(--line-strong); transform: translateY(-5px); }
.bento-hex { background: radial-gradient(140% 110% at 20% 0%, rgba(255, 150, 36, .12), transparent 55%), var(--surface); border-color: rgba(255, 178, 62, .28); grid-column: span 3; }
.bento-hex + .bento-card { grid-column: span 3; }
.bento-top { align-items: center; display: flex; gap: 14px; }
.bento-icon { align-items: center; background: var(--honey-soft); border: 1px solid rgba(255, 178, 62, .22); border-radius: 14px; color: var(--honey); display: flex; flex: 0 0 auto; height: 46px; justify-content: center; width: 46px; }
.site-icon { fill: none; height: 24px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 24px; }
.bento-card h3 { font-size: 19px; }
.bento-card > p { color: var(--ash); font-size: 14.5px; line-height: 1.5; }
.bento-visual { background: #0b0b0e; border: 1px solid var(--line); border-radius: 18px; margin-top: auto; padding: 16px; }

.hexbrief .brief-tag { color: var(--pulse); display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.hexbrief b { display: block; font-size: 16px; margin-top: 6px; }
.hexbrief small { color: var(--ash); display: block; font-size: 12.5px; line-height: 1.5; margin-top: 4px; }

.runstats { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.runstats small { color: var(--ash); display: block; font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.runstats b { font: 800 15px var(--mono); letter-spacing: -.4px; }

.macro-row { align-items: baseline; display: flex; justify-content: space-between; }
.macro-row small { color: var(--ash); font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.macro-row b { font: 700 12.5px var(--mono); }
.meter { background: var(--surface-2); border-radius: 99px; display: block; height: 6px; margin: 7px 0 12px; overflow: hidden; position: relative; }
.meter:last-child { margin-bottom: 0; }
.meter::after { background: var(--grad); border-radius: 99px; content: ""; inset: 0; position: absolute; width: var(--p); }
.meter-water::after { background: linear-gradient(90deg, #3f8dcc, #67c9ff); }
.visual-note { color: var(--ash-2); display: block; font-size: 11px; }

.bodytrend .delta { background: rgba(73, 216, 137, .12); border-radius: 99px; color: var(--pulse); font: 800 10px var(--mono); font-style: normal; margin-left: 8px; padding: 3px 8px; }
.spark { display: block; height: 34px; margin-top: 12px; width: 100%; }
.spark-line { fill: none; filter: drop-shadow(0 0 5px rgba(255, 155, 40, .45)); stroke: var(--honey); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }

/* ---------- Feature splits ---------- */
.feature-split { align-items: center; display: grid; gap: clamp(36px, 6vw, 80px); grid-template-columns: 1fr 1fr; margin: 0 auto; max-width: var(--max); }
.feature-split.reverse .feature-visual { order: -1; }
.feature-copy h2 { margin-top: 16px; }
.feature-copy > p { color: var(--ash); font-size: clamp(15px, 2vw, 18px); margin-top: 18px; max-width: 480px; }
.feature-list { display: grid; gap: 12px; list-style: none; margin-top: 28px; }
.feature-list li { color: var(--cream); font-size: 15px; padding-left: 30px; position: relative; }
.feature-list li::before { background: var(--honey-soft); border: 1px solid rgba(255, 178, 62, .3); border-radius: 50%; color: var(--honey); content: "✓"; font-size: 11px; height: 20px; left: 0; line-height: 18px; position: absolute; text-align: center; top: 1px; width: 20px; }
.feature-visual { display: grid; place-items: center; }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 0 auto; max-width: var(--max); }
.privacy-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; min-height: 168px; padding: 26px 24px; }
.privacy-grid b { font-size: 18px; }
.privacy-grid p { color: var(--ash); font-size: 14px; margin-top: 10px; }

/* ---------- Plans ---------- */
.plans-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); margin: 0 auto; max-width: 860px; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; transition: transform .3s var(--ease-out), border-color .3s; }
.plan-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.plan-pro { background: radial-gradient(120% 100% at 50% 0%, rgba(255, 150, 36, .10), transparent 60%), var(--surface); border-color: rgba(255, 178, 62, .34); }
.plan-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.plan-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.plan-pro .plan-name { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.plan-tag { color: var(--honey); font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.plan-sub { color: var(--ash); font-size: 14px; }
.plan-list { display: flex; flex-direction: column; gap: 12px; list-style: none; margin-top: 4px; }
.plan-list li { color: var(--cream); font-size: 14.5px; padding-left: 28px; position: relative; }
.plan-list li strong { color: var(--honey-bright); font-weight: 700; }
.plan-list li::before { background: var(--honey-soft); border: 1px solid rgba(255, 178, 62, .3); border-radius: 50%; color: var(--honey); content: "\2713"; font-size: 10px; height: 19px; left: 0; line-height: 17px; position: absolute; text-align: center; top: 1px; width: 19px; }
.plan-note { color: var(--ash-2); font-size: 12.5px; margin-top: auto; padding-top: 6px; }
.plans-foot { color: var(--ash-2); font-size: 13px; margin: 28px auto 0; max-width: 640px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin: 0 auto; max-width: 780px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .3s; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary { align-items: center; cursor: pointer; display: flex; font-size: 16px; font-weight: 650; justify-content: space-between; list-style: none; padding: 20px 22px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { flex: 0 0 auto; height: 14px; position: relative; width: 14px; }
.faq-mark::before, .faq-mark::after { background: var(--honey); border-radius: 2px; content: ""; inset: 0; margin: auto; position: absolute; transition: transform .3s; }
.faq-mark::before { height: 2px; width: 14px; }
.faq-mark::after { height: 14px; width: 2px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); }
.faq-item p { color: var(--ash); font-size: 14.5px; line-height: 1.6; padding: 0 22px 22px; }

/* ---------- Final CTA ---------- */
.final-cta { overflow: hidden; text-align: center; }
.cta-glow { background: radial-gradient(560px 380px at 50% 30%, rgba(255, 150, 36, .2), transparent 70%); inset: 0; pointer-events: none; position: absolute; }
.cta-inner { margin: 0 auto; max-width: 640px; position: relative; }
.final-cta h2 { font-size: clamp(34px, 6vw, 64px); margin-top: 10px; }
.final-cta p { color: var(--ash); font-size: clamp(16px, 2vw, 19px); margin: 20px auto 34px; max-width: 460px; }
.final-cta .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vh, 80px) var(--pad) 32px; }
.footer-inner { display: grid; gap: 40px; grid-template-columns: 1.2fr 2fr; margin: 0 auto; max-width: var(--max); }
.footer-brand { align-content: start; align-items: center; display: grid; gap: 6px; grid-template-columns: auto auto; }
.footer-brand span { font-weight: 800; letter-spacing: 1px; }
.footer-brand p { color: var(--ash); font-size: 14px; grid-column: 1 / -1; }
.footer-links { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.footer-links h4 { color: var(--ash-2); font-size: 11px; letter-spacing: 1px; margin-bottom: 12px; text-transform: uppercase; }
.footer-links a { color: var(--ash); display: block; font-size: 14px; margin-bottom: 8px; transition: color .2s; }
.footer-links a:hover { color: var(--cream); }
.footer-base { border-top: 1px solid var(--line); color: var(--ash-2); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin: 40px auto 0; max-width: var(--max); padding-top: 24px; font-size: 12px; }

/* ---------- App-mock screens (CSS product previews inside iPhone frames) ----------
   Light surfaces match the real app captures; all sizes are container-query
   units so the same markup scales from the hero phone to the feature phone. */
.app-mock { background: linear-gradient(180deg, #f7f3ea 0%, #f0eadd 100%); color: #17150f; display: flex; flex-direction: column; gap: 2.8cqw; height: 100%; justify-content: space-between; padding: 13cqw 4.6cqw 8cqw; text-align: left; }
.am-head { padding: 0 1cqw; }
.am-head small { color: #938c7c; display: block; font-size: 2.8cqw; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.am-head h4 { color: #16130d; font-size: 7.6cqw; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-top: 1cqw; }
.am-head h4 em { background: linear-gradient(120deg, #f5a623, #f97316); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-style: normal; }
.am-card { background: rgba(31, 24, 12, .05); border: 1px solid rgba(31, 24, 12, .05); border-radius: 4.6cqw; padding: 3.6cqw 4cqw; }
.am-status { align-items: flex-start; display: flex; gap: 2.8cqw; }
.am-hex { flex: none; height: 9.4cqw; width: 9cqw; }
.am-status-copy small, .am-metric > small, .am-row-top small, .am-brief > small, .am-macros small { color: #938c7c; display: block; font-size: 2.6cqw; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
small.am-tag-green { color: #2e9e63; }
small.am-tag-amber { color: #b26205; }
.am-status-copy b { color: #16130d; display: block; font-size: 4.2cqw; font-weight: 800; margin-top: .7cqw; }
.am-status-copy p { color: #6e6759; font-size: 3.2cqw; line-height: 1.42; margin-top: 1cqw; }
.am-brief > b { color: #16130d; display: block; font-size: 4.2cqw; font-weight: 800; margin: .9cqw 0 2cqw; }
.am-list { display: grid; gap: 2cqw; list-style: none; }
.am-list li { color: #4d473c; font-size: 3.2cqw; line-height: 1.35; padding-left: 3.8cqw; position: relative; }
.am-list li::before { background: var(--grad); border-radius: 50%; content: ""; height: 1.7cqw; left: .4cqw; position: absolute; top: 1.3cqw; width: 1.7cqw; }
.am-chips { display: flex; flex-wrap: wrap; gap: 1.8cqw; }
.am-chips span { background: rgba(240, 140, 26, .13); border: 1px solid rgba(240, 140, 26, .24); border-radius: 999px; color: #a55a06; font-size: 3cqw; font-weight: 800; padding: 1.8cqw 3.2cqw; white-space: nowrap; }
.am-chips .am-chip-hex { background: #17130b; border-color: #17130b; color: #ffd78a; }
.am-grid { display: grid; gap: 2.4cqw; grid-template-columns: 1fr 1fr; }
.am-metric > b { color: #16130d; display: block; font-family: var(--mono); font-size: 4cqw; font-weight: 700; margin-top: 1.1cqw; }
.am-dim { color: #938c7c; font-size: 3cqw; }
.am-sub { color: #938c7c; display: block; font-size: 2.8cqw; font-weight: 650; margin-top: 1cqw; }
.am-bar { background: rgba(31, 24, 12, .12); border-radius: 999px; display: block; height: 1.5cqw; margin-top: 1.7cqw; overflow: hidden; position: relative; }
.am-bar::after { background: var(--grad); border-radius: 999px; content: ""; inset: 0 auto 0 0; position: absolute; width: var(--p, 50%); }
.am-bar-water::after { background: linear-gradient(90deg, #6fc0f2, #2f8fe0); }
.am-row-top { align-items: center; display: flex; justify-content: space-between; }
.am-pill { background: rgba(240, 140, 26, .15); border-radius: 999px; color: #a55a06; font-size: 2.5cqw; font-weight: 800; padding: 1cqw 2.4cqw; }
.am-kcal { align-items: baseline; display: flex; gap: 1.6cqw; margin-top: 1.6cqw; }
.am-kcal b { color: #16130d; font-family: var(--mono); font-size: 7cqw; font-weight: 800; letter-spacing: -.02em; }
.am-kcal span { color: #938c7c; font-size: 2.8cqw; font-weight: 700; }
.am-macros { display: grid; gap: 2cqw; grid-template-columns: 1fr 1fr; margin-top: 2.8cqw; }
.am-macros > div { background: rgba(31, 24, 12, .045); border-radius: 3.4cqw; padding: 2.4cqw 2.8cqw; }
.am-macros b { color: #16130d; display: block; font-family: var(--mono); font-size: 3.2cqw; font-weight: 700; margin-top: .9cqw; }
.am-insightcard { align-items: flex-start; background: rgba(240, 140, 26, .09); border-color: rgba(240, 140, 26, .18); display: flex; gap: 2.8cqw; }
.am-insightcard p { color: #4d473c; font-size: 3cqw; line-height: 1.42; margin-top: .9cqw; }

/* ---------- HEX Chat showcase (static demo, no live chat) ---------- */
.chat-stage { margin: 0 auto; max-width: 620px; }
.chat-demo { background: linear-gradient(180deg, #121114, #0b0b0e); border: 1px solid var(--line-strong); border-radius: 26px; box-shadow: 0 44px 90px -50px rgba(0, 0, 0, .92); padding: 18px 18px 22px; }
.chat-top { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 10px; padding: 2px 4px 14px; }
.chat-brand { height: 24px; width: 23px; }
.chat-top b { font-size: 14px; letter-spacing: .08em; }
.chat-flag { border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ash); font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .1em; margin-left: auto; padding: 5px 10px; text-transform: uppercase; white-space: nowrap; }
.chat-flow { padding-top: 4px; }
.msg { display: flex; gap: 10px; margin-top: 14px; }
.msg p { font-size: 14.5px; line-height: 1.45; }
.msg-user { justify-content: flex-end; }
.msg-user p { background: linear-gradient(135deg, rgba(255, 178, 62, .18), rgba(255, 104, 29, .13)); border: 1px solid rgba(255, 178, 62, .26); border-radius: 16px 16px 4px 16px; color: var(--cream); max-width: 82%; padding: 11px 14px; }
.msg-hex { align-items: flex-end; }
.chat-avatar { flex: none; height: 24px; margin-bottom: 2px; width: 23px; }
.msg-bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; color: #e6e2d8; max-width: 84%; padding: 11px 14px; }
.chat-dots { display: none; gap: 4px; padding: 4px 2px; }
.chat-dots i { animation: dotPulse 1s ease-in-out infinite; background: var(--ash); border-radius: 50%; height: 6px; width: 6px; }
.chat-dots i:nth-child(2) { animation-delay: .15s; }
.chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotPulse { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.msg-hex.is-typing .chat-dots { display: inline-flex; }
.msg-hex.is-typing .msg-bubble p { display: none; }
.chat-card { border-radius: 16px; margin: 14px 0 0 33px; max-width: 84%; padding: 14px 16px; }
.chat-action { background: rgba(255, 178, 62, .08); border: 1px solid rgba(255, 178, 62, .22); }
.chat-action > b { color: var(--honey); display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; margin-bottom: 10px; text-transform: uppercase; }
.chat-list { display: grid; gap: 7px; list-style: none; }
.chat-list li { color: #ddd9cf; font-size: 13.5px; line-height: 1.4; padding-left: 16px; position: relative; }
.chat-list li::before { background: var(--grad); border-radius: 50%; content: ""; height: 5px; left: 2px; position: absolute; top: 7px; width: 5px; }
.chat-saved { background: rgba(73, 216, 137, .07); border: 1px solid rgba(73, 216, 137, .22); }
.chat-saved-head { align-items: center; display: flex; gap: 9px; }
.chat-check { align-items: center; background: rgba(73, 216, 137, .16); border-radius: 50%; color: var(--pulse); display: inline-flex; height: 22px; justify-content: center; width: 22px; }
.chat-check svg { height: 12px; width: 12px; }
.chat-saved-head b { color: #d7f5e2; font-size: 13.5px; font-weight: 800; }
.chat-saved-grid { display: grid; gap: 10px 14px; grid-template-columns: 1fr 1fr; margin-top: 12px; }
.chat-saved-grid small { color: var(--ash-2); display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.chat-saved-grid b { color: var(--cream); display: block; font-size: 13px; font-weight: 700; margin-top: 3px; }
.chat-note { color: var(--ash-2); font-size: 11px; font-weight: 700; letter-spacing: .8px; margin: 18px auto 0; text-align: center; text-transform: uppercase; }
.chat-stage .hero-actions { margin-top: 26px; }
[data-chat-step] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
[data-chat-step].chat-shown { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .bento-card, .bento-hex, .bento-hex + .bento-card { grid-column: span 6; }
  .bento { grid-template-columns: 1fr; }
  .island-notes, .privacy-grid { grid-template-columns: 1fr; max-width: 560px; }
  .plans-grid { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-visual { order: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 561px) and (max-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-card { grid-column: span 3; }
  .bento-hex, .bento-hex + .bento-card { grid-column: span 3; }
  .bento-card:last-child { grid-column: span 6; }
}
@media (max-width: 560px) {
  section { padding-left: 18px; padding-right: 18px; }
  .nav { gap: 12px; }
  .nav-cta { display: none; } /* hero + mobile menu carry the CTA; keeps the language switcher from overflowing */
  .hero { padding-top: 40px; }
  .island-tease { margin-bottom: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-devices { margin-left: -18px; margin-right: -18px; }
  .iphone-feature { width: min(280px, 78vw); }
  .ila-metrics b { font-size: 15px; }
  .ila { padding: 0 16px; }
  .ila-complete { gap: 10px; }
  .ila-view { display: none; }
  .island-demo { padding: 20px 12px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .chat-demo { padding: 14px 12px 16px; }
  .msg p { font-size: 13.5px; }
  .chat-card { margin-left: 26px; max-width: 90%; }
  .msg-user p, .msg-bubble { max-width: 90%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-chat-step] { opacity: 1; transform: none; transition: none; }
  .hex-breathe, .live-pip, .chat-dots i { animation: none; }
}
