@font-face{font-family:DM;src:url(assets/dm-sans-latin.woff2) format("woff2");font-weight:100 1000;font-display:swap}
@font-face{font-family:Fraunces;src:url(assets/fraunces-latin.woff2) format("woff2");font-weight:100 900;font-display:swap}

/* Colour tokens (Dawn): night ink to sunrise. */
:root {
  --night: #14173a; --night-2: #241f55; --dusk: #4b3f8f; --apricot: #ffcf9e; --morning: #fff4e6;
  --ink: #1b1d3f; --ink-soft: #4d4a6e; --on-night: #f4efff; --on-night-soft: #c3bde6;
  --rest: #8e9bff; --active: #ffb547; --up: #ff7a7a; --mint: #6fdcbc;
  --glow: #ffb547; --glow-ink: #1d1534; --solid: #14173a; --solid-ink: #fff4e6;
  /* Page sky, top to bottom: lightness rises a little faster in each section, so the page brightens evenly, with no sudden band. */
  --sky-1: #191a43; --sky-2: #2c2660; --sky-3: #433880; --sky-4: #5e509a; --sky-4b: #6f5faa; --sky-5: #8574b6; --sky-6: #a08dc3; --sky-7: #e3d6ea;
  --join-top: clamp(200px, 20vw, 290px);
  --glass: rgba(255,255,255,.08); --glass-line: rgba(255,255,255,.16);
}
html { font-family: DM, system-ui, sans-serif; color: var(--on-night); background: var(--night); scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--morning); }
.symbols { display: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--active); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: -80px; left: 12px; z-index: 20; background: var(--morning); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 380; margin: 0; text-wrap: balance; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 650; font-size: 15px; white-space: nowrap; transition: filter .15s, box-shadow .2s, background .2s; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.big { min-height: 58px; padding: 0 34px; font-size: 17px; }
.btn-glow { background: var(--glow); color: var(--glow-ink); box-shadow: 0 8px 28px color-mix(in srgb, var(--glow) 40%, transparent); }
.btn-solid { background: var(--solid); color: var(--solid-ink); }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { cursor: default; filter: none; }
.link { text-decoration: underline; text-underline-offset: 4px; font-size: 14px; padding: 8px 0; }

/* Header */
.top { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(18px, 4vw, 56px); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 30px/1 Fraunces, Georgia, serif; letter-spacing: 0; color: var(--on-night); }
.brand svg { width: 24px; height: 28px; color: var(--active); }

/* Rings (SVG built in app.js) */
.ring svg { display: block; width: 100%; height: auto; overflow: visible; }
.ring .track { fill: none; stroke: var(--on-night); stroke-opacity: .1; }
.ring .tick { stroke: var(--on-night); stroke-opacity: .35; }
.ring .hour { fill: var(--on-night-soft); font: 600 7px DM, sans-serif; text-anchor: middle; dominant-baseline: middle; }
.ring .arc { fill: none; stroke-linecap: round; stroke-dasharray: var(--len) 999; stroke-dashoffset: var(--len); animation: draw .9s cubic-bezier(.3,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.ring .rest { stroke: var(--rest); stroke-opacity: .85; }
.ring .active { stroke: var(--active); filter: drop-shadow(0 0 5px var(--active)); }
.ring .up { fill: var(--up); stroke: var(--night); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pop .35s ease-out both; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ring:not(.in-view) .arc, .ring:not(.in-view) .up { animation-play-state: paused; }
@keyframes pop { from { transform: scale(0); } }

/* Hero */
.hero { min-height: min(100svh, 980px); background: radial-gradient(ellipse 70% 60% at 75% 45%, var(--night-2), var(--night) 70%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: 110px clamp(18px, 6vw, 96px) 72px; }
.hero h1 { font-size: clamp(50px, 6.6vw, 108px); line-height: .94; letter-spacing: -.045em; max-width: 9ch; }
.lede { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; color: var(--on-night-soft); max-width: 34ch; margin: 24px 0 32px; }
.name-row { display: flex; gap: 6px; padding: 6px; max-width: 470px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); }
.name-row input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--on-night); font: 500 17px DM, sans-serif; padding: 0 16px; }
.name-row input::placeholder { color: var(--on-night-soft); opacity: .8; }
.name-row input:focus { outline: none; }
.name-row:focus-within { border-color: var(--active); }
.hero-visual { position: relative; margin: 0; justify-self: center; width: min(100%, 560px); }
.ring-wrap { position: relative; aspect-ratio: 1; }
.ring-photo { position: absolute; inset: 20%; width: 60%; height: 60%; border-radius: 50%; object-fit: cover; object-position: 72% 30%; box-shadow: 0 0 0 6px var(--night), 0 30px 80px rgba(0,0,0,.45); }
.ring-wrap .ring { position: absolute; inset: 0; }
.note-card { position: absolute; right: -10%; bottom: -8%; width: min(300px, 60%); padding: 16px 18px; border-radius: 18px 18px 18px 4px; background: color-mix(in srgb, var(--night) 55%, transparent); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.note-from { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--on-night-soft); }
.note-from svg { width: 14px; height: 16px; color: var(--active); }
.note-from b { color: var(--on-night); font-weight: 650; }
.note-card p { margin: 6px 0 0; font-size: 16px; line-height: 1.45; }
/* Hero loop card and chips */
.loop-steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 10px 0 0; }
.loop-steps li { flex: 1; font-size: 10.5px; font-weight: 650; text-align: center; padding: 4px 0; border-radius: 999px; color: var(--on-night-soft); background: rgba(255,255,255,.06); transition: background .3s, color .3s; }
.loop-steps li.on { background: var(--active); color: var(--glow-ink); }
.loop-card p { min-height: 2.9em; transition: opacity .25s, transform .25s; }
.loop-card p.swap { opacity: 0; transform: translateY(4px); }
.sample-cap { display: block; text-align: center; margin-top: 6px; font-size: 12px; color: var(--on-night-soft); opacity: .8; }
.chip { animation: chipIn .5s ease-out both; }
.c1 { animation-delay: .5s; } .c2 { animation-delay: .8s; } .c3 { animation-delay: 1.1s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.caret::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--active); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Pick a dog */
.pick { background: linear-gradient(var(--sky-2), var(--sky-3) 55%, var(--sky-4) 88%, var(--sky-4b)); background: linear-gradient(in oklab, var(--sky-2), var(--sky-3) 55%, var(--sky-4) 88%, var(--sky-4b)); padding: clamp(64px, 8vw, 120px) clamp(18px, 6vw, 96px); text-align: center; }
.pick h2, .join h2, .watch h2, .baseline h2 { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -.04em; max-width: 16ch; margin: 0 auto; }
.sub { font-size: 17px; line-height: 1.5; color: var(--on-night-soft); margin: 14px auto 0; max-width: 40ch; }
.pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1100px; margin: 44px auto 0; }
.pick-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 14px 18px; border-radius: 24px; background: var(--glass); border: 1px solid transparent; transition: background .2s, border-color .2s; }
.pick-grid button:hover { background: rgba(255,255,255,.11); }
.pick-grid button[aria-pressed="true"] { border-color: var(--active); background: rgba(255,255,255,.12); }
.mini-ring { display: block; width: min(150px, 100%); margin-bottom: 10px; }
.pick-grid b { font-size: 16px; font-weight: 650; }
.pick-grid small { font-size: 14px; color: var(--on-night-soft); }
.detail { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 420px); justify-content: center; align-items: center; gap: clamp(24px, 5vw, 72px); margin: 48px auto 0; text-align: left; }
.ring.big { width: 100%; max-width: 420px; justify-self: center; }
.bubble { margin: 0 0 18px; padding: 18px 20px; border-radius: 4px 20px 20px 20px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 18px; line-height: 1.5; }
.followup { margin: 18px 0 0; font: 400 22px/1.3 Fraunces, Georgia, serif; color: var(--apricot); }
#detail-action[disabled] { background: var(--glass); color: var(--on-night); }
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 40px 0 0; font-size: 13px; color: var(--on-night); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 18px; height: 6px; border-radius: 3px; }
.k-rest { background: var(--rest); } .k-active { background: var(--active); } .k-up { width: 9px !important; height: 9px !important; border-radius: 50% !important; background: var(--up); }


/* Hero signal chips */
.chip { position: absolute; display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 13px; border-radius: 999px; font-size: 13px; color: var(--on-night-soft); background: color-mix(in srgb, var(--night) 60%, transparent); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }
.chip b { color: var(--on-night); font-weight: 650; }
.c1 { top: 3%; left: -6%; } .c2 { top: 30%; right: -14%; } .c3 { top: 62%; left: -16%; }

/* Everything the butler keeps an eye on */
.watch { background: linear-gradient(var(--night), var(--sky-1)); background: linear-gradient(in oklab, var(--night), var(--sky-1)); padding: clamp(64px, 8vw, 120px) clamp(18px, 6vw, 96px); text-align: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.12fr); max-width: 1240px; margin: 40px auto 0; text-align: left; }
.half { border-radius: 28px; padding: 22px; border: 1px solid var(--glass-line); }
.collar-half { background: rgba(255,255,255,.04); }
.butler-half { background: color-mix(in srgb, var(--rest) 10%, transparent); display: flex; flex-direction: column; gap: 14px; }
.half-head { display: flex; align-items: center; gap: 14px; }
.half-head h3 { font-size: 28px; letter-spacing: -.02em; }
.half-head p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--on-night-soft); max-width: 36ch; }
.collar-thumb, .butler-mark { width: 68px; height: 68px; flex: none; border-radius: 50%; }
.collar-thumb { object-fit: cover; object-position: 50% 48%; box-shadow: 0 0 0 2px var(--glass-line); }
.butler-mark { display: grid; place-items: center; background: var(--glass); box-shadow: 0 0 0 2px var(--glass-line); }
.butler-mark svg { width: 30px; height: 34px; color: var(--active); }
.collar-half { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 80% 45% at 50% 30%, color-mix(in srgb, var(--dusk) 45%, transparent), rgba(255,255,255,.03) 70%); }
.collar-art { position: relative; z-index: -1; margin: 6px -22px -48px; }
.collar-art img { display: block; width: 100%; height: auto; mix-blend-mode: lighten; -webkit-mask-image: radial-gradient(ellipse 62% 64% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 62% 64% at 50% 50%, #000 62%, transparent 100%); }
.collar-art figcaption { position: absolute; right: 22px; top: 4%; font-size: 12px; font-weight: 600; color: var(--on-night-soft); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--glass-line); }
.signals { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; align-content: start; }
.more { margin-top: 16px; }
.you-chip.research { color: var(--on-night); background: linear-gradient(90deg, color-mix(in srgb, var(--active) 28%, transparent), color-mix(in srgb, var(--rest) 28%, transparent)); }
.more-note { margin: 10px 0 0; font-size: 12px; color: var(--on-night-soft); }
.flow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.flow span { flex: 1; width: 0; border-left: 2px dashed color-mix(in srgb, var(--active) 45%, transparent); }
.flow svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--active); fill: none; stroke: var(--glow-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 0 18px color-mix(in srgb, var(--active) 55%, transparent); }
.you-label { display: block; font-size: 13px; font-weight: 650; color: var(--on-night-soft); margin-bottom: 8px; }
.you-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.you-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 550; background: rgba(0,0,0,.18); color: var(--on-night-soft); }
button.you-chip { color: var(--on-night); border: 1px solid var(--glass-line); }
button.you-chip[aria-pressed="true"] { border-color: var(--active); background: rgba(255,255,255,.12); }
.sig { display: grid; gap: 2px; text-align: left; padding: 10px 11px; border-radius: 14px; background: color-mix(in srgb, var(--night) 55%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid transparent; transition: background .2s, border-color .2s; }
.sig:hover { background: rgba(255,255,255,.11); }
.sig[aria-pressed="true"] { border-color: var(--active); background: rgba(255,255,255,.12); }
.sig-name { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--on-night-soft); }
.sig-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--tone) 20%, transparent); }
.sig-icon svg { width: 15px; height: 15px; fill: none; stroke: var(--tone); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tone-rest { --tone: var(--rest); } .tone-active { --tone: var(--active); } .tone-up { --tone: var(--up); } .tone-mint { --tone: var(--mint); }
.sig-viz { display: block; margin-top: 6px; }
.viz { display: block; width: 100%; height: 24px; overflow: hidden; }
.viz .v-line { fill: none; stroke: var(--tone); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz .wave { animation: wave 4s linear infinite; }
@keyframes wave { to { transform: translateX(-50px); } }
.viz .v-track { fill: none; stroke: rgba(255,255,255,.12); stroke-linecap: round; }
.viz .v-arc { fill: none; stroke: var(--tone); stroke-linecap: round; }
.viz .v-fill { fill: var(--tone); fill-opacity: .85; }
.viz .v-track-f { fill: rgba(255,255,255,.12); }
.viz .v-alert { fill: var(--up); }
.viz .v-needle { stroke: var(--on-night); stroke-width: 2; stroke-linecap: round; }
.viz .v-dot { fill: var(--tone); }
.viz .v-base { stroke: rgba(255,255,255,.22); stroke-width: 1.5; }
.viz .v-now { stroke: var(--on-night-soft); stroke-width: 1.5; stroke-dasharray: 2 2; }
.viz .v-text { fill: var(--on-night-soft); font: 600 9px DM, sans-serif; }
.viz .v-mini { fill: var(--on-night-soft); font: 600 6.5px DM, sans-serif; }
.viz .v-mini.end { text-anchor: end; }
.sig-val { font: 400 22px/1.15 Fraunces, Georgia, serif; letter-spacing: -.03em; margin-top: 6px; }
.sig-name { justify-content: flex-start; }
.sig-val small { font: 600 13px DM, sans-serif; letter-spacing: 0; color: var(--on-night-soft); margin-left: 5px; }
.sig-usual { font-size: 12px; line-height: 1.3; color: var(--on-night-soft); }
.spark { width: 100%; height: 24px; margin-top: 6px; }
.spark path { fill: none; stroke: var(--rest); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.trend, .ask { border-radius: 20px; background: rgba(0,0,0,.2); padding: 18px; }
.trend-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.trend-head b { font: 400 24px Fraunces, Georgia, serif; }
.range { display: flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.2); }
.range button { min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--on-night-soft); }
.range [aria-pressed="true"] { background: var(--on-night); color: var(--night); }
.trend-chart svg { display: block; width: 100%; height: auto; margin-top: 10px; }
.trend-chart .band { fill: var(--rest); fill-opacity: .14; }
.trend-chart .line { fill: none; stroke: var(--rest); stroke-width: 2.4; stroke-linejoin: round; }
.trend-chart .dot { fill: var(--active); filter: drop-shadow(0 0 6px var(--active)); }
.trend-chart .bar { fill: var(--rest); fill-opacity: .75; }
.trend-chart .bar.last { fill: var(--active); fill-opacity: 1; }
.trend-chart .axis { fill: var(--on-night-soft); font: 600 11px DM, sans-serif; text-anchor: end; }
.trend-chart .axis.start { text-anchor: start; }
.trend-chart .ev { stroke: var(--active); stroke-opacity: .55; stroke-dasharray: 3 4; }
.trend-chart .ev-t { fill: var(--active); font: 600 11px DM, sans-serif; }
.trend-note { margin: 8px 0 0; font-size: 14px; color: var(--on-night-soft); line-height: 1.5; }
.ask { display: flex; flex-direction: column; }
.ask h4 { margin: 0; font: 400 20px Fraunces, Georgia, serif; }
.chat { flex: 1; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 220px; overflow-y: auto; }
.msg { margin: 0; padding: 10px 14px; max-width: 88%; font-size: 15px; line-height: 1.45; border-radius: 4px 16px 16px 16px; background: rgba(255,255,255,.1); }
.msg.me { align-self: flex-end; border-radius: 16px 4px 16px 16px; background: var(--glow); color: var(--glow-ink); font-weight: 550; }
.msg.typing { color: var(--on-night-soft); letter-spacing: 2px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-line); font-size: 14px; font-weight: 550; text-align: left; }
.ask-chips button:hover { background: rgba(255,255,255,.08); }
.ask-chips button:disabled { opacity: .4; cursor: default; }

/* A baseline built for your dog */
.baseline { background: linear-gradient(var(--sky-1), var(--sky-2)); background: linear-gradient(in oklab, var(--sky-1), var(--sky-2)); padding: clamp(64px, 8vw, 120px) clamp(18px, 6vw, 96px); text-align: center; }
.base-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 560px); justify-content: center; gap: 16px; margin: 40px auto 0; text-align: left; }
.profile, .base-out { border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line); padding: 22px; }
.profile { display: grid; gap: 8px; align-content: start; }
.profile label, .plabel { font-size: 13px; font-weight: 650; color: var(--on-night-soft); margin-top: 8px; }
.profile label:first-child { margin-top: 0; }
.profile select { min-height: 46px; border-radius: 12px; padding: 0 12px; font: 600 15px DM, sans-serif; color: var(--on-night); background: rgba(0,0,0,.25); border: 1px solid var(--glass-line); }
.profile select option { color: #111; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.25); }
.seg button { flex: 1; min-height: 40px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--on-night-soft); }
.seg [aria-pressed="true"] { background: var(--glow); color: var(--glow-ink); }
.phase { display: grid; grid-template-columns: 14px auto 1fr; align-items: baseline; gap: 4px 10px; font-size: 14px; color: var(--on-night-soft); }
.phase b { color: var(--on-night); font-weight: 650; }
.phase-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--rest); }
.phase-dot.own { background: var(--active); border-color: var(--active); }
.base-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 18px 24px; }
.base-vals div { padding: 12px; border-radius: 14px; background: rgba(0,0,0,.18); }
.base-vals dt { font-size: 12px; color: var(--on-night-soft); }
.base-vals dd { margin: 4px 0 0; font: 400 20px/1.15 Fraunces, Georgia, serif; }
.base-out h3 { font-size: 20px; margin: 22px 0 10px; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tips li { padding: 12px 14px 12px 40px; border-radius: 14px; background: rgba(255,255,255,.06); font-size: 15px; line-height: 1.45; position: relative; }
.tips li:before { content: ''; position: absolute; left: 14px; top: 16px; width: 14px; height: 14px; border-radius: 70% 20% 70% 20%; background: var(--active); }

/* Join */
.join { background: linear-gradient(var(--sky-4b), var(--sky-5) calc(var(--join-top) - 20px), var(--sky-6) calc(var(--join-top) + 110px), var(--sky-7) 82%, var(--morning)); background: linear-gradient(in oklab, var(--sky-4b), var(--sky-5) calc(var(--join-top) - 20px), var(--sky-6) calc(var(--join-top) + 110px), var(--sky-7) 82%, var(--morning)); color: var(--ink); text-align: center; padding: var(--join-top) clamp(18px, 6vw, 96px) clamp(80px, 9vw, 140px); }
.join .sub { color: var(--ink); }
.perks { list-style: none; padding: 0; margin: 30px auto 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.perks li { padding: 10px 18px; border-radius: 999px; background: color-mix(in srgb, var(--apricot) 55%, var(--morning)); font-weight: 600; font-size: 15px; }

/* Floating button */
.float-cta { position: fixed; z-index: 6; left: 50%; bottom: 20px; transform: translate(-50%, 160%); opacity: 0; transition: transform .35s, opacity .35s; }
.float-cta.show { transform: translate(-50%, 0); opacity: 1; }

footer { background: var(--morning); color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 18px clamp(18px, 4vw, 56px) 28px; font-size: 13px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.foot-links { display: flex; gap: 20px; }
.foot-links .link { font-size: 13px; color: var(--ink-soft); }

/* Dialog */
dialog { border: 0; padding: 0; width: min(460px, calc(100% - 24px)); max-height: 90dvh; border-radius: 24px; background: var(--morning); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
dialog::backdrop { background: color-mix(in srgb, var(--night) 70%, transparent); backdrop-filter: blur(6px); }
body:has(dialog[open]) { overflow: hidden; }
#close { position: sticky; top: 12px; float: right; margin: 12px 12px -48px 0; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--morning); font-size: 24px; line-height: 1; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 15%, transparent); }
.panel { padding: 30px 28px 28px; }
.panel h2 { font-size: 36px; line-height: 1.05; letter-spacing: -.04em; margin: 4px 44px 10px 0; }
.panel p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.panel .fine { font-size: 13px; }
.product { display: block; width: 100%; height: 250px; object-fit: cover; background: var(--night); }
#interest-form { display: grid; gap: 10px; margin-top: 18px; }
#interest-form > label:not(.check):not(.trap), .chips legend { font-size: 14px; font-weight: 650; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-left: 4px; }
#interest-form input[type=email], #interest-form input[type=text] { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); background: #fff; color: var(--ink); font: 16px DM, sans-serif; }
.chips { border: 0; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 8px; }
.chips label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); font-size: 14px; font-weight: 550; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
.chips label:has(input:focus-visible) { outline: 3px solid var(--active); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin-top: 8px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--solid); }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.join-row .btn { min-height: 48px; padding: 0 22px; white-space: nowrap; }
@media (max-width: 479px) { .join-row { grid-template-columns: 1fr; } .join-row .btn { min-height: 52px; } }
/* Phones: sit high, so the email field and the button stay above the on-screen keyboard. */
@media (max-width: 699px) { dialog:has(.join-panel) { margin-top: max(20px, 6dvh); } }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#interest-form [role=status]:empty { display: none; }
#interest-form button:disabled { opacity: .6; cursor: wait; }
.welcome canvas { display: block; width: auto; max-width: 100%; height: auto; max-height: 44dvh; aspect-ratio: 4 / 5; border-radius: 16px; margin: 8px auto 14px; box-shadow: 0 14px 40px -18px rgba(20,23,58,.55); }
/* Desktop: the card on the left, words and actions on the right, so nothing scrolls. */
dialog:has(.welcome) { width: min(760px, calc(100% - 24px)); }
@media (min-width: 700px) {
  .welcome { display: grid; grid-template-columns: 300px 1fr; grid-template-areas: "card title" "card line" "card share" "card survey"; column-gap: 28px; align-content: center; align-items: start; }
  .welcome h2 { grid-area: title; margin-top: 10px; }
  .welcome .js-welcome-line { grid-area: line; }
  .welcome .survey-card { grid-area: survey; margin: 18px 0 0; }
  .welcome .share-row { grid-area: share; }
  .welcome canvas { grid-area: card; width: 300px; max-height: none; margin: 0; }
}
@media (max-width: 699px) {
  dialog:has(.welcome) { width: min(460px, calc(100% - 24px)); }
  .welcome h2 { font-size: 30px; }
  .welcome canvas { max-height: 40dvh; }
  .welcome .share-row { justify-content: center; }
}
@media (max-width: 699px) and (max-height: 720px) {
  .welcome { padding-top: 24px; padding-bottom: 20px; }
  .welcome canvas { max-height: 31dvh; margin: 6px auto 10px; }
  .welcome .js-welcome-line { font-size: 14px; margin-bottom: 8px; }
  .welcome .survey-card { padding: 8px 12px; margin-top: 10px; }
}
.share-row { display: flex; align-items: center; gap: 18px; }
.welcome .share-row .btn { width: 100%; min-height: 54px; font-size: 16px; }
.survey-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 0; padding: 12px 14px 12px 16px; border-radius: 16px; background: rgba(255,255,255,.55); color: var(--ink); text-decoration: none; border: 1px solid rgba(27,29,63,.12); transition: border-color .2s, background .2s; }
.survey-card:hover { border-color: rgba(27,29,63,.3); background: rgba(255,255,255,.85); }
.survey-card:focus-visible { outline: 3px solid var(--active); outline-offset: 3px; }
.survey-card b { display: block; font: 500 17px/1.2 Fraunces, Georgia, serif; }
.survey-card small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-soft); }
.survey-go { flex: none; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; font-size: 13.5px; }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; text-align: left; min-height: 0; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; max-width: 10ch; }
  .hero-visual { order: 2; width: min(100%, 440px); margin: 8px auto 4px; }
  .lede { order: 3; margin: 0; }
  .name-row { order: 4; width: 100%; }
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .flow { flex-direction: row; height: 44px; }
  .flow span { height: 0; width: auto; border-left: 0; border-top: 2px dashed color-mix(in srgb, var(--active) 45%, transparent); }
  .flow svg { transform: rotate(90deg); }
  .base-grid { grid-template-columns: 1fr; }
  .c2 { right: -4%; } .c1 { left: 0; } .c3 { left: -2%; }
  .detail { grid-template-columns: 1fr; }
  .detail .ring.big { max-width: 320px; }
}
@media (max-width: 640px) {
  .top { padding: 14px 16px; }
  .brand { font-size: 26px; }
  .hero { padding: 84px 16px 48px; gap: 18px; }
  .note-card { left: 0; bottom: -4%; width: 82%; padding: 13px 15px; }
  .note-card p { font-size: 15px; }
  .name-row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .name-row input { min-height: 48px; }
  .pick, .join, .watch, .baseline { padding-inline: 16px; }
  .chip { font-size: 11px; padding: 6px 10px; }
  .c3 { display: none; }
  .sig { padding: 13px 12px 10px; }
  .sig-val { font-size: 21px; }
  .collar-art { margin: 4px -16px -28px; }
  .half { padding: 16px; border-radius: 22px; }
  .half-head h3 { font-size: 24px; }
  .collar-thumb, .butler-mark { width: 56px; height: 56px; }
  .base-vals { grid-template-columns: 1fr; margin-left: 0; }
  .pick-grid { gap: 10px; }
  .pick-grid button { padding: 14px 8px; border-radius: 18px; }
  footer { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring .arc, .ring .up { animation: none; stroke-dashoffset: 0; }
  .caret::after, .chip, .viz .wave { animation: none; }
  .loop-card p { transition: none; }
  .float-cta { transition: none; }
}
