:root {
  --ink: #2B2620;
  --muted: #6C6456;
  --soft-text: #4C463C;
  --paper: #F5EFE4;
  --surface: #FCFAF4;
  --surface-2: #F8F4EA;
  --line: #E7DECE;
  --line-dark: #8E8270;   /* 4.54:1 on white — was #b7b7b7 at 2.01:1, and it is
                             the only boundary 22 form fields have (WCAG 1.4.11). */
  --blue: #2F7355;
  --blue-dark: #265E45;
  --blue-soft: #E5EDE5;
  --cyan: #7FC2A0;
  --cyan-soft: #DCEDE2;
  --yellow: #E8C169;
  --yellow-soft: #F7EDD8;
  --orange: #A06B22;
  --orange-soft: #F7EBD9;
  --green: #1F7A4D;
  --green-soft: #DFF0E4;
  --purple: #6B4C93;
  --purple-soft: #EFE8F5;
  --red: #A4262C;
  --red-soft: #FBE6E4;
  --shadow-sm: 0 2px 10px rgba(43, 38, 32, .07);
  --shadow-md: 0 18px 50px rgba(43, 38, 32, .13);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1280px;
  --sans: "Hanken Grotesk", "Segoe UI", Arial, Helvetica, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--cyan-soft); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 9999; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-160%); text-decoration: none; }
.skip-link:focus { transform: none; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 48px), 880px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #4f4f4f; font: 700 11px/1 var(--mono); letter-spacing: .085em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.eyebrow.orange::before { background: var(--orange); }
.eyebrow.purple::before { background: var(--purple); }
.eyebrow.green::before { background: var(--green); }

/* Public navigation */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.site-header-inner { width: min(calc(100% - 48px), 1440px); min-height: 72px; margin: auto; display: flex; align-items: center; gap: 26px; }
.wordmark { display: inline-flex; align-items: center; color: var(--ink); font-size: 24px; font-weight: 700; letter-spacing: -.055em; line-height: 1; text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.site-nav a { padding: 10px 11px; border-radius: 7px; color: #444; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.site-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.text-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.site-account { display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-account::before { content: ""; width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; }
.mobile-menu { display: none; width: 42px; height: 42px; border: 0; background: var(--surface); border-radius: 8px; cursor: pointer; }
.mobile-menu span, .mobile-menu::before, .mobile-menu::after { content: ""; display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--ink); }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; padding: 11px 18px; border: 1px solid transparent; border-radius: 8px; background: var(--blue); color: white; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.button:hover { background: var(--blue-dark); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.button.secondary { border-color: var(--line-dark); background: white; color: var(--ink); }
.button.secondary:hover { background: var(--surface); }
.button.ghost { border-color: transparent; background: transparent; color: var(--blue); }
.button.ghost:hover { background: var(--blue-soft); box-shadow: none; }
.button.small { min-height: 38px; padding: 8px 13px; font-size: 12px; }
.button.danger { background: var(--red); }
.button.danger:hover { background: #8d1f24; }
.button[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Public layouts */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 5.5vw, 96px) 0 clamp(52px, 5vw, 84px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 10% 0%, rgba(80,230,255,.25), transparent 31rem), radial-gradient(circle at 92% 13%, rgba(0,103,184,.16), transparent 29rem), white; }
.hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -300px; bottom: -410px; z-index: -1; border: 1px solid rgba(0,103,184,.22); border-radius: 50%; box-shadow: 0 0 0 70px rgba(0,103,184,.025), 0 0 0 140px rgba(0,103,184,.018); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr); gap: clamp(40px, 5vw, 76px); align-items: center; }
.display { max-width: 12ch; margin: 0; font-size: clamp(56px, 6.4vw, 90px); font-weight: 700; letter-spacing: -.073em; line-height: .92; text-wrap: balance; }
.display .accent { color: var(--blue); }
.product-display { max-width: 11ch; margin: 0; font-size: clamp(48px, 5.2vw, 72px); font-weight: 700; letter-spacing: -.068em; line-height: .94; text-wrap: balance; }
.lede { max-width: 690px; margin: 22px 0 0; color: var(--muted); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.microcopy { margin: 14px 0 0; color: var(--soft-text); font-size: 12px; }
.hero-card { border: 1px solid rgba(0,0,0,.15); border-radius: var(--radius-lg); background: rgba(255,255,255,.93); box-shadow: var(--shadow-md); overflow: hidden; }
.hero-card-top { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.hero-card-body { padding: clamp(24px, 3vw, 38px); }
.hero-card h2 { margin: 0; font-size: clamp(27px, 3.2vw, 42px); line-height: 1.04; letter-spacing: -.045em; }
.hero-card p { color: var(--muted); }
.brief-form input[type="text"] { width: 100%; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--line-dark); border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.brief-form textarea { width: 100%; min-height: 132px; padding: 16px; border: 1px solid var(--line-dark); border-radius: 10px; resize: vertical; background: white; color: var(--ink); }
.brief-options { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.brief-option { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.brief-option[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.route-result { display: none; margin-top: 15px; padding: 15px; border-left: 4px solid var(--blue); background: var(--blue-soft); }
.route-result.is-visible { display: block; }
.route-result b { display: block; margin-bottom: 4px; }

.proof-strip { border-block: 1px solid var(--line); background: var(--surface-2); }
.proof-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-stat { min-height: 110px; display: flex; align-items: center; gap: 16px; padding: 22px 28px; border-right: 1px solid var(--line); }
.proof-stat:last-child { border-right: 0; }
.proof-stat strong { font-size: 32px; letter-spacing: -.05em; }
.proof-stat span { max-width: 18ch; color: var(--muted); font-size: 12px; line-height: 1.4; }

.section { padding: clamp(56px, 5.5vw, 90px) 0; }
.section.soft { background: var(--surface-2); }
.section.blue { background: var(--blue); color: white; }
.section.yellow { background: var(--yellow-soft); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 44px; align-items: end; margin-bottom: 34px; }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: -26px; }
.section-head h2 { max-width: 14ch; margin: 0; font-size: clamp(38px, 4.4vw, 58px); font-weight: 700; letter-spacing: -.06em; line-height: .96; text-wrap: balance; }
.section-head > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.section.blue .section-head > p, .section.blue .eyebrow { color: rgba(255,255,255,.95); }
.section.blue .eyebrow::before { background: var(--cyan); }
.center-head { max-width: 800px; margin: 0 auto 50px; text-align: center; }
.center-head h2 { margin: 0; font-size: clamp(38px, 4.2vw, 56px); line-height: .98; letter-spacing: -.058em; }
.center-head p { max-width: 650px; margin: 22px auto 0; color: var(--muted); font-size: 16px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-art { height: 180px; position: relative; overflow: hidden; padding: 26px; }
.product-card:nth-child(1) .product-art { background: var(--cyan-soft); }
.product-card:nth-child(2) .product-art { background: var(--yellow-soft); }
.product-card:nth-child(3) .product-art { background: var(--blue-soft); }
.product-card:nth-child(4) .product-art { background: var(--purple-soft); }
.product-art::before, .product-art::after { content: ""; position: absolute; border: 2px solid currentColor; opacity: .58; }
.product-art::before { width: 110px; height: 72px; right: 25px; bottom: 26px; border-radius: 8px; }
.product-art::after { width: 54px; height: 96px; right: 56px; bottom: 40px; border-radius: 8px; background: rgba(255,255,255,.45); }
.product-card:first-child .product-art::before { width: 120px; height: 120px; border-radius: 50%; box-shadow: -48px 36px 0 -20px rgba(0,103,184,.2); }
.product-card:last-child .product-art::before { transform: rotate(45deg); border-color: var(--purple); }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 26px; }
.kicker { color: var(--soft-text); font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.product-body h3 { margin: 15px 0 10px; font-size: 25px; line-height: 1.08; letter-spacing: -.035em; }
.product-body p { margin: 0; color: var(--muted); font-size: 13px; }
.product-price { margin-top: auto; padding-top: 24px; font-size: 13px; font-weight: 700; }
.product-link { display: block; margin-top: 12px; color: var(--blue); font-size: 13px; font-weight: 700; }

.model-flow { display: grid; grid-template-columns: 1fr 46px 1fr 46px 1fr; gap: 0; align-items: stretch; }
.model-node { min-height: 230px; padding: 28px; border: 1px solid rgba(255,255,255,.27); border-radius: var(--radius); background: rgba(255,255,255,.09); }
.model-node span { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cyan); color: var(--ink); font-weight: 800; }
.model-node h3 { margin: 20px 0 9px; font-size: 25px; }
.model-node p { margin: 0; color: rgba(255,255,255,.94); font-size: 13px; }
.model-arrow { display: flex; align-items: center; justify-content: center; color: #4a5568; font-size: 26px; }
.section.blue .model-arrow { color: #cfe6f7; }

.ui-window { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-md); }
.ui-window-bar { min-height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 15px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ui-window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #aaa; }
.ui-window-bar i:last-child { background: var(--orange); }
.ui-window-bar span { margin-left: auto; color: var(--soft-text); font: 600 10px/1 var(--mono); }
.ui-layout { display: grid; grid-template-columns: 210px 1fr; min-height: 430px; }
.ui-sidebar { padding: 24px 18px; border-right: 1px solid var(--line); background: var(--surface-2); }
.ui-brand { margin-bottom: 22px; font-weight: 700; }
.ui-nav-item { display: block; margin: 4px 0; padding: 9px 10px; border-radius: 7px; color: var(--muted); font-size: 12px; }
.ui-nav-item.active { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.ui-main { padding: 30px; overflow: hidden; }
.ui-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.ui-title h3 { margin: 0; font-size: 25px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
.metric strong { display: block; font-size: 25px; }
.metric small { color: var(--muted); }
.data-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-table th { color: var(--soft-text); font-size: 10px; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #777; }
.status.good { background: var(--green-soft); color: #0b5a0b; }
.status.good::before { background: var(--green); }
.status.warn { background: var(--yellow-soft); color: #6b4d00; }
.status.warn::before { background: #b37b00; }
.status.blue { background: var(--blue-soft); color: var(--blue-dark); }
.status.blue::before { background: var(--blue); }
.status.red { background: var(--red-soft); color: var(--red); }
.status.red::before { background: var(--red); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.feature-number { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font: 700 12px/1 var(--mono); }
.feature-card h3 { margin: 22px 0 10px; font-size: 22px; letter-spacing: -.03em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; }
.feature-card ul, .check-list { list-style: none; margin: 18px 0 0; padding: 0; }
.feature-card li, .check-list li { position: relative; padding: 8px 0 8px 24px; border-top: 1px solid var(--line); color: #444; font-size: 12px; }
.feature-card li::before, .check-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }

.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.proof-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.proof-preview { min-height: 280px; padding: 28px; background: var(--surface); }
.proof-preview.blue { background: var(--blue-soft); }
.proof-preview.yellow { background: var(--yellow-soft); }
.proof-preview.green { background: var(--green-soft); }
.proof-preview.purple { background: var(--purple-soft); }
.proof-body { padding: 28px; }
.proof-body h3 { margin: 13px 0 9px; font-size: 27px; letter-spacing: -.035em; }
.proof-body p { color: var(--muted); }
.proof-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.mini-app { overflow: hidden; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.mini-app-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.mini-app-body { padding: 14px; }
.mini-row { display: grid; grid-template-columns: 1fr 1.4fr .8fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.mini-row:last-child { border-bottom: 0; }
.receipt-list { display: grid; gap: 8px; }
.receipt-item { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; background: rgba(255,255,255,.76); font-size: 11px; }
.receipt-item::before { content: "✓"; color: var(--green); font-weight: 800; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.pricing-grid.three { grid-template-columns: repeat(3, 1fr); }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.price-card.featured { border: 2px solid var(--blue); }
.price-card .tag { align-self: flex-start; margin-bottom: 22px; }
.price-card h2, .price-card h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.price-card > p { color: var(--muted); font-size: 13px; }
.price { margin: 20px 0 8px; font-size: 52px; font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.price small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price-card .check-list { margin-bottom: 25px; }
.price-card .button { margin-top: auto; }
.tag { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 10px; font-weight: 700; }
.tag.yellow { background: var(--yellow-soft); color: #745000; }
.tag.green { background: var(--green-soft); color: #0b5a0b; }
.tag.purple { background: var(--purple-soft); color: var(--purple); }

.faq-groups { display: grid; gap: 34px; }
.faq-group h2 { margin: 0 0 16px; font-size: 30px; letter-spacing: -.035em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 68ch; margin: -5px 0 24px; color: var(--muted); }

.form-card { padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: #454545; font-size: 12px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border: 1px solid var(--line-dark); border-radius: 8px; background: white; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field-note { margin-top: 7px; color: var(--soft-text); font-size: 10px; }
.form-status { display: none; margin-top: 15px; padding: 12px 14px; border-left: 4px solid var(--green); background: var(--green-soft); font-size: 12px; }
.form-status.is-visible { display: block; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 790px); gap: 70px; align-items: start; }
.legal-nav { position: sticky; top: 104px; }
.legal-nav a { display: block; padding: 8px 0; color: var(--muted); font-size: 12px; text-decoration: none; }
.legal-nav a:hover { color: var(--blue); }
.legal-copy h1 { margin: 0 0 18px; font-size: clamp(40px, 5vw, 58px); line-height: 1.02; letter-spacing: -.055em; }
.legal-copy .updated { color: var(--soft-text); font-size: 12px; }
.legal-copy h2 { margin: 50px 0 14px; font-size: 27px; letter-spacing: -.035em; }
.legal-copy h3 { margin: 28px 0 8px; font-size: 18px; }
.legal-copy p, .legal-copy li { color: #454545; font-size: 15.5px; line-height: 1.72; max-width: 68ch; }
.legal-copy h2, .legal-copy h3 { max-width: 40ch; }
.legal-callout { margin: 28px 0; padding: 20px; border-left: 4px solid var(--blue); background: var(--blue-soft); }

.cta-band { padding: clamp(52px, 5vw, 82px) 0; background: var(--blue-soft); text-align: center; }
.cta-band h2 { max-width: 15ch; margin: 0 auto; font-size: clamp(40px, 4.6vw, 62px); line-height: .97; letter-spacing: -.06em; }
.cta-band p { max-width: 610px; margin: 22px auto 28px; color: var(--muted); }

.site-footer { padding: 62px 0 28px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 40px; }
.footer-grid p { max-width: 34ch; color: #4f4f4f; font-size: 12px; }
.footer-grid h2, .footer-grid .footer-heading { margin: 0 0 13px; font-size: 12px; font-weight: 700; color: var(--ink); }
.footer-grid a { display: block; padding: 4px 0; color: #4f4f4f; font-size: 12px; text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 45px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--soft-text); font-size: 11px; }

/* Sign in */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 5vw, 72px); background: var(--blue); color: white; }
.auth-brand::after { content: ""; position: absolute; width: 480px; height: 480px; right: -170px; bottom: -180px; border: 2px solid rgba(255,255,255,.3); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.05), 0 0 0 130px rgba(255,255,255,.04); }
.auth-brand .wordmark { color: white; }
.auth-brand h1 { max-width: 9ch; margin: 0; font-size: clamp(54px, 7vw, 92px); line-height: .92; letter-spacing: -.07em; }
.auth-brand p { max-width: 42ch; color: rgba(255,255,255,.8); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-box { width: min(100%, 450px); }
.auth-box h2 { margin: 0; font-size: 38px; letter-spacing: -.045em; }
.auth-box > p { color: var(--muted); }
.auth-box .button { width: 100%; margin-top: 10px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--soft-text); font-size: 11px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-note { margin-top: 22px; padding: 14px; border-left: 3px solid var(--blue); background: var(--blue-soft); color: var(--muted); font-size: 11px; }

/* Workspace */
.workspace-body { background: #f7f7f7; }
.workspace-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.workspace-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px; border-right: 1px solid var(--line); background: white; }
.workspace-sidebar .wordmark { padding: 8px 10px 22px; }
.workspace-org { margin-bottom: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.workspace-org b, .workspace-org small { display: block; }
.workspace-org b { font-size: 12px; }
.workspace-org small { margin-top: 3px; color: var(--soft-text); font-size: 10px; }
.workspace-nav-label { margin: 19px 10px 7px; color: var(--soft-text); font: 700 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.workspace-nav a { display: flex; align-items: center; gap: 10px; margin: 2px 0; padding: 9px 10px; border-radius: 7px; color: #484848; font-size: 12px; font-weight: 600; text-decoration: none; }
.workspace-nav a:hover, .workspace-nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-dark); }
.nav-dot { width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 2px; }
.workspace-main { min-width: 0; }
.workspace-topbar { min-height: 66px; display: flex; align-items: center; gap: 15px; padding: 0 28px; border-bottom: 1px solid var(--line); background: white; }
.workspace-menu { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.workspace-search { flex: 1; max-width: 510px; }
.workspace-search input { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font-size: 12px; }
.workspace-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.avatar { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); color: white; font-size: 11px; font-weight: 800; }
.demo-badge { padding: 5px 8px; border-radius: 999px; background: var(--yellow-soft); color: #6b4d00; font-size: 9px; font-weight: 800; }
.workspace-content { width: min(calc(100% - 56px), 1320px); margin: 0 auto; padding: 38px 0 80px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.page-head h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -.05em; }
.page-head p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.workspace-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.panel { grid-column: span 12; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.panel.span-8 { grid-column: span 8; }
.panel.span-7 { grid-column: span 7; }
.panel.span-6 { grid-column: span 6; }
.panel.span-5 { grid-column: span 5; }
.panel.span-4 { grid-column: span 4; }
.panel.span-3 { grid-column: span 3; }
.panel.blue { background: var(--blue); color: white; border-color: var(--blue); }
.panel.yellow { background: var(--yellow-soft); }
.panel.green { background: var(--green-soft); }
.panel.purple { background: var(--purple-soft); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-head h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.panel-head a { color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; }
.panel.blue .panel-head a { color: white; }
.panel p { color: var(--muted); font-size: 12px; }
.panel.blue p { color: rgba(255,255,255,.8); }
.big-stat { font-size: 42px; font-weight: 700; letter-spacing: -.055em; }
.stat-caption { color: var(--muted); font-size: 11px; }
.panel.blue .stat-caption { color: rgba(255,255,255,.8); }
.action-list { display: grid; gap: 8px; }
.action-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.action-item .signal { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 5px; border-radius: 50%; background: var(--blue); }
.action-item.warn .signal { background: #b37b00; }
.action-item.good .signal { background: var(--green); }
.action-item b, .action-item small { display: block; }
.action-item b { font-size: 12px; }
.action-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.build-card { padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.build-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.build-card h2, .build-card h3 { margin: 0; }
.build-card h2 { font-size: 23px; }
.build-card h3 { font-size: 17px; }
.build-card p { color: var(--muted); font-size: 12px; }
.build-products { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.build-links { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.build-links a { color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; }
.build-links a:hover { text-decoration: underline; }
.build-tabs { display: flex; gap: 2px; overflow-x: auto; margin: -8px 0 26px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.build-tabs a { padding: 12px 13px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.build-tabs a[aria-current="page"] { border-color: var(--blue); color: var(--blue); }
.progress-list { display: grid; gap: 0; }
.progress-item { position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.progress-item:last-child { border-bottom: 0; }
.progress-mark { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.progress-item.pending .progress-mark { background: var(--surface); color: var(--soft-text); }
.progress-item b, .progress-item small { display: block; }
.progress-item b { font-size: 12px; }
.progress-item small { color: var(--muted); font-size: 10px; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; padding: 0 0 22px 28px; }
.timeline-item::before { content: ""; position: absolute; left: 7px; top: 9px; bottom: -2px; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-item::after { content: ""; position: absolute; left: 3px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.timeline-item b, .timeline-item small { display: block; }
.timeline-item b { font-size: 12px; }
.timeline-item small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.settings-list { display: grid; }
.settings-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr) auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row b, .settings-row small { display: block; }
.settings-row b { font-size: 12px; }
.settings-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.settings-value { color: #454545; font-size: 12px; }
.member-row { display: grid; grid-template-columns: 1.1fr .7fr .7fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }
.member-name { display: flex; align-items: center; gap: 10px; }
.member-name .avatar { width: 30px; height: 30px; }
.member-name b, .member-name small { display: block; }
.member-name b { font-size: 12px; }
.member-name small { color: var(--muted); font-size: 10px; }
.toggle { position: relative; width: 42px; height: 24px; border: 0; border-radius: 999px; background: #bdbdbd; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform .16s; }
.toggle[aria-pressed="true"] { background: var(--blue); }
.toggle[aria-pressed="true"]::after { transform: translateX(18px); }
.danger-zone { border-color: #e7b4b7; }
.danger-zone .panel-head h2 { color: var(--red); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 300; max-width: 380px; padding: 14px 18px; border-radius: 9px; background: var(--ink); color: white; box-shadow: var(--shadow-md); font-size: 12px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.is-visible { opacity: 1; transform: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 250; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.48); }
.modal-backdrop.is-open { display: grid; }
.modal { width: min(100%, 600px); max-height: min(90vh, 760px); overflow-y: auto; padding: 26px; border-radius: 14px; background: white; box-shadow: var(--shadow-md); }
.modal-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 25px; }
.modal-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; }

@media (max-width: 1120px) {
  .site-nav { overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  /* A 1fr track still refuses to shrink below its content's intrinsic width, so
     a hero whose second column holds a wide diagram (software.html) forced the
     whole grid past the viewport and clipped the copy. min-width:0 lets the
     track shrink; the diagram then scales/scrolls inside its own box. */
  .hero-grid > * { min-width: 0; }
  .hero-grid .ez-dg { max-width: 100%; overflow-x: auto; }
  .hero-card { max-width: 860px; }
  .product-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.2fr repeat(2, 1fr); }
  .footer-grid > div:nth-child(n+4) { margin-top: 16px; }
  .panel.span-3 { grid-column: span 6; }
  .panel.span-4 { grid-column: span 6; }
  .panel.span-8 { grid-column: span 12; }
}

/* 880px, not 800: the horizontal nav needs ~880px, so between 801 and 879
   the bar clipped ("Pricing" -> "Pric") on iPad portrait and landscape phones. */
@media (max-width: 880px) {
  html { scroll-padding-top: 72px; }
  .shell, .narrow, .site-header-inner { width: calc(100% - 28px); }
  .site-header-inner { min-height: 64px; }
  .mobile-menu { display: block; margin-left: auto; }
  .site-nav { position: absolute; left: 0; right: 0; top: 64px; display: none; flex-direction: column; align-items: stretch; padding: 12px 14px 18px; border-bottom: 1px solid var(--line); background: white; box-shadow: var(--shadow-sm); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-actions .site-account, .site-actions .site-account-settings { display: none; }
  .site-nav .site-nav-account { display: block; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-weight: 700; }
  .site-nav .site-nav-account + .site-nav-account { border-top: 0; margin-top: 0; padding-top: 12px; }
  .site-actions .button { min-height: 40px; padding: 8px 12px; font-size: 12px; }
  .hero { padding-top: 64px; }
  .display { font-size: clamp(54px, 15vw, 76px); }
  .product-display { font-size: clamp(49px, 13vw, 72px); }
  .section-head { grid-template-columns: 1fr; gap: 22px; }
  .section-head .eyebrow { grid-column: auto; margin-bottom: 0; }
  .section-head h2 { font-size: 45px; }
  .proof-strip-grid { grid-template-columns: 1fr; }
  .proof-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-stat:last-child { border-bottom: 0; }
  .product-grid, .feature-grid, .proof-grid, .pricing-grid { grid-template-columns: 1fr; }
  .feature-grid.two, .pricing-grid.three { grid-template-columns: 1fr; }
  .feature-card:last-child:nth-child(odd) { grid-column: auto; }
  .model-flow { grid-template-columns: 1fr; gap: 9px; }
  .model-arrow { transform: rotate(90deg); }
  .ui-layout { grid-template-columns: 1fr; }
  .ui-sidebar { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .legal-layout { grid-template-columns: 1fr; gap: 35px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { min-height: 360px; }
  .auth-panel { padding: 50px 24px; }
  .workspace-shell { grid-template-columns: 1fr; }
  .workspace-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 220; width: 270px; transform: translateX(-105%); transition: transform .18s; box-shadow: var(--shadow-md); }
  .workspace-sidebar.is-open { transform: none; }
  .workspace-menu { display: block; }
  .workspace-content { width: calc(100% - 28px); padding-top: 28px; }
  .workspace-topbar { padding: 0 14px; }
  .workspace-search { display: none; }
  .page-head { display: block; }
  .page-actions { margin-top: 18px; }
  .panel.span-8, .panel.span-7, .panel.span-6, .panel.span-5, .panel.span-4, .panel.span-3 { grid-column: span 12; }
  .settings-row { grid-template-columns: 1fr auto; }
  .settings-value { grid-column: 1 / -1; grid-row: 2; }
  .member-row { grid-template-columns: 1fr auto; }
  .member-row > :nth-child(2), .member-row > :nth-child(3) { grid-column: 1; }
}

@media (max-width: 520px) {
  .site-actions .button { display: none; }
  .display { font-size: 50px; }
  .hero-card-body { padding: 20px; }
  .brief-options { display: grid; grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .section-head h2, .center-head h2 { font-size: 40px; }
  .ui-main { padding: 18px; }
  .data-table { display: block; overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 6px; }
  .auth-brand { min-height: 310px; padding: 30px 24px; }
  .auth-brand h1 { font-size: 52px; }
  .workspace-top-actions .demo-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Desktop keeps the account doors in the header bar; the in-menu copies are
   only for the phone layout, where that bar is collapsed. */
.site-nav-account { display: none; }

/* The explicit account door, injected next to the name when signed in. */
.site-account-settings { margin-left: 14px; color: #4f4f4f; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-account-settings:hover { color: var(--ink); text-decoration: underline; }


/* WARM TYPE. Display headings in the serif that carries Ez's voice; body,
   labels and every control stay in the grotesque for legibility. */
h1, h2, h3,
.display, .product-display, .ask, .center-head h2, .section-head h2, .cta-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.02em;
}
