/* Assistrack public site. Warm paper, deep ink, evergreen brand, a serif for headings.
   Light and dark themes follow the visitor's device. No external resources. */

@font-face { font-family: "Newsreader"; src: url("/site/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/site/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #F7F3EC; --surface: #FFFFFF; --alt: #EFE9DF; --line: #E4DED3;
  --ink: #1C1B19; --muted: #5E5A52; --faint: #8A8478;
  --brand: #1F4D3A; --brand-hover: #173B2C; --on-brand: #FFFFFF; --brand-soft: #E3ECE6;
  --bronze: #8C5E2A; --bronze-soft: #F3E8DA;
  --chat-bg: #EAE3D7; --bubble-in: #FFFFFF; --bubble-out: #DCE9E0; --bubble-me: #F4E7D6;
  --danger: #9B2C1F;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 10px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(28, 27, 25, .05), 0 12px 32px -12px rgba(28, 27, 25, .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121311; --surface: #1A1C19; --alt: #171916; --line: #2D302B;
    --ink: #EDE8DF; --muted: #B3AC9F; --faint: #8C877D;
    --brand: #6FA88A; --brand-hover: #84B99C; --on-brand: #0E1912; --brand-soft: #1E2B24;
    --bronze: #C9A26B; --bronze-soft: #2A241B;
    --chat-bg: #151714; --bubble-in: #22251F; --bubble-out: #1F3328; --bubble-me: #2E271D;
    --danger: #E58A7C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); font-feature-settings: "cv11", "ss01"; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: var(--r); z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--bronze); margin-bottom: 14px; }
.h1, .hero h1 { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.05; }
.h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; max-width: 22ch; margin-bottom: 20px; }
.center .h2, .center.h2 { margin-left: auto; margin-right: auto; }
.h3 { font-family: var(--serif); font-size: 1.45rem; margin-bottom: 10px; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.lede { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.center .lede { margin-left: auto; margin-right: auto; }
.body-l { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.fine { font-size: .9rem; color: var(--faint); }
em { font-style: italic; color: var(--brand); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r); font: 600 1rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.link { background: none; border: 0; padding: 4px 0; color: var(--brand); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link[disabled] { color: var(--faint); text-decoration: none; cursor: default; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 1.3rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo:hover { color: var(--ink); }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--on-brand); font: 600 17px/1 var(--serif); }
.menu { display: none; }
.menu summary { list-style: none; display: flex; width: 44px; height: 44px; border-radius: var(--r); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .97rem; }
.nav a:not(.btn):hover { color: var(--brand); }
@media (max-width: 860px) {
  .nav-desk { display: none; }
  .menu { display: block; }
  .nav-mob { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-mob a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-mob .btn { margin-top: 16px; min-height: 48px; }
  .menu[open] summary span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu[open] summary span:nth-child(2) { opacity: 0; }
  .menu[open] summary span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { padding: 48px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; margin-bottom: 22px; }
.reassure { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; }
.reassure svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .hero { padding-top: 28px; } .hero-in { grid-template-columns: 1fr; gap: 40px; } }

/* the conversation */
.phone { margin: 0; justify-self: center; width: 100%; max-width: 420px; background: var(--chat-bg); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.phone-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--brand); color: var(--on-brand); }
.phone-bar strong { display: block; font-weight: 600; font-size: 1rem; line-height: 1.2; }
.phone-bar span:not(.avatar) { font-size: .8rem; opacity: .85; }
.phone .avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--on-brand); color: var(--brand); font: 600 16px/1 var(--serif); flex: none; }
.phone:has(.chat.typing) .phone-bar span:not(.avatar)::after { content: " · typing…"; }
.chat { list-style: none; margin: 0; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 8px; font-size: .93rem; line-height: 1.45; }
.chat .sep { align-self: center; margin: 6px 0 2px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); font-size: .74rem; font-weight: 500; text-align: center; }
.msg { position: relative; max-width: 84%; padding: 8px 11px 18px; border-radius: 12px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.msg time { position: absolute; right: 9px; bottom: 4px; font-size: .68rem; color: var(--faint); }
.msg.in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 4px; }
.msg.me { background: var(--bubble-me); font-weight: 600; }
.file { display: block; margin: -2px -5px 6px; padding: 8px 10px 8px 34px; border-radius: 8px; background: color-mix(in srgb, var(--chat-bg) 70%, transparent); font-size: .8rem; position: relative; }
.file::before { content: ""; position: absolute; left: 10px; top: 50%; width: 14px; height: 17px; margin-top: -8.5px; border-radius: 2px; background: var(--danger); opacity: .8; }
.phone figcaption { padding: 4px 16px 14px; font-size: .74rem; color: var(--faint); text-align: center; }
.chat.play > li { opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.chat.play > li.shown { opacity: 1; transform: none; }

/* ---------- strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-in { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-top: 0; padding-bottom: 0; margin: 0 auto; }
.strip li { padding: 26px 22px; border-left: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.strip li:first-child { border-left: 0; padding-left: 0; }
.strip strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
@media (max-width: 900px) { .strip-in { grid-template-columns: 1fr 1fr; } .strip li { border-left: 0; padding: 20px 12px 20px 0; } }
@media (max-width: 520px) { .strip-in { grid-template-columns: 1fr; } .strip li { padding: 16px 0; border-top: 1px solid var(--line); } .strip li:first-child { border-top: 0; } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding-top: 24px; }
.section-alt { background: var(--alt); }
.section-ink { background: var(--brand); color: var(--on-brand); }
.section-ink .eyebrow { color: color-mix(in srgb, var(--on-brand) 75%, transparent); }
.section-ink .body-l { color: color-mix(in srgb, var(--on-brand) 86%, transparent); }
.page-head { padding: 64px 0 32px; }
.final { text-align: center; }
.final .btn { margin-top: 12px; }
@media (max-width: 700px) { .section { padding: 64px 0; } .page-head { padding: 40px 0 16px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { padding-top: 22px; border-top: 1px solid var(--ink); }
.steps h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; margin: 14px 0 10px; }
.steps p { color: var(--muted); }
.step-n { font: 500 .95rem/1 var(--serif); color: var(--bronze); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 8px; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card h3, .fact h3 { margin-bottom: 8px; }
.card p, .fact p { color: var(--muted); margin: 0; font-size: .97rem; }
.fact { padding: 20px 0; border-top: 1px solid var(--line); }
.more { margin-top: 28px; font-weight: 600; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); }
.checks li strong { color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--brand); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.checks.small li { font-size: .95rem; }

.brief { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); font-size: .98rem; }
.brief ul { margin: 0 0 1em; padding-left: 20px; color: var(--muted); }
.brief li { margin-bottom: 6px; }
.brief-time { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bronze); }
.brief-note { font-size: .78rem; color: var(--faint); margin: 0; }

.teaser { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.teaser > div { max-width: 640px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid var(--muted); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-bottom: 8px; max-width: 64ch; }

/* ---------- pricing ---------- */
.toggles { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.toggles[hidden] { display: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--alt); border: 1px solid var(--line); }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 .92rem/1 var(--sans); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.save { font-weight: 500; color: var(--brand); margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.plan-main { border: 1.5px solid var(--brand); box-shadow: var(--shadow); }
.plan h2 { font-family: var(--serif); font-size: 1.6rem; }
.plan-for { color: var(--muted); font-size: .95rem; min-height: 3em; margin: 8px 0 18px; }
.badge { position: absolute; top: -12px; left: 28px; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.price { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amt { font: 500 2.3rem/1.1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price .per { color: var(--muted); font-size: .95rem; }
.price-talk .amt { font-size: 2rem; }
.billed { font-size: .88rem; color: var(--faint); margin: 4px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: .95rem; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 5px; height: 10px; border: solid var(--brand); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.plans + .fine { margin-top: 24px; }

/* ---------- long-form pages ---------- */
.prose h2 { font-family: var(--serif); font-size: 1.55rem; margin: 44px 0 12px; }
.prose h3 { margin: 22px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--alt); }
tr:last-child td { border-bottom: 0; }

/* ---------- request access ---------- */
.start { padding: 48px 0 96px; }
.start-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.start-side p { color: var(--muted); }
.start-side .checks { margin-top: 24px; }
@media (max-width: 860px) { .start { padding-top: 24px; } .start-in { grid-template-columns: 1fr; gap: 28px; } .start-side .checks { display: none; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 520px) { .panel { padding: 22px 18px; } }
.panel h2 { font-family: var(--serif); font-size: 1.75rem; margin-bottom: 10px; outline: none; }
.panel form { margin-top: 20px; }
label, legend { display: block; font-weight: 600; font-size: .95rem; margin: 18px 0 8px; }
.opt { font-weight: 400; color: var(--faint); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type=email], input[type=tel], input[type=text], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  color: var(--ink); font: 400 1rem/1.4 var(--sans); transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
textarea { resize: vertical; min-height: 88px; }
.code { font: 600 1.6rem/1 var(--sans); letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.hint { font-size: .87rem; color: var(--faint); margin: 6px 0 0; }
.panel .btn-block, .btn-row { margin-top: 26px; }
.btn-row { display: flex; justify-content: space-between; gap: 12px; }
.btn-row .btn-primary { flex: 1; }
.row-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: .92rem; }
.form-error { margin: 0 0 8px; padding: 10px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: .93rem; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-weight: 500; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex: none; }
.progress { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.progress span { width: 36px; height: 4px; border-radius: 2px; background: var(--line); }
.progress span.on { background: var(--brand); }
.progress em { font-style: normal; color: var(--faint); font-size: .85rem; margin-left: 8px; }
.preview { margin-top: 20px; padding: 16px; border-radius: var(--r); background: var(--chat-bg); }
.preview-label { font-size: .78rem; color: var(--faint); margin-bottom: 8px; }
.bubble { display: inline-block; margin: 0; padding: 9px 12px; border-radius: 12px; border-top-left-radius: 4px; background: var(--bubble-in); font-size: .95rem; }
.timeline { list-style: none; padding: 0; margin: 24px 0; }
.timeline li { position: relative; padding: 0 0 22px 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 26px; bottom: 2px; width: 1.5px; background: var(--line); }
.timeline li.done::before { background: var(--brand); border-color: var(--brand); }
.timeline li.now::before { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 10px var(--brand); }
.timeline strong { display: block; }
.timeline span { color: var(--muted); font-size: .93rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.howto { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 0 14px; }
.howto summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: .95rem; color: var(--brand); }
.howto ol { margin: 0 0 10px; padding-left: 20px; color: var(--muted); font-size: .93rem; display: grid; gap: 8px; }
.howto .hint { margin-bottom: 14px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--paper); }
.foot-in { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand p { color: var(--muted); font-size: .95rem; margin-top: 14px; }
.foot-links { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-links h2 { font: 600 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-links a { display: block; color: var(--ink); text-decoration: none; padding: 5px 0; font-size: .95rem; }
.foot-links a:hover { color: var(--brand); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--faint); }

/* ---------- illustrations ---------- */
figure { margin: 0; }
figcaption { font-size: .82rem; color: var(--faint); }

/* how messages flow */
.flow { display: grid; grid-template-columns: 1fr 40px 1.05fr 40px 1fr; align-items: center; gap: 12px; margin-top: 56px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.flow figcaption { grid-column: 1 / -1; margin-top: 8px; text-align: center; }
.flow-h { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.flow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.flow-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: .9rem; line-height: 1.35; }
.flow-list strong { display: block; font-size: .88rem; }
.flow-list span { color: var(--muted); font-size: .84rem; }
.flow-arrow { position: relative; height: 2px; background: var(--brand); opacity: .55; }
.flow-arrow::after { content: ""; position: absolute; right: -1px; top: -5px; width: 10px; height: 10px; border: solid var(--brand); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.flow-assistant { padding: 18px; border-radius: var(--r-lg); background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow); }
.flow-name { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; font-size: 1.05rem; flex-wrap: wrap; }
.flow-name small { flex-basis: 100%; margin-left: 42px; margin-top: -8px; font-weight: 400; font-size: .8rem; opacity: .8; }
.flow-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--on-brand); color: var(--brand); font: 600 15px/1 var(--serif); }
.flow-does { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.flow-does li { position: relative; padding-left: 20px; }
.flow-does li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 5px; height: 9px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); opacity: .85; }
.flow-out { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); }
.flow-out + .flow-out { margin-top: 10px; }
.flow-out strong { display: block; font: 500 1.35rem/1.2 var(--serif); }
.flow-out span { color: var(--muted); font-size: .88rem; }
.flow-you { border-color: var(--bronze); background: var(--bronze-soft); }
.flow-you strong { color: var(--bronze); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; padding: 22px 18px; gap: 14px; }
  .flow-arrow { justify-self: center; width: 2px; height: 28px; }
  .flow-arrow::after { right: -5px; top: auto; bottom: -1px; transform: rotate(135deg); }
  .flow-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .flow-list { grid-template-columns: 1fr; } }

/* spending limit */
.limit { margin-top: 32px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.limit-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.limit-tag { padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .82rem; font-weight: 600; }
.meter { position: relative; height: 46px; }
.meter-track { position: absolute; left: 0; right: 0; top: 10px; height: 10px; border-radius: 5px; background: var(--brand-soft); overflow: hidden; }
.meter-over { position: absolute; left: 75%; right: 0; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--danger) 30%, transparent) 0 4px, transparent 4px 8px); }
.meter-mark { position: absolute; top: 2px; width: 2px; height: 26px; background: var(--ink); }
.m-limit { left: 75%; }
.meter-dot { position: absolute; top: 7px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.m-agreed { left: 72%; background: var(--brand); }
.m-asked { left: 85%; background: var(--danger); }
.meter-scale { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: .75rem; color: var(--faint); }
.limit-rows { list-style: none; padding: 0; margin: 14px 0 12px; display: grid; gap: 10px; }
.limit-rows li { display: flex; gap: 12px; align-items: baseline; padding-left: 22px; position: relative; font-size: .93rem; }
.limit-rows li::before { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; }
.limit-rows .ok::before { background: var(--brand); }
.limit-rows .over::before { background: var(--danger); }
.limit-rows strong { font-variant-numeric: tabular-nums; min-width: 80px; }
.limit-rows span { color: var(--muted); }

/* dashboard */
.dash-intro { max-width: 62ch; }
.dash { margin-top: 36px; }
.dash > figcaption { margin-top: 12px; text-align: center; }
.dash-bar, .dash-body { background: var(--surface); border: 1px solid var(--line); }
.dash-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; }
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dash-bar span { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: var(--alt); color: var(--faint); font-size: .78rem; }
.dash-body { display: grid; grid-template-columns: 190px 1fr; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: var(--shadow); font-size: .88rem; }
.dash-nav { padding: 18px 12px; background: var(--brand); color: color-mix(in srgb, var(--on-brand) 78%, transparent); }
.dash-nav p { margin: 0 0 2px; padding: 8px 10px; border-radius: 8px; display: flex; justify-content: space-between; }
.dash-nav p.on { background: color-mix(in srgb, var(--on-brand) 14%, transparent); color: var(--on-brand); font-weight: 600; }
.dash-nav b { padding: 0 7px; border-radius: 999px; background: var(--bronze); color: #fff; font-size: .75rem; line-height: 1.6; }
.dash-nav .dash-brand { justify-content: flex-start; gap: 8px; margin-bottom: 14px; color: var(--on-brand); font: 600 1.05rem/1.2 var(--serif); }
.dash-brand span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--on-brand); color: var(--brand); font-size: 13px; }
.dash-main { padding: 22px 24px 24px; background: var(--paper); min-width: 0; }
.dash-hi { margin: 0; font: 500 1.35rem/1.2 var(--serif); }
.dash-date { margin: 2px 0 16px; color: var(--faint); font-size: .8rem; }
.dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.dash-tile { padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.dash-tile span { display: block; color: var(--muted); font-size: .74rem; }
.dash-tile strong { font: 500 1.3rem/1.3 var(--serif); font-variant-numeric: tabular-nums; }
.dash-tile.gold { background: var(--bronze-soft); border-color: color-mix(in srgb, var(--bronze) 40%, transparent); }
.dash-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.dash-card { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.dash-card-h { margin: 0 0 10px; font-weight: 600; }
.dash-appr { padding: 10px 0; border-top: 1px solid var(--line); }
.dash-appr p { margin: 0; }
.dash-appr p:first-child { display: flex; justify-content: space-between; gap: 8px; }
.dash-appr em, .dash-pay em { font-style: normal; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-note { color: var(--muted); font-size: .8rem; margin: 2px 0 8px !important; }
.dash-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.dash-btns span { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); font-size: .76rem; font-weight: 600; }
.dash-btns .b-ok { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.dash-pay { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 9px 0; border-top: 1px solid var(--line); }
.dash-pay small { display: block; color: var(--faint); font-size: .75rem; }
@media (max-width: 860px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-nav { display: none; }
  .dash-main { padding: 16px; }
  .dash-tiles { grid-template-columns: 1fr 1fr; }
  .dash-cols { grid-template-columns: 1fr; }
  .dash-bar span { display: none; }
}

/* ---------- places ---------- */
.places { align-items: center; }
.places-list { margin-top: 24px; }
.places-phone { justify-self: end; }
@media (max-width: 860px) { .places-phone { justify-self: center; } }
.places-phone .chat { padding-bottom: 12px; }
.msg.loc { padding: 6px 6px 18px; width: 230px; }
.loc-map { display: block; position: relative; height: 96px; border-radius: 8px; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 47%, color-mix(in srgb, var(--surface) 85%, transparent) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 58%, color-mix(in srgb, var(--surface) 85%, transparent) 58% 63%, transparent 63%),
    linear-gradient(35deg, transparent 30%, color-mix(in srgb, var(--surface) 70%, transparent) 30% 33%, transparent 33%),
    color-mix(in srgb, var(--brand) 18%, var(--chat-bg)); }
.loc-map i { position: absolute; left: 50%; top: 44%; width: 18px; height: 18px; margin: -18px 0 0 -9px; border-radius: 50% 50% 50% 0;
  background: var(--danger); transform: rotate(-45deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.loc-map i::after { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.loc-label { display: block; padding: 6px 6px 0; font-size: .82rem; font-weight: 600; }
.place { display: block; margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--surface) 65%, transparent); }
.place b { display: block; font-weight: 600; }
.place span { display: block; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.place a { display: inline-block; margin-top: 2px; font-size: .8rem; font-weight: 600; color: var(--brand); }
