/* Landing page (en + /uk/). Legal pages keep using style.css. */
:root {
  --bg: #ebe0d5;
  --surface: #f2eae2;
  --surface-alt: #dfd3c7;
  --ink: #100f0d;
  --ink-2: rgba(16, 15, 13, 0.66);
  /* 0.62 keeps small text ≥ 4.5:1 (WCAG AA) on every light surface. */
  --ink-3: rgba(16, 15, 13, 0.62);
  --line: rgba(16, 15, 13, 0.1);
  --brown: #80614a;
  --stone: #5e5853;
  --warm: #c4956a;
  --sage: #7baf6e;
  --protein: #1d9e75;
  --carbs: #ef9f27;
  --fat: #d4537e;
  --night: #13110d;
  --night-ink: #ebe0d5;
  --night-ink-2: rgba(235, 224, 213, 0.66);
  --night-line: rgba(235, 224, 213, 0.12);
  --radius: 22px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13110d;
    --surface: #1c1a16;
    --surface-alt: #25221d;
    --ink: #ebe0d5;
    --ink-2: rgba(235, 224, 213, 0.68);
    --ink-3: rgba(235, 224, 213, 0.6);
    --line: rgba(235, 224, 213, 0.1);
    --night: #0b0a08;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Header ─────────────────────────────────────────────── */
/* No backdrop-filter: blurring everything that scrolls under a sticky bar is redone every
   frame (Safari especially) — the scroll dropped frames once the phone shots passed under it. */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 96%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-name { white-space: nowrap; }
@media (max-width: 360px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .top .wrap { gap: 12px; padding: 0 16px; }
}
.mark { width: 34px; height: 34px; display: block; flex: none; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
/* Phones: the section links collapse into a native <details> menu (no JS). */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: grid; box-shadow: 0 18px 40px -20px rgba(16, 15, 13, 0.4); }
.menu-panel a { padding: 10px 12px; border-radius: 10px; color: var(--ink) !important; }
.menu-panel a:hover { background: var(--bg); }
/* Language menu: every language of the app, at every width */
.lang-menu { display: block; }
.lang-menu summary { font-size: 13px; letter-spacing: 0.02em; }
.lang-menu .menu-panel { min-width: 170px; }
.lang-menu .menu-panel a[aria-current] { background: var(--bg); font-weight: 700; }
@media (max-width: 760px) {
  .top nav .nav-link { display: none; }
  .menu { display: block; }
  .top nav { gap: 10px; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 650; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, opacity .15s ease; }
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn .icon { width: 20px; height: 20px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 800; margin: 18px 0 20px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.blob { position: absolute; border-radius: 50%; z-index: -1; }
.blob-a { width: 340px; height: 340px; background: var(--brown); opacity: 0.18; top: -120px; right: -120px; }
.blob-b { width: 260px; height: 260px; background: var(--stone); opacity: 0.14; bottom: -60px; left: -140px; }
@media (max-width: 900px) {
  .hero { padding: 44px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
}

/* ── Phone frame around real app screenshots ───────────────── */
.phone { width: min(340px, 100%); margin: 0 auto; border-radius: 46px; padding: 10px; background: #0b0a08; box-shadow: 0 40px 80px -30px rgba(16, 15, 13, 0.45), 0 0 0 1px rgba(255,255,255,0.05) inset; }
.phone .shot { display: block; width: 100%; height: auto; border-radius: 37px; background: #1a1814; }
.phone-sm { width: min(280px, 100%); border-radius: 40px; padding: 8px; }
.phone-sm .shot { border-radius: 32px; }

/* Gallery of app screens */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin: 18px auto 0; max-width: 280px; font-size: 15px; color: var(--ink-2); text-align: center; }
@media (max-width: 1000px) {
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 280px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .gallery figure { scroll-snap-align: center; }
}

/* ── Sections ───────────────────────────────────────────── */
section { padding: 88px 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 12px 0 16px; max-width: 18em; }
.sub { font-size: 18px; color: var(--ink-2); max-width: 38em; }
@media (max-width: 700px) { section { padding: 64px 0; } }

/* 80/20 band */
.band { background: var(--night); color: var(--night-ink); }
.band .kicker { color: rgba(235,224,213,.62); }
.band .sub { color: var(--night-ink-2); }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: var(--night-line); border-radius: var(--radius); overflow: hidden; }
.four div { background: var(--night); padding: 28px 24px; }
.four .num { font-size: 13px; color: rgba(235,224,213,.62); font-weight: 700; }
.four h3 { font-size: 20px; margin: 18px 0 8px; letter-spacing: -0.01em; }
.four p { color: var(--night-ink-2); font-size: 15px; }
@media (max-width: 900px) { .four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .four { grid-template-columns: 1fr; } }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); margin-bottom: 22px; }
.card h3 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); margin-left: 6px; vertical-align: 3px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.extra { display: flex; gap: 12px; align-items: flex-start; padding: 18px 4px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.extra .icon { flex: none; color: var(--ink); margin-top: 1px; }
.extra b { color: var(--ink); display: block; margin-bottom: 2px; }
@media (max-width: 900px) { .extras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .extras { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; color: var(--warm); margin-bottom: 10px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; max-width: 880px; }
.plan { border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.plan-pro { background: var(--night); color: var(--night-ink); border-color: transparent; }
.plan.plan-pro .muted, .plan.plan-pro li { color: var(--night-ink-2); }
.plan h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sage); color: #100f0d; }
.muted { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 22px 0 4px; }
.price small { font-size: 16px; font-weight: 600; opacity: 0.6; letter-spacing: 0; }
.plan ul { list-style: none; margin: 18px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.plan li .icon { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--sage); }
.fine { font-size: 13px; color: var(--ink-2); margin-top: 18px; max-width: 60em; }
.fine a { color: inherit; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 40px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 400; color: var(--ink-3); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); }

/* Final CTA + footer */
.final { text-align: center; padding-top: 24px; }
.final .signup { margin-left: auto; margin-right: auto; justify-content: center; }
.tight-top { padding-top: 0; }
.alt { background: var(--surface-alt); }

/* Early-access form */
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; max-width: 520px; }
.signup input[type=email] { flex: 1 1 220px; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.signup input[type=email]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.signup .btn { flex: 0 0 auto; cursor: pointer; font: inherit; font-weight: 650; }
.signup .btn:disabled { opacity: 0.6; cursor: default; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup .form-msg { flex-basis: 100%; font-size: 15px; color: var(--ink-2); min-height: 1.2em; }
.signup.sent .form-msg { color: var(--ink); font-weight: 600; }
.signup .form-msg a { color: inherit; }
@media (max-width: 480px) { .signup .btn { flex: 1 1 100%; justify-content: center; } }
.note a { color: var(--ink-2); }
.final h2 { margin-left: auto; margin-right: auto; }
.final .sub { margin: 0 auto; }
.final .cta { justify-content: center; }
footer.site { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--ink-3); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
footer.site a { overflow-wrap: anywhere; }
@media (max-width: 520px) { footer.site nav { margin-left: 0; } }
footer.site a { text-decoration: none; color: var(--ink-2); }
footer.site .disclaimer { flex-basis: 100%; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
