/* BoardPost section of makswebsitestudio.com.
   Same look as the studio home page: warm paper background, deep teal, large readable type.
   No web fonts (fast), every text color passes WCAG AA contrast, big tap targets.
   Phone-first: bottom tab bar under 820px. */
:root {
  --bg: #FAF8F4; --surface: #FFFFFF; --sand: #F3EEE5; --ink: #1C2430; --muted: #4A5361; --line: #E3DDD2; --line-strong: #CFC7B8;
  --brand: #0E5A57; --brand-dark: #0A4441; --brand-soft: #E3EFEC;
  --accent: var(--brand); --accent-soft: var(--brand-soft);
  --pop: var(--brand); --pop-ink: #FFFFFF;
  --sun: #F0B54A; --sun-soft: #FCF1DC;
  --night: #133836; --night2: #1A4643; --night-line: #2E5D59; --night-ink: #F7F3EA; --night-muted: #CFDDD8;
  --stamp: #166534; --stamp-bg: #E5F4EA; --warn: #9A4A06; --warn-bg: #FDF0DD;
  --display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px; --wrap: 1100px; --tabbar: 0px;
  --shadow: 0 1px 2px rgba(28, 36, 48, .06), 0 8px 24px -12px rgba(28, 36, 48, .18);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 19px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--display); }
h3, h4, .btn, .logo, .eyebrow, summary, .tabbar a, .switch a { font-family: var(--body); }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100; border-radius: 10px; font-weight: 700; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1 { font-size: clamp(2.15rem, 5.2vw, 3.4rem); line-height: 1.1; letter-spacing: -.01em; margin: 0; font-weight: 700; text-wrap: balance; }
h1 em { font-style: italic; color: var(--brand); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); line-height: 1.15; letter-spacing: -.005em; margin: 0; font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.18rem; line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-weight: 700; font-size: .92rem; letter-spacing: .01em; color: var(--brand); }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.22rem); color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }
.num, .mono { font-variant-numeric: tabular-nums; }
.cite { font-size: .92rem; color: var(--muted); }
.prose { max-width: 68ch; display: grid; gap: 1rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .5rem; }
.prose h2 { margin-top: 1.25rem; font-size: clamp(1.45rem, 3vw, 1.9rem); }

/* ---------- Top area (light, warm) ---------- */
.top { background: var(--sand); color: var(--ink); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .lede, .top .muted { color: var(--muted); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 16px 0; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.2rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo i { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font: 700 1.05rem/1 var(--display); font-style: normal; }
.switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; gap: 2px; }
.switch a { text-decoration: none; font-weight: 700; font-size: .95rem; padding: 9px 16px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.switch a:hover { color: var(--ink); background: var(--sand); }
.switch a[aria-current="true"] { background: var(--brand); color: #fff; }
.head-call { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.menu-btn { display: none; align-items: center; gap: 8px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 10px 16px; font: 700 1rem var(--body); cursor: pointer; min-height: 46px; }
.menu-btn svg { width: 20px; height: 20px; }
.subnav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; padding: 2px 0 10px; }
.subnav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .98rem; padding: 9px 12px; border-radius: 10px; }
.subnav a:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.subnav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.subnav .btn { margin-left: auto; padding: 11px 18px; font-size: .98rem; color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; padding: 15px 24px; border-radius: 12px; font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-decoration: none; border: 2px solid var(--brand); cursor: pointer; min-height: 52px; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.blue { background: var(--brand); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; border-color: #000; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 2px solid var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.band .btn.ghost, .cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.band .btn.ghost:hover, .cta-band .btn.ghost:hover { border-color: #fff; }
.band .btn:not(.ghost), .cta-band .btn:not(.ghost) { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.band .btn:not(.ghost):hover, .cta-band .btn:not(.ghost):hover { background: #F5C46A; border-color: #F5C46A; }
.btn[disabled] { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 56px); align-items: center; padding: 28px 0 64px; }
.hero-copy { display: grid; gap: 20px; }
.proof { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 1rem; }
.proof li::before { content: "\2713"; color: var(--brand); font-weight: 800; margin-right: 8px; }
.page-hero { padding: 18px 0 48px; display: grid; gap: 16px; }
.page-hero .lede { max-width: 40em; }
.crumbs { font-size: .95rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* The posting register (signature element) */
.register { background: var(--surface); color: var(--ink); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.register-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.register-head strong { font: 700 1.02rem var(--body); }
.register-head span { font-size: .88rem; color: var(--muted); }
.reg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 13px 18px; border-top: 1px solid var(--line); align-items: center; }
.register-head + .reg-row { border-top: 0; }
.reg-title { font-weight: 600; min-width: 0; font-size: 1rem; }
.reg-meta { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 .85rem/1 var(--body); padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.chip.posted { color: var(--stamp); background: var(--stamp-bg); }
.chip.due { color: var(--warn); background: var(--warn-bg); }
.chip.neutral { color: var(--muted); background: var(--bg); border: 1px solid var(--line); }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 34px; }
.section-head .sub, .sub { color: var(--muted); font-size: 1.08rem; max-width: 38em; }
.band { background: var(--night); color: var(--night-ink); }
.band .eyebrow { color: var(--sun); }
.band .muted, .band .sub { color: var(--night-muted); }
.band a:not(.btn) { color: #fff; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.alt .card { background: var(--bg); }
.band .card { background: var(--night2); border-color: var(--night-line); color: var(--night-ink); }
.card p { color: var(--muted); }
.band .card p { color: var(--night-muted); }
.ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 4px; }
.ico svg { width: 24px; height: 24px; }
.stat-big { font: 700 2.4rem/1 var(--display); }

/* Plain-English box */
.plain { background: var(--sun-soft); border: 1px solid #EBD3A5; border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 10px; max-width: 820px; }
.plain h2, .plain h3 { font-family: var(--body); font-size: 1.15rem; }
.plain p { color: var(--ink); }
.plain .label { font-weight: 800; font-size: .9rem; color: var(--warn); }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; }
.alt .steps li { background: var(--bg); }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 1.05rem var(--body); grid-row: span 2; }
.steps h3 { font-size: 1.15rem; }
.steps .when { display: inline-block; margin-left: 8px; font: 700 .85rem var(--body); color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.steps p { color: var(--muted); grid-column: 2; }

/* 18 categories checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checklist li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px 13px 48px; position: relative; font-size: 1rem; }
.checklist li::before { content: "\2713"; position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--stamp-bg); color: var(--stamp); font-weight: 800; display: grid; place-items: center; font-size: .85rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 1rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 700 .92rem var(--body); color: var(--muted); background: var(--bg); }
tbody th { font-weight: 700; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
td.yes { color: var(--stamp); font-weight: 700; }
.band .table-wrap { background: var(--night2); border-color: var(--night-line); }
.band th, .band td { border-color: var(--night-line); }
.band thead th { background: var(--night); color: var(--night-muted); }
.band td.yes { color: var(--sun); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--sun); color: var(--ink); font: 800 .88rem var(--body); padding: 4px 12px; border-radius: 999px; }
.plan .amount { font: 700 2.7rem/1 var(--display); }
.plan .amount small { font: 500 1rem var(--body); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--stamp); font-weight: 800; }
.plan .btn { margin-top: auto; }
.setup-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 18px 22px; margin-top: 20px; }

/* Eligibility check */
fieldset.q { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
fieldset.q legend { font: 700 1.05rem var(--body); margin-bottom: 8px; padding: 0; }
.opt { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 600; min-height: 56px; }
.opt:hover { border-color: var(--line-strong); }
.opt input { width: 24px; height: 24px; accent-color: var(--brand); margin: 0; flex: none; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* Launch offer + hero link */
.offer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--sun-soft); color: var(--ink); border: 1px solid #EBD3A5; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 26px; }
.offer p { color: var(--ink); }
.offer-tag { background: var(--sun); color: var(--ink); font: 800 .88rem var(--body); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.offer-left { color: var(--warn); font-weight: 700; white-space: nowrap; }
.hero-link { color: var(--muted); font-size: 1.02rem; }
.hero-link a { font-weight: 700; }

/* Callouts */
.note { border-radius: 14px; padding: 16px 18px; background: var(--brand-soft); color: var(--ink); }
.note.warn { background: var(--warn-bg); }
.cta-band { background: var(--night); color: var(--night-ink); padding: 64px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band p { color: var(--night-muted); }

/* FAQ / details */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; }
.alt details { background: var(--bg); }
details summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; min-height: 56px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 1.3rem; line-height: 28px; text-align: center; }
details[open] summary::after { content: "\2212"; }
details .answer { padding: 0 20px 20px; color: var(--muted); display: grid; gap: 10px; }
details .answer ul, details .answer ol { margin: 0; padding-left: 1.2rem; }
.faq-group { margin-bottom: 34px; }
.faq-group h2 { font-size: 1.45rem; margin-bottom: 12px; }
.faq-search { width: 100%; max-width: 520px; }

/* Forms */
form.stack { display: grid; gap: 18px; background: var(--surface); border-radius: 18px; padding: clamp(20px, 4vw, 30px); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field label { font: 700 1rem var(--body); }
.hint { font: 400 .92rem var(--body); color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 14px 15px; border: 1.5px solid var(--line-strong); border-radius: 10px; font: 400 1.05rem var(--body); color: var(--ink); background: var(--surface); min-height: 52px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(14, 90, 87, .2); }
textarea { min-height: 120px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status { font-weight: 700; color: #B42318; }
.form-status:empty { display: none; }
.hp { position: absolute; left: -5000px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 calc(40px + var(--tabbar) + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { font-size: .95rem; color: var(--ink); margin: 0 0 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .92rem; }

/* ---------- Samples page ---------- */
.sample-flag { display: inline-flex; align-items: center; gap: 8px; background: var(--sun-soft); color: var(--warn); border: 1px solid #EBD3A5; border-radius: 999px; padding: 5px 12px; font: 800 .85rem var(--body); }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.mock-bar span { margin-left: 6px; overflow-wrap: anywhere; }
.mock-body { padding: clamp(16px, 3vw, 26px); display: grid; gap: 16px; }
.mock-hero { background: #23485E; color: #fff; border-radius: 12px; padding: 22px; display: grid; gap: 6px; }
.mock-hero b { font: 700 1.45rem/1.15 var(--display); }
.mock-hero span { color: #D8E4EC; }
.mock-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 4px; background: var(--bg); }
.mock-tile b { font-size: 1rem; }
.mock-tile span { font-size: .9rem; color: var(--muted); }
.mock-login { display: inline-flex; align-self: start; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: .95rem; }
.folders { list-style: none; margin: 0; padding: 0; display: grid; }
.folders li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.folders li:first-child { border-top: 0; }
.folders svg { width: 26px; height: 26px; color: var(--brand); }
.folders b { font-size: 1rem; }
.folders small { grid-column: 2 / -1; color: var(--muted); font-size: .9rem; }
.folders .count { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 30px); display: grid; gap: 16px; }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.report-head b { font: 700 1.3rem var(--display); }
.report-head span { color: var(--muted); font-size: .92rem; }
.report table { min-width: 520px; }
.report .score { display: flex; flex-wrap: wrap; gap: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 112px 22px minmax(0, 1fr); gap: 0 14px; padding-bottom: 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 136px; top: 22px; bottom: -2px; width: 2px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline .t { font-weight: 700; font-size: .95rem; color: var(--muted); padding-top: 1px; font-variant-numeric: tabular-nums; }
.timeline .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 4px solid var(--brand-soft); margin-top: 2px; position: relative; z-index: 1; }
.timeline .what b { display: block; }
.timeline .what span { color: var(--muted); font-size: .97rem; }
.email-mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.email-mock .hdr { padding: 14px 18px; background: var(--bg); border-bottom: 1px solid var(--line); display: grid; gap: 2px; font-size: .95rem; }
.email-mock .hdr span { color: var(--muted); }
.email-mock .bdy { padding: 18px; display: grid; gap: 10px; }

/* ---------- Word guide ---------- */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.term { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 6px; align-content: start; scroll-margin-top: 20px; }
.term dt { font: 700 1.12rem var(--body); color: var(--ink); }
.term dd { margin: 0; color: var(--muted); }
.term dd b { color: var(--ink); }
.az { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.az a { text-decoration: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .95rem; color: var(--ink); }
.az a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Phone tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 980px) {
  .head-call { display: none; }
}
@media (max-width: 820px) {
  :root { --tabbar: 78px; }
  body { font-size: 18px; }
  .site-header { padding: 12px 0; }
  .switch { order: 3; width: 100%; }
  .switch a { flex: 1; text-align: center; padding: 10px 8px; font-size: .95rem; }
  .subnav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { grid-template-columns: 1fr; padding: 8px 0 48px; }
  section { padding: 56px 0; }
  .grid-3, .grid-2, .price-grid, .checklist, .row-2, .foot-grid, .glossary, .mock-row { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 38px minmax(0, 1fr); padding: 18px; gap: 4px 14px; }
  .steps li::before { width: 34px; height: 34px; }
  .timeline li { grid-template-columns: 22px minmax(0, 1fr); gap: 0 14px; }
  .timeline li::before { left: 10px; }
  .timeline .t { grid-column: 2; grid-row: 1; }
  .timeline .dot { grid-column: 1; grid-row: 1 / span 2; }
  .timeline .what { grid-column: 2; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 20px -12px rgba(28, 36, 48, .25);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; padding: 6px 2px; text-decoration: none; color: var(--muted); font-size: .86rem; font-weight: 700; border-radius: 12px; min-height: 60px; text-align: center; line-height: 1.15; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
  .tabbar a.go { color: #fff; background: var(--brand); }
}
@media (max-width: 420px) {
  .site-header { gap: 10px; }
  .logo { font-size: 1.02rem; gap: 8px; }
  .logo i { width: 30px; height: 30px; }
  .menu-btn { padding: 8px 12px; gap: 6px; }
  .btn { width: 100%; }
  .actions { flex-direction: column; align-items: stretch; }
  .switch a { font-size: .9rem; padding: 10px 4px; }
}

@media (max-width: 360px) {
  .switch a { font-size: .84rem; padding: 10px 2px; }
}
@media (max-width: 640px) {
  /* Wide tables: say plainly that they scroll sideways */
  .table-wrap:not(.stack)::before { content: "Swipe sideways to see the whole table"; display: block; position: sticky; left: 0; width: max-content; max-width: 100%;
    padding: 10px 16px; font-size: .92rem; font-weight: 600; color: var(--muted); }
  .band .table-wrap:not(.stack)::before { color: var(--night-muted); }
  /* The sample records check reads as simple cards on phones */
  .table-wrap.stack { border: 0; background: none; overflow: visible; }
  .stack table, .stack tbody, .stack tr, .stack th, .stack td { display: block; min-width: 0; width: auto; }
  .stack thead { display: none; }
  .stack tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
  .stack th, .stack td { border: 0; padding: 2px 0; }
  .stack td { color: var(--muted); }
  .stack td:last-child { padding-top: 8px; }
}

/* Full-screen menu sheet on phones */
.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(28, 36, 48, .55); display: flex; align-items: flex-end; }
.sheet-panel { background: var(--surface); color: var(--ink); width: 100%; border-radius: 22px 22px 0 0; padding: 18px max(20px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 4px; max-height: 88vh; overflow-y: auto; }
.sheet-panel .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); justify-self: center; margin-bottom: 8px; }
.sheet-panel a { display: flex; justify-content: space-between; align-items: center; padding: 15px 6px; min-height: 54px; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 1.1rem var(--body); color: var(--ink); }
.sheet-panel a::after { content: "\203A"; color: var(--muted); font-size: 1.5rem; }
.sheet-panel .label { font: 800 .9rem var(--body); color: var(--brand); margin-top: 12px; }
.sheet-panel .close { justify-self: end; background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 16px; font: 700 1rem var(--body); cursor: pointer; color: var(--ink); min-height: 46px; }

/* ---------- Assistant ---------- */
.asst-launch { position: fixed; z-index: 60; right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: calc(16px + var(--tabbar) + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 12px 18px 12px 14px;
  font: 700 1rem var(--body); cursor: pointer; box-shadow: 0 10px 26px -10px rgba(28, 36, 48, .6); min-height: 52px; }
.asst-launch svg { width: 22px; height: 22px; color: var(--sun); }
.asst-panel { position: fixed; z-index: 61; right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: calc(84px + var(--tabbar) + env(safe-area-inset-bottom, 0px));
  width: min(410px, calc(100vw - 32px)); height: min(600px, calc(100vh - 140px - var(--tabbar))); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(28, 36, 48, .45); display: flex; flex-direction: column; overflow: hidden; }
.asst-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: var(--brand); color: #fff; }
.asst-top strong { font: 700 1.05rem var(--body); display: block; }
.asst-top span { font-size: .85rem; color: #D7E8E5; }
.asst-x { background: rgba(255, 255, 255, .15); border: 0; border-radius: 10px; width: 42px; height: 42px; font-size: 1.1rem; cursor: pointer; color: #fff; }
.asst-log { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 12px; align-content: start; background: var(--bg); }
.msg { max-width: 92%; padding: 12px 14px; border-radius: 14px; font-size: 1rem; line-height: 1.5; display: grid; gap: 8px; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); justify-self: start; border-top-left-radius: 4px; }
.msg.me { background: var(--brand); color: #fff; justify-self: end; border-top-right-radius: 4px; }
.msg.me a { color: #fff; }
.msg ul, .msg ol { margin: 0; padding-left: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; font: 600 .95rem var(--body); cursor: pointer; text-align: left; min-height: 42px; }
.chips button:hover { border-color: var(--brand); color: var(--brand); }
.asst-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.asst-form input { flex: 1; min-width: 0; }
.asst-form button { background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 0 18px; font: 700 1rem var(--body); cursor: pointer; }
.asst-foot { padding: 0 12px 10px; font-size: .85rem; color: var(--muted); background: var(--surface); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (max-width: 820px) {
  .asst-launch .label { display: none; }
  .asst-launch { padding: 14px; }
  .asst-panel { left: 0; right: 0; width: 100%; bottom: 0; height: min(86vh, calc(100vh - 40px)); border-radius: 22px 22px 0 0; z-index: 80; }
  .asst-form { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Demo portal ---------- */
.demo-shell { background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.demo-url { font-size: .92rem; color: var(--muted); overflow-wrap: anywhere; }
.demo-body { padding: clamp(16px, 3vw, 30px); display: grid; gap: 22px; }
.demo-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.demo-tabs button { flex: none; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; font: 700 .98rem var(--body); color: var(--muted); cursor: pointer; min-height: 46px; }
.demo-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.doc-cat { margin: 0; }
.doc-cat .count { font: 600 .9rem var(--body); color: var(--muted); margin-left: 8px; }
.doc-list { list-style: none; margin: 0; padding: 0 20px 12px; display: grid; }
.doc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.doc-list .reg-meta { grid-column: 1 / -1; }
.login-card { max-width: 440px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: grid; gap: 16px; background: var(--surface); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat b { display: block; font: 700 1.6rem/1.1 var(--display); }
.stat span { font-size: .92rem; color: var(--muted); }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.viewer { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--bg); display: grid; gap: 8px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .tabbar, .asst-launch, .asst-panel, .sheet, .menu-btn, .switch, .subnav { display: none !important; } body { background: #fff; } }
