/* otthelper.com — values taken from the app's own tokens (ui/theme/Color.kt,
   core/designsystem/AppRadius.kt): Paper ground and cards, Mint brand,
   4px control radius, grouped cards joined by a 2px seam, Inter. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-semibold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-bold.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --ground: #EFEAE0;
  --layer: #FFFCF7;
  --accent: #E2DBCE;
  --ink: #1A211C;
  --ink-2: #515953;
  --line: #918C83;
  --brand: #0B6B56;
  --on-brand: #FFFFFF;
  --brand-sel: #C4E9DC;
  --frame: #28262C;
  --r: 4px;
  --r-mid: 2px;
  --seam: 2px;
  --wrap: 1120px;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #141414;
    --layer: #292929;
    --accent: #333333;
    --ink: #FFFFFF;
    --ink-2: #D6D6D6;
    --line: #666666;
    --brand: #2BA88A;
    --on-brand: #062018;
    --brand-sel: #293C38;
    --frame: #3A3A3A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "calt", "kern";
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace; font-size: .9em; }
code { background: var(--accent); border-radius: var(--r-mid); padding: .1em .35em; overflow-wrap: anywhere; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--layer); padding: 8px 12px; border-radius: var(--r); z-index: 10; }
.skip:focus { left: 8px; }

/* ── Type ─────────────────────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-2); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 12px; }
.small { font-size: 15px; }

/* ── Header / footer ──────────────────────────────────────────────────── */
.site-header { background: var(--ground); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-wide ul, .menu ul { list-style: none; margin: 0; padding: 0; }
.nav-wide { display: none; }
.nav-wide ul { display: flex; gap: 4px; }
.nav-wide a, .menu a { display: block; padding: 10px 14px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-wide a:hover, .menu a:hover { background: var(--accent); }
.nav-wide a[aria-current="page"], .menu a[aria-current="page"] { color: var(--brand); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--accent); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 1px; position: relative; content: ""; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.menu nav { position: absolute; right: 0; top: 52px; min-width: 220px; background: var(--layer); border-radius: var(--r); padding: 6px; z-index: 5; box-shadow: 0 8px 24px rgb(0 0 0 / .16); }
@media (min-width: 760px) { .menu { display: none; } .nav-wide { display: block; } }

.site-footer { margin-top: 96px; padding: 48px 0 40px; background: var(--layer); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot-title { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.site-footer li a:hover { color: var(--brand); text-decoration: underline; }
.disclaimer { margin-top: 40px; font-size: 14px; color: var(--ink-2); max-width: 80ch; }
.legal { font-size: 14px; color: var(--ink-2); margin: 0; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: var(--r); font-weight: 600; font-size: 16px; text-decoration: none; border: 0; line-height: 1.2; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-static { cursor: default; }
.btn-static:hover { filter: none; }
.btn-secondary { background: var(--layer); color: var(--ink); }
.btn-secondary:hover { background: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 72px 0 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); margin-top: 12px; }

.hero { padding: 40px 0 0; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-copy h1 { max-width: 16ch; }
.hero-copy .lead { margin-top: 20px; }
.hero-shots { display: flex; justify-content: center; gap: 16px; }
@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

.page-head { padding: 32px 0 8px; max-width: 760px; }
.page-head .lead { margin-top: 16px; max-width: 60ch; }

/* ── Phone screenshots: true aspect ratio, never stretched ────────────── */
.phone { position: relative; flex: 0 0 auto; width: min(100%, 240px); border-radius: 30px; padding: 7px; background: var(--frame); box-shadow: 0 18px 48px rgb(0 0 0 / .18); }
.phone img { width: 100%; height: auto; border-radius: 24px; }
.phone.small { width: min(100%, 240px); }
.hero-shots .phone:nth-child(2) { display: none; }
@media (min-width: 560px) { .hero-shots .phone:nth-child(2) { display: block; margin-top: 56px; } .hero-shots .phone { width: 240px; } }

figure { margin: 0; }
figcaption { font-size: 14px; color: var(--ink-2); margin-top: 12px; text-align: center; }
.crop { border-radius: var(--r); overflow: hidden; background: var(--layer); }
.crop img { width: 100%; height: auto; }

/* ── Grouped cards (the app's silhouette) ─────────────────────────────── */
.card { background: var(--layer); border-radius: var(--r); padding: 20px; }
.group { display: grid; gap: var(--seam); }
.group > * { background: var(--layer); border-radius: var(--r-mid); }
.group > :first-child { border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
.group > :last-child { border-bottom-left-radius: var(--r); border-bottom-right-radius: var(--r); }

.feature-grid { display: grid; gap: var(--seam); grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: 1fr 1fr 1fr; } }
.feature-grid > a { display: block; background: var(--layer); padding: 22px 20px; color: var(--ink); text-decoration: none; border-radius: var(--r-mid); min-height: 100%; }
.feature-grid > a:hover { background: var(--accent); }
.group-title { font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 36px 0 12px; }
.section-head + .group-title { margin-top: 0; }
.feature-grid h3, .feature-grid h4 { color: var(--ink); font-size: 19px; font-weight: 600; margin: 0; }
.feature-grid p { color: var(--ink-2); margin: 6px 0 0; font-size: 15px; }
.feature-grid .more { display: inline-block; margin-top: 12px; color: var(--brand); font-weight: 600; font-size: 15px; }
.feature-grid > a:first-child { border-top-left-radius: var(--r); }
.feature-grid > a:last-child { border-bottom-right-radius: var(--r); }

/* ── Content blocks ───────────────────────────────────────────────────── */
.split { display: grid; gap: 40px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } .split.reverse { grid-template-columns: 320px minmax(0, 1fr); } .split.reverse > :first-child { order: 2; } }
.split-media { display: flex; justify-content: center; }
@media (min-width: 900px) { .split-media { position: sticky; top: 24px; } }

.prose { max-width: 70ch; }
.prose h2 { margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--brand); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 16px; display: grid; gap: var(--seam); }
.steps > li { counter-increment: step; position: relative; background: var(--layer); padding: 16px 18px 16px 60px; border-radius: var(--r-mid); margin: 0; }
.steps > li:first-child { border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
.steps > li:last-child { border-bottom-left-radius: var(--r); border-bottom-right-radius: var(--r); }
.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-sel); color: var(--brand); font-weight: 700; font-size: 15px; display: grid; place-items: center; }

.facts { display: grid; gap: var(--seam); margin: 0 0 16px; }
.facts > div { background: var(--layer); padding: 14px 18px; border-radius: var(--r-mid); display: grid; gap: 4px; }
.facts > div:first-child { border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
.facts > div:last-child { border-bottom-left-radius: var(--r); border-bottom-right-radius: var(--r); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (min-width: 640px) { .facts > div { grid-template-columns: 200px 1fr; gap: 16px; } }

.ui { font-weight: 600; white-space: nowrap; }

.note { background: var(--brand-sel); color: var(--ink); border-radius: var(--r); padding: 16px 18px; margin: 0 0 16px; }
.note strong { color: var(--brand); }

.cred { display: grid; gap: var(--seam); margin: 0 0 16px; }
.cred > div { background: var(--layer); padding: 14px 18px; display: grid; gap: 2px; border-radius: var(--r-mid); }
.cred > div:first-child { border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
.cred > div:last-child { border-bottom-left-radius: var(--r); border-bottom-right-radius: var(--r); }
.cred dt { font-size: 14px; color: var(--ink-2); }
.cred dd { margin: 0; font-family: ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace; font-size: 16px; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { width: 100%; border-collapse: separate; border-spacing: 0 var(--seam); font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; background: var(--layer); vertical-align: top; }
th { font-weight: 600; background: var(--accent); }
tr > :first-child { border-top-left-radius: var(--r-mid); border-bottom-left-radius: var(--r-mid); }
tr > :last-child { border-top-right-radius: var(--r-mid); border-bottom-right-radius: var(--r-mid); }

.faq { display: grid; gap: var(--seam); }
.faq details { background: var(--layer); border-radius: var(--r-mid); }
.faq details:first-child { border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
.faq details:last-child { border-bottom-left-radius: var(--r); border-bottom-right-radius: var(--r); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

.how { display: grid; gap: var(--seam); counter-reset: how; }
@media (min-width: 860px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how > div { background: var(--layer); padding: 24px 22px; border-radius: var(--r-mid); counter-increment: how; }
.how > div::before { content: "Step " counter(how); display: block; font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.how > div:first-child { border-top-left-radius: var(--r); border-bottom-left-radius: var(--r); }
.how > div:last-child { border-top-right-radius: var(--r); border-bottom-right-radius: var(--r); }
.how p { color: var(--ink-2); margin: 8px 0 0; }

.gallery { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); justify-items: center; margin: 24px 0; }
.gallery .phone { width: min(100%, 260px); }

.cta { background: var(--layer); border-radius: var(--r); padding: 40px 28px; text-align: center; }
.cta p { color: var(--ink-2); max-width: 56ch; margin: 12px auto 0; }
.cta .actions { justify-content: center; }

.related { display: grid; gap: var(--seam); grid-template-columns: 1fr; }
@media (min-width: 640px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: block; background: var(--layer); padding: 16px 18px; border-radius: var(--r-mid); color: var(--ink); text-decoration: none; font-weight: 600; }
.related a span { display: block; font-weight: 400; color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.related a:hover { background: var(--accent); }

/* Stages: one small screenshot per step, the step's numbers drawn on it */
.stages { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 8px 0 24px; }
.stage { display: grid; gap: 14px; align-content: start; }
.stage .phone { width: 220px; margin: 0 auto; padding: 5px; border-radius: 24px; }
.stage .phone img { border-radius: 19px; }
.stage .crop { max-width: 320px; margin: 0 auto; width: 100%; }
.stage figcaption { text-align: left; font-size: 15px; color: var(--ink-2); margin: 0; }
.stage figcaption strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.stage-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 14px; margin-right: 8px; vertical-align: 2px; }
.keys { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.keys li { display: flex; gap: 8px; align-items: baseline; }
.keys b { flex: 0 0 auto; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-sel); color: var(--brand); font-size: 12px; }

.art-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 16px 0; }
.art-row img { border-radius: var(--r); aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
