/* Restncare — public website. One shared stylesheet, no build step.
   Tokens mirror lib/core/design/app_theme.dart. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/CormorantGaramond.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1e2a28;
  --ink-muted: #5d6764;
  --green: #19443e;
  --green-soft: #e2ece6;
  --beige: #c9bba8;
  --beige-soft: #f3eee5;
  --bg: #fcfaf6;
  --surface: #ffffff;
  --outline: #ebe6dc;
  --outline-strong: #d9d1c2;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --pill: 999px;

  --gutter: clamp(16px, 5vw, 32px);
  --section: clamp(56px, 9vw, 112px);
  --wrap: 1120px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 20;
  padding: 12px 20px;
  background: var(--green);
  color: #fff;
  border-radius: var(--pill);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; outline-color: var(--beige); }

/* ---------- Type ---------- */

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 7.2vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--green);
  text-wrap: balance;
}

.display-sm { font-size: clamp(2.25rem, 5.6vw, 3.5rem); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--ink-muted);
  max-width: 34em;
}

.muted { color: var(--ink-muted); }
.small { font-size: 0.875rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid var(--green);
  border-radius: var(--pill);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn svg { flex: none; width: 18px; height: 18px; }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #123630; border-color: #123630; }

.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green-soft); }

.btn-light { background: var(--beige-soft); border-color: var(--beige-soft); color: var(--green); }
.btn-light:hover { background: #fff; border-color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(252, 250, 246, 0.94);
  border-bottom: 1px solid var(--outline);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(252, 250, 246, 0.82); backdrop-filter: blur(12px); }
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--green);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.header-tools { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--outline-strong);
  border-radius: var(--pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.lang-switch:hover { border-color: var(--green); color: var(--green); }
.lang-switch svg { width: 16px; height: 16px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--outline-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover { background: var(--beige-soft); }
.site-nav a[aria-current="page"] { color: var(--green); font-weight: 700; }

@media (min-width: 980px) {
  .header-tools { order: 3; margin-left: 8px; }
}

/* Small screens: without JS the links simply wrap onto a second row.
   With JS (html.js) they collapse behind the menu button. */
@media (max-width: 979px) {
  .site-nav { order: 3; flex-basis: 100%; padding-bottom: 10px; }
  .site-nav ul { margin-inline: -14px; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; margin-inline: 0; }
  .js .site-nav a {
    width: 100%;
    min-height: 52px;
    padding: 0 4px;
    border-radius: 0;
    border-top: 1px solid var(--outline);
    font-size: 1rem;
  }
}

@media (max-width: 359px) {
  .brand-name { font-size: 1.5rem; }
  .brand img { width: 32px; height: 32px; }
  /* Two language links plus the menu button must stay on the logo's row. */
  .header-row { column-gap: 8px; }
  .header-tools { gap: 6px; }
  .lang-switch { min-width: 40px; padding: 0 6px; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-tint { background: var(--beige-soft); }

.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p:not(.eyebrow) { margin-top: 12px; color: var(--ink-muted); }

/* ---------- Home hero ---------- */

.hero { padding-block: clamp(36px, 6vw, 80px) var(--section); overflow: hidden; }

.hero-grid > * { min-width: 0; }
.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 14px; }
.hero-copy .display { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.hero-copy .lead { margin-top: 20px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid var(--outline-strong);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

/* Download block. Store links are dropped in here — see CONTENT_TODO.md. */
.stores {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
}
.stores-label { font-weight: 700; line-height: 1.35; }
.stores-text { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-muted); }
.stores-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.store-btn {
  display: inline-flex;
  flex: 1 1 150px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px 8px 22px;
  border: 1px solid var(--green);
  border-radius: var(--pill);
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.store-btn .store-state { display: none; }

/* Inactive state, used until the listings exist. */
.store-btn[aria-disabled="true"] {
  border: 1px dashed var(--outline-strong);
  background: var(--bg);
  color: var(--ink-muted);
  cursor: not-allowed;
  user-select: none;
}
.store-btn[aria-disabled="true"] .store-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  border-radius: var(--pill);
  background: var(--beige-soft);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Readiness labels ----------
   One system for the whole site, defined once on the home page (#labels):
   first release / in preparation / preview. Each has its own marker shape so
   the state never depends on colour alone. */

[hidden] { display: none !important; }

.state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 3px 12px 3px 10px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle;
}
.state::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.state-first { background: var(--green-soft); color: var(--green); }
.state-first::before { background: var(--green); }
.state-prep { background: var(--surface); border-color: var(--outline-strong); color: var(--ink); }
.state-prep::before { border: 2px solid var(--ink-muted); }
.state-preview { background: #fbf0d9; color: #6f4800; }
.state-preview::before { border-radius: 2px; background: #8a5a00; transform: rotate(45deg); }

/* Marks a drawn scene whose people and data are not real. */
.sample-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 12px;
  border: 1px dashed var(--outline-strong);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.legend-section { padding-block: 0 clamp(40px, 6vw, 72px); }
.legend-box {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.legend-box > p { margin-top: 6px; color: var(--ink-muted); max-width: 46em; }
.legend { display: grid; gap: 16px 28px; margin: 20px 0 0; }
.legend dd { margin: 8px 0 0; font-size: 0.875rem; color: var(--ink-muted); }
@media (min-width: 640px) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .legend { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Product scenes (HTML/CSS/SVG, illustrative) ---------- */

.scene {
  position: relative;
  min-width: 0;
  padding: clamp(14px, 3vw, 28px);
  border-radius: var(--radius-xl);
  background: var(--beige-soft);
}
.section-tint .scene { background: var(--bg); border: 1px solid var(--outline); }
.scene-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }

.ui {
  position: relative;
  padding: 16px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 18px 36px -28px rgba(30, 42, 40, 0.35);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: left;
}
.ui + .ui { margin-top: 12px; }
.ui-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ui-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.ui-head { display: flex; align-items: center; gap: 12px; }
.ui-head > div { min-width: 0; }
.ui-name { font-weight: 700; color: var(--ink); }
.ui-sub { font-size: 0.8125rem; color: var(--ink-muted); }
.ui-note { margin-top: 12px; font-size: 0.75rem; color: var(--ink-muted); }

.avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--green);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}
.avatar svg { width: 22px; height: 22px; }
.avatar.alt { background: var(--beige); color: var(--ink); }
.avatar.soft { background: var(--green-soft); color: var(--green); }
.avatar.sm { width: 36px; height: 36px; border-radius: 50%; font-size: 0.75rem; }

.ui-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: var(--pill);
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.ui-pill.wait { background: #fbf0d9; color: #6f4800; }
.ui-pill.plain { background: var(--beige-soft); color: var(--ink); }

.ui-rows { margin-top: 12px; border-top: 1px solid var(--outline); }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 7px 0; border-bottom: 1px solid var(--outline); color: var(--ink-muted); }
.ui-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ui-row b { font-weight: 600; color: var(--ink); text-align: right; }
.ui-row.total { color: var(--ink); font-weight: 700; }
/* Stands in for an amount: no price is decided, so none is drawn. */
.amount { flex: none; width: 52px; height: 10px; border-radius: var(--pill); background: var(--outline-strong); }
.total .amount { width: 68px; background: var(--beige); }

.track { display: grid; gap: 8px; margin-top: 14px; }
.track li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.track li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.toggle { position: relative; flex: none; width: 36px; height: 20px; border-radius: var(--pill); background: var(--outline-strong); }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.toggle.on { background: var(--green); }
.toggle.on::after { left: 18px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; color: var(--ink-muted); }
.switch.on { color: var(--green); }

.check { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--outline-strong); border-radius: 5px; background: var(--surface); }
.check.on {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ui-row .pick { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.ui-row .pick.off { color: var(--ink-muted); font-weight: 500; }

.members { display: grid; gap: 8px; }
.member { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--outline); border-radius: var(--radius-md); }
.member > div { flex: 1 1 auto; min-width: 0; }
.member.sel { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.radio { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--outline-strong); border-radius: 50%; }
.member.sel .radio { border: 5px solid var(--green); }

.bubble { margin-top: 12px; padding: 12px 14px; border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md); background: var(--green-soft); color: var(--ink); }
.bubble b { display: block; font-size: 0.75rem; color: var(--green); }

/* Trend chart. Labels are HTML so they stay readable when the SVG scales. */
.chart-plot { position: relative; margin: 14px 0 0 36px; }
.chart-plot svg { width: 100%; height: auto; aspect-ratio: 280 / 120; overflow: visible; }
.chart-y span { position: absolute; left: -36px; transform: translateY(-50%); font-size: 0.6875rem; color: var(--ink-muted); white-space: nowrap; }
.chart-y span:nth-child(1) { top: 8.33%; }
.chart-y span:nth-child(2) { top: 50%; }
.chart-y span:nth-child(3) { top: 91.67%; }
.chart-gap {
  position: absolute;
  left: 42.86%; top: 80%;
  transform: translate(-50%, -50%);
  padding: 1px 6px;
  border: 1px dashed var(--outline-strong);
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}
.chart-x { position: relative; height: 1.5em; margin: 6px 0 0 36px; font-size: 0.6875rem; color: var(--ink-muted); }
.chart-x span { position: absolute; top: 0; white-space: nowrap; }
.chart-x span:nth-child(1) { left: 0; }
.chart-x span:nth-child(2) { left: 46.43%; transform: translateX(-50%); }
.chart-x span:nth-child(3) { right: 0; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 0.75rem; color: var(--ink-muted); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.key.hollow i { border: 2px solid var(--green); background: var(--surface); }
.key.none i { border: 1px dashed var(--ink-muted); border-radius: 3px; background: var(--beige-soft); }
.spark { width: 100%; height: auto; aspect-ratio: 240 / 56; overflow: visible; }

/* No non-scaling stroke here: it would break the pathLength-based drawing. */
.trend-line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.spark .trend-line { stroke-width: 1.6; }
.trend-dot { fill: var(--green); stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.trend-dot.hollow { fill: var(--surface); stroke: var(--green); }

/* Motion that explains: the trend draws once and the booking steps arrive in
   order, when the scene is first seen. Without JS, and with reduced motion,
   everything is simply shown complete. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js [data-anim]:not(.is-in) .trend-line { stroke-dashoffset: 1; }
  .js [data-anim]:not(.is-in) .trend-dot { opacity: 0; }
  .js [data-anim].is-in .trend-line { animation: trend-draw 0.9s ease-out both; }
  .js [data-anim].is-in .trend-line.second { animation-delay: 0.55s; }
  .js [data-anim].is-in .trend-dot { animation: fade-in 0.4s ease-out 1.2s both; }
  .js [data-anim].is-in .track li { animation: fade-in 0.45s ease-out both; }
  .js [data-anim].is-in .track li:nth-child(2) { animation-delay: 0.5s; }
  .js [data-anim].is-in .track li:nth-child(3) { animation-delay: 1s; }
}
@keyframes trend-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Calendar, QR poster (partner page) */
.cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cal span { display: block; height: 24px; border-radius: 7px; background: var(--green-soft); }
.cal .day { height: auto; background: none; font-size: 0.6875rem; font-weight: 700; text-align: center; color: var(--ink-muted); }
.cal .busy { background: var(--green); }
.cal .off { border: 1px dashed var(--outline-strong); background: var(--bg); }
.key.open i, .key.busy i, .key.off i { width: 16px; border-radius: 4px; }
.key.open i { background: var(--green-soft); }
.key.off i { border: 1px dashed var(--ink-muted); background: var(--bg); }

.poster { display: flex; align-items: center; gap: 16px; }
.poster svg { flex: none; width: 96px; height: 96px; color: var(--green); }
.poster img { width: 32px; height: 32px; margin-bottom: 8px; }

/* ---------- Tabs (journeys, partner types) ----------
   Without JS the tab list stays hidden and the panels read one after another. */

.tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  margin-bottom: clamp(24px, 4vw, 40px);
  padding: 4px;
  border: 1px solid var(--outline-strong);
  border-radius: 28px;
  background: var(--surface);
}
.tab {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.tab:hover { background: var(--beige-soft); }
.tab[aria-selected="true"] { background: var(--green); color: #fff; }
.tab:focus-visible { outline-offset: 2px; border-radius: var(--pill); }

.panel { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
.panel > * { min-width: 0; }
.panel + .panel { margin-top: clamp(32px, 5vw, 56px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--outline-strong); }
.js .panel + .panel { margin-top: 0; padding-top: 0; border-top: 0; }
.panel:focus-visible { outline-offset: 8px; border-radius: var(--radius-md); }
@media (min-width: 900px) { .panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }

.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.panel-title { font-size: clamp(1.25rem, 2.6vw, 1.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.panel-copy > p { margin-top: 10px; color: var(--ink-muted); max-width: 36em; }
.panel-copy > p.fine { font-size: 0.875rem; margin-top: 18px; }

.steps { counter-reset: s; display: grid; gap: 16px; margin-top: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}
.steps strong { display: block; font-weight: 700; }
.steps span { display: block; color: var(--ink-muted); }

/* ---------- Split sections, point lists, readiness list ---------- */

.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.rev > .scene { order: 2; }
  .split.top { align-items: start; }
}
.split + .split { margin-top: var(--section); }
.split-copy .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.split-copy > p { margin-top: 12px; color: var(--ink-muted); }
.split-copy > p.fine { font-size: 0.875rem; }

.points { margin-top: 24px; border-top: 1px solid var(--outline-strong); }
.points > li { padding: 16px 0; border-bottom: 1px solid var(--outline-strong); }
.points .point-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.points p { margin-top: 4px; color: var(--ink-muted); }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 52em;
  margin-bottom: clamp(24px, 4vw, 40px);
  padding: 14px 16px;
  border: 1px solid var(--outline-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 0.9375rem;
}
.notice svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--green); }

.ready-group { display: grid; gap: 8px 32px; padding-block: 22px; border-top: 1px solid var(--outline-strong); }
.ready-group:last-of-type { border-bottom: 1px solid var(--outline-strong); }
@media (min-width: 820px) { .ready-group { grid-template-columns: 220px minmax(0, 1fr); } }
.ready-group > .h3 { color: var(--green); }
.ready-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 10px 0; }
.ready-list > li + li { border-top: 1px solid var(--outline); }
.ready-list div { flex: 1 1 260px; min-width: 0; }
.ready-list strong { display: block; font-weight: 700; }
.ready-list span.d { display: block; font-size: 0.9375rem; color: var(--ink-muted); }

.facts { display: grid; gap: 24px 48px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts .h3 { margin-bottom: 6px; }
.facts p { color: var(--ink-muted); }

/* ---------- Availability (panels and applications not open yet) ---------- */

.avail {
  max-width: 34em;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--outline-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.avail-title { font-weight: 700; line-height: 1.35; }
.avail p + p { margin-top: 6px; color: var(--ink-muted); font-size: 0.9375rem; }
.avail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }

/* A link to a panel that is not deployed yet (see site.js). */
a.is-soon { cursor: default; text-decoration: none; }
.btn.is-soon, .btn.is-soon:hover { border: 1px dashed var(--outline-strong); background: var(--bg); color: var(--ink-muted); }
.soon-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: var(--pill);
  background: var(--beige-soft);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.btn .soon-tag { margin-left: 0; }
.footer-links a.is-soon, .footer-links a.is-soon:hover { color: var(--ink-muted); text-decoration: none; }
.footer-links .soon-tag { background: var(--surface); }
.band a.is-soon, .band a.is-soon:hover { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.band .btn.is-soon, .band .btn.is-soon:hover { border-color: rgba(255, 255, 255, 0.55); background: transparent; color: #fff; }

/* ---------- Partner page ---------- */

.partner-hero { padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 72px); }
.partner-hero .eyebrow { margin-bottom: 14px; }
.partner-hero .lead { margin-top: 18px; }
.partner-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.duo { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.duo .card ul { display: grid; gap: 10px; margin-top: 12px; }
.duo .card li { position: relative; padding-left: 28px; color: var(--ink-muted); }
.duo .card li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; background: center / 18px no-repeat; }
.duo .yes li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319443e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.500 4.500L19 7.500'/%3E%3C/svg%3E"); }
.duo .no li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6764' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }

.type-list { margin-top: 20px; border-top: 1px solid var(--outline-strong); }
.type-list > li { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--outline-strong); }
.type-list > li > span:first-child { flex: 1 1 280px; min-width: 0; }

/* ---------- Cards, steps, grids ---------- */

.card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.card .h3 + p { margin-top: 8px; color: var(--ink-muted); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.beige { background: var(--beige-soft); }

.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 8px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-weight: 700;
  text-align: center;
}

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature p { margin-top: 4px; color: var(--ink-muted); }

/* ---------- Partner band ---------- */

.band {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--green);
  color: #fff;
}
.band::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -80px;
  width: 280px; height: 280px;
  border-radius: 0 100% 0 100%;
  background: var(--beige);
  opacity: 0.2;
}
.band > * { position: relative; z-index: 1; }
.band .eyebrow { color: var(--beige); margin-bottom: 14px; }
.band .display { color: #fff; max-width: 14em; }
.band p.band-text { max-width: 38em; margin-top: 18px; color: rgba(255, 255, 255, 0.86); }
.band .btn { margin-top: 28px; }
.band .band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.band .band-actions .btn { margin-top: 0; }
.band .band-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.band .band-link:hover { color: var(--beige-soft); }
.band :focus-visible { outline-color: var(--beige); }

/* ---------- Inner pages ---------- */

.page-hero { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero .lead { margin-top: 18px; }
.page-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

.page-body { padding-bottom: var(--section); }
.stack > * + * { margin-top: clamp(40px, 6vw, 64px); }

.prose > * + * { margin-top: 14px; }
.prose p, .prose li { color: var(--ink-muted); }
.prose .h2 { margin-bottom: 4px; }
.prose strong { color: var(--ink); font-weight: 700; }

.num-list { counter-reset: n; display: grid; gap: 12px; margin-top: 18px; }
.num-list li {
  counter-increment: n;
  position: relative;
  padding: 16px 18px 16px 62px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}
.num-list li::before {
  content: counter(n);
  position: absolute;
  left: 16px; top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 700;
}

/* Placeholder for content the owner or legal counsel still has to supply. */
.placeholder {
  padding: clamp(18px, 3vw, 24px);
  border: 1.5px dashed var(--beige);
  border-radius: var(--radius-lg);
  background: var(--beige-soft);
  color: var(--ink);
}
.placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--outline-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.placeholder-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--beige); }
.placeholder p { color: var(--ink); }
.prose .placeholder { margin-top: 18px; }

/* FAQ (native <details>, no JS) */
.faq { display: grid; gap: 12px; margin-top: 18px; }
.faq details { border: 1px solid var(--outline); border-radius: var(--radius-md); background: var(--surface); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq .answer { padding: 0 18px 18px; color: var(--ink-muted); }
.faq .answer > * + * { margin-top: 10px; }

/* 404 */
.notfound { padding-block: clamp(56px, 12vw, 140px); text-align: center; }
.notfound img { width: 96px; margin: 0 auto 28px; }
.notfound .lead { margin: 16px auto 0; }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.notfound hr { width: 64px; margin: 48px auto; border: 0; border-top: 1px solid var(--outline-strong); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--outline); background: var(--beige-soft); }
.footer-grid { display: grid; gap: 32px; padding-block: clamp(40px, 6vw, 64px); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand .brand { margin-bottom: 10px; }
.footer-tagline { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.footer-title { margin-bottom: 6px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.footer-links a:hover { color: var(--green); text-decoration: underline; }
.footer-links a[aria-current="page"] { font-weight: 700; color: var(--green); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Utilities ---------- */

.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mb-18 { margin-bottom: 18px; }
.pt-0 { padding-top: 0; }

/* ---------- Partner pages (/p/…) ---------- */

button.lang-switch { background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.lang-switch[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }

.page-hero .display { text-align: center; }
.page-hero .lead { text-align: center; margin-inline: auto; }

.pl-stack > * + * { margin-top: 16px; }
.pl-stack > .h2 { margin-top: clamp(32px, 5vw, 48px); font-size: 1.25rem; }

.pl-demo {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: #fbf0d9;
  color: #8a5a00;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
}

.pl-notice {
  padding: 14px 18px;
  border: 1px solid var(--outline-strong);
  border-radius: var(--radius-md);
  background: var(--beige-soft);
}

.pl-services { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pl-service {
  padding: 16px 18px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.pl-service.is-selected { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.pl-service-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; }
.pl-service-name { font-weight: 700; overflow-wrap: anywhere; }
.pl-service-meta { color: var(--ink-muted); font-size: 0.875rem; white-space: nowrap; }
.pl-price { margin-top: 10px; color: var(--green); font-weight: 700; }
.pl-price + .pl-price { margin-top: 2px; color: var(--ink-muted); font-weight: 500; font-size: 0.875rem; }

.pl-book .stores-row .btn { flex: 1 1 200px; }
.pl-documents { margin: 0; padding-left: 20px; color: var(--ink-muted); }
.pl-documents li + li { margin-top: 6px; }
.pl-stack .hero-meta { justify-content: flex-start; margin-top: 12px; }

/* Account deletion: the status form and its answer. */
.ad-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.ad-form label { flex: 1 1 100%; font-weight: 700; color: var(--ink); }
.ad-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid var(--outline-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.ad-input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ad-result { display: grid; gap: 12px; margin-top: 18px; }
.ad-result[hidden] { display: none; }
.ad-card {
  padding: 18px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.ad-card > * + * { margin-top: 10px; }
.ad-card p { color: var(--ink); }
.ad-card p.muted { color: var(--ink-muted); }
.ad-title { font-weight: 700; }
.ad-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ad-pill {
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 700;
}
.ad-pill-failed { background: #f9e4e2; color: #b3372f; }
.ad-pill-awaiting { background: #fbf0d9; color: #8a5a00; }
.ad-pill-cancelled { background: var(--beige-soft); color: var(--ink-muted); }
.ad-progress { display: block; width: 100%; height: 8px; accent-color: var(--green); }
.ad-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ad-list li { color: var(--ink-muted); overflow-wrap: anywhere; }
.ad-list strong { display: block; color: var(--ink); font-weight: 700; }
.ad-detail { display: block; }
.ad-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }


/* Added with the redesign */
.mt-48 { margin-top: clamp(32px, 5vw, 48px); }
.scene-stack { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 480px) { .tab { padding: 0 12px; font-size: 0.9375rem; } }
@media (min-width: 900px) { .scene-stack { position: sticky; top: 96px; } }

/* ==========================================================================
   Story redesign: four customer stories, shared control, trust, professionals.
   Each story has its own composition; all share the tokens above.
   ========================================================================== */

.ui-stack > .ui, .board > .ui, .phases > .ui { margin-top: 0; }

.story-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.kicker .eyebrow { display: inline-flex; align-items: baseline; gap: 10px; }
.kicker .eyebrow b { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; letter-spacing: 0; color: var(--green); }
.story-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.8vw, 3.125rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--green);
  text-wrap: balance;
}
.story-title span { display: block; }
.story-head > p { margin-top: 16px; font-size: 1.0625rem; color: var(--ink-muted); }
.story-head > p.fine, p.fine { font-size: 0.875rem; }
.inline-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sub-h { font-size: clamp(1.25rem, 2.6vw, 1.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stores.slim { margin-top: 28px; padding: 16px 18px; }
.stores.slim .stores-text { font-size: 0.875rem; }
.stores.slim .store-btn { min-height: 44px; }

/* A week with three moments on one thread. */
.thread { position: relative; display: grid; gap: 12px; }
.thread::before { content: ""; position: absolute; left: 91px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: var(--outline-strong); }
.thread > li { position: relative; display: grid; grid-template-columns: 74px 12px minmax(0, 1fr); gap: 12px; align-items: start; }
.when { padding-top: 12px; text-align: right; font-size: 0.6875rem; font-weight: 600; line-height: 1.35; color: var(--ink-muted); }
.when b { display: block; font-size: 0.8125rem; color: var(--ink); }
.when svg { width: 16px; height: 16px; margin: 4px 0 0 auto; color: var(--green); }
.node { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 16px; border: 2px solid var(--green); border-radius: 50%; background: var(--surface); }
.node.on { background: var(--green); }
.thread .ui { padding: 12px 14px; }
.thread .ui-top { margin-bottom: 4px; }

/* ---------- Story 1: the doctor relationship (a desk with three sheets) ---------- */
.board { display: grid; gap: 12px; }
@media (min-width: 1000px) { .board { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.quote-me { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-md) var(--radius-md) 4px var(--radius-md); background: var(--beige-soft); color: var(--ink); font-size: 0.9375rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border: 1px solid var(--outline-strong); border-radius: var(--pill); font-size: 0.75rem; font-weight: 600; color: var(--ink); }

.tablist.seg { margin-bottom: 4px; padding: 3px; }
.tablist.seg .tab { min-height: 38px; padding: 0 16px; font-size: 0.8125rem; }
.chart-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 6px 0 0 36px; font-size: 0.6875rem; line-height: 1.3; text-align: center; color: var(--ink-muted); }
.chart-days b { display: block; font-weight: 600; color: var(--ink); }
.chart-gap.mid { left: 50%; }
.chartset > .panel { display: block; }
.chartset > .panel + .panel { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--outline-strong); }
.js .chartset > .panel + .panel { margin-top: 0; padding-top: 0; border-top: 0; }
.chart-cap { display: none; margin-top: 4px; font-size: 0.75rem; font-weight: 700; color: var(--ink); }
html:not(.js) .chart-cap { display: block; }

.tl { position: relative; display: grid; gap: 14px; margin-top: 4px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--outline-strong); }
.tl > li { position: relative; padding-left: 28px; }
.tl > li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border: 2px solid var(--green); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--surface); }
.tl > li.next::before { background: var(--surface); }
.tl strong { display: block; font-weight: 700; color: var(--ink); }
.tl small { display: block; font-size: 0.75rem; color: var(--ink-muted); }
.tl .bubble { margin-top: 8px; }

.trio { display: grid; gap: 20px 40px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 820px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trio > li { padding-top: 16px; border-top: 2px solid var(--green); }
.trio p { margin-top: 6px; color: var(--ink-muted); }
.trio .state { margin-top: 10px; }

.aside-split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--outline-strong); }
.aside-split > * { min-width: 0; }
@media (min-width: 900px) { .aside-split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); } }
.aside-split .copy > p { margin-top: 10px; color: var(--ink-muted); }
.aside-split .kicker { margin-bottom: 10px; }
.member small { display: block; margin-top: 2px; font-size: 0.75rem; font-weight: 600; color: var(--green); }
.member small.off { color: var(--ink-muted); }
.lock { flex: none; width: 18px; height: 18px; color: var(--ink-muted); }

/* ---------- Story 2: home healthcare (dark, three phases of one visit) ---------- */
.story-dark { background: var(--green); color: #fff; }
.story-dark .story-title, .story-dark .sub-h, .story-dark .kicker .eyebrow b { color: #fff; }
.story-dark .eyebrow { color: var(--beige); }
.story-dark .story-head > p, .story-dark .panel-copy > p, .story-dark .lede { color: rgba(255, 255, 255, 0.86); }
.story-dark a { color: #fff; }
.story-dark :focus-visible { outline-color: var(--beige); }
.story-dark .scene { border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.07); }
.story-dark .state-prep { border-color: transparent; }
.story-dark .tablist { border-color: rgba(255, 255, 255, 0.34); background: transparent; }
.story-dark .tab { color: #fff; }
.story-dark .tab:hover { background: rgba(255, 255, 255, 0.12); }
.story-dark .tab[aria-selected="true"] { background: var(--beige-soft); color: var(--green); }
.story-dark .panel + .panel { border-top-color: rgba(255, 255, 255, 0.24); }
.story-dark .notice { border-color: rgba(255, 255, 255, 0.24); background: transparent; color: rgba(255, 255, 255, 0.9); }
.story-dark .notice svg { color: var(--beige); }

.phases { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .phases > .ui.main { transform: translateY(-14px); box-shadow: 0 28px 48px -28px rgba(0, 0, 0, 0.6); }
}
.phase { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.phase i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-style: normal; letter-spacing: 0; }

.where-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.where-grid > * { min-width: 0; }
@media (min-width: 900px) { .where-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.where-grid .panel { display: block; }
.dl-rows { margin-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.dl-rows > div { display: grid; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.24); }
@media (min-width: 520px) { .dl-rows > div { grid-template-columns: 9em minmax(0, 1fr); } }
.dl-rows dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--beige); }
.dl-rows dd { margin: 0; color: rgba(255, 255, 255, 0.92); }
.near { display: grid; gap: 8px; }
.near-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--outline); border-radius: var(--radius-md); }
.near-item > div { flex: 1 1 auto; min-width: 0; }
.mode { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px; border-radius: var(--pill); background: var(--beige-soft); font-size: 0.75rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.mode svg { width: 14px; height: 14px; }

/* ---------- Story 3: personal care (warm; moments and a three-step reveal) ---------- */
.moments { display: grid; gap: 20px 0; margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 820px) { .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.moments > li { padding-left: 18px; border-left: 2px solid var(--beige); }
@media (min-width: 820px) { .moments > li { padding: 0 28px 0 22px; } }
.moments time, .moments .t { display: block; font-family: var(--serif); font-size: 2.25rem; font-weight: 500; line-height: 1; color: var(--green); }
.moments .h3 { margin-top: 8px; }
.moments p { margin-top: 4px; color: var(--ink-muted); }

.tablist.stepper { counter-reset: st; }
.stepper .tab { counter-increment: st; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.stepper .tab::before { content: counter(st); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 0.75rem; font-weight: 700; }
.stepper .tab[aria-selected="true"]::before { background: #fff; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tile { text-align: center; font-size: 0.6875rem; font-weight: 600; color: var(--ink-muted); }
.tile i { display: block; aspect-ratio: 1; margin-bottom: 4px; border-radius: 12px; background: var(--green-soft); }
.tile:nth-child(1) i { background: radial-gradient(circle at 28% 30%, var(--beige) 0 26%, transparent 27%), linear-gradient(135deg, var(--green-soft), var(--beige-soft)); }
.tile:nth-child(2) i { background: repeating-linear-gradient(115deg, transparent 0 9px, rgba(25, 68, 62, 0.16) 9px 11px), var(--beige-soft); }
.tile:nth-child(3) i { background: radial-gradient(circle at 72% 68%, var(--green) 0 22%, transparent 23%), var(--beige); }
.tile:nth-child(4) i { background: linear-gradient(160deg, var(--green) 0 46%, var(--green-soft) 46%); }
.tile:nth-child(5) i { background: radial-gradient(circle at 50% 50%, transparent 0 30%, var(--beige) 31% 44%, transparent 45%), var(--beige-soft); }
.tile:nth-child(6) i { background: repeating-radial-gradient(circle at 0 100%, transparent 0 10px, rgba(25, 68, 62, 0.14) 10px 12px), var(--green-soft); }

/* ---------- Story 4: groups (a schedule and a proposal become one booking) ---------- */
.rail { counter-reset: r; display: grid; gap: 18px 24px; margin-bottom: clamp(28px, 4vw, 48px); }
@media (min-width: 640px) { .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rail > li { counter-increment: r; position: relative; padding-top: 18px; border-top: 2px solid var(--outline-strong); }
.rail > li::before { content: counter(r); position: absolute; top: -15px; left: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.8125rem; font-weight: 700; box-shadow: 0 0 0 5px var(--bg); }
.rail strong { display: block; }
.rail span { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 0.9375rem; }

.assemble { display: grid; gap: 12px; }
.assemble > * { min-width: 0; margin-top: 0 !important; }
@media (min-width: 1000px) { .assemble { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } }
.gantt { display: grid; gap: 6px; }
.g-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; }
.g-who { min-width: 0; font-size: 0.8125rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.g-who small { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--ink-muted); }
.g-track { position: relative; height: 30px; border-radius: 8px; background: linear-gradient(to right, var(--outline) 1px, transparent 1px) 0 0 / 25% 100% var(--bg); box-shadow: inset 0 0 0 1px var(--outline); }
.g-bar { position: absolute; top: 5px; bottom: 5px; left: calc(var(--s) * 1%); width: calc(var(--w) * 1% - 2px); border-radius: 5px; background: var(--green); transform-origin: left center; }
.g-bar.b { background: repeating-linear-gradient(135deg, var(--beige) 0 5px, #b9a88f 5px 7px); }
.g-bar.c { border: 2px solid var(--green); background: var(--green-soft); }
.g-axis { position: relative; height: 1.4em; margin-left: 106px; font-size: 0.6875rem; color: var(--ink-muted); }
.g-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.g-axis span:first-child { left: 0; transform: none; }
.g-axis span:nth-child(2) { left: 25%; }
.g-axis span:nth-child(3) { left: 50%; }
.g-axis span:nth-child(4) { left: 75%; }
.g-axis span:last-child { right: 0; transform: none; font-weight: 700; color: var(--green); }
.key.b i, .key.c i, .key.a i { width: 16px; border-radius: 4px; }
.key.b i { background: repeating-linear-gradient(135deg, var(--beige) 0 5px, #b9a88f 5px 7px); }
.key.c i { border: 2px solid var(--green); background: var(--green-soft); }
.joined { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--green); color: #fff; }
.joined svg { flex: none; width: 22px; height: 22px; }
.joined b { display: block; }
.joined small { display: block; font-size: 0.75rem; color: rgba(255, 255, 255, 0.84); }
.plus { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.plus::before, .plus::after { content: ""; flex: 1; height: 1px; background: var(--outline-strong); }

@media screen and (prefers-reduced-motion: no-preference) {
  .js [data-anim]:not(.is-in) .g-bar { transform: scaleX(0); }
  .js [data-anim]:not(.is-in) .late, .js [data-anim]:not(.is-in) .thread > li { opacity: 0; }
  .js [data-anim].is-in .g-bar { animation: bar-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js [data-anim].is-in .g-row:nth-child(2) .g-bar { animation-delay: 0.12s; }
  .js [data-anim].is-in .g-row:nth-child(3) .g-bar { animation-delay: 0.24s; }
  .js [data-anim].is-in .g-row:nth-child(4) .g-bar { animation-delay: 0.36s; }
  .js [data-anim].is-in .g-row:nth-child(5) .g-bar { animation-delay: 0.48s; }
  .js [data-anim].is-in .late { animation: rise-in 0.5s ease-out 1s both; }
  .js [data-anim].is-in .late.l2 { animation-delay: 1.5s; }
  .js [data-anim].is-in .thread > li { animation: rise-in 0.5s ease-out both; }
  .js [data-anim].is-in .thread > li:nth-child(2) { animation-delay: 0.35s; }
  .js [data-anim].is-in .thread > li:nth-child(3) { animation-delay: 0.7s; }
}
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Shared control: estimate, accepted quote, verified payment ---------- */
.ledger { display: grid; gap: 10px; }
.led { padding: 12px 14px; border: 1.5px dashed var(--outline-strong); border-radius: var(--radius-md); }
.led-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--ink); }
.led p { margin-top: 4px; font-size: 0.8125rem; color: var(--ink-muted); }
.led.acc { border-style: solid; border-color: var(--green); }
.led.paid { border-style: solid; border-color: var(--green); background: var(--green); }
.led.paid .led-head, .led.paid p { color: #fff; }
.led.paid .amount { background: rgba(255, 255, 255, 0.6); }
.led .state { margin-top: 8px; }
.steps .state { margin-top: 6px; }

/* ---------- Trust: what a profile shows and what a badge says ---------- */
.cred { padding: 14px 0; border-top: 1px solid var(--outline); }
.cred:first-of-type { margin-top: 14px; }
.cred-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.cred-head .ui-title { letter-spacing: 0.05em; }
.cred-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 10px; }
.cred-row > div { flex: 1 1 180px; min-width: 0; }
.ev { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px 2px 8px; border: 1px solid var(--green); border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.ev::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319443e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.ev.self { border: 1px dashed var(--ink-muted); background: transparent; color: var(--ink-muted); font-weight: 600; font-style: italic; }
.ev.self::before { content: none; }
.badge { margin-top: 10px; border: 1px solid var(--green); border-radius: var(--radius-md); background: var(--surface); }
.badge summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-md); font-size: 0.8125rem; font-weight: 700; color: var(--green); cursor: pointer; list-style: none; }
.badge summary::-webkit-details-marker { display: none; }
.badge summary::before { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319443e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.badge summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 3px auto; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); }
.badge[open] summary::after { margin-bottom: -3px; transform: rotate(-135deg); }
.badge dl { margin: 0; padding: 2px 12px 12px; }
.badge dl > div { padding: 8px 0; border-top: 1px solid var(--outline); }
.badge dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.badge dd { margin: 2px 0 0; color: var(--ink); }
.hint { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.75rem; color: var(--ink-muted); }

/* ---------- Professionals: panel windows ---------- */
.win { overflow: hidden; border: 1px solid var(--outline); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 18px 36px -28px rgba(30, 42, 40, 0.35); font-size: 0.875rem; line-height: 1.45; }
.win-bar { display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-bottom: 1px solid var(--outline); background: var(--bg); }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--outline-strong); }
.win-bar span { margin-left: 8px; font-size: 0.75rem; font-weight: 700; color: var(--ink-muted); }
.win-side { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-bottom: 1px solid var(--outline); font-size: 0.75rem; font-weight: 600; color: var(--ink-muted); }
.win-side span { padding: 5px 9px; border-radius: 8px; }
.win-side .on { background: var(--green-soft); color: var(--green); }
.win-main { display: grid; gap: 10px; min-width: 0; padding: 14px; }
.win-main > * { min-width: 0; }
@media (min-width: 600px) {
  .win-body { display: grid; grid-template-columns: 124px minmax(0, 1fr); }
  .win-side { flex-direction: column; flex-wrap: nowrap; border-right: 1px solid var(--outline); border-bottom: 0; }
}
.box { padding: 10px 12px; border: 1px solid var(--outline); border-radius: var(--radius-md); }
.box .ui-title { display: block; margin-bottom: 6px; }
.line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 6px 0; color: var(--ink); }
.line + .line { border-top: 1px solid var(--outline); }
.line span { color: var(--ink-muted); }
.hours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hours span { height: 22px; border-radius: 6px; background: var(--green-soft); }
.hours .off { border: 1px dashed var(--outline-strong); background: var(--bg); }
.audience-list { display: grid; gap: 8px; margin-top: 16px; }
.audience-list li { position: relative; padding-left: 22px; color: var(--ink-muted); }
.audience-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--green); }

/* Closing: two ways in. */
.two-ways { display: grid; gap: 16px; }
@media (min-width: 820px) { .two-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.two-ways .band { padding: clamp(28px, 4vw, 48px); }
.two-ways .band.light { border: 1px solid var(--outline-strong); background: var(--surface); color: var(--ink); }
.two-ways .band.light::after { opacity: 0.35; }
.two-ways .band.light .eyebrow { color: var(--ink-muted); }
.two-ways .band.light .display { color: var(--green); }
.two-ways .band.light p.band-text { color: var(--ink-muted); }
.two-ways .band.light :focus-visible { outline-color: var(--green); }
.two-ways .display { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }

/* ---------- Professionals page: one section per audience ---------- */
.panel.mid { align-items: center; }
.scene.narrow-scene { width: 100%; max-width: 460px; justify-self: center; }

.aud-index { display: grid; border-top: 1px solid var(--outline-strong); }
.aud-index a { display: grid; gap: 2px 20px; align-items: baseline; padding: 18px 28px 18px 0; border-bottom: 1px solid var(--outline-strong); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319443e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") right center / 18px no-repeat; color: var(--ink); text-decoration: none; }
@media (min-width: 560px) { .aud-index a { grid-template-columns: 8.5em minmax(0, 1fr); } }
.aud-index a:hover span { color: var(--green); }
.aud-index b { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.aud-index span { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 500; line-height: 1.25; }

.asks { display: grid; gap: 6px; margin-top: 20px; padding-left: 18px; border-left: 2px solid var(--beige); }
.asks li { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-style: italic; line-height: 1.3; color: var(--green); }
.story-dark .asks li { color: #fff; }
.duet { display: grid; gap: 4px 28px; margin-top: 16px; font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.3; }
@media (min-width: 700px) { .duet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.duet span { padding-top: 10px; border-top: 2px solid var(--beige); }
.follow { margin-top: clamp(28px, 4vw, 48px); }
.follow .type-list { margin-top: 0; }
.cols-2 { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cols-2 > * { min-width: 0; }
@media (min-width: 900px) { .cols-2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }

/* Doctor centrepiece: a patient's timeline. Period tabs change the chart;
   a date button reveals the note the patient wrote for it. */
.desk { display: grid; gap: 12px; }
.desk > * { min-width: 0; margin-top: 0 !important; }
@media (min-width: 1000px) { .desk { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } }
.ui-stack { display: grid; gap: 12px; }
.guide { stroke: var(--outline-strong); stroke-width: 1.5; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.js .guide { opacity: 0; }
.js [data-picked="0"] .g0, .js [data-picked="1"] .g1, .js [data-picked="2"] .g2 { opacity: 1; stroke: var(--green); }
.trend-line.prev { stroke: var(--beige); stroke-dasharray: 0.02 0.02; }
.key.prev i { width: 16px; height: 0; border-top: 2px dashed #b9a88f; border-radius: 0; background: none; }
.picks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.picks > span { margin-right: 4px; font-size: 0.75rem; font-weight: 700; color: var(--ink-muted); }
.pick-btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--outline-strong); border-radius: var(--pill); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.pick-btn:hover { border-color: var(--green); }
.pick-btn[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.pnote { margin-top: 10px; padding: 10px 14px; border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px; background: var(--beige-soft); color: var(--ink); }
.pnote b { display: block; font-size: 0.75rem; color: var(--ink-muted); }
.prov { display: grid; gap: 0 16px; margin: 14px 0 0; padding-top: 4px; border-top: 1px solid var(--outline); font-size: 0.75rem; }
@media (min-width: 560px) { .prov { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prov > div { padding: 8px 0; }
.prov dt { font-weight: 700; color: var(--ink-muted); }
.prov dd { margin: 0; color: var(--ink); }
.ui.descr { border-style: dashed; border-color: var(--outline-strong); box-shadow: none; }
.ui.concl { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green), 0 18px 36px -28px rgba(30, 42, 40, 0.35); }

/* Clinic: an operations overview, then one patient's journey. */
.win-grid { display: grid; gap: 10px; }
@media (min-width: 760px) { .win-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.avail-row { display: grid; grid-template-columns: minmax(0, 6.5em) minmax(0, 1fr); gap: 10px; align-items: center; padding: 5px 0; color: var(--ink); font-weight: 600; }
.avail-row .hours { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.avail-row .hours span { height: 14px; border-radius: 4px; }
.avail-row .hours .busy { background: var(--green); }
.journey { counter-reset: j; display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 900px) { .journey { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.journey > li { counter-increment: j; position: relative; padding: 14px; border: 1px solid var(--outline); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: 0.875rem; line-height: 1.4; }
.journey > li::before { content: counter(j); display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-bottom: 8px; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 700; }
.journey strong { display: block; }
.journey span.d { display: block; margin: 2px 0 8px; font-size: 0.8125rem; color: var(--ink-muted); }
.twin { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 700px) { .twin { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.twin > div { padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: 0.875rem; }
.twin .in { border: 1.5px dashed var(--ink-muted); }
.twin .out { border: 1.5px solid var(--green); }
.twin b { display: flex; align-items: center; gap: 8px; }
.twin p { margin-top: 4px; font-size: 0.8125rem; color: var(--ink-muted); }
.quad { display: grid; gap: 28px 48px; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 760px) { .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quad h3 { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--beige); }
.quad h3 i { font-family: var(--serif); font-size: 1.5rem; font-style: normal; font-weight: 500; color: var(--beige); }
.quad li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.quad li > span:first-child { flex: 1 1 220px; min-width: 0; color: rgba(255, 255, 255, 0.9); }

/* Personal care: portfolio, request, proposal, reservation. */
.flow { display: grid; gap: 12px; }
.flow > * { min-width: 0; margin-top: 0 !important; }
@media (min-width: 640px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow .phase { color: var(--green); }
.flow .tiles { margin-top: 10px; }
.flow .joined { margin-top: 10px; }
.g-bar { display: flex; align-items: center; overflow: hidden; padding-left: 6px; color: #fff; font-size: 0.625rem; font-style: normal; font-weight: 700; line-height: 1; white-space: nowrap; }
.g-bar.b, .g-bar.c { color: var(--ink); }
.branch { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--outline); border-radius: var(--radius-md); }
.branch > div { flex: 1 1 auto; min-width: 0; }
.branch.hid { border-style: dashed; color: var(--ink-muted); }
.branch.hid .ui-name { color: var(--ink-muted); }

/* Application: choose a profession; the choice travels in the link. */
.chooser { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chooser a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: var(--pill); color: #fff; font-weight: 600; text-decoration: none; }
.chooser a:hover { background: rgba(255, 255, 255, 0.12); }
.chooser a.is-soon { border-style: dashed; }
.chooser .soon-tag { display: none; }
.band .chooser-label { margin-top: 24px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--beige); }
.band .display.wide { max-width: 18em; }
.apply-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 28px; }
.story-dark a.is-soon, .story-dark a.is-soon:hover { color: rgba(255, 255, 255, 0.9); }
.story-dark .btn.is-soon, .story-dark .btn.is-soon:hover { border-color: rgba(255, 255, 255, 0.55); background: transparent; color: #fff; }
@media (max-width: 420px) {
  .thread::before { left: 5px; top: 8px; }
  .thread > li { grid-template-columns: 12px minmax(0, 1fr); gap: 6px 12px; }
  .when { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 8px; padding-top: 0; text-align: left; }
  .when b { font-size: 0.75rem; }
  .when svg { margin: 0; }
  .node { grid-column: 1; grid-row: 1; margin-top: 3px; }
  .thread .ui { grid-column: 2; grid-row: 2; }
}
