/* Hoanio Easy — easy.hoanio.com
   Visual language taken from the Big Font V2 app: blue-grey page, white 16px cards with a thin outline,
   pill buttons, round coloured tool icons, big bold type.
   All sizes are in rem so the A−/A+ control scales the whole page. */
:root {
  --scale: 1;
  --bg: #e3e7ee;          /* app background */
  --bg-soft: #eef1f6;
  --surface: #ffffff;     /* cards */
  --ink: #1b1f27;         /* color-text */
  --ink-2: #474e5c;       /* color-text-2 */
  --line: #cbd2dd;        /* card outline */
  --divider: #e2e5eb;
  --brand: #0b4ea6;       /* primary buttons in the app */
  --brand-ink: #083b7d;
  --brand-text: #0b4ea6;
  --brand-soft: #e3edfc;  /* color-primary-soft */
  --accent: #e8710a;      /* color-cta */
  --accent-soft: #fdeedf;
  --ok: #2e7d32;          /* color-success */
  --ok-text: #22662a;
  --ok-soft: #e3f2e4;
  --accent-text: #a14a00;
  --warn: #c98a00;
  --switch: #34c759;
  --star: #b07800;
  --radius: 1rem;
  --font: Roboto, "Segoe UI", system-ui, -apple-system, "Noto Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-contrast="high"]) {
    --bg: #0f1522;
    --bg-soft: #141b2a;
    --surface: #1a2233;
    --ink: #e7ebf3;
    --ink-2: #b7bfcc;
    --line: #2a3346;
    --divider: #26324d;
    --brand: #2f6fd8;
    --brand-ink: #4f87e3;
    --brand-text: #8ab4f8;
    --brand-soft: #1e2c47;
    --accent-soft: #3a2614;
    --ok: #3e9b47;
    --ok-soft: #1e3324;
    --ok-text: #6fcf76;
    --accent-text: #ff9d4d;
    --star: #f2c14e;
    color-scheme: dark;
  }
}
/* High-contrast mode: yellow on black, underlined links, solid borders */
:root[data-contrast="high"] {
  --bg: #000; --bg-soft: #000; --surface: #000;
  --ink: #fff; --ink-2: #fff; --line: #fff; --divider: #fff;
  --brand: #ffe14d; --brand-ink: #ffe14d; --brand-text: #ffe14d; --brand-soft: #000;
  --accent: #ffe14d; --accent-soft: #000; --ok: #7dff9b; --ok-soft: #000; --star: #ffe14d;
  color-scheme: dark;
}
:root[data-contrast="high"] a { text-decoration: underline; }
:root[data-contrast="high"] .card, :root[data-contrast="high"] .tile, :root[data-contrast="high"] .tool,
:root[data-contrast="high"] .faq details, :root[data-contrast="high"] .soon, :root[data-contrast="high"] .group { border: 2px solid #fff; }
:root[data-contrast="high"] .btn-primary { background: #ffe14d; color: #000; }
:root[data-contrast="high"] .device { border-color: #fff; }

html { font-size: calc(100% * var(--scale)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.25rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-text); text-underline-offset: .18em; }
:focus-visible { outline: .25rem solid var(--accent); outline-offset: .2rem; border-radius: .5rem; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
:lang(vi) h1, :lang(vi) h2 { line-height: 1.28; }
p { margin: 0; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: .5rem; z-index: 30; }
.skip:focus { left: .5rem; }

/* ===== Reading-options bar ===== */
.a11y { background: var(--surface); color: var(--ink); font-size: 1rem; border-bottom: 1px solid var(--line); }
.a11y .wrap { display: flex; align-items: center; gap: .5rem; min-height: 3.75rem; flex-wrap: wrap; padding-top: .4rem; padding-bottom: .4rem; }
.a11y .label { font-weight: 700; margin-right: .25rem; color: var(--ink-2); }
.a11y button, .a11y a {
  font: inherit; font-weight: 700; color: var(--brand-text); background: var(--brand-soft);
  border: 2px solid transparent; border-radius: 999px;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0 .9rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem; text-decoration: none;
  transition: transform .15s ease;
}
.a11y button:active { transform: scale(.97); }
.a11y button[aria-pressed="true"] { background: var(--brand); color: #fff; }
:root[data-contrast="high"] .a11y button, :root[data-contrast="high"] .a11y a { border-color: #fff; }
:root[data-contrast="high"] .a11y button[aria-pressed="true"] { background: #ffe14d; color: #000; }
.a11y .sep { flex: 1; }
.a11y svg { width: 1.25rem; height: 1.25rem; }
.size-group { display: inline-flex; gap: .375rem; }
.size-group button:nth-child(1) { font-size: .9rem; }
.size-group button:nth-child(3) { font-size: 1.2rem; }

/* ===== Header ===== */
.site-header { background: var(--bg); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand img { width: 3rem; height: 3rem; }
.brand b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.brand small { display: block; font-size: .85rem; color: var(--ink-2); font-weight: 500; line-height: 1.1; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
.nav ul a { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.1rem; border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; }
.nav ul a:hover { background: var(--surface); }
.nav ul a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); }
.nav .ni { display: none; width: 1.6rem; height: 1.6rem; }

/* ===== Buttons (pill, like the app) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 4rem; padding: 0 2rem; border-radius: 999px;
  font: 700 1.25rem/1.2 var(--font); text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-outline { background: var(--brand-soft); color: var(--brand-text); border-color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn svg { width: 1.5rem; height: 1.5rem; flex: none; }

/* ===== Cards & groups ===== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 1rem; min-height: 4.75rem; padding: .875rem 1.25rem; color: var(--ink); text-decoration: none; }
.row + .row { border-top: 1px solid var(--divider); }
a.row:hover { background: var(--bg-soft); }
.row .ic { flex: none; width: 3.25rem; height: 3.25rem; }
.row .txt b { display: block; font-size: 1.25rem; line-height: 1.3; }
.row .txt span { display: block; color: var(--ink-2); font-size: 1.05rem; line-height: 1.4; margin-top: .125rem; }
.row .txt .chip { display: inline-flex; margin-top: .25rem; }
.row .go { margin-left: auto; flex: none; width: 1.75rem; height: 1.75rem; color: var(--brand-text); }
.section-label { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0 0 .75rem .25rem; }

.chip { display: inline-flex; align-items: center; gap: .375rem; font-size: .95rem; font-weight: 700; padding: .25rem .75rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); }
.chip.ok { background: var(--ok-soft); color: var(--ok-text); }
.chip.warm { background: var(--accent-soft); color: var(--accent-text); }
:root[data-contrast="high"] .chip { border: 1px solid currentColor; }

/* ===== Hero ===== */
.hero { padding: 2.5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); font-weight: 700; letter-spacing: -.02em; margin-top: 1rem; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.hero .lead { font-size: 1.375rem; color: var(--ink-2); margin: 1.25rem 0 2rem; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.proof { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.75rem; }
.proof .chip { background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: 1rem; padding: .375rem .875rem; }
.proof .s { color: var(--star); }

/* ===== Phone frames with real screenshots ===== */
.devices { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 31rem; }
.device {
  width: 15rem; aspect-ratio: 9 / 20; border: .5rem solid #1b1f27; border-radius: 2.25rem; overflow: hidden;
  background: #1b1f27; box-shadow: 0 1.5rem 3rem -1rem rgba(15, 30, 60, .35);
}
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-grid > * { min-width: 0; }
.devices .device { flex: none; }
.devices .device.back { margin-right: -5rem; transform: rotate(-4deg) scale(.88); transform-origin: bottom center; }
.devices .device.front { position: relative; z-index: 1; transform: rotate(3deg); }
.device.sm { width: 12rem; border-width: .4rem; border-radius: 1.75rem; }

/* ===== Sections ===== */
section { padding: 4.5rem 0; }
.white { background: var(--surface); }
.head { max-width: 46rem; margin-bottom: 2.25rem; }
.head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -.015em; }
.head p { margin-top: .75rem; color: var(--ink-2); font-size: 1.3rem; }
.head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Help tiles = grouped rows */
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.help-grid .group .row { min-height: 6rem; }

/* ===== Tool grid, like the app's Tools tab ===== */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.tool {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; text-align: center;
  min-height: 11rem; padding: 1.25rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: transform .15s ease, border-color .15s ease;
}
a.tool:hover { border-color: var(--brand); }
a.tool:active { transform: scale(.97); }
.tool img { width: 4.25rem; height: 4.25rem; }
.tool b { font-size: 1.3rem; line-height: 1.25; }
.tool span { color: var(--ink-2); font-size: 1rem; line-height: 1.35; margin-top: -.375rem; text-wrap: balance; }
.tools > li { display: flex; }
.tools > li > .tool { flex: 1; }

/* ===== Feature split (text + screenshot) ===== */
.split { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.split.flip { grid-template-columns: auto 1fr; }
.split.flip .device { order: -1; }
.split h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin: .75rem 0 .75rem; }
.split p { color: var(--ink-2); font-size: 1.25rem; }
.split ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .625rem; }
.split li { display: flex; gap: .75rem; align-items: flex-start; font-size: 1.15rem; }
.split li svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--ok); margin-top: .1rem; }
.feature-list > .split + .split { margin-top: 4.5rem; padding-top: 4.5rem; border-top: 1px solid var(--line); }
.split .icon-title { display: flex; align-items: center; gap: .875rem; }
.split .icon-title img { width: 3.5rem; height: 3.5rem; }

/* Sticky in-page tool navigation (Big Font page) */
.jump { position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.jump .wrap { display: flex; gap: .5rem; overflow-x: auto; padding-top: .625rem; padding-bottom: .625rem; scrollbar-width: none; }
.jump .wrap::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1rem 0 .375rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 1rem; text-decoration: none; }
.jump a:hover { border-color: var(--brand); }
.jump img { width: 2rem; height: 2rem; }
.feature-list > .split { scroll-margin-top: 5rem; }

/* ===== Steps with screenshots ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); display: flex; flex-direction: column; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand-text);
  font-size: 1.4rem; font-weight: 700; margin-bottom: .875rem;
}
.steps h3 { font-size: 1.375rem; margin-bottom: .375rem; }
.steps p { color: var(--ink-2); font-size: 1.125rem; }
.steps .device { margin: 1.25rem auto 0; width: 11rem; border-width: .375rem; border-radius: 1.5rem; }

/* ===== Trust ===== */
.trust { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.trust .ic { width: 3.75rem; height: 3.75rem; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.trust .ic svg { width: 2rem; height: 2rem; }
.trust h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.trust p + p { margin-top: .75rem; }
.trust p { color: var(--ink-2); }

/* ===== Coming soon apps ===== */
.soon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.soon { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.soon img { width: 4.5rem; height: 4.5rem; margin-bottom: .5rem; }
/* Standalone app icons: squircle-ish mask like a launcher */
.app-ic { border-radius: 23%; box-shadow: 0 .375rem 1rem -.375rem rgba(15, 30, 60, .35); }
.soon h3 { font-size: 1.3rem; }
.soon p { color: var(--ink-2); font-size: 1.05rem; }
.soon .chip { align-self: flex-start; margin-top: auto; }
.soon .chip + .chip { margin-top: .375rem; }

/* ===== Family ===== */
.family { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.family ul { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .875rem; }
.family li { display: flex; gap: .875rem; align-items: flex-start; }
.family li svg { flex: none; width: 1.75rem; height: 1.75rem; color: var(--ok); margin-top: .2rem; }
.quote { background: var(--brand); color: #fff; border-radius: 1.5rem; padding: 2.5rem; font-size: 1.5rem; font-weight: 700; line-height: 1.45; }
.quote small { display: block; margin-top: 1rem; font-size: 1rem; font-weight: 500; opacity: .85; }
:root[data-contrast="high"] .quote { background: #000; border: 2px solid #fff; }

/* ===== FAQ ===== */
.faq { display: grid; gap: .75rem; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 1.125rem 1.5rem; font-weight: 700; font-size: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 4rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 2rem; line-height: 1; color: var(--brand-text); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div, .faq details > p { padding: 0 1.5rem 1.375rem; color: var(--ink-2); }
.faq details > div p + p { margin-top: .75rem; }

/* ===== Footer ===== */
.site-footer { background: var(--surface); color: var(--ink); padding: 3.5rem 0 2.5rem; font-size: 1.125rem; border-top: 1px solid var(--line); }
.site-footer a { color: inherit; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.foot h4 { margin: 0 0 .75rem; font-size: 1.125rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot p { color: var(--ink-2); margin-top: .75rem; max-width: 26em; }
.foot .by { display: inline-flex; align-items: center; gap: .625rem; font-weight: 700; text-decoration: none; }
.foot .by img { width: 2.25rem; height: 2.25rem; }
.copy { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--divider); font-size: 1rem; color: var(--ink-2); }

/* ===== Subpages ===== */
.page-head { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.crumbs { font-size: 1rem; color: var(--ink-2); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.crumbs a { color: var(--ink-2); }
.crumbs span[aria-hidden] { opacity: .6; }
.page-head h1 { font-size: clamp(2.25rem, 4.6vw, 3.25rem); font-weight: 700; letter-spacing: -.015em; }
.page-head .lead { font-size: 1.375rem; color: var(--ink-2); margin-top: 1rem; max-width: 40rem; }
.page-head .meta { margin-top: 1rem; font-size: 1rem; color: var(--ink-2); font-weight: 700; }

.article { padding: 0 1.25rem 4.5rem; }
.article > * { max-width: 48rem; }
.article > .card + .card, .article > .card + h2, .article > h2 + .card { margin-top: 1rem; }
.article h2 { font-size: clamp(1.625rem, 3vw, 2rem); font-weight: 700; margin: 3rem 0 1rem; scroll-margin-top: 1rem; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.375rem; margin: 1.75rem 0 .5rem; }
.article p, .article ul, .article ol { margin: 0 0 1rem; }
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin-bottom: .5rem; }
.article li::marker { color: var(--brand-text); font-weight: 700; }
.article .card > :last-child { margin-bottom: 0; }

/* Settings path, e.g. Settings > Display > Font size */
.path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; font-weight: 700; vertical-align: baseline; }
.path span { position: relative; background: var(--brand-soft); color: var(--brand-text); border-radius: .5rem; padding: 0 .5rem; white-space: nowrap; }
.path span + span::before { content: "\203A"; position: absolute; left: -.95rem; color: var(--ink-2); font-weight: 400; }
:root[data-contrast="high"] .path span { border: 1px solid #ffe14d; }

/* Numbered how-to steps, like the app's "How to use" list */
.howto { list-style: none; padding: 0 !important; margin: 1.25rem 0 2rem !important; counter-reset: how; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.howto > li { counter-increment: how; position: relative; padding: 1.125rem 1.25rem 1.125rem 4.5rem; margin: 0 !important; min-height: 4.5rem; }
.howto > li + li { border-top: 1px solid var(--divider); }
.howto > li::before {
  content: counter(how); position: absolute; left: 1.125rem; top: 1rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand-text);
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
}
.howto > li > b:first-child { display: block; font-size: 1.2rem; }
.howto p { margin: .25rem 0 0 !important; color: var(--ink-2); font-size: 1.1rem; }

/* Callouts */
.note { display: grid; grid-template-columns: auto 1fr; gap: .875rem; padding: 1.25rem 1.375rem; border-radius: var(--radius); margin: 1.5rem 0; background: var(--brand-soft); }
.note svg { width: 1.75rem; height: 1.75rem; color: var(--brand-text); margin-top: .125rem; }
.note p { margin: 0 !important; }
.note p + p { margin-top: .5rem !important; }
.note.tip { background: var(--ok-soft); }
.note.tip svg { color: var(--ok); }
.note.warn { background: var(--accent-soft); }
.note.warn svg { color: var(--accent); }
:root[data-contrast="high"] .note { border: 2px solid #fff; }

/* Per-brand instructions */
.brands { display: grid; gap: .75rem; margin: 1.25rem 0 2rem; }
.brands details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.brands summary { cursor: pointer; list-style: none; padding: 1rem 1.25rem; font-weight: 700; display: flex; align-items: center; gap: .75rem; min-height: 4rem; }
.brands summary::-webkit-details-marker { display: none; }
.brands summary::after { content: "+"; margin-left: auto; font-size: 1.75rem; line-height: 1; color: var(--brand-text); }
.brands details[open] summary::after { content: "\2212"; }
.brands .body { padding: 0 1.25rem 1.25rem; }
.brands ol { margin-bottom: 0 !important; }

/* Guide cards */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.guide-card { display: flex; flex-direction: column; gap: .5rem; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.guide-card:hover { border-color: var(--brand); }
.guide-card:active { transform: scale(.98); }
.guide-card img { width: 3.75rem; height: 3.75rem; margin-bottom: .5rem; }
.guide-card b { font-size: 1.375rem; line-height: 1.3; }
.guide-card span { color: var(--ink-2); font-size: 1.125rem; }
.guide-card small { margin-top: auto; padding-top: .75rem; font-size: 1rem; font-weight: 700; color: var(--brand-text); }

/* Printable checklist */
.checklist { list-style: none; padding: 0 !important; margin: 1rem 0 2rem !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.checklist li { display: grid; grid-template-columns: 2rem 1fr; gap: .875rem; align-items: start; padding: 1rem 1.25rem; margin: 0 !important; }
.checklist li + li { border-top: 1px solid var(--divider); }
.checklist li::before { content: ""; width: 1.75rem; height: 1.75rem; border: .1875rem solid var(--brand); border-radius: .5rem; margin-top: .125rem; }
.checklist b { display: block; }
.checklist span { color: var(--ink-2); font-size: 1.1rem; }

/* Permission rows */
.perms { margin: 1.25rem 0 2rem; }
.perm { padding: 1.25rem 1.375rem; }
.perm + .perm { border-top: 1px solid var(--divider); }
.perm header { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .375rem; }
.perm header b { font-size: 1.2rem; }
.perm p { margin: 0 !important; color: var(--ink-2); font-size: 1.1rem; }

/* Roadmap */
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.lane > h2 { font-size: 1.5rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .625rem; }
.lane > h2 i { width: .875rem; height: .875rem; border-radius: 50%; background: var(--ok); }
.lane:nth-child(2) > h2 i { background: var(--brand); }
.lane:nth-child(3) > h2 i { background: var(--ink-2); }
.lane .soon + .soon { margin-top: 1rem; }

/* Help box at the end of articles */
.helpbox { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-top: 3rem; }
.helpbox b { font-size: 1.375rem; display: block; }
.helpbox p { margin: 0 !important; color: var(--ink-2); }

/* FAQ groups */
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { margin-top: 0 !important; margin-bottom: 1rem !important; }

/* Legal tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 1.05rem; line-height: 1.5; }
.table-wrap th, .table-wrap td { text-align: left; padding: .875rem 1rem; border-bottom: 1px solid var(--divider); vertical-align: top; }
.table-wrap th { background: var(--bg-soft); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* ===== Responsive ===== */
@media (max-width: 60rem) {
  .tools, .soon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 56rem) {
  .hero-grid, .family, .split, .split.flip { grid-template-columns: 1fr; }
  .split .device, .split.flip .device { order: 2; margin: 0 auto; }
  .help-grid, .steps, .lanes { grid-template-columns: 1fr; }
  .devices { min-height: 26rem; }
  .device { width: 13rem; }
}
@media (max-width: 40rem) {
  body { font-size: 1.1875rem; }
  .wrap { padding: 0 1rem; }
  .a11y .label, .a11y .txt { display: none; }
  .a11y .wrap { gap: .3rem; flex-wrap: nowrap; }
  .a11y button, .a11y a { padding: 0 .55rem; }
  .nav { min-height: 4.5rem; }
  /* Bottom tab bar, like the app's navigation */
  body { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
  .nav ul.tabs {
    position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; margin: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: .375rem .25rem calc(.375rem + env(safe-area-inset-bottom));
  }
  .nav ul.tabs a {
    flex-direction: column; gap: .2rem; min-height: 4.5rem; padding: .25rem 0; border-radius: 0;
    font-size: .8rem; font-weight: 700; color: var(--ink-2); text-align: center; line-height: 1.15;
  }
  .nav ul.tabs a:hover { background: none; }
  .nav .ni { display: block; width: 3.5rem; height: 2rem; padding: .25rem 0; border-radius: 999px; }
  .nav ul.tabs a[aria-current="page"] { background: none; color: var(--brand-text); }
  .nav ul.tabs a[aria-current="page"] .ni { background: var(--brand-soft); }
  .hero { padding: 1.25rem 0 3rem; }
  .hero .lead { font-size: 1.25rem; }
  .btn { width: 100%; }
  .devices { min-height: 22rem; }
  .device { width: 11.5rem; border-width: .4rem; border-radius: 1.75rem; }
  .devices .device.back { margin-right: -4.5rem; }
  .device { width: 10.5rem; }
  .tools { gap: .75rem; }
  .tool { min-height: 9.5rem; padding: 1rem .75rem; }
  .tool img { width: 3.75rem; height: 3.75rem; }
  .tool b { font-size: 1.15rem; }
  .tool span { display: none; }
  .soon-grid { grid-template-columns: 1fr; gap: .75rem; }
  .soon { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; padding: 1.125rem; }
  .soon img { grid-row: span 3; width: 3.75rem; height: 3.75rem; margin: 0; }
  .soon .chip { margin-top: .375rem; justify-self: start; }
  .steps li { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: 1.25rem; }
  .steps li::before { grid-column: 1; }
  .steps li > h3, .steps li > p { grid-column: 1; }
  .steps .device { grid-column: 2; grid-row: 1 / span 3; width: 7.25rem; margin: 0; border-width: .3rem; border-radius: 1.1rem; align-self: center; }
  .trust { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  section { padding: 3.25rem 0; }
  .card, .quote { padding: 1.5rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .page-head { padding-top: 1.5rem; padding-bottom: 2rem; }
  .article { padding: 0 1rem 3.5rem; }
  .howto > li { padding: 1rem 1rem 1rem 4rem; }
  .howto > li::before { left: .875rem; }
  .helpbox .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .a11y, .site-header, .site-footer, .no-print { display: none !important; }
  body { font-size: 14pt; background: #fff; color: #000; }
  .checklist li, .howto > li { break-inside: avoid; }
}
