/* Home landing page. Ink + lemon brand; theme = system | light | dark (html[data-theme]). */
:root {
  --lemon: #FFD23F; --ink: #16181D;
  --bg: #FBF8F0; --bg-2: #F4EFE2; --surface: #FFFFFF; --text: #16181D; --muted: #555A64;
  --line: #E8E2D3; --accent-text: #16181D; --chip: #FFF3C4; --halo: rgba(255,210,63,.38); --shadow: rgba(22,24,29,.14);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #16181D; --bg-2: #1B1E24; --surface: #1F2229; --text: #F5F2EA; --muted: #A9ADB6;
  --line: #2E323B; --accent-text: #FFD23F; --chip: rgba(255,210,63,.14); --halo: rgba(255,210,63,.10); --shadow: rgba(0,0,0,.45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #16181D; --bg-2: #1B1E24; --surface: #1F2229; --text: #F5F2EA; --muted: #A9ADB6;
    --line: #2E323B; --accent-text: #FFD23F; --chip: rgba(255,210,63,.14); --halo: rgba(255,210,63,.10); --shadow: rgba(0,0,0,.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font-family: 'Red Hat Display', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.controls { display: flex; gap: 8px; align-items: center; }
.seg { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.seg button {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0; cursor: pointer;
  min-width: 40px; height: 34px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center;
}
.seg a { font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; min-width: 40px; height: 34px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; }
.seg button[aria-pressed="true"], .seg a[aria-current] { background: var(--ink); color: #fff; }
html[data-theme="dark"] .seg button[aria-pressed="true"], html[data-theme="dark"] .seg a[aria-current] { background: var(--lemon); color: var(--ink); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .seg button[aria-pressed="true"], html[data-theme="system"] .seg a[aria-current] { background: var(--lemon); color: var(--ink); } }
.seg button:focus-visible, .btn:focus-visible, .store:focus-visible { outline: 3px solid var(--lemon); outline-offset: 2px; }

/* Hero */
.hero { position: relative; padding: 56px 0 40px; }
.hero::before { content: ""; position: absolute; right: -260px; top: -200px; width: 900px; height: 900px; border-radius: 50%; border: 64px solid var(--halo); pointer-events: none; }
.hero .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: var(--chip); color: var(--accent-text); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lemon); }
h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
h1 mark { background: linear-gradient(transparent 58%, var(--lemon) 58%, var(--lemon) 92%, transparent 92%); color: inherit; padding: 0 .06em; }
html[data-theme="dark"] h1 mark { background: none; color: var(--lemon); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] h1 mark { background: none; color: var(--lemon); } }
.lead { margin: 0; font-size: 20px; color: var(--muted); max-width: 520px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 24px 0 18px; border-radius: 16px; text-decoration: none; transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store .t { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 12px; font-weight: 600; }
.store b { font-size: 20px; font-weight: 800; }
.store.ios { background: var(--lemon); color: var(--ink); }
.store.play { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.store.play small { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 600; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { color: var(--accent-text); }

.phones { flex: 1 1 520px; min-width: 0; position: relative; height: 640px; }
.phone { position: absolute; border-radius: 44px; padding: 9px; background: #0B0C0F; box-shadow: 0 40px 90px var(--shadow); }
.phone img { border-radius: 36px; width: 100%; }
.phone.p1 { width: 290px; left: 50%; top: 10px; transform: translateX(-50%); z-index: 2; }
.phone.p2 { width: 240px; left: 4%; top: 120px; transform: rotate(-7deg); }
.phone.p3 { width: 240px; right: 4%; top: 120px; transform: rotate(7deg); }

/* Sections */
section { padding: 72px 0; }
.kicker { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.sub { margin: 16px 0 0; font-size: 19px; color: var(--muted); max-width: 640px; }
.head { margin-bottom: 40px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.ic { width: 48px; height: 48px; border-radius: 14px; background: var(--lemon); color: var(--ink); display: grid; place-items: center; }
.card h3 { margin: 4px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.tag { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--lemon); }
html[data-theme="dark"] .tag { background: var(--lemon); color: var(--ink); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .tag { background: var(--lemon); color: var(--ink); } }

.show { background: var(--bg-2); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.row + .row { margin-top: 88px; }
.row.rev { flex-direction: row-reverse; }
.row .txt { flex: 1 1 420px; min-width: 0; }
.row .shot { flex: 0 1 340px; margin: 0 auto; }
.row .shot .phone { position: relative; width: 300px; margin: 0 auto; }
.row .shot.duo { position: relative; flex-basis: 420px; }
.row .shot.duo .phone { position: relative; z-index: 1; margin: 0 0 0 auto; width: 280px; }
.row .shot.duo .phone.back { position: absolute; z-index: 0; left: 0; top: 70px; width: 230px; transform: rotate(-7deg); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.row .more { margin: 20px 0 0; font-weight: 700; }
.row .more a { text-decoration-color: var(--lemon); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ticks svg { flex: none; margin-top: 3px; color: var(--ink); background: var(--lemon); border-radius: 50%; padding: 3px; }

.mods { padding-top: 24px; }
.mods h2 { font-size: clamp(26px, 3vw, 34px); }
.mods ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mods li { padding: 18px; border-radius: 20px; background: var(--chip); display: flex; flex-direction: column; gap: 4px; }
.mods b { font-size: 18px; font-weight: 800; }
.mods span { font-size: 15px; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); max-width: 860px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 19px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 600; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 17px; max-width: 760px; }

.premium .box { border-radius: 32px; background: var(--ink); color: #F5F2EA; padding: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; position: relative; overflow: hidden; }
html[data-theme="dark"] .premium .box { background: var(--surface); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .premium .box { background: var(--surface); border: 1px solid var(--line); } }
.premium .box::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 44px solid rgba(255,210,63,.16); }
.premium .l { flex: 1 1 420px; min-width: 0; position: relative; z-index: 1; }
.premium .l .kicker { color: var(--lemon); }
.premium .l p { color: #C9CCD3; font-size: 18px; margin: 16px 0 0; }
.premium .r { flex: 1 1 340px; min-width: 0; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.premium .r span { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-weight: 700; font-size: 15px; }

.get .box { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: 40px; border-radius: 32px; background: var(--lemon); color: var(--ink); }
.get h2 { font-size: clamp(30px, 3.6vw, 42px); }
.get p { margin: 10px 0 0; font-size: 18px; color: #3D3A2E; }
.get .store.ios { background: var(--ink); color: #fff; }
.get .store.play { background: #fff; color: var(--ink); border-color: transparent; }
.get .store.play small { color: #555A64; }
.qr { display: flex; align-items: center; gap: 16px; }
.qr img { width: 112px; height: 112px; border-radius: 14px; background: #fff; padding: 8px; image-rendering: pixelated; }
.qr span { font-weight: 700; max-width: 160px; font-size: 15px; }

footer { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer a { font-weight: 600; text-decoration: none; color: var(--text); }
footer a:hover { text-decoration: underline; }
footer p { margin: 0; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mods ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .controls { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .brand span { display: none; }
  .grid, .mods ul { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 32px; }
  .phones { height: 470px; }
  .phone.p1 { width: 210px; }
  .phone.p2, .phone.p3 { width: 170px; top: 90px; }
  .phone.p2 { left: -2%; } .phone.p3 { right: -2%; }
  section { padding: 56px 0; }
  .row .shot .phone { width: 250px; }
  .row .shot.duo .phone { width: 210px; }
  .row .shot.duo .phone.back { width: 170px; top: 50px; }
  .premium .box, .get .box { padding: 28px; border-radius: 24px; }
  .premium .r { grid-template-columns: minmax(0, 1fr); }
  .store { flex: 1 1 200px; }
}
