/* Dira. Trail Builders' wine and Geist, built like a native phone app. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --group: #f8f3f5;          /* pale wine wash for grouped lists */
  --group-press: #f1e7eb;
  --ink: #22101a;            /* Trail Builders ink */
  --soft: #8f8389;           /* Trail Builders mist: two-tone lead-in */
  --text: #4a3c44;
  --sub: #7d6f76;
  --wine: #4e1a2b;           /* logo */
  --wine-press: #3d1422;
  --on-wine: #f4edef;
  --on-wine-soft: #c3a3ad;
  --glow: #c9925f;           /* needle tip, from the flower's lit center */
  --line: rgba(34, 16, 26, 0.09);
  --line-strong: rgba(34, 16, 26, 0.16);
  --danger: #b3261e;
  --ok: #2e7d4f;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r-group: 16px;
  --r-ctrl: 12px;
  --pad: 20px;
  --max: 560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tabbar: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1a0910; --group: #27121b; --group-press: #321822;
    --ink: #f7eff2; --soft: #a28c95; --text: #dccdd3; --sub: #ab979f;
    --wine: #e9c0cc; --wine-press: #f4d6de; --on-wine: #f7eff2; --on-wine-soft: #c49aa8;
    --glow: #e7c3a5;
    --line: rgba(247, 239, 242, 0.08); --line-strong: rgba(247, 239, 242, 0.16);
    --danger: #ff8f84; --ok: #7fd1a3;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.45 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px) + 24px);
}
body.no-tabs { padding-bottom: 0; }
.defs { position: absolute; }
a { color: var(--wine); }
b, strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; border-radius: 10px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.ico { width: 22px; height: 22px; flex: none; }
.ico.sm { width: 16px; height: 16px; }
.ico.flip { transform: scaleX(-1); }
.north { fill: var(--glow); }

main { max-width: var(--max); margin: 0 auto; padding: env(safe-area-inset-top, 0px) var(--pad) 0; }

/* Type: Trail Builders' Geist with its two-tone device */
.large-title { font-size: 2.125rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); margin: 0; padding: 0; }
.subhead { margin: 4px 0 0; color: var(--sub); font-size: 0.9375rem; }
.screen-head { padding: 18px 0 14px; }
.two-tone { font-weight: 600; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.two-tone .soft { color: var(--soft); }
.two-tone .hard { color: var(--ink); }
.section-label { font-size: 0.8125rem; font-weight: 600; color: var(--sub); margin: 28px 4px 8px; letter-spacing: 0; }
.footnote { font-size: 0.875rem; color: var(--sub); margin: 10px 4px; }
.footnote.center { text-align: center; }
.error { color: var(--danger); font-size: 0.9375rem; margin: 6px 0 0; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0;
  font-size: 1.0625rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ease), background-color .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--wine); color: #fff; }
.btn.primary:active { background: var(--wine-press); }
.btn.secondary { background: var(--group); color: var(--wine); margin-top: 12px; }
.btn.secondary:active { background: var(--group-press); }
.btn.text { background: none; color: var(--wine); min-height: 44px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #1a0910; } }
.pill { flex: none; min-height: 32px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--wine); color: #fff; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
@media (prefers-color-scheme: dark) { .pill { color: #1a0910; } }

/* Docked actions (welcome, setup) */
.dock {
  position: sticky; bottom: 0; margin: 24px calc(-1 * var(--pad)) 0; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 70%, color-mix(in srgb, var(--bg) 0%, transparent));
  display: grid; gap: 4px;
}

/* Welcome */
.welcome { min-height: 100svh; display: flex; flex-direction: column; }
.welcome-top { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 0 22px; }
.rose { width: 148px; height: 148px; margin-bottom: 16px; }
.rose svg { width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.ticks line { stroke: var(--soft); stroke-width: 1.2; stroke-linecap: round; opacity: .5; }
.ticks line.major { stroke: var(--wine); opacity: 1; stroke-width: 2; }
.needle-body { fill: var(--bg); stroke: var(--wine); stroke-width: 2.4; stroke-linejoin: round; }
.needle-north { fill: var(--glow); }
.needle-pin { fill: var(--wine); }
.needle-big { transform-origin: 120px 120px; }
.needle-big.settle { animation: settle 1.9s var(--ease) both; }
@keyframes settle {
  0% { transform: rotate(-140deg); }
  50% { transform: rotate(16deg); }
  74% { transform: rotate(-6deg); }
  90% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}
.wordmark { font-size: 2.125rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); margin: 0; line-height: 1; }
.maker { margin: 6px 0 0; color: var(--sub); font-size: 0.9375rem; }
.welcome h1 { font-size: 1.75rem; line-height: 1.15; margin: 8px 0 22px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.points li { padding-left: 22px; position: relative; color: var(--text); }
.points li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--glow); transform: rotate(45deg); }
.welcome .dock { position: static; margin-top: auto; padding-top: 28px; background: none; }
.welcome-top { padding-top: 32px; }
.welcome .footnote { text-align: center; margin: 2px 0 0; }
.welcome h1 .hard { display: block; }
/* Short phones: keep Get started on screen without scrolling. */
@media (max-height: 720px) {
  .welcome-top { padding: 18px 0 14px; }
  .rose { width: 92px; height: 92px; margin-bottom: 10px; }
  .wordmark { font-size: 1.75rem; }
  .welcome h1 { font-size: 1.5rem; margin: 4px 0 14px; }
  .points { gap: 9px; font-size: 0.9375rem; }
  .welcome .dock { padding-top: 16px; }
}
/* Laptops and larger: one centered composition, a little wider and a size up,
   with the button close to the text instead of pinned to the bottom. */
@media (min-width: 760px) and (min-height: 721px) {
  main:has(> .welcome:not([hidden])) { max-width: 660px; }
  .welcome { justify-content: center; padding-block: 28px; box-sizing: border-box; min-height: calc(100svh - 24px); }
  .welcome-top { padding: 0 0 30px; }
  .rose { width: 136px; height: 136px; margin-bottom: 18px; }
  .wordmark { font-size: 2.5rem; }
  .maker { font-size: 1rem; margin-top: 8px; }
  .welcome h1 { font-size: 2.125rem; line-height: 1.12; margin: 0 0 26px; }
  .points { gap: 16px; font-size: 1.0625rem; }
  .welcome .dock { margin-top: 40px; padding-top: 0; }
  .welcome .footnote { margin-top: 10px; }
}
}

/* Setup */
.setup { min-height: 100svh; display: flex; flex-direction: column; }
.setup form { flex: 1; display: flex; flex-direction: column; }
.setup-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 12px 0 8px; }
.nav-back { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--group); color: var(--wine); display: grid; place-items: center; cursor: pointer; }
.progress { height: 4px; border-radius: 4px; background: var(--group); overflow: hidden; }
.progress span { display: block; height: 100%; width: 33%; background: var(--wine); border-radius: 4px; transition: width .35s var(--ease); }
.step-count { font-size: 0.875rem; color: var(--sub); font-variant-numeric: tabular-nums; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step .large-title { display: block; padding: 18px 0 22px; float: none; width: 100%; }
.field { display: block; margin: 0 0 20px; border: 0; padding: 0; }
.label { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.opt { font-weight: 400; color: var(--sub); margin-left: 6px; }
.hint { font-size: 0.875rem; color: var(--sub); margin: 8px 0 0; }
input:not([type]), textarea, select {
  width: 100%; padding: 14px 16px; border-radius: var(--r-ctrl); border: 1.5px solid transparent;
  background: var(--group); font-size: 17px; line-height: 1.35; color: var(--ink);
}
textarea { resize: none; min-height: 3.4em; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%237d6f76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 44px; }
input::placeholder, textarea::placeholder { color: var(--soft); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--wine); background: var(--bg); }
.upload { display: block; cursor: pointer; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: var(--r-ctrl); border: 1.5px dashed var(--line-strong); color: var(--wine); font-weight: 600; }
.upload:focus-within .upload-btn { border-color: var(--wine); }
.paste { margin-top: 12px; }
.paste summary { cursor: pointer; color: var(--wine); font-size: 0.9375rem; font-weight: 500; list-style: none; }
.paste summary::-webkit-details-marker { display: none; }
.paste textarea { margin-top: 10px; }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--group); border-radius: var(--r-ctrl); padding: 3px; gap: 2px; }
.seg.two { grid-template-columns: repeat(2, 1fr); }
.seg label { position: relative; }
.seg input, .chips input, .toggle input, .option input, .consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 4px 6px; border-radius: 9px; font-size: 0.9375rem; font-weight: 500; color: var(--sub); cursor: pointer; text-align: center; }
.seg input:checked + span { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(34,16,26,.12), 0 1px 1px rgba(34,16,26,.05); }
.seg input:focus-visible + span, .chips input:focus-visible + span, .consent input:focus-visible + span, .toggle input:focus-visible ~ i, .option input:focus-visible ~ .radio { outline: 2px solid var(--wine); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--group); font-size: 0.9375rem; font-weight: 500; color: var(--sub); cursor: pointer; }
.chips input:checked + span { background: var(--wine); color: #fff; }
@media (prefers-color-scheme: dark) { .chips input:checked + span { color: #1a0910; } }

.group { background: var(--group); border-radius: var(--r-group); padding: 0 16px; }
.toggle { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 12px; cursor: pointer; color: var(--ink); position: relative; }
.toggle + .toggle { border-top: 1px solid var(--line); }
.toggle i { flex: none; width: 51px; height: 31px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background-color .2s var(--ease); }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.18); transition: transform .25s var(--ease); }
.toggle input:checked ~ i { background: var(--wine); }
.toggle input:checked ~ i::after { transform: translateX(20px); }

.consent { display: flex; margin: 4px 0 8px; }
.consent span { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; color: var(--ink); font-weight: 500; }
.consent span::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--bg); }
.consent input:checked + span::before { background: var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; border-color: var(--wine); }
.setup .dock { margin-top: auto; }

/* This week */
.banner { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin: 0 0 14px; background: var(--group); border-radius: var(--r-group); }
.banner img { width: 40px; height: 40px; border-radius: 10px; }
.banner strong { display: block; font-size: 0.9375rem; }
.banner span { display: block; font-size: 0.875rem; color: var(--sub); }
.banner-x { width: 32px; height: 32px; border: 0; background: none; color: var(--sub); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }

.hero { background: var(--wine); border-radius: 22px; padding: 22px 22px 18px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(244,237,239,.12); box-shadow: 0 0 0 26px rgba(244,237,239,.04); }
.hero .two-tone { font-size: 1.3rem; line-height: 1.28; position: relative; }
.hero .two-tone .g { color: transparent; }
.hero .two-tone .c { color: transparent; transition: color .12s linear; }
.hero .two-tone .c.on { color: inherit; }
.think { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; min-height: 5.5rem; color: var(--on-wine-soft); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; position: relative; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-wine); opacity: .35; animation: dot 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.hero .two-tone .soft { color: var(--on-wine-soft); }
.hero .two-tone .hard { color: var(--on-wine); }
.hero-source { margin: 14px 0 0; font-size: 0.8125rem; color: var(--on-wine-soft); position: relative; }
@media (prefers-color-scheme: dark) { .hero { background: #4e1a2b; } }

.group-list { background: var(--group); border-radius: var(--r-group); overflow: hidden; margin: 0; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 14px 12px 14px; border: 0; background: none; text-align: left; text-decoration: none; color: inherit; cursor: pointer; position: relative; }
div.row { cursor: default; }
.row + .row::before, .row + .match::before, .match + .match::before, .match + .row::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: 1px solid var(--line); }
.row:active:not(div) { background: var(--group-press); }
.row-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--bg); color: var(--wine); display: grid; place-items: center; }
.row-ico .ico { width: 20px; height: 20px; }
.row-ico.ok { color: var(--ok); }
.row-app { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.row-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.row-title { color: var(--ink); font-weight: 500; }
.row-sub { color: var(--sub); font-size: 0.9375rem; line-height: 1.35; }
.chev { width: 18px; height: 18px; color: var(--soft); }
.row.danger .row-title { color: var(--danger); }

/* Match rows */
.match { position: relative; padding: 16px 14px 12px; }
.match h3 { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 2px; }
.match h3 a { color: var(--ink); text-decoration: none; }
.meta { margin: 0; color: var(--sub); font-size: 0.9375rem; }
.meta b { color: var(--text); font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--bg); color: var(--text); font-size: 0.8125rem; font-weight: 500; }
.badge.pick { background: var(--wine); color: #fff; }
@media (prefers-color-scheme: dark) { .badge.pick { color: #1a0910; } }
.why { margin: 10px 0 0; color: var(--text); font-size: 0.9375rem; }
.acts { display: flex; align-items: center; gap: 4px; margin: 8px -8px 0; }
.act { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 10px; border: 0; background: none; color: var(--wine); font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.act .ico { width: 18px; height: 18px; }
.act[aria-pressed="true"] { color: var(--ink); }
.act.hide { color: var(--sub); font-weight: 500; }
.via { margin-left: auto; padding-right: 8px; color: var(--sub); font-size: 0.8125rem; }
.empty { padding: 22px 16px; color: var(--sub); margin: 0; text-align: center; }

.filter { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 14px; padding: 2px var(--pad); scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter button { flex: none; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--group); font-size: 0.9375rem; font-weight: 500; color: var(--text); cursor: pointer; }
.filter button[aria-selected="true"] { background: var(--wine); color: #fff; }
@media (prefers-color-scheme: dark) { .filter button[aria-selected="true"] { color: #1a0910; } }

/* You */
.facts { padding: 0; }
.facts div { position: relative; padding: 12px 14px; }
.facts div + div::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.8125rem; color: var(--sub); margin-bottom: 2px; }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.option { cursor: pointer; }
.radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.option input:checked ~ .radio { border: 7px solid var(--wine); }
.option input:disabled ~ .row-main, .option input:disabled ~ .radio { opacity: .45; }
.about { text-align: center; margin: 36px 0 0; color: var(--sub); font-size: 0.875rem; }
.about .mark { width: 28px; height: 28px; color: var(--wine); }
.about p { margin: 8px auto 0; max-width: 30em; }

/* Compare (testing) */
#compare-out .group-list { padding: 14px; margin-top: 12px; }
#compare-out h3 { margin: 0 0 6px; font-size: 1rem; color: var(--ink); }
#compare-out ol { padding-left: 18px; margin: 8px 0; }

/* Status */
.status { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top, 0px)); width: min(520px, calc(100% - 24px)); background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.status p { margin: 0; font-size: 0.9375rem; }
.track { margin-top: 8px; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--bg) 20%, transparent); overflow: hidden; }
.track span { display: block; height: 100%; width: 0; background: var(--glow); transition: width .3s linear; }

/* Tab bar */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(4px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
}
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; border: 0; background: none; color: var(--soft); font-size: 0.75rem; font-weight: 500; cursor: pointer; }
.tabs button .ico { width: 26px; height: 26px; }
.tabs button[aria-current="page"] { color: var(--wine); }

/* Bottom sheet */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(26, 9, 16, 0); display: flex; align-items: flex-end; justify-content: center; transition: background-color .25s var(--ease); }
.scrim.open { background: rgba(26, 9, 16, 0.4); }
.bottom-sheet { width: min(560px, 100%); background: var(--bg); border-radius: 22px 22px 0 0; padding: 8px 22px calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .32s var(--ease); }
.scrim.open .bottom-sheet { transform: translateY(0); }
.grab { width: 36px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 18px; }
.bottom-sheet h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 14px; }
.sheet-steps { list-style: none; margin: 0 0 8px; padding: 0; }
.sheet-steps li { display: flex; align-items: center; gap: 14px; padding: 10px 0; color: var(--ink); }
.sheet-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--group); color: var(--ink); display: grid; place-items: center; }
.sheet-ico svg { width: 24px; height: 24px; }
.sheet-ico.blue { color: #0a84ff; }
.sheet-ico img { border-radius: 7px; }
.sheet-other { margin: 0 0 8px; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .needle-big.settle { animation: none; }
  .scrim, .bottom-sheet, .progress span, .toggle i, .toggle i::after { transition: none; }
}
@media (min-width: 700px) {
  main { padding-top: 24px; }
  .tabs { left: 50%; right: auto; transform: translateX(-50%); width: 420px; bottom: 16px; border-radius: 22px; border: 1px solid var(--line); padding-bottom: 6px; }
}

/* ---------- Plan hero v2: prose, key facts, rating ---------- */
.hero .two-tone { font-size: 1.15rem; line-height: 1.38; letter-spacing: -0.018em; text-wrap: pretty; }
.hero.long .two-tone { font-size: 1.04rem; line-height: 1.42; }
.hero-facts { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(244,237,239,.14); display: grid; gap: 10px; position: relative; }
.hero-facts li { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; align-items: baseline; }
.hero-facts .fk { font-size: 0.75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--on-wine-soft); }
.hero-facts .fv { font-size: 0.98rem; font-weight: 600; color: var(--on-wine); letter-spacing: -0.01em; }
.hero-facts .fs { grid-column: 2; font-size: 0.8125rem; color: var(--on-wine-soft); }
.hero-facts.reveal li { opacity: 0; transform: translateY(6px); animation: fact-in .45s var(--ease, ease) forwards; animation-delay: calc(var(--i) * 140ms); }
@keyframes fact-in { to { opacity: 1; transform: none; } }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; position: relative; }
.hero-foot .hero-source { margin: 0; }
.rate { display: flex; gap: 6px; }
.rate-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(244,237,239,.22); background: transparent; color: var(--on-wine-soft); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, color .15s; }
.rate-btn[aria-pressed="true"] { background: var(--on-wine); color: var(--wine); border-color: var(--on-wine); }
.rate-btn:focus-visible { outline: 2px solid var(--on-wine); outline-offset: 2px; }
.think { min-height: 6.5rem; }

/* Steps */
.row.step { align-items: flex-start; }
.row.step .row-ico { margin-top: 2px; }
.row-kicker { display: block; font-size: 0.75rem; font-weight: 600; color: var(--wine); margin-bottom: 2px; }
.row-meta { display: block; font-size: 0.8125rem; color: var(--soft); margin-top: 4px; }

/* Survey */
.survey { margin-top: 28px; background: var(--group); border-radius: var(--r-group); padding: 18px 16px 16px; }
.survey-head { display: flex; align-items: center; justify-content: space-between; }
.survey-head h2 { margin: 0; font-size: 1.0625rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.survey .hint { margin: 4px 0 12px; }
.survey-q { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.survey-q legend { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 8px; padding: 0; }
.survey .chips span { background: var(--bg); min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.survey .btn { margin-top: 4px; }
.survey-thanks { margin: 0; font-weight: 600; color: var(--wine); text-align: center; }
.compare-box { padding: 14px 16px; margin-top: 12px; }
.compare-box h3 { margin: 0 0 6px; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .hero-facts.reveal li { animation: none; opacity: 1; transform: none; } }

/* Standard / Detailed switch above the plan */
.mode-row { display: flex; justify-content: flex-start; margin: 0 0 12px; }
.seg.mode { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(260px, 100%); }
.seg.mode span { min-height: 34px; font-size: 0.875rem; }
.mode-note { background: var(--group); border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; }
.mode-note p { margin: 0 0 10px; font-size: 0.9rem; color: var(--text); }
.mode-note-acts { display: flex; gap: 8px; }
.pill.ghost { background: var(--bg); color: var(--wine); }

/* Coming soon (before launch) */
.soon-dock { display: grid; gap: 10px; justify-items: stretch; }
.soon-pill { justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--group); color: var(--wine); font-weight: 600; font-size: 0.9375rem; }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wine); animation: soon-pulse 1.8s ease-out infinite; }
@keyframes soon-pulse { 0% { box-shadow: 0 0 0 0 rgba(78,26,43,.45); } 70% { box-shadow: 0 0 0 9px rgba(78,26,43,0); } 100% { box-shadow: 0 0 0 0 rgba(78,26,43,0); } }
.soon-dock .footnote { text-align: center; margin: 0; }
@media (prefers-reduced-motion: reduce) { .soon-dot { animation: none; } }
