/* OkayFolk UI
   Calm, light, domestic. One brand colour (pine), one warm accent (amber "ping") used sparingly.
   Borders over shadows. Status = colour + words, never colour alone. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }
:root {
  --ink: #241B26; --ink-2: #4D4350; --muted: #635866; --line: #E8E2E8; --line-2: #F2EEF2;
  --paper: #F8F6F8; --surface: #FFFFFF;
  --brand: #6B2D6B; --brand-hover: #561F56; --brand-soft: #F6ECF6;
  --ping: #D4A017; --wait-bg: #FCF3E2; --wait-ink: #87560F;
  --ok: #287046; --ok-bg: #E6F2EA; --sos: #BF3A2B; --sos-bg: #FBEBE8; --sos-hover: #A32F22;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .45em; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(1.55rem, 3.4vw, 2rem); }
h2 { font-size: 1.15rem; }
h3, h2.h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
small { font-size: .86rem; }
small, .muted { color: var(--muted); }
.ic { flex: none; vertical-align: -3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 540px; }

/* ---------- header ---------- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { display: block; }
.nav { display: flex; gap: 2px; align-items: center; margin-left: 10px; }
.nav a { display: flex; align-items: center; gap: 7px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a.on { color: var(--brand); background: var(--brand-soft); }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.account form { margin: 0; }
.account .me-chip { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.linkbtn { background: none; border: 0; font: inherit; font-size: .92rem; color: var(--muted); cursor: pointer; padding: 6px 4px; }
.linkbtn:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) {
  .top .wrap { gap: 8px; }
  .nav { margin-left: 0; }
  .nav a { padding: 8px 9px; }
  .nav a span { display: none; }
  .account .me-chip { display: none; }
}

main { padding: 28px 0 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 0; }
.backlink { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; color: var(--muted); text-decoration: none; margin-bottom: 10px; }
.backlink:hover { color: var(--ink); }

/* ---------- messages ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); margin-bottom: 18px; font-weight: 500; border: 1px solid; }
.flash.ok { background: var(--ok-bg); color: #1F5A38; border-color: #CFE6D7; }
.flash.err { background: var(--sos-bg); color: #8A2A1F; border-color: #F2CDC7; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card + .card { margin-top: 16px; }
.grid > .card, .plans > .card, .split > * > .card:first-child { margin-top: 0; }
.card h2 { margin-top: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.spacer { height: 16px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; font-size: .93rem;
  padding: 9px 15px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .12s, border-color .12s; }
.btn:hover { border-color: #D6CCD6; background: #FBF9FB; color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-danger { color: var(--sos); }
.btn-danger:hover { background: var(--sos-bg); border-color: #F2CDC7; color: var(--sos); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); padding-left: 6px; padding-right: 6px; }
.btn-ghost:hover { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.btn-sm { padding: 6px 10px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-big { padding: 15px 20px; font-size: 1.05rem; border-radius: var(--r); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
form.inline { display: inline; margin: 0; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
label .hint { margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=time], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #CFC5CF; border-radius: var(--r-sm); padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: #9C8F9F; }
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days label { margin: 0; font-weight: 500; border: 1px solid #CFC5CF; border-radius: var(--r-sm); padding: 6px 11px; display: flex; gap: 7px; align-items: center; cursor: pointer; }
.days label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.days input { accent-color: var(--brand); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.section { padding-bottom: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.section:last-of-type { border-bottom: 0; }
.section h3 { margin-bottom: 4px; }
.section > .hint { margin: 0 0 14px; }

/* ---------- status ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); }
.status.wait { color: var(--wait-ink); }
.status.alert { color: var(--sos); }
.status.off { color: var(--muted); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag.done, .tag.ok { background: var(--ok-bg); color: #1F5A38; }
.tag.sent, .tag.wait { background: var(--wait-bg); color: var(--wait-ink); }
.tag.missed, .tag.alert { background: var(--sos-bg); color: #8A2A1F; }
.tag.brand { background: var(--brand-soft); color: var(--brand); }

/* ---------- dashboard roll call ---------- */
.today-line { font-size: 1.05rem; color: var(--ink-2); margin: 4px 0 0; }
.rollcall { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.rollcall li + li { border-top: 1px solid var(--line-2); }
.rollcall a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; padding: 16px 18px; color: inherit; text-decoration: none; }
.rollcall a:hover { background: #FBF9FB; }
.rollcall li:first-child a { border-radius: var(--r) var(--r) 0 0; }
.rollcall li:last-child a { border-radius: 0 0 var(--r) var(--r); }
.rollcall .name { font-weight: 600; font-size: 1.02rem; }
.rollcall .name small { font-weight: 400; margin-left: 6px; }
.rollcall .line { font-size: .9rem; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rollcall .chev { color: #8A7E8D; }
.dots { display: flex; gap: 5px; justify-content: flex-end; margin-top: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #DAD1DA; }
.dot.done { background: var(--ok); }
.dot.sent { background: var(--ping); }
.dot.missed { background: var(--sos); }
.dot.skipped { background: #C4B9C4; }
.side { text-align: right; }
@media (max-width: 560px) {
  .rollcall a { grid-template-columns: 40px minmax(0, 1fr) 16px; }
  .rollcall .side { grid-column: 2; text-align: left; }
  .rollcall .chev { grid-row: 1; grid-column: 3; }
  .dots { justify-content: flex-start; }
}
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: 1.05rem; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.3rem; }
.who { display: flex; gap: 14px; align-items: center; }
.who h1, .who h3 { margin: 0; }
.add-row { display: flex; align-items: center; gap: 10px; padding: 16px 18px; color: var(--brand); font-weight: 600; text-decoration: none; }
.empty-state { text-align: center; padding: 36px 20px; }
.empty-state .ic { color: var(--brand); }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.list li:first-child { border-top: 0; padding-top: 4px; }
.list .main { flex: 1 1 220px; min-width: 0; display: flex; gap: 12px; align-items: flex-start; }
.list .main > div { min-width: 0; }
.list .main b, .list .main small { display: block; }
.list .lead-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.feed li { padding: 10px 0; font-size: .92rem; align-items: flex-start; }
.feed li > span:first-child { flex: 1 1 auto; }
.feed small { white-space: nowrap; }
.empty { color: var(--muted); padding: 14px 0; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 22px; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }

/* ---------- pass ---------- */
.pass-item { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; width: 100%; }
.pass-item .qr { width: 88px; height: 88px; border-radius: var(--r-sm); border: 1px solid var(--line); padding: 5px; background: #fff; }
.pass-item .qr img { width: 100%; height: 100%; display: block; }
.modes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.mode { border: 1px solid #CFC5CF; border-radius: var(--r); padding: 13px 14px; cursor: pointer; display: block; font-weight: 400; position: relative; }
.mode:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: #FDFBFD; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode .mode-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 4px; }
.mode .mode-title .ic { color: var(--brand); }
.mode.locked { opacity: .5; cursor: not-allowed; }

/* ---------- person's own page ---------- */
.me { max-width: 500px; margin: 0 auto; }
.me .hello { font-size: 1.75rem; margin-bottom: 2px; }
.big-ok { background: var(--ok); border-color: var(--ok); color: #fff; font-size: 1.15rem; padding: 18px; }
.big-ok:hover { background: #276B43; border-color: #276B43; color: #fff; }
.sos-btn { background: var(--sos); border-color: var(--sos); color: #fff; font-size: 1.2rem; padding: 20px; border-radius: var(--r-lg); }
.sos-btn:hover { background: var(--sos-hover); border-color: var(--sos-hover); color: #fff; }
.task { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.task + .task { margin-top: 10px; }
.task.done { opacity: .6; }
.task b { font-size: 1.08rem; }
.callgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.callgrid .btn { justify-content: flex-start; padding: 14px 16px; font-size: 1rem; }
.callgrid .btn small { display: block; font-weight: 400; color: var(--muted); }
.callgrid .btn.emerg { border-color: #F2CDC7; color: var(--sos); }
.section-title { font-size: 1rem; font-weight: 600; color: var(--ink-2); margin: 26px 0 10px; }

/* ---------- public pass page ---------- */
.ppass { max-width: 540px; margin: 0 auto; }
.ppass-head { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--sos); border-radius: var(--r); padding: 20px; }
.ppass-head.calm { border-top-color: var(--brand); }
.ppass-head .kind { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--sos); }
.ppass-head.calm .kind { color: var(--brand); }
.ppass-head h1 { margin: 8px 0 0; font-size: 1.9rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.fact span { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.fact b { white-space: pre-line; font-weight: 600; }
.fact.wide { grid-column: 1 / -1; }
.fact.alert { background: var(--sos-bg); border-color: #F2CDC7; }
.fact.alert span { color: #8A2A1F; }

/* ---------- printable card ---------- */
.idcard { width: 86mm; height: 54mm; border: 1px solid #C4B7C4; border-radius: 3.5mm; padding: 3.5mm 4mm; display: grid; grid-template-columns: 1fr 25mm; gap: 3mm;
  font-size: 8pt; line-height: 1.35; overflow: hidden; background: #fff; position: relative; }
.idcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1.6mm; background: var(--sos); }
.idcard h4, .idcard .pc-name { font-size: 12pt; margin: .5mm 0 1mm; letter-spacing: -.01em; }
.idcard .tag-line { font-size: 7pt; font-weight: 700; color: var(--sos); }
.idcard .qrbox svg { width: 25mm; height: 25mm; display: block; }
.idcard .scan { font-size: 6.5pt; text-align: center; color: var(--ink-2); margin-top: .5mm; }
.idcard .brandline { position: absolute; left: 4mm; bottom: 2.6mm; font-size: 6.5pt; color: var(--muted); }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
  .idcard { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- plans ---------- */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan.current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.price { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 2px; }
.price small { font-size: .88rem; font-weight: 400; display: block; letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 14px 0 18px; }
.ticks li { padding: 5px 0 5px 26px; position: relative; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.ticks li.no { color: var(--muted); }
.ticks li.no::before { border: 0; height: 2px; width: 10px; background: #D0C6D0; transform: none; top: 14px; }

/* ---------- landing ---------- */
.hero { padding: 36px 0 20px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.03em; line-height: 1.08; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34em; }
.feature { display: flex; gap: 14px; }
.feature .ic-box { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.devbox { background: var(--wait-bg); border: 1px dashed #E9C98D; padding: 12px; border-radius: var(--r-sm); word-break: break-all; font-size: .9rem; }
code { background: var(--line-2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.foot { color: var(--muted); font-size: .85rem; padding: 26px 0 42px; text-align: center; }

/* ---------- form helpers ---------- */
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 500; font-size: .93rem; padding: 8px 12px;
  border: 1px solid #CFC5CF; border-radius: var(--r-sm); cursor: pointer; background: var(--surface); }
.segmented label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--brand-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { font: inherit; font-size: .84rem; padding: 5px 10px; border-radius: 999px; border: 1px solid #CFC5CF; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
details.more > summary, details.edit > summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .92rem; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.more > summary::-webkit-details-marker, details.edit > summary::-webkit-details-marker { display: none; }
details.more > summary::before, details.edit > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
details[open].more > summary::before, details[open].edit > summary::before { transform: rotate(45deg); }
details.more { margin-bottom: 18px; }
details.more.section { border-bottom: 0; }
.list li details.edit { flex-basis: 100%; }
.list li details.edit > summary { font-size: .88rem; }
.edit-body { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #FCFBFC; }
.list li.paused .main { opacity: .55; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- sign in / sign up ---------- */
.auth { max-width: 420px; margin: 8px auto 0; }
.auth-logo { justify-content: center; margin-bottom: 18px; font-size: 1.25rem; }
.auth-card { padding: 28px; }
.auth-card h1 { font-size: 1.5rem; }
.auth-alt { text-align: center; color: var(--muted); margin-top: 18px; }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brand); font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 8px; cursor: pointer; }
.legal h2 { margin-top: 22px; }
.legal p { color: var(--ink-2); }

/* ---------- home page ---------- */
.wrap.wide { max-width: 1160px; }
.site-links { display: flex; gap: 4px; margin-right: 8px; }
.site-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 10px; border-radius: var(--r-sm); }
.site-links a:hover { background: var(--line-2); color: var(--ink); }
.account .linkbtn { text-decoration: none; color: var(--ink-2); font-weight: 500; }
@media (max-width: 960px) { .site-links { display: none; } }
main:has(.hero) { padding-top: 0; }
section { padding: 64px 0; scroll-margin-top: 70px; }
section.band { position: relative; }
section.band::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: -1; }
.sec-head { max-width: 680px; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.025em; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin-top: 10px; }
.hero { padding: 56px 0 48px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); letter-spacing: -.035em; line-height: 1.05; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust .ic { color: var(--brand); }

/* demo phones */
.demo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.phone { width: 320px; max-width: 100%; background: #241B26; border-radius: 38px; padding: 11px; box-shadow: 0 30px 60px -30px rgba(36, 27, 38,.55); }
.screen { background: var(--surface); border-radius: 28px; min-height: 540px; padding: 18px 16px; display: flex; flex-direction: column; gap: 11px; overflow: hidden; }
.screen h3, .screen h2.h3 { font-size: 1.25rem; margin: 0; }
.screen .sub { color: var(--muted); font-size: .88rem; margin: 2px 0 0; }
.statusbar { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.d-ok { border: 0; border-radius: 20px; background: var(--ok); color: #fff; padding: 20px 12px; font: inherit; font-size: 1.45rem; font-weight: 700; cursor: pointer; }
.d-ok small { display: block; font-size: .82rem; font-weight: 500; opacity: .9; margin-top: 3px; }
.d-ok.done { background: var(--ok-bg); color: var(--ok); }
.d-med { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; }
.d-med b { display: block; font-variant-numeric: tabular-nums; }
.d-med span { font-size: .85rem; color: var(--muted); }
.d-med button { border: 0; background: var(--brand); color: #fff; border-radius: 9px; padding: 8px 12px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.d-med button.done { background: var(--ok-bg); color: var(--ok); }
.d-sos { margin-top: auto; border: 0; border-radius: 20px; background: var(--sos); color: #fff; padding: 16px; font: inherit; font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.d-sos small { display: block; font-size: .78rem; font-weight: 500; letter-spacing: 0; opacity: .9; }
.sos-banner { background: var(--sos-bg); color: #8A2A1F; border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: .92rem; }
.sos-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sos-steps li { display: flex; gap: 9px; font-size: .9rem; color: var(--muted); }
.sos-steps li.on, .sos-steps li.done { color: var(--ink); }
.sdot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .7rem; font-weight: 700; flex: none; }
.sos-steps li.on .sdot { border-color: var(--brand); background: var(--brand); color: #fff; }
.sos-steps li.done .sdot { border-color: var(--ok); background: var(--ok); color: #fff; }
.callrow { display: flex; flex-wrap: wrap; gap: 6px; }
.callrow span { border: 1px solid var(--line); border-radius: 9px; padding: 5px 10px; font-size: .88rem; font-weight: 600; }
.callrow .em { border-color: #F2CDC7; color: var(--sos); }
.reset { margin-top: auto; border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 10px; padding: 9px; font: inherit; font-size: .88rem; cursor: pointer; }
.d-member { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; }
.d-av { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.d-who { flex: 1; min-width: 0; }
.d-who b { display: block; font-size: .95rem; }
.d-who span { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-alert { background: var(--sos); color: #fff; border-radius: 12px; padding: 11px; font-weight: 700; text-align: center; }
.d-alert.calm { background: var(--brand); }
.d-field { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line-2); padding: 6px 0; font-size: .88rem; }
.d-field span { color: var(--muted); }
.d-field b { text-align: right; }
.d-call { border: 0; background: var(--brand); color: #fff; border-radius: 11px; padding: 11px; font: inherit; font-weight: 600; cursor: pointer; }
.d-toast { background: var(--ok-bg); color: #1F5A38; border-radius: 11px; padding: 9px 11px; font-size: .85rem; font-weight: 600; }
.d-doc { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; font-size: .88rem; }
.d-doc span { display: block; color: var(--muted); font-size: .76rem; }
.d-lock { border: 1px dashed #D6CCD6; border-radius: 13px; padding: 16px; text-align: center; color: var(--muted); font-size: .9rem; display: flex; flex-direction: column; gap: 10px; }
.demo-note { font-size: .85rem; color: var(--muted); text-align: center; max-width: 320px; margin: 0; }

/* why */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }
.statement { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.4; font-weight: 500; color: var(--ink); letter-spacing: -.01em; margin-top: 14px; }
.pillars { display: flex; flex-direction: column; gap: 12px; }
.pillars > div { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--paper); }
.pillars h3 { margin-bottom: 4px; }
.pillars p { color: var(--muted); margin: 0; }

/* pass */
.pass-sec { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
@media (max-width: 900px) { .pass-sec { grid-template-columns: 1fr; justify-items: center; } }
.pass-left { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.sample-card { width: 100%; max-width: 440px; aspect-ratio: 85.6 / 54; background: var(--surface); border: 1px solid #D6CCD6; border-left: 8px solid var(--sos); border-radius: 16px; padding: 18px 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px; box-shadow: 0 24px 40px -28px rgba(36, 27, 38,.5); }
.sc-top { font-size: .78rem; font-weight: 700; color: var(--sos); }
.sc-name { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 8px; }
.sample-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: .86rem; }
.sample-card dt { color: var(--muted); }
.sample-card dd { margin: 0; font-weight: 600; }
.sc-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; align-self: center; }
.sc-qr svg { width: 104px; height: 104px; display: block; }
.sc-qr span { font-size: .68rem; font-weight: 700; color: var(--ink-2); }
.mode-btn { text-align: left; border: 1px solid #CFC5CF; background: var(--surface); border-radius: var(--r); padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; }
.mode-btn[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: #FDFBFD; }
.mode-btn .mode-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 3px; }
.mode-btn .mode-title .ic { color: var(--brand); }
.points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; max-width: 540px; }
.points li { padding-left: 14px; border-left: 3px solid var(--brand); color: var(--muted); }
.points b { color: var(--ink); font-weight: 600; }

/* use cases & features */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }
.use { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--paper); }
.use .who { font-size: .85rem; font-weight: 600; color: var(--brand); }
.use h3 { margin: 6px 0; font-size: 1.05rem; }
.use p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { background: var(--surface); padding: 22px; }
.feature-card .ic-box { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 10px; }
.feature-card h3 { margin-bottom: 4px; }
.feature-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.feature-card .moment { margin-top: 10px; padding: 10px 12px; background: var(--paper); border-radius: 10px; color: var(--muted); font-size: .9rem; }

/* steps, sos, soon */
.steps-row { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .steps-row { grid-template-columns: 1fr; } }
.steps-row li { counter-increment: s; position: relative; padding-top: 46px; }
.steps-row li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps-row p { color: var(--muted); margin: 0; }
.sos-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .sos-sec { grid-template-columns: 1fr; } }
.sos-order { list-style: none; counter-reset: o; padding: 0; margin: 16px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.sos-order li { counter-increment: o; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.sos-order li::before { content: counter(o); width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; }
.sos-order li span { flex: 1; font-weight: 500; }
.sos-order li em { font-style: normal; color: var(--muted); font-size: .85rem; }
.sos-points { display: flex; flex-direction: column; gap: 18px; }
.sos-points > div { border-left: 3px solid var(--sos); padding-left: 16px; }
.sos-points h3 { margin-bottom: 4px; }
.sos-points p { color: var(--muted); margin: 0; }
.soon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .soon { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .soon { grid-template-columns: 1fr; } }
.soon > div { border: 1px dashed #D6CCD6; border-radius: var(--r); padding: 16px; }
.soon h3 { margin-bottom: 4px; }
.soon p { color: var(--muted); font-size: .92rem; margin: 0; }

/* pricing, faq, cta, footer */
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan { display: flex; flex-direction: column; }
.plan .btn-block { margin-top: auto; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }
.qa { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--paper); }
.qa summary { font-weight: 600; cursor: pointer; }
.qa p { color: var(--muted); margin: 8px 0 0; }
.final-cta { background: var(--brand); color: #fff; border-radius: 22px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.final-cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 6px; }
.final-cta p { margin: 0; opacity: .9; }
.btn-light { background: #fff; border-color: #fff; color: var(--brand); }
.btn-light:hover { background: #F8F0F8; color: var(--brand-hover); }
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; background: var(--surface); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--brand); }

/* ---------- product tour ---------- */
.tour { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; }
.tour-steps button { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink-2);
  background: transparent; border: 0; border-radius: var(--r-sm); padding: 9px 10px; cursor: pointer; }
.tour-steps button:hover { background: var(--surface); color: var(--ink); }
.tour-steps .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #D6CCD6; display: grid; place-items: center; font-size: .78rem; font-weight: 600; flex: none; color: var(--muted); }
.tour-steps button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.tour-steps button[aria-selected="true"] .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.tour-stage { min-width: 0; }
.tour-panel { margin: 0; }
.tour-panel figcaption { margin-top: 16px; color: var(--ink-2); max-width: 46em; }
.tour-panel figcaption b { color: var(--ink); margin-right: 4px; }
.tour-nav { display: flex; gap: 8px; margin-top: 16px; }
.browser { border: 1px solid #DDD4DD; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 50px -36px rgba(36, 27, 38,.45); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F2EEF2; border-bottom: 1px solid #E4DCE4; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D3C9D3; }
.browser-bar em { font-style: normal; font-size: .78rem; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 2px 12px; margin-left: 10px; }
.browser img { display: block; width: 100%; height: auto; }
.phone.small { width: 300px; margin: 0 auto; }
.phone.small img { display: block; width: 100%; height: auto; border-radius: 26px; }
@media (max-width: 860px) {
  .tour { grid-template-columns: 1fr; gap: 16px; }
  .tour-steps { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .tour-steps li { flex: none; }
  .tour-steps button { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); }
  .tour-steps button[aria-selected="true"] { box-shadow: none; border-color: var(--brand); }
}
/* chat (WhatsApp-style, not branded) */
.chat { background: #EFEAE2; border-radius: 26px; overflow: hidden; min-height: 560px; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px; background: #6B2D6B; color: #fff; }
.chat-head .chat-av svg { width: 34px; height: 34px; border-radius: 50%; display: block; }
.chat-head b { display: block; font-size: .95rem; }
.chat-head small { font-size: .74rem; opacity: .85; }
.chat-body { padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.chat .day { align-self: center; background: #fff; color: var(--muted); font-size: .72rem; padding: 3px 10px; border-radius: 8px; }
.msg { max-width: 86%; padding: 8px 10px 18px; border-radius: 10px; font-size: .86rem; line-height: 1.4; position: relative; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.msg.in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.msg.out { background: #D9FDD3; align-self: flex-end; border-top-right-radius: 2px; font-weight: 600; padding-right: 54px; }
.msg .t { position: absolute; right: 8px; bottom: 3px; font-size: .66rem; color: #5F6B73; font-weight: 400; }
.qr-btns { display: flex; gap: 6px; margin-top: 8px; padding-top: 6px; border-top: 1px solid #F0ECF0; }
.qr-btns span { flex: 1; text-align: center; color: #6B2D6B; font-weight: 600; font-size: .8rem; padding: 4px 0; }
/* escalation timeline */
.timeline-card { max-width: 560px; }
.timeline { list-style: none; margin: 14px 0; padding: 0 0 0 4px; }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 0 10px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); }
.timeline li.warn::before { background: var(--ping); }
.timeline li.alert::before { background: var(--sos); }
.timeline b { font-variant-numeric: tabular-nums; }
.timeline span { color: var(--ink-2); }
/* compare table, money */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-align: center; }
.compare thead th { background: var(--paper); font-weight: 600; }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; font-weight: 500; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--ok); }
.compare .no { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 760px) { .money { grid-template-columns: 1fr; } }
.money > div { border-top: 2px solid var(--brand); padding-top: 12px; }
.money h3 { margin-bottom: 4px; }
.money p { color: var(--muted); margin: 0; }
.chat-head small { color: rgba(255,255,255,.85); }
.chat-head .chat-av svg { border: 2px solid rgba(255,255,255,.75); }

/* text inside coloured buttons keeps the button's own colour */
button small, .btn small, .d-ok small, .d-sos small { color: inherit; }
/* Pytron credit */
.made-by { color: var(--muted); font-size: .9rem; }
.made-by a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.made-by a:hover { color: var(--brand); text-decoration: underline; }

/* ================= premium polish (v9) ================= */
:root {
  --shadow-sm: 0 1px 2px rgba(40, 20, 40, .04), 0 1px 3px rgba(40, 20, 40, .06);
  --shadow-md: 0 2px 4px rgba(40, 20, 40, .04), 0 8px 24px -6px rgba(40, 20, 40, .12);
  --shadow-lg: 0 24px 48px -18px rgba(40, 20, 40, .28);
  --brand-deep: #4A1A4A;
}
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }
body { background: linear-gradient(180deg, #FCFBFC 0, var(--paper) 360px) no-repeat, var(--paper); }

/* header: glassy */
.top { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); }

/* surfaces */
.card, .rollcall { border-color: #EAE4EA; box-shadow: var(--shadow-sm); }
.card { border-radius: 14px; }
.feature-card { transition: background .2s; }
.feature-card:hover { background: #FDFBFD; }
.use { background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.use:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* buttons with depth */
.btn { transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn-primary { background: linear-gradient(180deg, #7A367A 0, var(--brand) 100%); border-color: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(74, 26, 74, .25); }
.btn-primary:hover { background: linear-gradient(180deg, var(--brand) 0, var(--brand-hover) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 14px -6px rgba(74, 26, 74, .5); transform: translateY(-1px); }
.btn-primary:active { transform: none; }
.btn-light { box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); }

/* avatar */
.avatar { background: linear-gradient(145deg, #F6ECF6, #EBD9EB); box-shadow: inset 0 0 0 1px rgba(107, 45, 107, .08); }

/* landing hero glow + phone */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -6%; top: 2%; width: 560px; height: 560px; max-width: 70vw;
  background: radial-gradient(closest-side, rgba(107, 45, 107, .13), rgba(242, 165, 65, .06) 60%, transparent); pointer-events: none; }
.phone { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(36, 27, 38, .06); }

/* plans */
.plan { transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plan.featured { box-shadow: 0 0 0 1px var(--brand), var(--shadow-md); }

/* final CTA: deep gradient */
.final-cta { background: radial-gradient(120% 140% at 0% 0%, #823A82 0, var(--brand) 45%, var(--brand-deep) 100%); box-shadow: var(--shadow-lg); }

/* landing footer: deep pine */
.site-foot { background: #2D132D; border-top: 0; color: #E8D8E8; }
.site-foot .logo, .site-foot .logo:hover { color: #fff; }
.site-foot .muted, .site-foot .made-by { color: #D4BFD4; }
.site-foot .made-by a, .site-foot .foot-links a { color: #F6ECF6; }
.site-foot .made-by a:hover, .site-foot .foot-links a:hover { color: #fff; text-decoration: underline; }

/* app footer */
.foot { padding-top: 28px; }
@media (prefers-reduced-motion: reduce) { .btn, .use, .plan { transition: none; } .btn-primary:hover, .use:hover, .plan:hover { transform: none; } }
main { overflow-x: clip; }
.code-input { font-size: 1.6rem !important; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.lock-banner { display: flex; gap: 12px; align-items: flex-start; background: var(--wait-bg); border: 1px solid #EED8AE; color: var(--wait-ink); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; }
.lock-banner b { color: #5E3B08; }
.trial-chip { display: inline-flex; align-items: center; gap: 6px; }
.account .linkbtn, .nav a span { white-space: nowrap; }
@media (max-width: 400px) { .top .logo { font-size: 1rem; gap: 7px; } .top .wrap { gap: 10px; } .nav a { padding-left: 8px; padding-right: 8px; } }
@media (max-width: 340px) { .top .logo-text { display: none; } }
/* search guides */
.guide h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; }
.guide h2 { margin-top: 34px; }
.lead-p { font-size: 1.08rem; color: var(--ink-2); }
.crumbs { font-size: .9rem; color: var(--muted); margin: 6px 0 4px; }
.crumbs a { color: var(--muted); }
.guide-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 12px; }
.guide-steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 14px 58px; position: relative; box-shadow: var(--shadow-sm); }
.guide-steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.guide-steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.guide-steps p { margin: 0; color: var(--ink-2); }
.guide-links { list-style: none; padding: 0; display: grid; gap: 8px; }
.guide-links a { display: inline-flex; align-items: center; gap: 8px; }
.foot-guides { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: .92rem; }
.guide h2 { font-size: 1.45rem; letter-spacing: -.02em; } .guide .ic-box { background: var(--brand-soft); color: var(--brand); width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; }

/* refill alert */
.refill-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.refill-fields .field { margin: 0; }
.refill-fields label { font-size: .86rem; }
small.refill { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
small.refill.low { color: #9A3412; font-weight: 600; }

/* tour preview: watermark, no drag/copy, locked last step */
.shot { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.shot img { pointer-events: none; -webkit-user-drag: none; }
.shot .wm { position: absolute; right: 18px; bottom: 22px; padding: 4px 10px; border-radius: 999px; background: rgba(36, 27, 38, .72); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .02em; pointer-events: none; }
.tour-more { max-width: 520px; padding: 28px; }
.tour-more .ic-box { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.tour-more .ticks { margin: 12px 0 20px; }

/* mission / vision / goal */
.vmg .k { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink, #8A6500); margin-bottom: 4px; }

/* features in three pillars */
.fpillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .fpillars { grid-template-columns: 1fr; } }
.fpillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(36,27,38,.05)); }
.fp-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.fp-head .ic-box { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.fp-head h3 { margin: 0; font-size: 1.15rem; }
.fp-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.fp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fp-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; position: relative; }
.fp-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.fp-list b { color: var(--ink); font-weight: 600; }
.fp-list b .tag { font-size: .7rem; padding: 1px 7px; vertical-align: 1px; }
.fp-list span { color: var(--muted); font-size: .93rem; }
.soon.soon-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .soon.soon-3 { grid-template-columns: 1fr; } }

/* phones: less text, tighter sections */
@media (max-width: 640px) {
  .m-hide { display: none !important; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.3rem); }
  .hero .lead { font-size: 1.02rem; }
  .sec-head { margin-bottom: 18px; }
  .sec-head p { font-size: .95rem; }
  .statement { font-size: 1.15rem; }
  .pillars p, .vmg p { font-size: .92rem; }
  .pass-sec .points li:nth-child(n+2) { display: none; }
  .sos-points > div:nth-child(n+2) { display: none; }
  .fp-list span { font-size: .9rem; }
  .fpillar { padding: 18px; }
  .tour-panel figcaption { font-size: .93rem; }
  .uses .use p { font-size: .92rem; }
}

/* ================= v15: toasts, auth, onboarding, On-time rate, Away mode, "different" ================= */
/* toasts */
.toasts { position: fixed; top: 76px; right: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 28px)); pointer-events: none; }
.toast { pointer-events: auto; margin: 0; box-shadow: var(--shadow-md); align-items: center; animation: toast-in .25s ease-out; padding-right: 8px; }
.toast > span { flex: 1; }
.toast-x { border: 0; background: transparent; font-size: 1.35rem; line-height: 1; color: inherit; opacity: .7; cursor: pointer; padding: 2px 8px; border-radius: 6px; }
.toast-x:hover { opacity: 1; background: rgba(0, 0, 0, .05); }
.toast.bye { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .toasts { top: auto; bottom: 14px; right: 14px; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
button.is-busy { opacity: .7; cursor: progress; }
button.is-busy::after { content: ""; width: 14px; height: 14px; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* "ping" brand mark: rings around the logo */
.ping { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; }
.ping svg { width: 40px; height: 40px; position: relative; z-index: 1; }
.ping i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 2.6s ease-out infinite; }
.ping i + i { animation-delay: 1.3s; }
.ping.sm { width: 12px; height: 12px; }
.ping.sm i { border: 0; background: var(--gold, #D4A017); opacity: 1; animation: none; }
.ping.sm::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold, #D4A017); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ping i, .ping.sm::after { animation: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 6px 12px 6px 10px; border-radius: 999px; margin-bottom: 14px; }

/* auth: brand panel + form */
.wrap.auth-wrap { max-width: 1040px; }
.auth2 { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); margin: 8px 0 24px; }
.auth-brand { background: radial-gradient(120% 90% at 0% 0%, #8A3F8A 0%, #6B2D6B 45%, #2D132D 100%); color: #fff; padding: 44px 40px; display: flex; align-items: center; }
.auth-brand .ping { color: #F3C64F; margin-bottom: 18px; }
.auth-brand h2 { color: #fff; font-size: 1.9rem; margin: 0 0 8px; letter-spacing: -.02em; }
.auth-brand p { color: rgba(255, 255, 255, .86); margin: 0; }
.ab-points { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.ab-points li { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 500; }
.ab-points svg { color: #F3C64F; flex: none; }
.ab-trust { font-size: .88rem; display: flex; gap: 8px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 16px; }
.auth-main { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-card2 { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-card2 h1 { font-size: 1.6rem; margin: 0 0 4px; }
.auth-main .auth-alt { margin-top: 20px; }
.trial-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: #1F5A38; background: var(--ok-bg); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.next-steps { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .9rem; }
.next-steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .75rem; margin-right: 8px; }
.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-height: 18px; }
.pw-meter b { flex: 1; height: 5px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: #C2410C; transition: width .2s, background .2s; }
.pw-meter span { font-size: .82rem; color: var(--muted); min-width: 7em; text-align: right; }
.pw-meter[data-score="2"] i { background: #B7791F; }
.pw-meter[data-score="3"] i, .pw-meter[data-score="4"] i { background: var(--ok); }
.field-err { display: none; color: #8A2A1F; font-size: .85rem; margin-top: 6px; }
.field.bad input { border-color: #C2410C; }
.field.bad .field-err { display: block; }
@media (max-width: 820px) {
  .auth2 { grid-template-columns: 1fr; box-shadow: none; background: transparent; min-height: 0; margin-top: 0; }
  .auth-brand { padding: 22px 22px; border-radius: var(--r-lg); }
  .auth-brand .ping { width: 40px; height: 40px; margin-bottom: 8px; }
  .auth-brand .ping svg { width: 28px; height: 28px; }
  .auth-brand h2 { font-size: 1.35rem; }
  .ab-points, .ab-trust { display: none; }
  .auth-main { padding: 22px 4px 0; }
}

/* onboarding progress */
.setup-progress { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: s; }
.setup-progress li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.setup-progress li.done { border-top-color: var(--brand); color: var(--ink-2); }
.setup-progress li.now { border-top-color: var(--brand); color: var(--ink); font-weight: 600; }
.setup-progress .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--line-2); color: var(--muted); flex: none; }
.setup-progress li.done .dot, .setup-progress li.now .dot { background: var(--brand); color: #fff; }
@media (max-width: 420px) { .setup-progress .lbl { font-size: .78rem; } }

/* getting-started checklist */
.setup { margin-bottom: 18px; }
.setup-bar { height: 6px; border-radius: 99px; background: var(--line-2); margin: 12px 0 14px; overflow: hidden; }
.setup-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #A0479F); border-radius: inherit; }
.setup-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.setup-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; }
.setup-list a:hover { border-color: var(--brand); }
.setup-list .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); flex: none; }
.setup-list li.done a { color: var(--muted); text-decoration: line-through; background: var(--paper); }
.setup-list li.done .tick { background: var(--ok); color: #fff; }

/* On-time rate ring */
.rollcall a { grid-template-columns: 44px minmax(0, 1fr) 42px auto 18px; }
.pulse { --c: var(--ok); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--line-2) 0); }
.pulse span { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--ink); }
.pulse.fair { --c: #B7791F; }
.pulse.low { --c: var(--sos); }
.pulse.none { background: var(--line-2); }
.pulse.none span { color: var(--muted); }
.pulse-note { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.pulse-note b { color: var(--ink-2); }
@media (max-width: 560px) {
  .rollcall a { grid-template-columns: 40px minmax(0, 1fr) 38px 16px; }
  .rollcall .pulse { grid-row: 1; grid-column: 3; width: 38px; height: 38px; }
  .rollcall .pulse span { width: 29px; height: 29px; }
  .rollcall .side { grid-column: 2 / span 2; }
  .rollcall .chev { grid-row: 1; grid-column: 4; }
}

/* Away mode */
.status.away { color: #5B4B8A; }
.away-bar { display: flex; gap: 12px; align-items: center; background: #EFEBF8; border: 1px solid #DCD3EF; color: #3E3263; border-radius: var(--r); padding: 12px 14px; margin: 0 0 16px; }
.away-bar .ic { color: #5B4B8A; display: grid; }
.away-bar > div { flex: 1; }
.away-bar small { display: block; color: #4F4470; }
.away-set { margin: -4px 0 16px; }
.away-set > summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--brand); font-weight: 600; font-size: .92rem; list-style: none; }
.away-set > summary::-webkit-details-marker { display: none; }
.away-form { margin-top: 10px; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
@media (max-width: 560px) { .away-bar { flex-wrap: wrap; } }

/* "Not just another reminder app" */
table.diff { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
table.diff th, table.diff td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.diff tbody tr:last-child > * { border-bottom: 0; }
table.diff thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--paper); }
table.diff thead th.us { color: #fff; background: var(--brand); }
table.diff tbody th { font-weight: 600; color: var(--ink); width: 30%; }
table.diff td.them { color: var(--muted); }
table.diff td.us { color: var(--ink); font-weight: 500; background: #FBF6FB; }
table.diff td.us svg { color: var(--ok); vertical-align: -3px; margin-right: 6px; }
@media (max-width: 640px) {
  table.diff thead { display: none; }
  table.diff, table.diff tbody, table.diff tr, table.diff th, table.diff td { display: block; width: auto; }
  table.diff tr { border-bottom: 1px solid var(--line-2); padding: 10px 14px; }
  table.diff tbody tr:last-child { border-bottom: 0; }
  table.diff th, table.diff td { padding: 2px 0; border: 0; background: transparent !important; }
  table.diff td.them { display: none; }
}
.setup-list a svg { margin-left: auto; color: var(--muted); flex: none; }

/* ================= v16: health log, doctor summary, why page ================= */
.trends { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.trend { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; color: var(--brand); background: var(--paper); }
.trend .t-label { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.trend .t-val { font-size: 1.15rem; color: var(--ink); }
.trend small { color: var(--muted); }
.trend svg { margin-top: 6px; max-width: 100%; }
.reading-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reading-row > [hidden] { display: none; }
.reading-row:has(> [hidden]) { grid-template-columns: 1fr; }
.me-log { margin: 22px 0 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.me-log > summary { cursor: pointer; padding: 16px; font-weight: 600; font-size: 1.05rem; display: flex; gap: 10px; align-items: center; color: var(--brand); list-style: none; }
.me-log > summary::-webkit-details-marker { display: none; }
.me-log-form { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.me-log-form select, .me-log-form input { font-size: 1.15rem; padding: 12px; }

.summary-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; max-width: 900px; }
.summary-sheet h2 { font-size: 1.1rem; margin: 24px 0 10px; }
.sum-kicker { margin: 0; font-size: .8rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.sum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.sum-grid > div { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.sum-grid h3 { margin: 0 0 2px; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sum-grid p { margin: 0; white-space: pre-line; }
.sum-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.sum-table th, .sum-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.sum-table th { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sum-foot { margin-top: 22px; font-size: .82rem; color: var(--muted); }
@media (max-width: 560px) { .sum-grid { grid-template-columns: 1fr; } .summary-sheet { padding: 18px; } }
@media print {
  .summary-sheet { border: 0; padding: 0; max-width: none; }
  .trend { break-inside: avoid; }
  .sum-table tr { break-inside: avoid; }
}
.why-hero { padding-top: 28px; max-width: 760px; }
.why-hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; margin: 0 0 12px; }
@media (max-width: 640px) { table.diff tbody th { width: auto; } }
.summary-sheet header .logo svg { width: 36px; height: 36px; }
@media (max-width: 560px) { .summary-sheet header .logo { display: none; } .sum-table { font-size: .85rem; } .sum-table th, .sum-table td { padding: 7px 6px; } }

/* Safe Arrival */
.journey-box { margin-bottom: 16px; padding: 16px 18px; }
.journey-box.late { border-color: #F2CDC7; background: var(--sos-bg); }
.journey-box .j-ic, .journey-card .j-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.journey-box.late .j-ic, .journey-card.late .j-ic { background: #fff; color: var(--sos); }
.journey-set > summary { cursor: pointer; display: inline-flex; gap: 8px; align-items: center; color: var(--brand); font-weight: 600; list-style: none; }
.journey-set > summary::-webkit-details-marker { display: none; }
.journey-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 20px 0 10px; }
.journey-card small { display: block; color: var(--muted); }
.journey-card.late { background: var(--sos-bg); border-color: #F2CDC7; }

/* One app. Every member. */
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .members { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .members { grid-template-columns: 1fr; } }
.member { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); }
.member .ic-box { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.member h3 { margin: 0 0 2px; font-size: 1.02rem; }
.member p { margin: 0; color: var(--muted); font-size: .93rem; }
.rel-chips { margin-top: 8px; }
.rel-chips .chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.pay-form + .pay-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pay-label { margin: 0 0 8px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.legal ul { color: var(--ink-2); padding-left: 20px; } .legal li { margin-bottom: 6px; }
.pay-result { text-align: center; padding: 40px 28px; max-width: 560px; margin: 16px auto; }
.pay-result h1 { margin: 16px 0 8px; font-size: 1.7rem; }
.pay-result .lead-sm { font-size: 1.08rem; color: var(--ink); margin: 0 0 8px; }
.pay-result .pr-ic { width: 72px; height: 72px; border-radius: 50%; display: inline-grid; place-items: center; }
.pay-result.paid .pr-ic { background: var(--ok-bg); color: var(--ok); box-shadow: 0 0 0 8px rgba(46, 125, 80, .08); }
.pay-result.pending .pr-ic { background: var(--wait-bg); color: var(--wait-ink); animation: pr-pulse 1.6s ease-in-out infinite; }
.pay-result.failed .pr-ic { background: var(--sos-bg); color: var(--sos); }
@keyframes pr-pulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .pay-result.pending .pr-ic { animation: none; } }
.pr-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.pr-ref { margin: 22px 0 0; font-size: .85rem; color: var(--muted); }
.pr-ref code { background: var(--paper); padding: 2px 6px; border-radius: 6px; }
@media (max-width: 480px) { .pr-actions .btn { width: 100%; } }
.inr-note { margin: 6px 0 0; font-size: .88rem; color: var(--ink-2); background: var(--brand-soft); padding: 6px 10px; border-radius: 8px; }

/* footer guide links readable on the dark footer */
.site-foot .foot-guides a { color: #E8D8E8; text-decoration: none; }
.site-foot .foot-guides a:hover { color: #fff; text-decoration: underline; }

/* ---------- OkayFolk polish (brand + finish) ---------- */
.wm-nod { color: var(--brand); }
.site-foot .wm-nod, .auth-brand .wm-nod { color: #F2C9F2; }
.logo-mark { border-radius: 9px; box-shadow: 0 2px 6px -2px rgba(86, 31, 86, .45); }
.top { box-shadow: 0 1px 0 rgba(36, 27, 38, .02); }
h1, h2, .sec-head h2, .statement { text-wrap: balance; }
.lead, .sec-head p { text-wrap: pretty; }
.hl { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 2%; right: 4%; bottom: .04em; height: .16em; border-radius: 99px;
  background: linear-gradient(90deg, #E3B23C, #F0CC72); opacity: .55; z-index: -1; }

/* buttons: a little depth on the main action */
.btn-primary { background: linear-gradient(180deg, #7A357A, var(--brand)); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 14px -8px rgba(86, 31, 86, .7); }
.btn-primary:hover { background: linear-gradient(180deg, #6E2E6E, var(--brand-hover)); }
.btn { transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn-big:hover { transform: translateY(-1px); }
.btn-big:active, .btn:active { transform: translateY(0); }

/* hero: floating "nod" chips around the demo phone */
.demo { position: relative; }
.nod-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.94);
  border: 1px solid var(--line); border-radius: 14px; padding: 9px 13px 9px 10px; font-size: .84rem; color: var(--ink-2);
  box-shadow: 0 14px 30px -16px rgba(36, 27, 38, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: chip-float 6s ease-in-out infinite; white-space: nowrap; }
.nod-chip b { display: block; color: var(--ink); font-size: .88rem; }
.nod-chip .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.nod-chip .dot.ok { background: var(--ok-bg); color: var(--ok); }
.nod-chip .dot.brand { background: var(--brand-soft); color: var(--brand); }
.nod-chip.c1 { left: calc(50% - 330px); top: 330px; }
.nod-chip.c2 { right: calc(50% - 310px); top: 560px; animation-delay: -3s; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 1199px) { .nod-chip { display: none; } }
@media (prefers-reduced-motion: reduce) { .nod-chip { animation: none; } }

/* cards: soft lift on hover, calm by default */
.use, .member, .fpillar, .qa, .plan, .soon > div, .mode-btn { transition: box-shadow .2s, transform .2s, border-color .2s; }
@media (hover: hover) {
  .use:hover, .member:hover, .fpillar:hover, .plan:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(36, 27, 38, .45); border-color: #DDD3DD; }
}
.use { background: var(--surface); box-shadow: var(--shadow-sm, 0 1px 2px rgba(36,27,38,.05)); }
.qa { background: var(--surface); }
.qa[open] { border-color: #DDD3DD; box-shadow: 0 10px 24px -20px rgba(36, 27, 38, .5); }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--brand); font-weight: 600; font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.steps-row li::before { background: linear-gradient(180deg, #7A357A, var(--brand)); box-shadow: 0 6px 14px -8px rgba(86, 31, 86, .7); }
.plan.featured { box-shadow: 0 0 0 1px var(--brand), 0 24px 44px -30px rgba(86, 31, 86, .6); }
.sample-card { box-shadow: 0 30px 50px -30px rgba(36, 27, 38, .55); }
.phone { box-shadow: 0 40px 70px -34px rgba(36, 27, 38, .6), 0 0 0 1px rgba(0,0,0,.04); }
.site-links a { white-space: nowrap; }
@media (max-width: 1140px) { .site-links { display: none; } }
.account .btn { white-space: nowrap; }

/* a day with the app: timeline */
.day-line { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 12px; max-width: 760px; }
.day-line::before { content: ""; position: absolute; left: 121px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--line), var(--brand-soft) 50%, var(--line)); }
.day-item { display: grid; grid-template-columns: 96px 40px 1fr; gap: 14px; align-items: start; position: relative; }
.day-t { font-weight: 600; font-size: .9rem; color: var(--ink-2); text-align: right; padding-top: 10px; font-variant-numeric: tabular-nums; }
.day-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--paper); }
.day-item.ok .day-ic { background: var(--ok-bg); color: var(--ok); }
.day-item.wait .day-ic { background: var(--wait-bg); color: var(--wait-ink); }
.day-item.brand .day-ic { background: var(--brand-soft); color: var(--brand); }
.day-item > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(36,27,38,.05)); }
.day-item h3 { margin: 0 0 2px; font-size: 1rem; }
.day-item p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 560px) {
  .day-line::before { left: 19px; }
  .day-item { grid-template-columns: 40px 1fr; }
  .day-t { grid-column: 2; text-align: left; padding: 0; order: -1; font-size: .82rem; color: var(--brand); }
  .day-ic { grid-row: 1 / span 2; }
}

/* mood with the daily check-in (person's page) */
.mood-pick { margin: 14px 0 6px; text-align: center; }
.mood-q { font-weight: 600; margin: 0 0 8px; color: var(--ink-2); }
.mood-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mood-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-weight: 600; font-size: .95rem; padding: 12px 6px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.mood-btn:hover { transform: translateY(-1px); border-color: #D6CCD6; }
.mood-emoji { font-size: 1.9rem; line-height: 1; }
.mood-btn.good.on { border-color: var(--ok); background: var(--ok-bg); color: #1F5A38; }
.mood-btn.okay.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.mood-btn.low.on { border-color: #E9C98D; background: var(--wait-bg); color: var(--wait-ink); }

/* stats strip, illustrations, global section */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 8px 0 8px; box-shadow: 0 18px 40px -32px rgba(36, 27, 38, .45); }
.stats > div { background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.stats b { font-size: clamp(1.4rem, 2.6vw, 1.85rem); letter-spacing: -.03em; color: var(--brand); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats > div { padding: 14px 16px; } }
.ill { margin: 0; }
.ill img { display: block; width: 100%; height: auto; }
.ill-family { max-width: 900px; margin: -6px auto 22px; }
.global { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.global h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); letter-spacing: -.025em; margin-top: 4px; }
.global .lead { margin-bottom: 4px; }
@media (max-width: 900px) { .global { grid-template-columns: 1fr; gap: 18px; } .global .ill { max-width: 520px; } }

/* Scam Shield */
.scam-link { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  background: #FFF6E5; border: 1px solid #F0D49A; color: #6E4508; }
.scam-link:hover { color: #6E4508; border-color: #E3B23C; }
.scam-link > span { flex: 1; display: flex; flex-direction: column; }
.scam-link b { font-size: 1.08rem; }
.scam-link small { color: #87560F; font-size: .9rem; }
.scam-stop { background: #BF3A2B; color: #fff; border-radius: 20px; padding: 22px 20px; margin: 12px 0 14px; text-align: center; }
.scam-stop h1 { color: #fff; font-size: 1.55rem; margin: 10px 0 6px; }
.scam-stop p { margin: 0; opacity: .94; }
.scam-badge { display: inline-block; background: #fff; color: #BF3A2B; font-weight: 800; letter-spacing: .12em; padding: 4px 14px; border-radius: 8px; }
.scam-rules { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.scam-rules li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 1.02rem; }
.scam-rules .ic { color: #BF3A2B; margin-top: 3px; }
.scam-btn { background: #87560F; border-color: #87560F; color: #fff; font-size: 1.15rem; padding: 16px; border-radius: 16px; }
.scam-btn:hover { background: #6E4508; border-color: #6E4508; color: #fff; }
.scam-sent { display: flex; gap: 12px; align-items: center; background: var(--ok-bg); color: #1F5A38; border: 1px solid #CFE6D7; border-radius: 16px; padding: 14px 16px; }
.scam-sent div { display: flex; flex-direction: column; }
.mini-label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--ink-2); margin-bottom: 6px; }
.scam-sec { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.scam-sec h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); letter-spacing: -.025em; margin-top: 4px; }
@media (max-width: 900px) { .scam-sec { grid-template-columns: 1fr; } }
.eyebrow-warn { background: #FFF6E5; color: #87560F; }
.scam-demo { gap: 9px; }
.scam-demo .scam-stop { margin: 4px 0 2px; padding: 16px 14px; }
.scam-demo .scam-stop h3 { color: #fff; font-size: 1.15rem; margin: 8px 0 4px; }
.scam-demo .scam-stop p { font-size: .85rem; }
.scam-mini { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; font-size: .88rem; font-weight: 500; }
.scam-mini .ic { color: #BF3A2B; }
.scam-demo .d-toast { margin-top: auto; display: flex; gap: 6px; align-items: center; }

/* Pass: how to help, lost mode */
.help-note { display: flex; gap: 12px; align-items: flex-start; background: #FFF6E5; border: 1px solid #F0D49A; color: #6E4508; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.help-note .ic { margin-top: 2px; flex: none; }
.help-note span { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.help-note b { font-size: 1.08rem; font-weight: 600; }
.help-note.calm { background: var(--brand-soft); border-color: #E5CFE5; color: var(--brand); }
.lost-line { margin: 6px 0 0; font-size: 1.08rem; font-weight: 600; opacity: .95; }

/* print formats: bag tag and stickers */
.seg-link { display: inline-block; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: .92rem; color: var(--muted); text-decoration: none; }
.seg-link.on { background: var(--brand); color: #fff; }
.bagtag { width: 60mm; min-height: 100mm; border: 1px solid #C4B7C4; border-radius: 5mm; padding: 9mm 5mm 5mm; position: relative; text-align: center; background: #fff;
  border-top: 2.4mm solid var(--sos); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bagtag .hole { position: absolute; top: 3mm; left: 50%; width: 6mm; height: 6mm; margin-left: -3mm; border: 1px solid #C4B7C4; border-radius: 50%; }
.bagtag .tag-line { font-size: 8pt; font-weight: 700; color: var(--sos); text-transform: uppercase; letter-spacing: .04em; }
.bagtag h4, .bagtag .pc-name { font-size: 14pt; margin: 1mm 0 2mm; }
.bagtag .qrbox.big svg { width: 42mm; height: 42mm; display: block; margin: 0 auto; }
.bagtag .scan { font-size: 8pt; margin-top: 1mm; }
.bagtag .callline { font-size: 8.5pt; font-weight: 600; margin-top: 2mm; }
.bagtag .small { font-size: 7.5pt; color: var(--ink-2); margin-top: 1mm; }
.stickers { display: grid; grid-template-columns: repeat(3, 50mm); gap: 6mm; }
.sticker { width: 50mm; height: 50mm; border: 1px dashed #C4B7C4; border-radius: 4mm; padding: 2.5mm; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sticker .tag-line { font-size: 6.5pt; font-weight: 800; color: var(--sos); text-transform: uppercase; letter-spacing: .05em; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sticker svg { width: 36mm; height: 36mm; display: block; }
.sticker .code { font-size: 6pt; color: var(--ink-2); }
.carry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .carry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .carry { grid-template-columns: 1fr; } }
.carry-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(36,27,38,.05)); }
.carry-item .ic-box { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 10px; }
.carry-item h3 { margin: 0 0 4px; }
.carry-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.d-help { background: #FFF6E5; border: 1px solid #F0D49A; color: #6E4508; border-radius: 12px; padding: 10px 12px; font-size: .88rem; font-weight: 500; }
.d-help span { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Editorial pass (v3) ----------
   Marketing headings are set in Newsreader, a reading serif, so the page reads like a note from family
   rather than a software brochure. App screens keep Instrument Sans only. Labels are sentence case. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/newsreader-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 500; font-display: swap; src: url("/static/fonts/newsreader-latin-500-italic.woff2") format("woff2"); }
:root { --serif: "Newsreader", "Iowan Old Style", Georgia, serif; }
.hero h1, .sec-head h2, .global h2, .why h2, .final-cta h2, .auth-brand h2, .scam-sec h2, .seo h1, .seo h2, .statement {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.022em; }
.sec-head h2, .global h2, .scam-sec h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.08; }
.statement { font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.3; font-weight: 500; }

/* Sentence-case labels instead of tracked capitals */
.eyebrow { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .9rem; }
table.diff thead th { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink-2); }
table.diff thead th.us { color: #fff; }
.vmg > div { border-left: 3px solid var(--brand); }
.vmg h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -.005em; }

/* Facts line under the hero: plain statements, no boxed big numbers */
.facts { list-style: none; margin: 8px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; color: var(--muted); font-size: .97rem; }
.facts b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 6px; font-size: .95rem; } }

/* Illustrations beside content */
.day-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.setup-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.setup-wrap .steps-row { grid-template-columns: 1fr; gap: 22px; }
.setup-wrap .steps-row li { padding: 4px 0 0 52px; }
.ill-day img, .ill-setup img, .ill-call img { width: 100%; height: auto; display: block; }
.ill-day, .ill-setup { margin: 0; }
@media (max-width: 900px) {
  .day-wrap, .setup-wrap { grid-template-columns: 1fr; gap: 24px; }
  .ill-day { max-width: 380px; margin: 0 auto; order: -1; }
  .ill-setup { max-width: 460px; }
}

/* Pass: free note, aligned mode buttons */
.free-note { display: inline-flex; gap: 8px; align-items: center; color: var(--ok) !important; font-weight: 600; margin-top: 10px; }
.mode-btn { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; }

/* Final call to action with the video-call picture */
.final-cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 32px; padding: 48px 48px 40px; }
.final-cta h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; margin-bottom: 10px; }
.final-cta p { margin-bottom: 22px; font-size: 1.05rem; }
.ill-call { margin: 0; }
@media (max-width: 820px) { .final-cta { grid-template-columns: 1fr; padding: 32px 24px; } .ill-call { max-width: 340px; } }

/* Sign-in panel picture */
.ab-ill { display: block; width: 100%; max-width: 360px; height: auto; margin: 22px 0 4px; }
@media (max-width: 900px) { .ab-ill { display: none; } }
.final-cta:not(:has(.ill-call)) { display: flex; justify-content: space-between; padding: 40px; }
.final-cta:not(:has(.ill-call)) p { margin-bottom: 0; }
article > h1, article > h2, .compare h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; }
article > h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.06; }
article > h2 { font-size: 1.6rem; }
.hero .lead { max-width: 31rem; }
.sample-card > div:first-child { display: flex; flex-direction: column; align-self: stretch; }
.sc-foot { margin: auto 0 0; padding-top: 10px; font-size: .74rem; color: var(--muted); line-height: 1.35; max-width: 22ch; }
.sc-foot .wm-nod { color: inherit; }

/* ---------- Premium pass (v4): deeper aubergine, warmer gold, quieter surfaces ----------
   One brand colour, one warm accent. Flat, confident buttons; soft layered shadows; more air. */
:root {
  --ink: #1D1521; --ink-2: #463B4A; --muted: #5E5462; --line: #E6E0E7; --line-2: #F1EDF2;
  --paper: #F7F5F8; --surface: #FFFFFF;
  --brand: #5E2A62; --brand-hover: #4A1F4E; --brand-soft: #F3EAF4; --brand-deep: #3A1640;
  --gold: #C8961E; --gold-soft: #FBF3DF; --night: #1C1121;
  --shadow-sm: 0 1px 2px rgba(29, 21, 33, .04), 0 2px 6px -2px rgba(29, 21, 33, .06);
  --shadow-md: 0 2px 6px rgba(29, 21, 33, .04), 0 14px 30px -12px rgba(29, 21, 33, .16);
  --shadow-lg: 0 30px 60px -24px rgba(29, 21, 33, .32);
}
.btn-primary, .btn-primary:hover { background: var(--brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 14px -8px rgba(58, 22, 64, .7); }
.btn-primary:hover { background: var(--brand-hover); }
.card { border-color: var(--line); box-shadow: var(--shadow-sm); }
.final-cta { background: radial-gradient(130% 150% at 0% 0%, #6E3373 0, var(--brand) 40%, var(--brand-deep) 100%); }
.auth-brand { background: radial-gradient(120% 90% at 0% 0%, #6E3373 0%, var(--brand) 45%, #241028 100%); }
::selection { background: #EAD7EC; }

/* Weather Watch, Early Warning, Rota (app) */
.watch-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; margin-bottom: 14px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.watch-card .w-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.watch-card > div { flex: 1; min-width: 0; }
.watch-card p { margin: 4px 0 0; color: var(--ink-2); }
.watch-card ul { margin: 6px 0 4px; padding-left: 18px; }
.watch-card.heat { border-color: #F1D49A; background: #FFFBF1; }
.watch-card.heat .w-ic { background: #FCEBC4; color: #9A5B00; }
.watch-card.cold { border-color: #C9DCF2; background: #F6FAFF; }
.watch-card.cold .w-ic { background: #DCEAFB; color: #1F5A9E; }
.watch-card.change { border-color: #E3D2E6; background: #FCF8FD; }
.watch-card.change .w-ic { background: var(--brand-soft); color: var(--brand); }
.rota-line { display: flex; gap: 8px; align-items: center; margin: -2px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--ink-2); font-size: .95rem; }
.rota-line svg { color: var(--brand); flex: none; }
.rota-line a { margin-left: auto; font-weight: 600; }
.warn-text { color: #9A5B00; }

.rota-grid { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; min-width: 640px; }
.rota-grid th { font-size: .85rem; font-weight: 600; color: var(--muted); text-align: left; padding: 0 2px; }
.rota-grid tbody th { color: var(--ink); font-size: .95rem; width: 110px; }
.rota-grid td { vertical-align: top; background: var(--paper); border-radius: 10px; padding: 6px; height: 64px; }
.rota-grid td.today { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.rota-pill { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 4px 5px 8px; margin-bottom: 4px; }
.rota-pill span { flex: 1; min-width: 0; line-height: 1.2; }
.rota-pill b { display: block; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rota-pill small { color: var(--muted); font-size: .74rem; }
.rota-pill.done { border-color: #B9DCC5; background: var(--ok-bg); }
.rota-pill form { margin: 0; }
.rota-x { border: 0; background: none; color: var(--muted); font-size: 1.05rem; line-height: 1; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.rota-x:hover, .rota-x:focus-visible { color: var(--sos); background: var(--sos-bg); }
.rota-empty { color: #C9C0CB; display: block; text-align: center; padding-top: 14px; }
.chip-check { display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span { border: 1px solid #CFC5CF; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 500; background: var(--surface); }
.chip-check input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.days-pick { border: 0; padding: 0; margin: 0 0 14px; }
.days-pick legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.share { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.share .bar { height: 8px; background: var(--line-2); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.share .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.invite-nudge { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: #5C4310; }
.invite-nudge p { margin: 0; }
.invite-nudge svg { flex: none; margin-top: 2px; }

/* their own page */
.me-weather { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; margin: 4px 0 16px; font-size: 1.05rem; }
.me-weather p { margin: 4px 0 0; }
.me-weather.heat { background: #FFF6E2; color: #5A3600; }
.me-weather.cold { background: #EAF3FE; color: #123B6B; }
.me-weather .w-ic { flex: none; }
.me-rota { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); margin: 0 0 14px; font-size: 1.08rem; }
.me-rota svg { color: var(--brand); flex: none; }

/* "It keeps watch": the one dark band on the page */
section.night { padding: 0; margin: 72px 0; }
.night-in { background: var(--night); color: #F4EEF5; border-radius: 28px; padding: 64px 56px;
  background-image: radial-gradient(90% 70% at 100% 0%, rgba(200, 150, 30, .09), transparent 60%), radial-gradient(80% 80% at 0% 100%, rgba(110, 51, 115, .45), transparent 60%); }
.night-head { max-width: 40rem; margin-bottom: 40px; }
.night-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.06; color: #fff; letter-spacing: -.015em; margin: 0 0 12px; }
.night-head p { color: rgba(244, 238, 245, .78); font-size: 1.08rem; margin: 0; }
.watch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wf { background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; }
.wf h3 { color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 22px 0 8px; letter-spacing: -.005em; }
.wf > p { color: rgba(244, 238, 245, .8); margin: 0 0 18px; }
.wf-note { display: flex; gap: 12px; align-items: flex-start; background: #fff; color: var(--ink); border-radius: 16px; padding: 14px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.wf-note b { display: block; font-size: .95rem; }
.wf-note small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; margin-top: 2px; }
.wf-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.wf-heat .wf-ic { background: #FCEBC4; color: #9A5B00; }
.wf-trend .wf-ic { background: var(--brand-soft); color: var(--brand); }
.wf-rota .wf-ic { background: var(--ok-bg); color: var(--ok); }
.wf-fact { margin: auto 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(244, 238, 245, .86); font-size: .93rem; line-height: 1.45; }
.wf-fact b { color: #F3C64F; font-weight: 600; }
.wf-fact span { display: block; margin-top: 6px; font-size: .78rem; color: rgba(244, 238, 245, .55); }
@media (max-width: 960px) { .watch-grid { grid-template-columns: 1fr; } .night-in { padding: 44px 22px; border-radius: 22px; } .wf h3 { margin-top: 16px; } }
@media (max-width: 700px) { .rota-grid { min-width: 860px; } .rota-grid tbody th { width: 70px; } }
.price-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 18px; align-items: center; }
.seg a { border: 0; background: transparent; font-weight: 600; font-size: .92rem; color: var(--muted); padding: 7px 14px; border-radius: 8px; text-decoration: none; }
.seg a[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* testimonials (only real, approved ones render) */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.quote blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; color: var(--ink); }
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--muted); font-size: .92rem; }

/* trust pages */
.trust-page h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1.06; letter-spacing: -.015em; margin: 8px 0 12px; }
.trust-page h2 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; margin: 34px 0 10px; }
.trust-page .lead-p { font-size: 1.15rem; color: var(--ink-2); max-width: 38rem; }
.never { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.never li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.never svg { flex: none; color: var(--sos); margin-top: 3px; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--wait-bg); color: var(--wait-ink); border-radius: 14px; padding: 14px 16px; margin: 28px 0 14px; }
.notice p { margin: 0; }
.notice svg { flex: none; margin-top: 3px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.contact-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); }
.contact-card svg { color: var(--brand); flex: none; }
.contact-card b { display: block; }
.contact-card:hover, .contact-card:focus-visible { border-color: var(--brand); }
.founder { background: var(--brand-soft); border-radius: 16px; padding: 4px 22px 18px; margin-top: 28px; }
.trust-cta { margin: 40px 0 10px; }

/* prescription */
.rx-card summary { display: flex; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.rx-card summary::-webkit-details-marker { display: none; }
.rx-card summary svg { color: var(--brand); flex: none; }
.rx-card summary small { display: block; color: var(--muted); font-weight: 400; }
.rx-upload { margin-top: 14px; }
.rx-row { border-left: 4px solid var(--ok); }
.rx-row.medium { border-left-color: var(--ping); }
.rx-row.low { border-left-color: var(--sos); }
.rx-top { align-items: center; margin-bottom: 10px; }
.conf { font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.conf.high { background: var(--ok-bg); color: var(--ok); }
.conf.medium { background: var(--wait-bg); color: var(--wait-ink); }
.conf.low { background: var(--sos-bg); color: var(--sos); }
.rx-flags { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 4px; color: var(--wait-ink); font-size: .92rem; }
.rx-flags li { display: flex; gap: 6px; align-items: center; }
.rx-line { margin: 4px 0 0; font-style: italic; }

/* SOS page */
.sos-head { background: var(--sos); color: #fff; border-radius: 18px; padding: 20px; margin-bottom: 14px; }
.sos-head h1 { color: #fff; margin: 8px 0 4px; font-size: 1.6rem; }
.sos-head p { margin: 0; opacity: .92; }
.sos-head.accepted { background: #9A5B00; }
.sos-head.resolved { background: var(--ok); }
.sos-tag { display: inline-block; background: rgba(255, 255, 255, .2); border-radius: 99px; padding: 3px 12px; font-weight: 600; font-size: .9rem; }
.sos-state { display: flex; gap: 10px; align-items: center; background: var(--wait-bg); color: var(--wait-ink); border-radius: 14px; padding: 12px 14px; margin: 14px 0; }
.sos-state.ok { background: var(--ok-bg); color: var(--ok); }
.sos-state p { margin: 0; }
.sos-form { margin-top: 16px; }
.sos-resolve { margin: 14px 0; }
.three { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 18px; }
.three form { margin: 0; }
.three .callme { background: var(--surface); border: 2px solid var(--brand); color: var(--brand); }
.three .needhelp { background: var(--sos-bg); border: 2px solid var(--sos); color: var(--sos); }
.check-link svg:first-child { color: var(--brand); }
.check-form { display: grid; gap: 10px; margin-top: 18px; }
.check-form textarea { font-size: 1.05rem; }
.scam-result { border-radius: 16px; padding: 16px 18px; margin: 14px 0; border: 2px solid; }
.scam-result.high { background: var(--sos-bg); border-color: var(--sos); color: #6B1D14; }
.scam-result.medium { background: var(--wait-bg); border-color: #E3B23C; color: #5C4310; }
.scam-result.low { background: var(--ok-bg); border-color: #8CC5A0; color: #1D4A30; }
.scam-result .sr-verdict { font-size: 1.2rem; display: block; margin-bottom: 8px; }
.scam-result ul { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 6px; }
.scam-result li span { display: block; font-size: .94rem; }
.report-links { display: grid; gap: 8px; margin-top: 10px; }
.report-links a { display: block; background: rgba(255, 255, 255, .7); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.report-links small { display: block; font-weight: 400; color: var(--muted); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.examples form { margin: 0; }
.watch-card.sos-open { border-color: var(--sos); background: var(--sos-bg); }
.watch-card.sos-open .w-ic { background: var(--sos); color: #fff; }
.watch-card.sos-accepted { border-color: #F1D49A; background: #FFFBF1; }
.watch-card.sos-accepted .w-ic { background: #FCEBC4; color: #9A5B00; }
.watch-card.sos-resolved { border-color: #B9DCC5; background: var(--ok-bg); }
.watch-card.sos-resolved .w-ic { background: #CFE8D8; color: var(--ok); }
.quick-vitals { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.week-qa { display: grid; gap: 10px; }
.week-qa .qa summary { font-weight: 600; }
.week-qa .week-attention { border-left: 4px solid var(--ping); }
.week-qa .week-ok { border-left: 4px solid var(--ok); }
.week-qa .week-nodata { border-left: 4px solid var(--line); }
.week-qa ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.share-ok { margin-top: 10px; }
.gift-box { margin-top: 16px; }
.gift-box summary { cursor: pointer; }
.sos-tag { background: rgba(0, 0, 0, .22); }
.callgrid .btn-primary small, .btn-primary small { color: rgba(255, 255, 255, .92); }
