/* Sonderous public site — tokens from docs-engine/brands/sonderous.yaml (2026-09-20) */
:root {
  --ink: #232B36; --muted: #6A6E76; --faint: #9AA0A8;
  --primary: #2E3A4C; --primary-dk: #1E2836;
  --accent: #C08A33; --warm: #A87627;
  --paper: #FFFFFF; --mist: #F5F1E6; --mist2: #EAE4D2; --line: #E2DCCB;
  --btn-text: #FFFFFF;
  --shadow: 0 30px 60px -28px rgba(30, 40, 54, .45), 0 12px 24px -16px rgba(30, 40, 54, .25);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
:root[data-theme="dark"] {
  --ink: #EDE9DE; --muted: #B5B2A8; --faint: #8A877E;
  --paper: #1E2836; --mist: #26313F; --mist2: #2E3A4C; --line: #3A4658;
  --primary: #EDE9DE; --primary-dk: #FFFFFF; --btn-text: #1E2836;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; font-size: 17px; }
a { color: var(--warm); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* header */
header.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-family: var(--serif); font-weight: 700; letter-spacing: .12em; font-size: 15px; text-transform: uppercase; }
.brand img { height: 30px; width: auto; }
nav a { margin-left: 20px; font-size: 15px; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }

/* type */
h1, h2, h3 { font-family: var(--serif); color: var(--primary); line-height: 1.15; letter-spacing: 0; margin: 0 0 14px; }
h1 { font-size: 46px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
p, li { max-width: 62ch; }
.lead { font-size: 20px; color: var(--muted); }
.kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; font-weight: 700; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.note { margin-top: 18px; }

/* sections */
main > section { padding: 72px 0; }
main > section.band { background: var(--mist); }
main > section.company { padding: 56px 0; }
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }

/* hero */
.hero { padding: 48px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 span { display: inline-block; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--primary); color: var(--btn-text); text-decoration: none; font-weight: 600; font-size: 16px; border: 1.5px solid var(--primary); }
.btn:hover { background: var(--primary-dk); border-color: var(--primary-dk); color: var(--btn-text); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--mist); color: var(--primary); }
.trust { margin: 0; }

/* product name over the Starter hero (2026-09-23) */
.product-name { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.product-name span { color: var(--primary); }
.hero-copy .kicker { margin-bottom: 18px; }
@media (max-width: 480px) { .product-name { font-size: 22px; letter-spacing: .08em; } }

/* hero setup steps — email · code · Allow → sorting (workshop 2026-09-23) */
.setup { margin: 22px 0 4px; max-width: 620px; }
.setup-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.setup-steps li { position: relative; background: var(--mist); border: 1px solid var(--line); border-radius: 14px; padding: 18px 12px 12px; min-width: 0; max-width: none; }
.setup-steps .num { position: absolute; top: -13px; left: 12px; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--btn-text); font-family: var(--serif); font-weight: 700; font-size: 14px; }
.setup-steps li + li::before { content: ""; position: absolute; left: -15px; top: 0; width: 15px; border-top: 1.6px solid var(--accent); }
.setup-steps .mini { display: block; width: 100%; height: auto; margin: 0 0 10px; filter: drop-shadow(0 6px 10px rgba(30, 40, 54, .12)); }
.setup-steps h3 { font-size: 15px; margin: 0 0 3px; }
.setup-steps p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: none; }
.setup-done { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--paper); border: 1px solid var(--accent); border-radius: 14px; padding: 13px 16px; box-shadow: 0 14px 30px -24px rgba(30, 40, 54, .35); }
.setup-done .icon { width: 24px; height: 24px; margin: 1px 0 0; }
.setup-done p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: none; }
.setup-done b { display: block; font-family: var(--serif); font-size: 18px; color: var(--primary); margin-bottom: 2px; }
:root[data-theme="dark"] .setup-done { background: var(--mist2); }
@media (max-width: 720px) {
  .setup-steps { grid-template-columns: 1fr; gap: 18px; }
  .setup-steps li + li::before { display: none; }
  .setup-steps .mini { max-width: 300px; }
}

/* hero assistant — one conversation + three payoffs (workshop 2026-09-23, replaces .setup in the hero) */
.hero-convo { box-shadow: var(--shadow); }
.hero-cards { margin-top: 40px; }
.hero-cards .node { padding: 18px 20px 16px; }
.hero-cards h3 { font-size: 17px; }
.hero-cards p { font-size: 14.5px; }
.convo { background: var(--mist); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; }
.convo p { max-width: 84%; margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.convo .stamp { max-width: none; margin: 0 0 8px; padding: 0 2px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; border-radius: 0; }
.convo .you { margin-left: auto; background: var(--primary); color: var(--btn-text); border-bottom-right-radius: 4px; }
.convo .bot { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.convo .bar { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
.convo .mic { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--primary); fill: none; stroke: var(--btn-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.assist-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.assist-in .node { background: var(--mist); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; min-width: 0; }
.assist-in .icon { width: 22px; height: 22px; margin-bottom: 8px; }
.assist-in h3 { font-size: 15px; margin: 0 0 3px; }
.assist-in p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: none; }
:root[data-theme="dark"] .convo .bot { background: var(--mist2); }
@media (max-width: 720px) {
  .assist-in { grid-template-columns: 1fr; gap: 10px; }
  .convo p { max-width: 90%; }
}

/* phones */
figure.phone { margin: 0; position: relative; }
figure.phone svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 30px rgba(30, 40, 54, .28)); }
figure.phone svg .frame { stroke: transparent; stroke-width: 0; }
:root[data-theme="dark"] figure.phone svg .frame { stroke: #4A566A; stroke-width: 2; }
.hero-phone { max-width: 300px; justify-self: center; }
.hero-phone::before { content: ""; position: absolute; inset: 10% -18% -6% -18%; background: var(--mist); border-radius: 999px; z-index: -1; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 900px; margin: 36px auto 0; align-items: end; }
.phones figure.phone:nth-child(2) { transform: translateY(-14px); }
figcaption { text-align: center; margin-top: 16px; font-family: var(--serif); font-size: 17px; color: var(--primary); }
figcaption span { color: var(--faint); font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 6px; }

/* carousel tabs (shown ≤720 px only) */
.phone-nav { display: none; justify-content: center; gap: 8px; margin: 14px auto 0; }
.phone-nav button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.phone-nav button.on { color: var(--btn-text); background: var(--primary); border-color: var(--primary); }
.phone-hint { display: none; }

/* features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.feature { background: var(--mist); border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 18px; transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(30, 40, 54, .35); }
.feature p { margin: 0; font-size: 16px; color: var(--muted); }
.icon { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; display: block; }

/* callout */
.callout { border-left: 4px solid var(--accent); background: var(--paper); padding: 18px 22px; border-radius: 0 14px 14px 0; }
main > section:not(.band) .callout { background: var(--mist); }
.callout.tall p { margin: 0 0 10px; font-family: var(--serif); font-size: 19px; color: var(--primary); }
.callout.tall p.kicker { font-family: var(--sans); font-size: 12px; color: var(--accent); margin-bottom: 14px; }
.callout.tall p.small { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 14px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 28px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { position: relative; padding-top: 4px; }
.steps .num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--primary); color: var(--btn-text); font-weight: 700; font-family: var(--serif); margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* promises */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 28px 0 22px; }
.promise p { margin: 0; color: var(--muted); font-size: 16px; }

/* checklist */
.checklist { list-style: none; padding: 22px 26px; margin: 8px 0 0; background: var(--mist); border: 1px solid var(--line); border-radius: 16px; }
.checklist li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); font-size: 16px; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 26px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); }

/* legal pages */
article.legal h1 { font-size: 34px; }
article.legal h2 { font-size: 22px; margin-top: 32px; }
article.legal p, article.legal li { max-width: 70ch; }
article.legal blockquote { margin: 0; padding: 12px 16px; background: var(--mist); border-left: 4px solid var(--line); border-radius: 0 10px 10px 0; }
article.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
article.legal th, article.legal td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.legal-main { padding: 40px 0 64px; }

/* responsive */
@media (max-width: 900px) {
  h1 { font-size: 38px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { max-width: 260px; margin-top: 8px; }
  .hero-grid { gap: 28px; }
  .hero-cards { margin-top: 28px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  main > section { padding: 52px 0; }
  /* phone carousel: opens on Home; To-dos one swipe right, the third screen one swipe left (P-0109 rev 2.6) */
  .phones { display: flex; position: relative; grid-template-columns: none; max-width: none; gap: 14px; margin: 24px -16px 0; padding: 10px 12% 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; align-items: start; }
  .phones::-webkit-scrollbar { display: none; }
  .phones figure.phone { flex: 0 0 76%; scroll-snap-align: center; transform: none; }
  .phones figure.phone:nth-child(2) { transform: none; }
  .phones figcaption span { display: none; }
  .phone-nav { display: flex; }
  .phone-hint { display: block; text-align: center; margin: 10px 0 0; }
  .features, .steps, .promises { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  .hero h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .lead { font-size: 18px; }
  nav a { margin-left: 12px; font-size: 14px; }
  nav a.hide-sm { display: none; }
  .wrap { padding: 0 16px; }
  .btn { padding: 11px 18px; font-size: 15px; }
}

/* platform + about pages (P-0109, 2026-09-23) */
nav a.current { color: var(--ink); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 640px; margin: 40px auto 0; align-items: start; }
.two-col.media { align-items: center; }
.two-col.media > figure.phone { max-width: 280px; width: 100%; justify-self: center; }
.two-col.media.flip > div { order: 2; }
.two-col.media.flip > figure { order: 1; }
figure.browser { margin: 36px 0 0; }
.two-col.media.wide { grid-template-columns: .85fr 1.15fr; }
.two-col.media.wide > figure.browser { margin: 0; }
figure.diagram { margin: 0; }
figure.diagram svg { width: 100%; height: auto; display: block; }
figure.browser svg { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: var(--shadow); }
.cta-band { text-align: center; }
.cta-band h2, .cta-band p { margin-left: auto; margin-right: auto; }
.cta-band .cta-row { justify-content: center; }
.hero.plain { padding: 56px 0 32px; }
.hero.plain h1 { max-width: 18ch; }
.hero.plain .lead { max-width: 58ch; }
#conversation .two-col, #paper .two-col { margin-top: 8px; }
@media (max-width: 900px) {
  .two-col.media.flip > div, .two-col.media.flip > figure { order: 0; }
  .two-col.media.wide { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  figure.diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px 6px; }
  figure.diagram svg { min-width: 600px; }
  .pair { grid-template-columns: 1fr; max-width: 300px; gap: 40px; }
  .two-col.media > figure.phone { max-width: 260px; }
}

/* header CTA + contact page (P-0109 rev 2, 2026-09-23) */
.btn.small { padding: 8px 16px; font-size: 14px; }
header.top nav .btn { margin-left: 20px; }
.cta-band.band { background: var(--mist); }
.cta-band .cta-row { justify-content: center; }
.cform { background: var(--mist); border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 18px; }
.cform label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.cform label .muted { font-weight: 400; }
.cform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cform .field { margin-bottom: 16px; }
.cform input, .cform select, .cform textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.cform select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.cform textarea { min-height: 110px; resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cform .choices { display: grid; gap: 8px; }
.cform .choice { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-weight: 400; margin: 0; cursor: pointer; }
.cform .choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cform .choice input { width: auto; margin: 4px 0 0; accent-color: var(--accent); }
.cform .choice b { display: block; font-weight: 600; }
.cform .choice span span { color: var(--muted); font-size: 14px; }
.cform .submit { margin: 4px 0 12px; }
.cform button.btn { cursor: pointer; font-family: inherit; }
.cform p.small { margin-bottom: 0; }
.contact-side h3 { margin: 0 0 10px; }
.contact-side .lines { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-side .lines li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-side .lines li:last-child { border-bottom: 0; }
.contact-side .lines li b { display: block; font-weight: 600; margin-bottom: 2px; }
.contact-side ol { padding-left: 20px; margin: 0 0 28px; color: var(--muted); font-size: 16px; }
.contact-side ol li { margin-bottom: 8px; }
@media (max-width: 600px) { .cform .row { grid-template-columns: 1fr; gap: 0; } .cform { padding: 20px 18px 14px; } }
@media (max-width: 480px) {
  header.top nav { display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
  header.top nav a { margin-left: 10px; }
  header.top nav .btn { margin-left: 10px; padding: 8px 12px; font-size: 13px; }
  .brand { min-width: 0; font-size: 13px; letter-spacing: .08em; gap: 8px; }
  header.top nav a { margin-left: 14px; }
}
