/* =====================================================================
   Sumac · the style
   It feels like texting a person. Instrument Sans for everything (headings
   and the lowercase wordmark at wdth 88, weight 700, tight), on a dusky
   plum-grey evening (or a pale lilac daylight), with one sumac for your
   own bubbles, the primary action and switches that are on.
   Signature pieces:
   - the live thread (.live[data-live]): a real conversation between the
     business and a customer that plays in at human pace, with typing
     dots, a photo message and reply chips the visitor can press.
   - the profile card (.profile): a person shown like a contact's info
     panel, with a portrait placeholder, a one-line bio and fact rows.
   Shape: bubbles 20px with a 6px tail corner, cards 22px, every control a
   pill. No gradients except portrait placeholders; no decorative boxes.
   Motion: html.calm stills everything and shows the whole conversation
   (footer switch, remembered as "site-motion"; default from
   prefers-reduced-motion).
   ===================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
html.calm:focus-within { scroll-behavior: auto; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--sumac); color: var(--on-sumac); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 200; padding: 12px 18px; border-radius: var(--r-pill); background: var(--sumac); color: var(--on-sumac); font-weight: 600; text-decoration: none; transition: top var(--d) var(--ease); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h1, .h2, .h3 { font-family: var(--font); font-stretch: var(--fs-stretch); font-weight: 700; color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 0.98; letter-spacing: -0.035em; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; }
/* the lit words: sumac as text, never italic */
.h1 em, .h2 em { font-style: normal; color: var(--sumac-ink); }
/* the signature move: the headline is still being typed (a small bubble with three dots) */
.typing-mark { display: inline-flex; align-items: center; gap: 0.07em; height: 0.46em; padding: 0 0.15em; margin-left: 0.12em; vertical-align: 0.06em; border-radius: 0.24em 0.24em 0.24em 0.07em; background: var(--them); }
.typing-mark i { width: 0.075em; height: 0.075em; border-radius: 50%; background: var(--muted); }
html:not(.calm) .typing-mark i { animation: su-dot 1.2s var(--ease) infinite; }
html:not(.calm) .typing-mark i:nth-child(2) { animation-delay: 0.16s; }
html:not(.calm) .typing-mark i:nth-child(3) { animation-delay: 0.32s; }
@keyframes su-dot { 0%, 60%, 100% { transform: none; opacity: 0.55; } 30% { transform: translateY(-35%); opacity: 1; } }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
/* section labels: a small sumac bubble, then sentence case */
.label { display: inline-flex; align-items: center; gap: 10px; font: 600 var(--fs-label)/1.3 var(--font); color: var(--muted); }
.label::before { content: ""; flex: none; width: 14px; height: 11px; border-radius: 6px 6px 6px 2px; background: var(--sumac); }
.num { font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: var(--sumac-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600; }
.prose a:hover, .link:hover { text-decoration-thickness: 2.5px; }

/* ---------- buttons: every control is a pill ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 24px; border: 0; border-radius: var(--r-pill); font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast) var(--ease), background var(--d-fast), color var(--d-fast), box-shadow var(--d-fast); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--d) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-sumac { background: var(--sumac); color: var(--on-sumac); }
.btn-sumac:hover { background: var(--sumac-2); }
.btn-quiet { background: var(--card-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet:hover { background: var(--them); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- header and phone menu ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.nav-in { position: relative; display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
/* the mark: two bubbles in conversation, theirs and yours */
.brand-mark { position: relative; flex: none; width: 34px; height: 28px; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; }
.brand-mark::before { left: 0; top: 0; width: 22px; height: 17px; border-radius: 9px 9px 9px 3px; background: var(--them); box-shadow: inset 0 0 0 1px var(--line-2); }
.brand-mark::after { right: 0; bottom: 0; width: 20px; height: 15px; border-radius: 8px 8px 3px 8px; background: var(--sumac); }
.brand-word { font: 700 25px/1 var(--font); font-stretch: var(--fs-stretch); letter-spacing: -0.04em; text-transform: lowercase; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 10px 14px; border-radius: var(--r-pill); text-decoration: none; font: 500 15.5px/1 var(--font); color: var(--ink-2); transition: color var(--d-fast), background var(--d-fast); }
.nav-links a:hover { color: var(--ink); background: var(--card-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--sumac-soft); }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--card-2); cursor: pointer; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform var(--d) var(--ease), background var(--d-fast); }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
/* the phone menu: a rounded sheet that drops from the header */
.site-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); display: grid; gap: 4px; padding: 12px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-lift); transform-origin: top right; animation: su-open var(--d) var(--spring) both; }
.site-menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: var(--r-pill); text-decoration: none; font: 700 22px/1.1 var(--font); font-stretch: var(--fs-stretch); letter-spacing: -0.02em; color: var(--ink); }
.site-menu a:hover { background: var(--card-2); }
.site-menu a[aria-current="page"] { background: var(--sumac-soft); }
.site-menu .btn { justify-content: center; margin-top: 8px; font: 600 16px/1 var(--font); color: var(--on-sumac); }
.site-menu .btn:hover { background: var(--sumac-2); }
@keyframes su-open { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
html.calm .site-menu { animation: none; }
@media (max-width: 980px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 560px) { .nav .nav-cta { display: none; } }
@media (min-width: 981px) { .site-menu { display: none !important; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.section.alt { background: var(--raised); }
.section-head { display: grid; gap: 16px; justify-items: start; max-width: 760px; margin-bottom: clamp(30px, 4vw, 56px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2.lean { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 72px); align-items: start; }
.grid-2.lean > .section-head { position: sticky; top: 110px; margin-bottom: 0; }
@media (max-width: 900px) { .grid-2, .grid-2.lean { grid-template-columns: minmax(0, 1fr); } .grid-2.lean > .section-head { position: static; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(24px, 4vw, 52px) clamp(60px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.presence { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 10px; border-radius: var(--r-pill); background: var(--card); box-shadow: var(--shadow-bubble); font: 500 14.5px/1.3 var(--font); color: var(--ink-2); }
.dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px color-mix(in srgb, var(--online) 22%, transparent); }
.hero-facts { display: grid; gap: 0; width: 100%; max-width: 480px; }
.hero-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.hero-facts li:first-child { border-top: 1px solid var(--line); }
.hero-facts li b { font-weight: 600; color: var(--ink); text-align: right; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the live thread (signature) ---------- */
.live { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-lift); overflow: hidden; }
.live-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: color-mix(in srgb, var(--card-2) 70%, var(--card)); }
.live-head .who { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.live-head .who b { font: 700 17px/1.2 var(--font); font-stretch: var(--fs-stretch); letter-spacing: -0.01em; }
.live-head .who small { display: flex; align-items: center; gap: 7px; font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.live-head .who small .dot { width: 7px; height: 7px; box-shadow: none; }
.live-head .btn { flex: none; }
.live-head .btn svg { width: 15px; height: 15px; }
.live-head .btn:hover svg { transform: rotate(-60deg); }
/* a face: a small portrait placeholder with an initial */
.face { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--portrait, var(--portrait-1)); color: #2a2330; font: 700 17px/1 var(--font); font-stretch: var(--fs-stretch); }
.face.online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px var(--card); }
.live-scroll { display: flex; flex-direction: column; padding: 18px 16px 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.js .live-scroll { height: var(--live-h, 500px); }
html.calm .live-scroll { height: auto; max-height: none; }
.live-scroll:focus-visible { outline-offset: -3px; border-radius: 0; }
.live-list { display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.live-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 12px 18px; font-size: 13px; line-height: 1.4; color: var(--muted); border-top: 1px solid var(--line); }

/* days between messages */
.day { align-self: center; margin: 14px 0 8px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--card-2); font: 600 12px/1.4 var(--font); color: var(--muted); }
.live-list > .day:first-child { margin-top: 0; }

/* a message: a bubble and, sometimes, a time under it */
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: min(82%, 420px); }
.msg.you { align-self: flex-end; align-items: flex-end; }
.msg > p, .bubble { padding: 10px 15px 11px; border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) var(--r-tail); background: var(--them); color: var(--ink); font-size: var(--fs-bubble); line-height: 1.45; overflow-wrap: anywhere; box-shadow: var(--shadow-bubble); }
.msg.you > p, .bubble.you { border-radius: var(--r-bubble) var(--r-bubble) var(--r-tail) var(--r-bubble); background: var(--sumac); color: var(--on-sumac); }
/* only the last bubble in a run keeps its tail */
.msg.joined > p, .msg.joined > .snap { border-bottom-left-radius: var(--r-bubble); }
.msg.you.joined > p { border-bottom-right-radius: var(--r-bubble); }
.msg:not(.joined) + .msg, .day + .msg { margin-top: 10px; }
.msg .meta { margin: 5px 6px 2px; font-size: 12.5px; line-height: 1.2; color: var(--muted); }
/* a photo message */
.snap { display: grid; gap: 0; width: min(240px, 100%); border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) var(--r-tail); overflow: hidden; background: var(--them); box-shadow: var(--shadow-bubble); }
.snap .portrait { aspect-ratio: 4 / 4.6; border-radius: 0; }
.snap figcaption { padding: 9px 14px 11px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
/* typing: three dots in their bubble */
.msg.typing > p { display: inline-flex; align-items: center; gap: 5px; padding: 15px 16px; }
.msg.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
html:not(.calm) .msg.typing i { animation: su-dot 1.2s var(--ease) infinite; }
html:not(.calm) .msg.typing i:nth-child(2) { animation-delay: 0.16s; }
html:not(.calm) .msg.typing i:nth-child(3) { animation-delay: 0.32s; }
/* reply chips the visitor can press */
.msg.chips { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-self: flex-end; max-width: 100%; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--sumac-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sumac) 70%, transparent); cursor: pointer; font: 600 14.5px/1 var(--font); transition: background var(--d-fast), color var(--d-fast), transform var(--d-fast) var(--ease); }
.chip:hover { background: var(--sumac); color: var(--on-sumac); }
.chip:active { transform: scale(0.97); }
.chip svg { width: 16px; height: 16px; }
html:not(.js) .msg.chips { display: none; }
/* pending messages wait for their turn (only with JS, never when calm) */
.js .live .pending { display: none; }
html.calm .live .pending { display: flex; }
html.calm .live .day.pending { display: block; }
html.calm .live .typing { display: none; }
html:not(.calm) .live .pop { animation: su-pop 420ms var(--spring) both; }
.live .msg.them.pop { transform-origin: 0 100%; }
.live .msg.you.pop { transform-origin: 100% 100%; }
@keyframes su-pop { 0% { opacity: 0; transform: translateY(10px) scale(0.92); } 35% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@media (max-width: 560px) { .js .live-scroll { height: var(--live-h-phone, 460px); } .msg { max-width: 88%; } .live-head .btn span { display: none; } .live-head .btn { width: 40px; padding: 0; } }

/* small bubbles used in copy (features, steps, the close) */
.say { display: inline-block; max-width: 100%; padding: 9px 14px 10px; border-radius: 18px 18px 18px var(--r-tail); background: var(--them); color: var(--ink); font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere; }
.say.you { justify-self: end; border-radius: 18px 18px var(--r-tail) 18px; background: var(--sumac); color: var(--on-sumac); }
.says { display: grid; gap: 4px; justify-items: start; }

/* ---------- portraits (the only gradients) ---------- */
.portrait { position: relative; display: block; overflow: hidden; border-radius: calc(var(--r-card) - 6px); background: var(--portrait, var(--portrait-1)); aspect-ratio: 1 / 1.05; isolation: isolate; }
.portrait svg { position: absolute; left: 50%; bottom: 0; width: 72%; height: auto; max-width: none; transform: translateX(-50%); color: rgba(255, 255, 255, 0.34); }
/* a still: a photo placeholder for things (a dish, a room), flat, never a gradient */
.portrait.still { background: var(--still, var(--card-2)); }
.portrait.still svg { bottom: 50%; width: 66%; transform: translate(-50%, 50%); color: rgba(255, 255, 255, 0.42); }
.portrait .ph { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(36, 31, 38, 0.74); color: #f3eef4; font: 600 12px/1.2 var(--font); }

/* ---------- the profile card (signature) ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.profile { display: grid; gap: 0; padding: 8px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-card); min-width: 0; }
.profile-body { display: grid; gap: 14px; padding: 18px 14px 14px; }
.profile h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 700 24px/1.15 var(--font); font-stretch: var(--fs-stretch); letter-spacing: -0.02em; }
.profile h3 small { font: 500 14px/1.2 var(--font); letter-spacing: 0; color: var(--muted); }
.profile .role { font-size: 14.5px; color: var(--sumac-ink); font-weight: 600; margin-top: -8px; }
.profile .bio { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.info { display: grid; border-radius: 16px; background: var(--card-2); }
.info > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 50px; padding: 10px 14px; }
.info > div + div { border-top: 1px solid var(--line); }
.info dt { font-size: 14.5px; color: var(--muted); }
.info dd { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); text-align: right; }
.info dd .dot { width: 7px; height: 7px; box-shadow: none; }
.profile .btn { width: 100%; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .people { grid-template-columns: minmax(0, 1fr); } .profile > .portrait { aspect-ratio: 4 / 3; } }

/* ---------- features ---------- */
.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-card); min-width: 0; }
.card h3 { font: 700 21px/1.2 var(--font); font-stretch: var(--fs-stretch); letter-spacing: -0.015em; }
.card p { font-size: 15.5px; color: var(--ink-2); }
.card .says { margin-top: auto; padding-top: 6px; }
@media (max-width: 1080px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .notes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- how it works: a real sequence ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps > li { position: relative; display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-card); min-width: 0; }
.steps .when { display: inline-flex; align-items: center; gap: 10px; font: 600 13.5px/1.2 var(--font); color: var(--muted); }
.steps .when b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sumac); color: var(--on-sumac); font: 700 15px/1 var(--font); }
.steps h3 { font: 700 21px/1.2 var(--font); font-stretch: var(--fs-stretch); letter-spacing: -0.015em; }
.steps p { font-size: 15.5px; color: var(--ink-2); }
.steps .says { margin-top: 4px; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- proof: labelled sample quotes, as messages ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.quote { display: grid; gap: 12px; padding: 22px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-card); min-width: 0; }
.quote blockquote { padding: 12px 16px 13px; border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) var(--r-tail); background: var(--them); font-size: 16.5px; line-height: 1.5; }
.quote figcaption { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.quote figcaption .face { width: 34px; height: 34px; font-size: 14px; }
.quote figcaption b { color: var(--ink); font-weight: 600; }
.sample { display: inline-flex; align-self: start; justify-self: start; padding: 4px 10px; border-radius: var(--r-pill); background: var(--card-2); font: 600 12px/1.3 var(--font); color: var(--muted); }
@media (max-width: 900px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-card); min-width: 0; }
.plan.pick { box-shadow: var(--shadow-lift), inset 0 0 0 2px var(--sumac); }
.plan .k { justify-self: start; padding: 5px 12px; border-radius: var(--r-pill); background: var(--card-2); font: 600 13px/1.2 var(--font); color: var(--ink-2); }
.plan.pick .k { background: var(--sumac); color: var(--on-sumac); }
.plan h3 { font: 700 24px/1.15 var(--font); font-stretch: var(--fs-stretch); letter-spacing: -0.02em; }
.plan .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font: 700 46px/1 var(--font); font-stretch: var(--fs-stretch); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.plan .price small { font: 500 15px/1.3 var(--font); letter-spacing: 0; color: var(--muted); }
.plan p { font-size: 15.5px; color: var(--ink-2); }
.plan ul { display: grid; gap: 9px; font-size: 15.5px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 12px; height: 9px; margin-top: 0.5em; border-radius: 5px 5px 5px 2px; background: var(--sumac); }
.plan .btn { margin-top: 6px; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-card); background: var(--card-2); font-size: 15.5px; color: var(--ink-2); overflow-wrap: break-word; }
.note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--sumac-ink); }
.note b { color: var(--ink); }

/* ---------- FAQ: you ask, they answer ---------- */
.faq { display: grid; gap: 12px; }
.faq details { display: grid; }
.faq summary { list-style: none; cursor: pointer; justify-self: end; display: inline-flex; align-items: center; gap: 12px; max-width: min(88%, 560px); margin-left: auto; padding: 12px 14px 13px 18px; border-radius: var(--r-bubble) var(--r-bubble) var(--r-tail) var(--r-bubble); background: var(--sumac-soft); color: var(--ink); font: 600 16.5px/1.4 var(--font); transition: background var(--d-fast), color var(--d-fast); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(currentColor, currentColor) center / 9px 1.8px no-repeat, linear-gradient(currentColor, currentColor) center / 1.8px 9px no-repeat; box-shadow: inset 0 0 0 1.5px currentColor; opacity: 0.8; transition: transform var(--d) var(--ease); }
.faq summary:hover { background: color-mix(in srgb, var(--sumac) 30%, var(--sumac-soft)); }
.faq details[open] summary { background: var(--sumac); color: var(--on-sumac); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { justify-self: start; max-width: min(88%, 600px); margin-top: 6px; padding: 12px 16px 13px; border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) var(--r-tail); background: var(--them); color: var(--ink); font-size: 16px; line-height: 1.5; }
html:not(.calm) .faq details[open] > div { animation: su-pop 420ms var(--spring) both; transform-origin: 0 0; }
.faq details > div p + p { margin-top: 0.6em; }

/* ---------- say hi (the call to action) ---------- */
.hello-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 72px); align-items: start; }
.hello-grid .section-head { margin-bottom: 0; }
@media (max-width: 900px) { .hello-grid { grid-template-columns: minmax(0, 1fr); } }
.form-card { display: grid; gap: 22px; padding: clamp(22px, 3.4vw, 36px); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-lift); min-width: 0; }
.form-card > * { min-width: 0; }
.form-card > .switch { justify-self: start; }
/* a line someone said: their face, then the bubble */
.said { display: flex; align-items: flex-end; gap: 10px; }
.said .face { width: 36px; height: 36px; font-size: 15px; }
.form-done { padding: 14px 18px; border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) var(--r-tail); background: var(--them); color: var(--ink); font-weight: 500; }

/* ---------- footer ---------- */
.foot { padding-block: 60px 30px; background: var(--raised); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 600 var(--fs-label)/1.3 var(--font); color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--sumac-ink); }
.licence { margin-top: 30px; padding: 14px 18px; border-radius: var(--r-s); background: var(--card); font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.licence b { color: var(--ink); font-weight: 600; }
.foot-base { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot-switches { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 16px 6px 6px; border: 0; border-radius: var(--r-pill); background: var(--card-2); cursor: pointer; font: 500 14.5px/1 var(--font); color: var(--ink-2); }
.switch .sw { position: relative; flex: none; width: 44px; height: 26px; border-radius: var(--r-pill); background: var(--line-2); transition: background var(--d-fast); }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform var(--d) var(--spring); }
.switch[aria-checked="true"] .sw { background: var(--sumac); }
.switch[aria-checked="true"] .sw::after { transform: translateX(18px); }
html.calm .switch .sw::after { transition: none; }
/* a bare switch: just the track, labelled by its row */
.switch.bare { padding: 0; min-height: 0; background: none; }

/* =====================================================================
   Multi-page kit
   ===================================================================== */
.page-head { position: relative; padding-block: clamp(30px, 4.5vw, 64px) clamp(36px, 5vw, 64px); }
.page-head .h1 { font-size: clamp(38px, 5vw, 68px); margin-top: 18px; }
.page-head .lead { margin-top: 18px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 14px/1.3 var(--font); color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; padding: 4px 10px; border-radius: var(--r-pill); background: var(--card-2); }
.crumbs a:hover { color: var(--ink); background: var(--them); }
.crumbs span[aria-hidden] { opacity: 0.7; }

.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field > span, .field > label, .field-set > legend { font: 600 15.5px/1.3 var(--font); color: var(--ink); }
.field small, .field-set > legend small { color: var(--muted); font: 400 14px/1.4 var(--font); }
.field input:not([type="checkbox"]):not([type="radio"]):not(.range), .field textarea, .field select, .select select { width: 100%; min-width: 0; max-width: 100%; min-height: 52px; padding: 13px 18px; border-radius: var(--r-s); border: 0; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); transition: box-shadow var(--d-fast); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field textarea { min-height: 120px; resize: vertical; border-radius: var(--r-bubble); }
.field input:focus, .field textarea:focus, .field select:focus, .select select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--focus), 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #e06c75 !important; }
.select { position: relative; display: block; min-width: 0; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: minmax(0, 1fr); } }
fieldset.field-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset.field-set > legend { padding: 0; margin-bottom: 10px; }
fieldset.field-set > .seg { justify-self: start; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sumac); }
.range-out { font-weight: 600; color: var(--sumac-ink); }
.field > .range-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: 2px; height: 100%; padding: 14px 18px; border-radius: var(--r-bubble); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background var(--d-fast), box-shadow var(--d-fast); }
.choice > span b { font: 600 16px/1.25 var(--font); }
.choice > span small { color: var(--muted); font-size: 14px; }
.choice:hover > span { box-shadow: inset 0 0 0 1.5px var(--muted); }
.choice input:checked + span { background: var(--sumac-soft); box-shadow: inset 0 0 0 2px var(--sumac); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 26px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); max-width: 100%; }
.seg button, .seg label { position: relative; min-height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font: 500 15px/1 var(--font); color: var(--ink-2); transition: background var(--d-fast), color var(--d-fast); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button:hover, .seg label:hover { color: var(--ink); background: var(--them); }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--sumac); color: var(--on-sumac); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

input.range { --p: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 8px; margin: 14px 0 8px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--sumac) 0 var(--p), var(--line-2) var(--p) 100%); cursor: pointer; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px var(--sumac), 0 2px 6px rgba(0, 0, 0, 0.3); }
input.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px var(--sumac); }
input.range:focus-visible { outline-offset: 8px; }

.table { overflow-x: auto; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-card); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table caption { caption-side: bottom; text-align: left; padding: 14px 20px; font-size: 13.5px; color: var(--muted); }
.table th, .table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { font: 600 13px/1.3 var(--font); color: var(--muted); background: var(--card-2); }
.table tbody th { font: 600 16px/1.35 var(--font); color: var(--ink); }
.table td { color: var(--ink-2); }
.table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .yes { color: var(--ink); font-weight: 600; }
@media (max-width: 680px) {
  .table.stack table, .table.stack tbody, .table.stack tr, .table.stack td, .table.stack th { display: block; }
  .table.stack table { display: flex; flex-direction: column; }
  .table.stack caption { display: block; order: 1; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .table.stack tr:last-child { border-bottom: 0; }
  .table.stack td, .table.stack th { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; border: 0; padding: 4px 0; text-align: left !important; }
  .table.stack th[scope="row"] { display: block; padding-bottom: 6px; font-size: 17px; }
  .table.stack td::before { content: attr(data-label); font: 600 13px/1.5 var(--font); color: var(--muted); }
}

/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(16px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.js [data-enter].entered { opacity: 1; transform: none; }
html.calm [data-enter] { opacity: 1 !important; transform: none !important; transition: none !important; }

@media print { .nav, .foot-switches, .menu-btn, .site-menu, .msg.chips, .live-head .btn { display: none !important; } body { background: #fff; color: #000; } .js .live-scroll { height: auto; } .js .live .pending { display: flex; } }
