/* App landing pages (Sumi, Theory Sprout, Moss). Each page sets its theme with a body class.
   Self-contained: no external requests. The company pages keep using site.css. */
@font-face { font-family: "Shippori Mincho"; src: url("/assets/fonts/shippori-mincho-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("/assets/fonts/baloo2-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("/assets/fonts/baloo2-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Themes ---------- */
body.sumi {
  --bg: #F5F0E6; --bg2: #EFE8DA; --card: #FBF8F2; --line: #DDD3C2;
  --ink: #1C1B1A; --soft: #5B554C; --accent: #B8432B; --accent-ink: #FBF8F2; --wash: #F3E3DC;
  --night: #1D1C22; --night-ink: #F3EDE2; --night-soft: #B8AFA1;
  --head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif; --head-w: 700;
  --body: var(--sys); --r: 18px; color-scheme: light;
}
body.sprout {
  --bg: #F7F7F1; --bg2: #EEF3E6; --card: #FFFFFF; --line: #DCE6D3;
  --ink: #1F2A22; --soft: #55625A; --accent: #23713D; --accent-ink: #FFFFFF; --wash: #E6F2DF;
  --night: #23713D; --night-ink: #FFFFFF; --night-soft: #D6EBD9;
  --head: "Fredoka", "Nunito", var(--sys); --head-w: 600;
  --body: "Nunito", var(--sys); --r: 24px; color-scheme: light;
}
body.moss {
  --bg: #FBF8F1; --bg2: #F2EEE2; --card: #FFFFFF; --line: #ECE6D8;
  --ink: #2B2D27; --soft: #6E7166; --accent: #467E35; --accent-ink: #FFFFFF; --wash: #D6EBC8;
  --night: #1E2620; --night-ink: #EEF1EA; --night-soft: #A9B2A6;
  --head: "Baloo 2", "Nunito", var(--sys); --head-w: 800;
  --body: "Nunito", var(--sys); --r: 28px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  body.sumi { --bg: #1C1B1A; --bg2: #232120; --card: #26241F; --line: #3B372F; --ink: #F3EDE2; --soft: #B8AFA1; --accent: #E0735A; --accent-ink: #1C1B1A; --wash: #3A2620; --night: #121115; color-scheme: dark; }
  body.sprout { --bg: #141A16; --bg2: #19221B; --card: #1E2620; --line: #2E3A31; --ink: #EEF3EC; --soft: #A9B7AC; --accent: #6FCB8A; --accent-ink: #10180F; --wash: #1F3326; --night: #17331F; color-scheme: dark; }
  body.moss { --bg: #151A16; --bg2: #1A201B; --card: #1E241F; --line: #2F3830; --ink: #EEF1EA; --soft: #A9B2A6; --accent: #8CC873; --accent-ink: #151A16; --wash: #2D3F27; --night: #101411; color-scheme: dark; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--head-w); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 7.5vw, 64px); }
h2 { font-size: clamp(28px, 4.6vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 720px; }
section { padding-block: 72px; }
section.alt { background: var(--bg2); }
.eyebrow { font: 700 13px/1.4 var(--sys); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 20px; color: var(--soft); max-width: 36ch; }
.sec-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 46rem; }
.sec-head p { color: var(--soft); font-size: 18px; }
.muted { color: var(--soft); font-size: 15px; }

/* ---------- Header ---------- */
.lp-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.lp-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: var(--head-w); font-size: 22px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.lp-nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; font-weight: 600; }
.lp-nav a { color: var(--soft); text-decoration: none; }
.lp-nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .lp-nav { display: none; } .lp-header .btn { margin-left: auto; } }

/* ---------- Buttons and badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 16px/1.2 var(--body); text-decoration: none; border: 0; }
.btn:hover { filter: brightness(1.05); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--wash); color: var(--ink); font: 700 14px/1.3 var(--sys); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-text { display: grid; gap: 20px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-art { display: flex; justify-content: center; position: relative; min-width: 0; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero-text { text-align: center; justify-items: center; } .lead { margin-inline: auto; } .hero-actions { justify-content: center; } }

/* A phone around a screenshot */
.phone { width: min(300px, 78vw); aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 10px; background: #15161A; box-shadow: 0 30px 60px -24px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.08); position: relative; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; display: block; background: var(--card); }
.phone.flat img { object-fit: contain; background: var(--bg); }
.hero-art .buddy { position: absolute; right: max(0px, calc(50% - 210px)); bottom: -18px; width: 120px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; counter-increment: step; }
.steps li::before { content: counter(step); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--accent); font: 800 17px/1 var(--sys); }
.steps p { color: var(--soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Screenshot gallery ---------- */
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; margin: 0; list-style: none; -webkit-overflow-scrolling: touch; }
.gallery li { flex: 0 0 auto; scroll-snap-align: center; display: grid; gap: 14px; justify-items: center; text-align: center; width: 230px; }
.gallery .phone { width: 230px; border-radius: 36px; padding: 8px; }
.gallery .phone img { border-radius: 28px; }
.gallery b { display: block; font-family: var(--head); font-weight: var(--head-w); font-size: 18px; }
.gallery span { color: var(--soft); font-size: 15px; line-height: 1.45; }
.gallery-hint { color: var(--soft); font-size: 14px; text-align: center; margin-top: 4px; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 8px; align-content: start; }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--wash); display: grid; place-items: center; font: 700 22px/1 var(--head); color: var(--accent); }
.feature p { color: var(--soft); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Split (text + picture) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > * { min-width: 0; }
.split .copy { display: grid; gap: 16px; }
.split .copy p { color: var(--soft); font-size: 18px; }
.split.flip .copy { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip .copy { order: 0; } .split .art { display: flex; justify-content: center; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--wash); box-shadow: inset 0 0 0 6px var(--accent); }

/* ---------- Growth stages ---------- */
.stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.stages.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stages li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 8px 12px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.stages img { width: 100%; max-width: 96px; }
.stages b { font-size: 14px; line-height: 1.25; }
.stages span { font-size: 12.5px; color: var(--soft); line-height: 1.3; }
@media (max-width: 860px) { .stages, .stages.six { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stages, .stages.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 14px; align-content: start; }
.plan.pro { box-shadow: inset 0 0 0 2px var(--accent); }
.plan .tag { justify-self: start; }
.plan ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Dark band ---------- */
.band { background: var(--night); color: var(--night-ink); }
.band h2, .band h3 { color: var(--night-ink); }
.band .sec-head p, .band p { color: var(--night-soft); }
.band .feature { background: color-mix(in srgb, var(--night) 80%, #ffffff 8%); border-color: color-mix(in srgb, var(--night) 70%, #ffffff 18%); }
.band .feature p { color: var(--night-soft); }
.band .feature .ico { background: color-mix(in srgb, var(--night) 60%, #ffffff 14%); color: var(--night-ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding-block: 18px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { margin-top: 10px; color: var(--soft); }
.faq ul { padding-left: 1.2em; }

/* ---------- CTA ---------- */
.cta { text-align: center; display: grid; gap: 18px; justify-items: center; }
.cta img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 16px 30px -16px rgba(0,0,0,.4); }

/* ---------- Footer ---------- */
.lp-footer { border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; }
.lp-footer .wrap { padding-block: 28px 44px; display: grid; gap: 8px; }
.lp-footer a { color: inherit; }
.mail { font-weight: 700; overflow-wrap: anywhere; }

/* Store screenshots that already have their own caption and phone frame */
.shot { width: min(320px, 80vw); border-radius: 26px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.45), 0 0 0 1px var(--line); display: block; }
.gallery .shot { width: 250px; border-radius: 22px; }
.gallery li.wide { width: 250px; }

/* Moss: a drawn Lock Screen and Home Screen widget (no screenshot needed) */
.mock { display: grid; gap: 18px; justify-items: center; width: min(340px, 86vw); }
.mock-lock { width: 100%; border-radius: 36px; padding: 28px 22px 26px; background: linear-gradient(#26302A, #161B18); color: #EEF1EA; text-align: center; box-shadow: 0 30px 60px -26px rgba(0,0,0,.6); font-family: var(--sys); }
.mock-lock .date { font-size: 14px; opacity: .8; }
.mock-lock .time { font: 700 64px/1 var(--sys); letter-spacing: -0.02em; margin: 4px 0 18px; }
.mock-lock .row { display: flex; gap: 12px; align-items: stretch; text-align: left; }
.mock-lock .ring { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,.55); background: rgba(255,255,255,.12); display: grid; place-items: center; overflow: hidden; }
.mock-lock .ring img { width: 46px; filter: grayscale(1) brightness(1.4); }
.mock-lock .rect { flex: 1; border-radius: 18px; background: rgba(255,255,255,.12); padding: 9px 14px; display: grid; align-content: center; }
.mock-lock .deck { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.mock-lock .front { font-weight: 700; font-size: 18px; }
.mock-lock .back { font-size: 15px; opacity: .75; }
.mock-home { width: 100%; border-radius: 26px; padding: 16px 18px; background: #FFD9C7; color: #2B2D27; position: relative; box-shadow: 0 24px 50px -28px rgba(0,0,0,.5); font-family: var(--body); }
.mock-home .deck { font: 700 12px/1.4 var(--sys); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.mock-home .front { font: 800 26px/1.2 var(--sys); margin: 4px 0 2px; }
.mock-home .back { font-size: 16px; opacity: .8; margin-bottom: 12px; }
.mock-home .btns { display: flex; gap: 8px; }
.mock-home .btns span { flex: 1; text-align: center; padding: 9px 6px; border-radius: 999px; font: 700 14px/1.2 var(--sys); }
.mock-home .again { box-shadow: inset 0 0 0 2px rgba(43,45,39,.35); }
.mock-home .good { background: #2B2D27; color: #FFD9C7; }
.mock-home img { position: absolute; right: 10px; top: -30px; width: 64px; }
.gallery li { align-content: start; }
