/* Shoji guides: washi paper, graphite lattice and the app's one blue. The phone diagram is the only bold thing. */
:root {
  --paper: #f5f6f4; --panel: #ffffff; --ink: #1c2026; --muted: #5a616b;
  --rule: #d8dce1; --lattice: #c9ced5; --blue: #2f6fe4; --blue-soft: rgba(47,111,228,.14);
  --code: #eceef0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121519; --panel: #1a1e24; --ink: #eceef1; --muted: #a2a9b3;
    --rule: #2a3038; --lattice: #343b45; --blue: #7fb0ff; --blue-soft: rgba(127,176,255,.18);
    --code: #222831;
  }
}
:root[data-theme="dark"] {
  --paper: #121519; --panel: #1a1e24; --ink: #eceef1; --muted: #a2a9b3;
  --rule: #2a3038; --lattice: #343b45; --blue: #7fb0ff; --blue-soft: rgba(127,176,255,.18);
  --code: #222831;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.7 "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 0 16px 72px;
}
.wrap { max-width: 1040px; margin: 0 auto; }
.col { max-width: 680px; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; }

/* Top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.lang { font-size: .9rem; color: var(--muted); }
.lang a { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; padding: 40px 0 56px; border-bottom: 1px solid var(--rule); }
.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin: 0 0 20px; max-width: 16ch; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.facts { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 8px; }
.facts li { padding-left: 26px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; background: var(--blue); color: var(--paper); text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; }
.updated { font-size: .88rem; color: var(--muted); }

/* The phone: a shoji panel with the three edge strips */
.phone { width: 100%; max-width: 300px; justify-self: center; }
.phone svg { display: block; width: 100%; height: auto; }
.ph-body { fill: var(--panel); stroke: var(--ink); stroke-width: 3; }
.ph-lat { stroke: var(--lattice); stroke-width: 1; }
.ph-strip { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 4 4; }
.ph-label { fill: var(--ink); font: 600 13px "Be Vietnam Pro", sans-serif; }
.ph-sub { fill: var(--muted); font: 400 12px "Be Vietnam Pro", sans-serif; }
.ph-path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; }
.ph-dot { fill: var(--blue); }
.thumb-up { animation: up 3.6s cubic-bezier(.3,.7,.3,1) infinite; }
.thumb-in { animation: in 3.6s cubic-bezier(.3,.7,.3,1) 1.8s infinite; opacity: 0; }
@keyframes up { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 45% { transform: translateY(-120px); opacity: 1; } 55%, 100% { transform: translateY(-120px); opacity: 0; } }
@keyframes in { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 45% { transform: translateX(70px); opacity: 1; } 55%, 100% { transform: translateX(70px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .thumb-up, .thumb-in { animation: none; opacity: 1; } }

/* Body copy */
section { padding: 52px 0 8px; }
h2 { font-size: 1.6rem; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; margin: 0 0 14px; }
h3 { font-size: 1.12rem; line-height: 1.35; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.path { background: var(--code); border-radius: 6px; padding: 1px 7px; font-size: .95em; white-space: nowrap; }

/* Why it happens: the two states side by side */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; margin: 22px 0 8px; }
.compare > div { background: var(--panel); padding: 18px 20px; }
.compare h3 { font-size: 1rem; }
.compare p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Steps: a real sequence, counted on the lattice */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--rule); }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.steps > li > * { grid-column: 2; }
.steps > li::before { content: counter(s); grid-column: 1; grid-row: 1 / span 8; align-self: start; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; background: var(--panel); }
.steps p { margin: 0 0 8px; }
.steps ol, .steps ul { margin: 4px 0 8px; padding-left: 20px; }
.steps li li { margin: 3px 0; }
.note { font-size: .93rem; color: var(--muted); }

/* Options table */
.scroll { overflow-x: auto; margin: 20px 0 8px; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { font-weight: 600; color: var(--muted); font-size: .88rem; }
tbody th { font-weight: 600; }
tr.us { background: var(--blue-soft); }

/* FAQ */
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); top: 28px; }
details > div { padding: 0 0 14px; color: var(--muted); }
details > div p { margin: 0 0 10px; }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }

.end { margin-top: 56px; padding: 28px; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--panel); display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.end p { margin: 0; max-width: 30em; }
footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 20px 0 40px; }
  .phone { max-width: 250px; }
  .compare { grid-template-columns: 1fr; }
  .steps > li { grid-template-columns: 40px 1fr; gap: 0 14px; }
  .steps > li::before { width: 34px; height: 34px; font-size: 1rem; border-radius: 8px; }
  .path { white-space: normal; }
}

/* Screenshots from the app, phone-sized and framed like the panel they come from */
.shot { margin: 16px 0 8px; max-width: 340px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--rule); background: #1a1e24; }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; max-width: 560px; }
.shot-pair .shot { margin: 0; }
.shot-pair img { border-radius: 14px; }
@media (max-width: 480px) { .shot-pair { grid-template-columns: 1fr; max-width: 340px; } }
