/* Public pages: the landing page (/) and the question pages (/q/). Loaded after tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grain), var(--bg);
  color: var(--ink);
  font: 400 16px / 1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.en { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.hl { background: linear-gradient(transparent 58%, var(--hl-soft) 58%, var(--hl-soft) 92%, transparent 92%); padding: 0 2px; margin: 0 -2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mono, .kicker { font: 500 11px / 1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.kicker { display: inline-flex; align-items: center; gap: 8px; }
.kicker:lang(hi), .mono:lang(hi) { font: 500 13px / 1.4 var(--f-ui); letter-spacing: 0; text-transform: none; }
.kicker::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); flex: none; }

/* header + footer */
.site-top { border-bottom: 1px solid var(--line-2); background: var(--bg); }
.site-top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 650 16px / 1 var(--f-ui); }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand small { display: block; margin-top: 4px; font: 500 9.5px / 1 var(--f-mono); letter-spacing: 0.16em; color: var(--ink-3); }
.site-top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14.5px; }
.site-top nav a:not(.btn) { color: var(--ink-2); }
.site-foot { margin-top: 72px; border-top: 1px solid var(--line-2); padding: 28px 0 40px; font-size: 13.5px; color: var(--ink-3); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.site-foot nav a { color: var(--ink-2); }
.site-foot p + p { margin-top: 4px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 500 15px / 1.2 var(--f-ui); white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: var(--ink-3); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn .en { color: inherit; opacity: 0.78; }
.btn .en::before { content: "·\00a0"; }

/* file tab, stamps, year strip */
.tab {
  display: inline-flex; align-items: center; height: 24px; padding: 0 11px; background: var(--surface-2);
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 10px 10px 0 0; color: var(--ink-2);
  font: 500 11px / 1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.stamp {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1.5px solid currentColor; border-radius: 3px;
  font: 500 12.5px / 1.3 var(--f-ui); color: var(--stamp); transform: rotate(-2deg); white-space: nowrap;
}
.stamp :lang(en) { font: 500 10px / 1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.stamp.green { color: var(--right); }
.stamp.gold { color: var(--warn); }
.stamp.blue { color: var(--brand); }
.stamps { display: flex; flex-wrap: wrap; gap: 8px; }
.ys { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; }
.ys i { height: 14px; background: var(--surface-3); }
.ys i.on { background: color-mix(in srgb, var(--brand) calc(30% + var(--k, 1) * 70%), transparent); }
.ys-labels { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; margin-top: 5px; font: 500 9.5px / 1 var(--f-mono); color: var(--ink-3); text-align: center; }

/* ---------- landing ---------- */
.hero { padding-top: 56px; padding-bottom: 64px; display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: 30px; line-height: 1.35; letter-spacing: -0.01em; max-width: 19em; }
.hero .lede { margin-top: 16px; font-size: 17px; line-height: 1.6; max-width: 34em; }
.hero .lede-hi { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cta-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); max-width: 40em; }
.cover { margin-top: 36px; max-width: 420px; }
.cover .mono { margin-bottom: 8px; }
.phones { display: flex; justify-content: center; gap: 20px; }
.phone {
  flex: none; width: 280px; padding: 7px; border: 1px solid var(--line-2); border-radius: 38px; background: var(--surface);
  box-shadow: var(--shadow);
}
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 31px; background: var(--surface-2); }
.phone.sm { width: 230px; border-radius: 32px; }
.phone.sm img { border-radius: 26px; }

.proof { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.proof ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.proof li { padding: 20px 16px 22px 0; border-bottom: 1px solid var(--line); }
.proof b { display: block; font: 600 26px / 1.1 var(--f-ui); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.proof span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; }
.proof .en { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.section { padding-top: 80px; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head h2, .feature h2 { font-size: 24px; line-height: 1.35; margin-top: 10px; }
.section-head .en, .feature h2 + .en { margin-top: 4px; font-size: 16px; }
.feature { display: grid; gap: 36px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature .body p { margin-top: 14px; max-width: 34em; }
.feature .body p.en { margin-top: 6px; font-size: 15px; }
.feature ul { margin-top: 18px; padding: 0; list-style: none; max-width: 34em; }
.feature li { padding: 10px 0; border-top: 1px dashed var(--line-2); font-size: 15px; }
.feature li .en { display: block; font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; max-width: 420px; width: 100%; margin: 0 auto; }
.panel h3 { font-size: 17px; margin-top: 10px; }
.panel .ys { margin-top: 16px; }
.panel dl { margin: 20px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 14.5px; }
.panel dt { font: 600 18px / 1.3 var(--f-ui); font-variant-numeric: tabular-nums; }
.panel dd { margin: 0; line-height: 1.45; }
.panel dd .en { display: block; font-size: 13px; }

.plans { display: grid; gap: 16px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 26px 22px 22px; }
.plan.best { border-color: var(--primary); box-shadow: var(--hard-sm); }
.plan .tab { position: absolute; left: -1px; top: -24px; }
.plan h3 { font-size: 18px; }
.price { margin-top: 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price b { font: 600 32px / 1 var(--f-ui); font-variant-numeric: tabular-nums; }
.price s { color: var(--ink-3); font-size: 16px; }
.price span { font-size: 14px; color: var(--ink-2); }
.plan ul { margin: 18px 0 22px; padding: 0; list-style: none; font-size: 14.5px; }
.plan li { padding: 8px 0 8px 22px; border-top: 1px dashed var(--line-2); position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 9px; height: 5px; border-left: 1.5px solid var(--right); border-bottom: 1.5px solid var(--right); transform: rotate(-45deg); }
.plan li .en { display: block; font-size: 13px; }
.plan .btn { width: 100%; }
.plan-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.plan-note b, .answer b { font-weight: 600; }

.faq { max-width: 760px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; list-style: none; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 20px / 1 var(--f-mono); color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq summary .en { display: block; font-weight: 400; font-size: 14.5px; }
.faq .a { padding: 0 0 20px; max-width: 64ch; }
.faq .a p + p { margin-top: 8px; }
.faq .a .en { font-size: 15px; }

@media (min-width: 720px) {
  .proof ul { grid-template-columns: repeat(5, 1fr); }
  .proof li { border-bottom: 0; padding: 26px 20px 28px; border-left: 1px solid var(--line); }
  .proof li:first-child { border-left: 0; padding-left: 0; }
  .plans { grid-template-columns: 1fr 1fr; max-width: 860px; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr 320px; gap: 64px; padding-top: 80px; padding-bottom: 88px; }
  .hero h1 { font-size: 31px; }
  .phone { width: 300px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px 0; }
  .feature.flip .body { order: 2; }
  .section-head h2, .feature h2 { font-size: 27px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 27px; }
  .phone { width: 260px; }
  .phones .phone.sm { width: calc(50% - 6px); padding: 5px; border-radius: 24px; }
  .phones .phone.sm img { border-radius: 19px; }
  .phones { gap: 12px; }
  .site-top nav .hide-s { display: none; }
}

/* ---------- question pages ---------- */
.crumbs { margin-top: 24px; font-size: 13.5px; color: var(--ink-3); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); }
.qhead { margin-top: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.qhead h1 { font-size: 24px; line-height: 1.35; margin-top: 10px; }
.qhead p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.q-main { max-width: 860px; }
.filetab { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.filetab .stamp { margin-bottom: 6px; }
.sheet { background: var(--surface); border: 1px solid var(--line-2); border-radius: 0 16px 16px 16px; padding: 22px; }
.sheet + .sheet, .block + .block { margin-top: 20px; }
.bi { display: grid; gap: 18px; }
.bi > div + div { padding-top: 18px; border-top: 1px dashed var(--line-2); }
.label { display: block; margin-bottom: 8px; font: 500 10.5px / 1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.label:lang(hi) { font: 500 13px / 1.4 var(--f-ui); letter-spacing: 0; text-transform: none; }
.qtext p { margin: 0 0 8px; }
.qtext p:last-child { margin-bottom: 0; }
.read [lang="hi"] p { font-family: var(--f-read-hi); font-size: 17px; line-height: 1.75; }
.read [lang="en"] p { font-size: 16px; line-height: 1.65; }
.passage { margin-bottom: 20px; padding: 16px 18px; background: var(--surface-2); border-left: 2px solid var(--line-2); border-radius: 0 6px 6px 0; }
.passage p + p { margin-top: 10px; }
.figs { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.figs img { max-height: 360px; width: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.figs figcaption { width: 100%; font-size: 13px; color: var(--ink-3); }
.opts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.opts li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; }
.opts li.key { border-color: var(--right); background: var(--right-bg); }
.opts .bub { width: 26px; height: 26px; border: 1.5px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font: 500 12px / 1 var(--f-mono); color: var(--ink-2); }
.opts li.key .bub { background: var(--right); border-color: var(--right); color: var(--surface); }
.opts .o-hi { font-family: var(--f-read-hi); font-size: 16.5px; line-height: 1.6; }
.opts .o-en { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.answer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); margin-top: 20px; }
.answer b { font-size: 16px; }
.note { margin-top: 12px; padding: 10px 14px; border-radius: 6px; background: var(--warn-bg); color: var(--ink); font-size: 14px; }
.explain { margin-top: 20px; }
.explain p + p { margin-top: 8px; }
.src { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.ctx { display: grid; gap: 20px; margin-top: 20px; }
.ctx .ys { max-width: 360px; }
.ctx .ys-labels { max-width: 360px; }
.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: grid; gap: 4px; padding: 11px 2px; color: var(--ink); }
.list a:hover { text-decoration: none; background: var(--surface-2); }
.list .mono { padding-top: 3px; }
.list .t { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list .t + .t { color: var(--ink-3); font-size: 13.5px; -webkit-line-clamp: 1; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.pager a { font-size: 14.5px; }
.cta-box { margin-top: 36px; padding: 22px; border: 1px solid var(--primary); border-radius: 10px; background: var(--surface); display: grid; gap: 16px; }
.cta-box p.en { font-size: 14.5px; margin-top: 2px; }
.cta-box h2 { font-size: 18px; line-height: 1.4; }
.years { display: grid; gap: 0; border-top: 1px solid var(--line); }
.years > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.years b { font: 600 17px / 1 var(--f-ui); font-variant-numeric: tabular-nums; }
.years .links { display: flex; flex-wrap: wrap; gap: 8px; }
h2.sub { font-size: 18px; margin: 40px 0 14px; }
h2.sub .en { font-size: 14.5px; margin-left: 6px; }
@media (min-width: 760px) {
  .bi { grid-template-columns: 1fr 1fr; gap: 28px; }
  .bi > div + div { padding-top: 0; border-top: 0; padding-left: 28px; border-left: 1px dashed var(--line-2); }
  .sheet { padding: 28px; }
  .qhead h1 { font-size: 27px; }
  .ctx { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr auto; align-items: center; }
  .list a { grid-template-columns: 140px 1fr; gap: 12px; }
}

.brand .wm-l, .brand .wm-d { height: 40px; width: auto; display: block; }
.brand .wm-d { display: none; }
@media (prefers-color-scheme: dark) { .brand .wm-l { display: none; } .brand .wm-d { display: block; } }
.explain.locked { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-style: dashed; }

.rd-subj { margin-top: 28px; }
.rd-list { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 900px) { .rd-list { grid-template-columns: 1fr 1fr; } }
.rd { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); padding: 16px 18px; }
.rd h3 { font-size: 18px; line-height: 1.35; }
.rd h3 span { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.rd ol { margin: 10px 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.rd li span[lang="en"] { display: block; color: var(--ink-2); font-size: 14px; }
.rd-subj .sub .en { display: block; margin-top: 2px; }
.gl-table { width: 100%; border-collapse: collapse; margin-top: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.gl-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.gl-table tr:first-child td { border-top: 0; }
.gl-table td[lang="hi"] b { font-size: 17px; font-weight: 600; }
.gl-table td[lang="en"] { color: var(--ink-2); }
.gl-table td.mono { white-space: nowrap; text-align: right; width: 1%; }
@media (max-width: 560px) {
  .gl-table, .gl-table tbody { display: block; }
  .gl-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
  .gl-table tr:first-child { border-top: 0; }
  .gl-table td { padding: 0; border: 0; }
  .gl-table td[lang="hi"] { grid-column: 1; grid-row: 1; }
  .gl-table td[lang="en"] { grid-column: 1; grid-row: 2; font-size: 14px; }
  .gl-table td.mono { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
.th-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.th-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); padding: 16px 18px; }
.th-list .rank { font: 700 22px / 1.2 var(--f-display, Georgia, serif); color: var(--ink-3, var(--ink-2)); }
.th-list h2 { font-size: 18px; line-height: 1.35; margin: 0 0 6px; }
.th-list h2 span { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.th-list p { margin: 4px 0; }
.th-list .mono a { white-space: nowrap; }
.th-list p.mono { white-space: normal; }
