/* Focusline landing — light, Mac-native, whitespace-led. */
:root {
  --bg: #fbfbfd;
  --bg-soft: #f3f3f6;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #e6e6ea;
  /* Palette lifted from the app icon: teal sky, coral dunes, crimson, gold, yellow bar. */
  --teal: #2e6e8e;
  --teal-soft: #eaf2f6;
  --coral: #c4564a;
  --crimson: #b72452;
  --gold: #d9982f;
  --yellow: #ffdd00;
  --amber: #d9982f;
  --amber-bar: #ffd15c;
  --amber-band: #ffe08a;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --maxw: 1040px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(251, 251, 253, 0.8);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand .glyph { width: 28px; height: 28px; display: block; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 680px) { .nav-links { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }

/* Hero */
.hero {
  text-align: center; padding: 56px 0 36px;
  background:
    radial-gradient(900px 420px at 18% -8%, rgba(46, 110, 142, 0.10), transparent 65%),
    radial-gradient(900px 420px at 82% -8%, rgba(196, 86, 74, 0.09), transparent 65%),
    radial-gradient(700px 300px at 50% 0%, rgba(255, 221, 0, 0.07), transparent 70%);
}
.hero-icon {
  display: block; margin: 0 auto 14px;
  filter: drop-shadow(0 10px 24px rgba(29, 29, 31, 0.18));
}
.hero h1 { font-size: clamp(30px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 22px; }
.hero-title { text-wrap: balance; }
/* Yellow reading-bar underline, mirroring the live demo's guide. */
.underline-bar { position: relative; white-space: nowrap; }
.underline-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.16em;
  height: 0.14em; min-height: 6px; border-radius: 999px;
  background: var(--amber-bar);
  box-shadow: 0 0 12px rgba(255, 209, 92, 0.7);
}
.hero p.sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--ink-2); max-width: 620px; margin: 0 auto 28px; }
.demo-lead { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }
.hero .cta { margin-top: 28px; }
.cta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.store-badge { display: inline-flex; transition: transform .15s ease, opacity .15s ease; }
.store-badge:hover { transform: translateY(-1px); opacity: .92; }
.store-badge img { display: block; height: 56px; width: auto; }
.meta { margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.meta .stars { color: var(--gold); }

/* Section scaffolding */
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; margin: 0 0 10px; }
.section-head p { color: var(--ink-2); max-width: 560px; margin: 0 auto; font-size: 17px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--coral); }

/* Interactive demo */
.demo { margin-top: 8px; }

/* MacBook Pro (M5) frame around the live demo — thin bezels + a notch. */
.macbook { max-width: 880px; margin: 0 auto; }
.mb-screen {
  position: relative;
  aspect-ratio: 16 / 10;             /* a real laptop screen, landscape */
  background: #050507;
  border: 10px solid #0a0a0c;        /* thin space-black bezel */
  border-radius: 22px 22px 8px 8px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.3), inset 0 0 0 1px #26262b;
  overflow: hidden;
}
.mb-screen::before {                 /* the notch */
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 150px; height: 22px; background: #0a0a0c;
  border-radius: 0 0 12px 12px; z-index: 7;
}
.mb-screen::after {                  /* camera, centred in the notch */
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: #15151a; box-shadow: inset 0 0 0 1px #2e2e36, 0 0 2px rgba(80,120,255,.4);
  z-index: 8;
}
/* The demo fills the screen edge-to-edge — drop its own card chrome. */
.demo-card.framed { border: 0; border-radius: 0; box-shadow: none; }

.mb-base {
  position: relative; height: 16px; width: 106%; left: -3%;
  background: linear-gradient(#dadade, #b5b5bc 60%, #9b9ba2);
  border-radius: 2px 2px 12px 12px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}
.mb-base::after {                    /* hinge notch */
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 16%; height: 7px; background: #a4a4ab;
  border-radius: 0 0 7px 7px; box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}
/* Stage: MacBook on the left, app control panel on the right (outside it).
   The window is fixed-scalable: it never grows past 700px but shrinks to fit. */
.demo-stage { display: flex; gap: 46px; align-items: center; max-width: 1066px; margin: 0 auto; }
.demo-stage .macbook { flex: 1 1 auto; max-width: 700px; min-width: 0; margin: 0; }
@media (max-width: 760px) {
  .demo-stage { flex-direction: column; align-items: center; }
  .demo-stage .macbook { width: 100%; }
}

/* Reader pane (the live, real behaviour) */
.reader {
  position: relative; padding: 34px 44px; height: 100%; min-height: 0;
  background: #fffdf8; cursor: none; overflow: hidden;
}
.reader-text { position: relative; z-index: 1; max-width: 60ch; }
.reader-text h3 { font-size: 22px; margin: 0 0 14px; letter-spacing: -0.01em; }
.reader-text p { margin: 0 0 14px; color: #2a2a2e; font-size: 16.5px; line-height: 1.9; }
.reader-hint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 90%; text-align: center;
  padding: 3px 12px; border-radius: 999px;
  background: rgba(255, 253, 248, 0.9); backdrop-filter: blur(4px);
  font-size: 12px; color: var(--ink-2); z-index: 4; pointer-events: none;
}

/* Overlay layers — these recreate the app's bar / band / dim. */
.layer { position: absolute; inset: 0; pointer-events: none; }
#band { z-index: 2; }
#bar  { z-index: 3; }
#dim  { z-index: 3; mix-blend-mode: normal; }
#dim.night { mix-blend-mode: multiply; }

/* Controls pane — a little Focusline app window */
.app-panel {
  flex: 0 0 384px; width: 384px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;        /* titlebar fixed, body scrolls */
}
.app-panel .app-body { flex: 1 1 auto; overflow-y: auto; }
@media (max-width: 760px) { .app-panel { flex: 1 1 auto; width: auto; height: auto !important; } }
.app-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  position: relative;
}
.app-titlebar .dot { width: 11px; height: 11px; border-radius: 50%; }
.app-titlebar .dot.r { background: #ff5f57; }
.app-titlebar .dot.y { background: #febc2e; }
.app-titlebar .dot.g { background: #28c840; }
.app-titlebar .app-title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--ink-2); pointer-events: none;
}
/* Pack controls two-per-row where they fit, so the panel reads near-square. */
.app-body { padding: 16px; display: flex; flex-wrap: wrap; gap: 13px 14px; }
.ctl-group { margin: 0; flex: 1 1 100%; }
.ctl-group.half { flex: 1 1 calc(50% - 7px); }
.ctl-note { font-size: 10.5px; color: var(--ink-2); margin: 7px 0 0; }

/* Mode cards — the app's "Choose a mode" grid, with live mini previews. */
.modecards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.modecard {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 9px;
  padding: 6px 3px 7px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 3px; text-align: center;
}
.modecard.on { border-color: var(--teal); background: var(--teal-soft); }
.modecard b { font-size: 10px; font-weight: 600; }
.modecard i { font-size: 8px; color: var(--ink-2); font-style: normal; line-height: 1.05; }
.mc-prev {
  width: 100%; height: 26px; border-radius: 5px; background: #fff;
  border: 1px solid #e2e2e8; position: relative; overflow: hidden;
}
/* default page lines */
.mc-prev::before {
  content: ""; position: absolute; left: 5px; right: 5px; top: 6px; height: 2px;
  border-radius: 2px; background: #cfcfd6; box-shadow: 0 5px 0 #cfcfd6, 0 10px 0 #dadae0;
}
.mc-prev.reading::after { content: ""; position: absolute; left: 6px; right: 10px; top: 13px; height: 2.5px; border-radius: 2px; background: #ffd15c; }
.mc-prev.focus, .mc-prev.spotlight { background: #2b2b30; }
.mc-prev.focus::before, .mc-prev.spotlight::before { background: #6b6b73; box-shadow: 0 5px 0 #6b6b73, 0 10px 0 #55555c; }
.mc-prev.focus::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 9px; background: #fbfbfd; }
.mc-prev.spotlight::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); background: #fbfbfd; }
.mc-prev.night { background: #3a2a14; }
.mc-prev.night::before { background: #7a6a4a; box-shadow: 0 5px 0 #7a6a4a, 0 10px 0 #6a5a3a; }
.mc-prev.night::after { content: ""; position: absolute; left: 6px; right: 10px; top: 13px; height: 2.5px; border-radius: 2px; background: #ffd15c; }
.mc-prev.off::after { content: "⦸"; position: absolute; inset: 0; display: grid; place-items: center; color: #c2c2c8; font-size: 13px; }

/* Selected-mode tagline + Customize header */
.tagline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; }
.tagline .tag-icon { color: var(--teal); font-size: 11px; }
.customize-head { font-weight: 700; font-size: 13px; }

/* Recommended colour tones get an underline, like the app. */
.swatches { padding-bottom: 7px; }
.swatch.rec::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: -6px; height: 2px; background: var(--ink-2); border-radius: 2px; }
.swatch { position: relative; }

/* Toggle switch */
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.toggle-title { font-size: 13px; font-weight: 500; }
.toggle-sub { font-size: 10.5px; color: var(--ink-2); line-height: 1.3; }
.switch { width: 38px; height: 22px; border-radius: 999px; background: #d7d7dd; border: 0; position: relative; cursor: pointer; flex: 0 0 auto; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.switch.on { background: #34c759; }
.switch.on::after { left: 18px; }
.ctl-group > label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.seg { display: inline-flex; background: #e9e9ee; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; padding: 7px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.swatches { display: flex; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.range { width: 100%; accent-color: var(--amber); }
.ctl-group.hidden { display: none; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.val { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Features */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.feature .ico { font-size: 22px; margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 8px 4px; }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* What's new */
.changelog { max-width: 720px; margin: 0 auto; }
.release { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 24px 28px; box-shadow: var(--shadow); }
.release h3 { margin: 0 0 4px; display: flex; align-items: baseline; gap: 10px; }
.release .ver { font-size: 13px; color: #fff; background: var(--coral); padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.release .date { font-size: 13px; color: var(--ink-2); }
.release ul { margin: 12px 0 0; padding-left: 18px; color: #2a2a2e; }
.release li { margin: 6px 0; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-2); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-2); margin: 10px 0 0; }

/* Closing CTA */
.closer {
  text-align: center; padding: 80px 0;
  background:
    radial-gradient(700px 340px at 50% 115%, rgba(46, 110, 142, 0.10), transparent 65%),
    radial-gradient(560px 260px at 22% 110%, rgba(196, 86, 74, 0.08), transparent 65%),
    radial-gradient(480px 220px at 78% 110%, rgba(255, 221, 0, 0.07), transparent 70%);
}
.closer .hero-icon { margin-bottom: 12px; }
.closer h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; margin: 0 0 8px; }
.closer p { color: var(--ink-2); margin: 0 0 24px; font-size: 17px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-2); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a:hover { color: var(--ink); }

/* Legal page */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 0; }
.legal h1 { font-size: 34px; letter-spacing: -0.02em; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal p, .legal li { color: #2a2a2e; }
.legal .muted { color: var(--ink-2); font-size: 14px; }
