/* axad.ai public site. Own look: warm paper, deep indigo ink, rounded type. */
:root {
  --bg: #fbf7f1; --card: #ffffff; --sand: #f3ece2; --sand2: #e7ddcf;
  --ink: #1e2140; --ink2: #4a4e6a; --mute: #8a8ca0;
  --acc: #4e56d9; --acc-s: #eceefd; --coral: #ff7a59; --coral-s: #ffece6; --sun: #ffc857; --sun-s: #fff4d9;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", Charter, Georgia, serif;
  --r: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--acc); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--round); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(36px, 5.4vw, 58px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.lead { font-size: 20px; color: var(--ink2); max-width: 600px; }
.kicker { font: 700 13px var(--round); letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; }
.muted { color: var(--mute); }
.small { font-size: 14px; }

/* header */
.site-top { position: sticky; top: 0; z-index: 10; background: rgba(251,247,241,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--sand2); }
.site-top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 22px var(--round); color: var(--ink); text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a:not(.btn) { color: var(--ink2); text-decoration: none; font-size: 15px; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 17px var(--round); text-decoration: none; border: 0; white-space: nowrap; cursor: pointer; }
.btn.sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn.light { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--sand2); }
.btn.danger { background: var(--card); color: #c2412a; box-shadow: inset 0 0 0 2px #f2c7bc; }
.btn svg { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.req { font-size: 14px; color: var(--mute); }

/* sections */
section { padding: 84px 0; }
section.alt { background: var(--sand); }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head p:not(.kicker) { margin-top: 14px; color: var(--ink2); font-size: 18px; }
h1, h2, .lead { text-wrap: balance; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid2.wide-r { grid-template-columns: .8fr 1.2fr; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.places { display: grid; gap: 14px; margin-top: 28px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border-radius: var(--r); padding: 24px; box-shadow: 0 1px 0 var(--sand2), 0 10px 30px rgba(30,33,64,.06); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink2); font-size: 16px; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--acc-s); color: var(--acc); font: 800 16px var(--round); margin-bottom: 14px; }

/* hero */
.hero { padding: 72px 0 84px; }
.hero .grid2 { grid-template-columns: 1.1fr .9fr; }
.hero h1 { max-width: 620px; }
.hero .lead { margin-top: 20px; }
.hero-art { position: relative; padding-top: 124px; }
.hero-art .mascot { width: 110px; position: absolute; top: 0; right: 28px; }

/* chunks + word for word */
.sample { background: var(--card); border-radius: 22px; padding: 26px; box-shadow: 0 1px 0 var(--sand2), 0 18px 50px rgba(30,33,64,.10); }
.sample .src { font: 20px/1.5 var(--serif); }
.sample .label { font: 700 12px var(--round); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 18px 0 8px; }
.chunks { display: flex; flex-wrap: wrap; gap: 8px; }
.ch { border-radius: 12px; padding: 6px 12px 7px; font: 18px/1.3 var(--serif); }
.ch small { display: block; font: 13px/1.3 var(--sans); color: var(--ink2); margin-top: 3px; }
.c1 { background: var(--sun-s); } .c2 { background: var(--coral-s); } .c3 { background: var(--acc-s); } .c4 { background: #e6f5ef; }
.gloss { font-size: 16px; color: var(--ink2); }
.gloss b { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--sand); font-size: 14px; color: var(--ink); white-space: nowrap; }
.chip .x { color: var(--mute); }

/* static picture: a page with the Axad panel beside it */
.shot { display: grid; grid-template-columns: 1fr 300px; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 1px 0 var(--sand2), 0 24px 60px rgba(30,33,64,.14); font-size: 14px; }
.shot .page { padding: 0; border-right: 1px solid var(--sand2); min-width: 0; }
.shot .bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: var(--sand); }
.shot .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--sand2); }
.shot .url { margin-left: 10px; flex: 1; height: 24px; border-radius: 8px; background: var(--card); color: var(--mute); font-size: 12px; display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; }
.shot .text { padding: 22px 26px; font: 15px/1.7 var(--serif); color: var(--ink2); }
.shot .text h4 { font: 700 18px var(--serif); color: var(--ink); margin: 0 0 10px; }
.shot .text p + p { margin-top: 10px; }
.shot mark { background: #d9dcfb; color: var(--ink); border-radius: 3px; padding: 1px 0; }
.shot .panel { padding: 16px; background: #fdfbf8; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel .ph { display: flex; align-items: center; gap: 8px; font: 700 13px var(--round); }
.panel .ph img { width: 22px; height: 22px; }
.panel .ph span { margin-left: auto; font: 12px var(--sans); color: var(--mute); }
.panel .ch { font-size: 14px; padding: 4px 8px 5px; border-radius: 9px; }
.panel .ch small { font-size: 11px; }
.panel .chunks { gap: 5px; }
.panel .gloss { font-size: 13px; }
.panel .chip { height: 26px; font-size: 12px; padding: 0 10px; }
.panel .lbl { font: 700 10px var(--round); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* places */
.place { display: flex; flex-direction: column; gap: 10px; }
.place .tag { align-self: flex-start; font: 700 12px var(--round); letter-spacing: .06em; text-transform: uppercase; color: var(--acc); background: var(--acc-s); border-radius: 999px; padding: 4px 10px; }

/* audio line */
.listen { display: flex; align-items: center; gap: 16px; }
.play { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; }
.listen .line { font: 22px/1.5 var(--serif); }
.listen .line .on { background: var(--sun); border-radius: 6px; padding: 0 3px; white-space: nowrap; }
.listen .line .done { color: var(--ink); }
.listen .line .todo { color: var(--mute); }

/* exam */
.exam { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; background: var(--ink); color: #fff; border-radius: 28px; padding: 48px; }
.exam h2 { color: #fff; }
.exam p { color: #c9cbe0; margin-top: 14px; }
.exam a { color: #fff; }
.exam .btn { background: var(--sun); color: var(--ink); }
.exam ul { margin: 18px 0 0; padding: 0; list-style: none; color: #e4e5f2; }
.exam li { padding-left: 28px; position: relative; margin: 8px 0; }
.exam li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 4px; background: var(--coral); }
.q { background: rgba(255,255,255,.08); border-radius: 18px; padding: 22px; }
.q .qt { font: 18px/1.5 var(--serif); color: #fff; }
.q .opt { display: block; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.08); color: #e4e5f2; font-size: 15px; }
.q .hint { margin-top: 14px; font-size: 14px; color: #c9cbe0; border-top: 1px dashed rgba(255,255,255,.2); padding-top: 12px; }

/* privacy */
.plist { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plist ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink2); font-size: 16px; }
.plist li { margin: 6px 0; }
.plist .card.out h3 { color: #c2412a; }

/* faq */
.faq { max-width: 820px; }
.faq details { background: var(--card); border-radius: 16px; padding: 4px 24px; margin-bottom: 12px; box-shadow: 0 1px 0 var(--sand2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 700 18px var(--round); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acc); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink2); }

/* download band */
.band { text-align: center; }
.band img { width: 96px; margin: 0 auto 20px; }
.band .cta-row { justify-content: center; }

/* footer */
footer { padding: 48px 0 56px; border-top: 1px solid var(--sand2); font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
footer h3 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 6px 0; }
footer a { color: var(--ink2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .fine { color: var(--mute); font-size: 14px; margin-top: 10px; max-width: 300px; }

/* breadcrumbs */
.crumbs { font-size: 14px; color: var(--mute); margin-bottom: 18px; }
.crumbs a { color: var(--ink2); text-decoration: none; }

/* account */
.acct { max-width: 760px; margin: 0 auto; padding: 56px 28px 80px; display: flex; flex-direction: column; gap: 20px; }
.acct h1 { font-size: 40px; margin-bottom: 4px; }
.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.row .grow { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.acct #root { display: flex; flex-direction: column; gap: 16px; }
.credit-left { display: flex; align-items: baseline; gap: 10px; }
.credit-left b { font: 800 56px/1 var(--round); color: var(--ink); }
.credit-left span { color: var(--mute); font-size: 18px; }
.amounts { display: flex; gap: 12px; margin: 20px 0 4px; }
.amounts .btn { flex: 1 1 0; justify-content: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--acc); cursor: pointer; }
.linklike:disabled { opacity: .55; cursor: default; }
.account-line { padding: 0 4px; }
details.more { padding: 0 4px; }
details.more summary { cursor: pointer; }
details.more p { margin: 10px 0 12px; }

/* sign-in: one column in the middle, as in the app's sign-in sheet */
.signin { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.signin h1 { font-size: 32px; }
.providers { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 280px; }
.apple-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 280px; height: 44px; border: 0; border-radius: 999px; background: #000; color: #fff; font: 600 17px var(--sans); cursor: pointer; }
.apple-button svg { width: 18px; height: 18px; }
.apple-button:disabled, .btn:disabled { opacity: .55; cursor: default; }
.google-button { min-height: 44px; }
[role="alert"] { max-width: 420px; padding: 10px 14px; border-radius: 12px; background: var(--coral-s); color: var(--ink2); }

/* legal pages, set-up steps, starter texts */
.legal h2 { font-size: 22px; margin-bottom: 10px; }
.legal ul, .steps { margin: 10px 0 0; padding-left: 22px; color: var(--ink2); }
.legal li, .steps li { margin: 6px 0; }
.legal p + p { margin-top: 10px; }
.reading { font: 19px/1.7 var(--serif); color: var(--ink); }
.options { list-style: none; padding: 0; margin: 12px 0; }
.options li { padding: 8px 12px; margin: 6px 0; border-radius: 12px; background: var(--sand); }
.card details summary { cursor: pointer; color: var(--acc); font-weight: 600; }
.card details p { margin-top: 8px; }

/* home: two sections (the approved mockup) */
.lp { min-height: 100vh; display: flex; flex-direction: column; }
.lp main { flex: 1; }
.lp section { padding: 0; }
.lp-top { display: flex; align-items: center; justify-content: space-between; height: 76px; width: 100%; }
.lp-signin { color: var(--ink2); text-decoration: none; font: 700 15px var(--round); }
.lp-signin:hover { color: var(--ink); }
.lp-art { margin: 0 auto; height: auto; }
.lp-hero { text-align: center; padding-top: 8px; }
.lp-hero-art { width: min(300px, 62vw); }
.lp-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 6px; }
.lp-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.lp-way { background: var(--card); border-radius: 28px; padding: 28px 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 1px 0 var(--sand2), 0 14px 40px rgba(30,33,64,.07); }
.lp-way .lp-art { width: 200px; }
.lp-way h2 { font-size: 26px; }
.lp-fine { font-size: 14px; color: var(--mute); }
.lp-url { display: flex; align-items: center; gap: 8px; background: var(--sand); border-radius: 999px; padding: 6px 6px 6px 20px; max-width: 100%; }
.lp-url code { font: 600 16px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-hosts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lp-host { position: relative; }
.lp-host input { position: absolute; opacity: 0; pointer-events: none; }
.lp-host span { display: inline-block; padding: 6px 14px; border-radius: 999px; font: 700 14px var(--round); color: var(--ink2); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--sand2); }
.lp-host input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.lp-host input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.lp-hows { min-height: 24px; max-width: 100%; }
.lp-how { display: none; font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.lp-how code { font: 13px ui-monospace, "SF Mono", Menlo, monospace; background: var(--sand); padding: 3px 8px; border-radius: 6px; }
.lp-way:has(input[value=claude]:checked) .lp-how-claude,
.lp-way:has(input[value=chatgpt]:checked) .lp-how-chatgpt,
.lp-way:has(input[value=codex]:checked) .lp-how-codex,
.lp-way:has(input[value=code]:checked) .lp-how-code { display: block; }
.lp-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; width: 100%; padding: 22px 28px 34px; font-size: 14px; }
.lp-foot a { color: var(--mute); text-decoration: none; }
.lp-foot a:hover { color: var(--ink); }
.lp-dict { margin: 22px auto 0; max-width: 470px; text-align: left; background: var(--card); border-radius: 16px; padding: 14px 20px; box-shadow: inset 0 0 0 1.5px var(--sand2); font-family: var(--serif); }
.lp-dict p { margin: 0; }
.lp-dict-head b { font: 700 22px var(--serif); color: var(--ink); }
.lp-dict-fa { font: 600 21px "Geeza Pro", "Noto Naskh Arabic", serif; color: var(--coral); margin: 0 4px; }
.lp-dict-ipa { color: var(--ink2); font-size: 16px; }
.lp-dict-head i { display: block; color: var(--mute); font-size: 14px; margin-top: 2px; }
.lp-dict-sense { margin-top: 8px !important; font-size: 17px; color: var(--ink); }
.lp-dict-sense span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--acc-s); color: var(--acc); font: 800 12px var(--round); margin-right: 6px; vertical-align: 2px; }
.lp-dict-ex { margin-top: 4px !important; color: var(--ink2); font-size: 15px; }
.lp-dict-ex span { font: 17px "Geeza Pro", "Noto Naskh Arabic", serif; color: var(--ink); margin-right: 8px; }
.lp-price { margin: 22px 0 0; font: 700 16px var(--round); color: var(--mute); }
.lp-price a { text-decoration: none; }
.lp .lp-nl { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 72px auto 56px; background: var(--card); border-radius: 28px; padding: 40px 44px; box-shadow: 0 1px 0 var(--sand2), 0 14px 40px rgba(30,33,64,.07); }
.lp-nl-art img { width: 100%; height: auto; display: block; }
.lp-nl h2 { font-size: clamp(28px, 3.4vw, 38px); }
.lp-parts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 8px; }
.lp-parts li { padding: 6px 14px; border-radius: 999px; background: var(--sand); font: 700 15px var(--round); }
.lp-parts li:nth-child(1) { background: var(--sun-s); } .lp-parts li:nth-child(2) { background: var(--coral-s); } .lp-parts li:nth-child(3) { background: var(--acc-s); } .lp-parts li:nth-child(4) { background: #e6f5ef; }
.lp-levels { color: var(--mute); font-size: 15px; margin: 0 0 20px; }
.lp-nl-go { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-sources { text-align: center; font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.lp-sources a { color: var(--mute); }
@media (max-width: 760px) {
  .lp-ways { grid-template-columns: 1fr; }
  .lp .lp-nl { grid-template-columns: 1fr; padding: 28px 22px; gap: 22px; }
}

/* knowledge pages (inburgering, Axad in your AI, method): short, sourced, one column */
.doc { max-width: 820px; padding-top: 40px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 44px); }
.doc .lead { margin-top: 14px; max-width: none; }
.doc .checked { margin-top: 14px; font-size: 14px; color: var(--mute); }
.doc-sec { padding: 0; margin-top: 40px; }
.doc-sec h2 { font-size: clamp(22px, 2.8vw, 28px); margin-bottom: 12px; }
.doc-sec p + p, .doc-sec p + ul, .doc-sec p + ol, .doc-sec ul + p, .doc-sec ol + p, .doc-sec .table-wrap { margin-top: 12px; }
.doc-sec ul, .doc-sec ol { margin: 0; padding-left: 22px; }
.doc-sec li { margin: 6px 0; }
.note { background: var(--sun-s); border-radius: 14px; padding: 12px 16px; color: var(--ink); }
.src { margin-top: 12px; font-size: 14px; color: var(--mute); overflow-wrap: anywhere; }
.src b { color: var(--ink2); font-weight: 600; }
.src em { font-style: normal; color: #c2412a; }
.sources li em { font-style: normal; color: #c2412a; }
.sources ol { font-size: 15px; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); border-radius: 12px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--sand2); }
.doc th { background: var(--sand); font: 700 13px var(--round); letter-spacing: .04em; }
.pages { list-style: none; padding: 0 !important; }
.pages li { display: flex; flex-direction: column; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--sand2); }
.pages li span { color: var(--ink2); font-size: 15px; }
.doc-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.cta-card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: 0 1px 0 var(--sand2), 0 10px 30px rgba(30,33,64,.06); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-card p { color: var(--ink2); font-size: 15px; }
.disclaimer { margin-top: 32px; }
.transcript p { padding: 10px 14px; border-radius: 12px; margin-top: 8px; background: var(--sand); }
.transcript p.tutor { background: var(--acc-s); }
/* the router */
.router { margin-top: 28px; }
.router-card { background: var(--card); border-radius: 22px; padding: 24px; box-shadow: 0 1px 0 var(--sand2), 0 14px 40px rgba(30,33,64,.08); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.router-card.result { box-shadow: inset 0 0 0 2px var(--acc), 0 14px 40px rgba(30,33,64,.08); }
.router-card h3 { font-size: 24px; }
.router-options { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.router-option { text-align: left; font: 600 16px var(--sans); color: var(--ink); background: var(--bg); border: 0; border-radius: 14px; padding: 12px 16px; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--sand2); }
.router-option:hover { box-shadow: inset 0 0 0 1.5px var(--acc); }
.router-option.on { background: var(--acc-s); box-shadow: inset 0 0 0 2px var(--acc); }
.router-why, .router-body { color: var(--ink2); }
.router-why p { margin: 0; }
.router-then ul { margin: 6px 0 0; padding-left: 22px; }
.router-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.router-trail { margin: 0 0 14px; padding-left: 22px; color: var(--mute); font-size: 14px; }
.router-list { margin-top: 28px; }
.router-list summary { cursor: pointer; color: var(--acc); font-weight: 600; }
@media (max-width: 640px) { .doc-cta { grid-template-columns: 1fr; } .doc { padding-top: 24px; } }

/* mobile */
@media (max-width: 900px) {
  .grid2, .grid2.wide-r, .hero .grid2, .exam, .plist { grid-template-columns: 1fr; }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .shot { grid-template-columns: 1fr; }
  .shot .page { border-right: 0; border-bottom: 1px solid var(--sand2); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav a:not(.btn) { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-art { padding-top: 104px; }
  .hero-art .mascot { width: 92px; }
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .exam { padding: 28px 22px; border-radius: 22px; }
  .lead { font-size: 18px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .stats { grid-template-columns: 1fr; }
}

/* account: plans */
.hl { box-shadow: 0 0 0 3px var(--acc), 0 10px 30px rgba(78,86,217,.18); }
.acct .hot { background: var(--acc-s); border-radius: 10px; padding: 4px 10px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 10px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 14px; background: var(--sand); }
.plan.current { background: var(--acc-s); box-shadow: inset 0 0 0 2px var(--acc); }
.plan h4 { margin: 0; font: 800 22px var(--round); }
.plan p { font-size: 15px; }
.plan .btn, .plan .chip { margin-top: auto; }
.plan-note { margin: 4px 0 0; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--acc); color: #fff; font: 700 15px var(--round); }
.acct input { height: 40px; padding: 0 14px; border: 2px solid var(--sand2); border-radius: 999px; font: 16px var(--sans); background: var(--card); color: var(--ink); min-width: 0; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* sign-in */
.providers[hidden] { display: none; }
.providers .btn { width: 280px; height: 44px; justify-content: center; font-size: 16px; }
.signin form { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 280px; }
.signin label { align-self: flex-start; font: 700 14px var(--round); color: var(--ink2); }
.signin input { width: 100%; height: 48px; padding: 0 18px; border: 2px solid var(--sand2); border-radius: 999px; background: var(--card); color: var(--ink); font: 17px var(--sans); }
.signin input::placeholder { color: var(--mute); }
.signin input:focus-visible { outline: 3px solid var(--acc-s); border-color: var(--acc); }
.signin input.code-input { text-align: center; letter-spacing: .45em; padding-left: calc(18px + .45em); font: 800 26px var(--round); }
.signin form .btn { width: 100%; justify-content: center; }
.signin form p { margin: 0; }
.authorize .who { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: var(--r); background: var(--card); box-shadow: 0 1px 0 var(--sand2), 0 10px 30px rgba(30,33,64,.06); text-align: left; }
.authorize .who img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.authorize .who b { display: block; font: 800 20px/1.2 var(--round); }
.authorize .share { max-width: 400px; color: var(--ink2); }
.authorize .answer { display: flex; gap: 12px; }
.authorize .answer .btn { min-width: 132px; justify-content: center; }

/* practice */
.practice .pr-facts { margin-top: 12px; color: var(--ink2); }
.practice .pr-how { margin-top: 18px; }
.pr-passage { background: var(--card); border-radius: 14px; padding: 16px 20px; box-shadow: 0 1px 0 var(--sand2); white-space: pre-line; }
.pr-passage p + p, .pr-passage p + ul, .pr-passage p + ol, .pr-passage ul + p, .pr-passage ol + p { margin-top: 12px; }
.pr-passage ul, .pr-passage ol { white-space: normal; margin: 0; padding-left: 22px; }
.pr-script { background: var(--card); border-radius: 14px; padding: 16px 20px; box-shadow: 0 1px 0 var(--sand2); }
.pr-script p { margin: 0 0 8px; }
.pr-script .narrator { color: var(--ink2); font-style: italic; }
.pr-script b { margin-right: 4px; }
.pr-script .pr-hear { color: var(--mute); font-style: normal; border-bottom: 1px solid var(--sand2); padding-bottom: 8px; }
.pq { margin-top: 16px; }
.pq-ask { font-weight: 700; }
.pq-opts { margin: 8px 0; padding-left: 26px; }
.pq details { margin-top: 6px; }
.pq summary, .pr-reveal summary { cursor: pointer; color: var(--acc); font-weight: 700; }
.pq .ax-notice { display: none; }
.pq-signin { margin-top: 6px; padding-left: 4px; }
.pq-src { margin-top: 6px; padding-left: 4px; color: var(--mute); }
.pr-reveal { margin-top: 14px; background: var(--card); border-radius: 14px; padding: 12px 20px; box-shadow: 0 1px 0 var(--sand2); }
.pr-reveal[open] summary { margin-bottom: 8px; }
.pr-reveal ul { padding-left: 22px; margin: 0; }
.pr-prompt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; background: var(--card); border-radius: 14px; padding: 12px 16px; box-shadow: 0 1px 0 var(--sand2); }
.pr-prompt code { flex: 1 1 260px; font-size: 14px; white-space: normal; }
.pr-cta { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.pr-cta .cta-card { padding: 18px; }
.pr-cta code { font-size: 13px; word-break: break-all; }
.pr-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; font-size: 15px; }
@media (max-width: 760px) { .pr-cta { grid-template-columns: 1fr; } }
