/* ==========================================================================
   VITA HOUSE — design system
   Self-initiated concept by Rovard Studios. Fictional brand, not a real provider.
   Warm neutrals · sage · deep charcoal · clay / honey accents. No clinical blue.
   ========================================================================== */

:root {
  /* — neutrals (warm) */
  --linen: #F6F1E7;
  --oat: #FBF8F2;
  --sand-100: #EEE6D6;
  --sand-200: #E3D8C3;
  --sand-300: #CFC2A8;
  --field-border: #8A8372;
  /* — ink (deep charcoal) */
  --ink: #232622;
  --ink-2: #454A44;
  --ink-3: #5C6259;
  /* — sage / moss (primary) */
  --sage-50: #EEF2E8;
  --sage-100: #E0E8D7;
  --sage-200: #C9D7C0;
  --sage-400: #8DA886;
  --sage-600: #4D6F54;
  --moss-700: #3F5C47;
  --moss-800: #2F4A39;
  --moss-900: #20352A;
  /* — secondary accents */
  --clay-400: #D98E6B;
  --clay-500: #C4714C;
  --clay-600: #A8532F;
  --clay-700: #94472B;
  --honey-400: #E8BC5E;
  --honey-600: #8A5F12;
  --blush-100: #F7E6DC;
  --blush-200: #F0D3C4;
  /* — feedback */
  --brick: #B03A2E;
  --brick-bg: #FBEAE6;
  --ok-bg: #E4EDDB;
  --warn-bg: #FBF0D5;

  /* — semantic */
  --bg: var(--linen);
  --surface: var(--oat);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --line: var(--sand-200);
  --line-strong: var(--sand-300);
  --primary: var(--moss-700);
  --primary-hover: var(--moss-800);

  /* — type */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* — shape */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --arch: 999px 999px var(--r-lg) var(--r-lg);

  /* — elevation */
  --shadow-1: 0 1px 2px rgba(35, 38, 34, .06), 0 4px 14px -4px rgba(35, 38, 34, .06);
  --shadow-2: 0 2px 4px rgba(35, 38, 34, .05), 0 14px 34px -10px rgba(35, 38, 34, .16);
  --shadow-3: 0 30px 70px -24px rgba(35, 38, 34, .32);

  /* — motion */
  --ease: cubic-bezier(.22, .8, .3, 1);
  --t-fast: .18s;
  --t: .32s;

  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html[data-text="lg"] { font-size: 112.5%; }
html[data-text="xl"] { font-size: 125%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.62 var(--font-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"], .plain { list-style: none; padding: 0; margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--sage-200); color: var(--ink); }

:focus-visible { outline: 3px solid var(--moss-700); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--honey-400); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--oat); padding: .75rem 1.25rem; border-radius: var(--r-pill); font-weight: 600; transition: top .2s; }
.skip:focus { top: 1rem; }

/* ---------- type ---------- */
.display, h1, h2, h3, .h-display {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 60, 'WONK' 0;
  font-weight: 340; letter-spacing: -.02em; line-height: 1.06; color: var(--ink);
}
h1, .h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); letter-spacing: -.028em; line-height: 1.02; }
h2, .h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3, .h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.14; font-weight: 380; }
h4, .h4 { font: 700 1.0625rem/1.3 var(--font-ui); letter-spacing: 0; }
.display em, h1 em, h2 em, h3 em { font-style: italic; font-weight: 320; color: var(--moss-700); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.dark h1 em, .dark h2 em, .dark h3 em, .on-dark em { color: var(--honey-400); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font: 700 .8125rem/1.35 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--moss-700); }
.eyebrow::before { content: ""; width: 1.6rem; height: 1.5px; background: currentColor; }
.eyebrow.plain::before { display: none; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--text-2); max-width: 38em; }
.small { font-size: .9375rem; }
.tiny { font-size: .8125rem; }
.muted { color: var(--text-3); }
.nums { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.prose p + p { margin-top: 1em; }
.prose { color: var(--text-2); max-width: 38em; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-sm { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 46rem; }
.section-head.row { display: grid; max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 2rem; }
.section-head.center { margin-inline: auto; justify-items: center; text-align: center; }
.tint { background: var(--oat); border-block: 1px solid var(--line); }
.dark { background: var(--moss-900); color: var(--oat); }
.dark h1, .dark h2, .dark h3 { color: var(--oat); }
.dark .lead, .dark .prose, .dark .muted { color: #CAD5C5; }
.dark .eyebrow { color: var(--honey-400); }
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.between { justify-content: space-between; }

/* ---------- icons ---------- */
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-lg { width: 1.75rem; height: 1.75rem; }
.icon-xl { width: 2.25rem; height: 2.25rem; stroke-width: 1.5; }
.icon-chip { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 16px; background: var(--sage-100); color: var(--moss-800); flex: none; }
.icon-chip.round { border-radius: 50%; }
.icon-chip.clay { background: var(--blush-200); color: var(--clay-700); }
.icon-chip.honey { background: var(--warn-bg); color: var(--honey-600); }
.icon-chip.dark { background: var(--moss-800); color: var(--honey-400); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.45rem; border-radius: var(--r-pill);
  font: 600 1rem/1.1 var(--font-ui); border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform var(--t) var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--moss-700); color: #fff; }
.btn-primary:hover { background: var(--moss-800); box-shadow: 0 8px 20px -8px rgba(47, 74, 57, .55); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--oat); }
.btn-soft { background: var(--sage-100); color: var(--moss-800); }
.btn-soft:hover { background: var(--sage-200); }
.btn-light { background: var(--oat); color: var(--moss-900); }
.btn-light:hover { background: #fff; }
.btn-honey { background: var(--honey-400); color: var(--moss-900); }
.btn-honey:hover { background: #F0CB78; }
.btn-outline-light { background: transparent; color: var(--oat); border-color: rgba(251, 248, 242, .55); }
.btn-outline-light:hover { background: rgba(251, 248, 242, .12); border-color: var(--oat); }
.btn-danger { background: var(--brick); color: #fff; }
.btn-danger:hover { background: #8F2C22; }
.btn-text { background: none; padding-inline: .5rem; min-height: 2.75rem; color: var(--moss-700); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.btn-text:hover { color: var(--moss-900); }
.btn-lg { min-height: 3.6rem; padding: .9rem 1.9rem; font-size: 1.0625rem; }
.btn-sm { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::after { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--oat); color: var(--ink); transition: background var(--t-fast), border-color var(--t-fast); }
.icon-btn:hover { background: var(--sage-100); border-color: var(--sage-400); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--moss-700); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.link-arrow:hover { color: var(--moss-900); }
.link-arrow .icon { width: 1em; height: 1em; transition: transform var(--t) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.dark .link-arrow { color: var(--honey-400); }

/* ---------- badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem; border-radius: var(--r-pill); font: 700 .8125rem/1.2 var(--font-ui); background: var(--sand-100); color: var(--ink-2); }
.badge .dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-bg); color: var(--moss-800); }
.badge-warn { background: var(--warn-bg); color: var(--honey-600); }
.badge-clay { background: var(--blush-100); color: var(--clay-700); }
.badge-err { background: var(--brick-bg); color: var(--brick); }
.badge-dark { background: var(--moss-900); color: var(--oat); }
.chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .45rem 1.1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--oat); font: 600 .9375rem/1 var(--font-ui); color: var(--ink-2); cursor: pointer; transition: all var(--t-fast); }
.chip:hover { border-color: var(--moss-700); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--moss-700); border-color: var(--moss-700); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- forms ---------- */
.field { display: grid; gap: .45rem; align-content: start; }
.field > label, .label { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 3.25rem; padding: .75rem 1rem; border: 1.5px solid var(--field-border); border-radius: 14px;
  background: var(--oat); color: var(--ink); transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #7A7566; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--moss-700); box-shadow: 0 0 0 4px rgba(77, 111, 84, .28); background: #fff; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23454A44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.25rem; padding-right: 2.75rem; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea, .input[aria-invalid="true"] { border-color: var(--brick); background: #fff; box-shadow: 0 0 0 1px var(--brick); }
.field.is-valid .input { border-color: var(--sage-600); }
.hint { font-size: .875rem; color: var(--ink-3); }
.error-text { display: none; gap: .45rem; align-items: flex-start; color: var(--brick); font-size: .9rem; font-weight: 600; line-height: 1.35; }
.error-text .icon { width: 1.1rem; height: 1.1rem; margin-top: .05rem; }
.field.is-invalid .error-text { display: flex; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .9rem; min-width: 0; }
.fieldset > legend { padding: 0; font-weight: 700; font-size: 1.0625rem; margin-bottom: .35rem; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.input-icon .input { padding-left: 2.9rem; }

/* selectable cards (radio / checkbox) */
.choice { position: relative; display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.25rem; border: 1.5px solid var(--line-strong); border-radius: 20px; background: var(--oat); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease); }
.choice:hover { border-color: var(--moss-700); transform: translateY(-1px); }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--moss-700); background: var(--sage-50); box-shadow: inset 0 0 0 1.5px var(--moss-700); }
.choice:has(input:focus-visible) { outline: 3px solid var(--moss-700); outline-offset: 3px; }
.choice .tick { margin-left: auto; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1.5px solid var(--field-border); display: grid; place-items: center; background: var(--oat); transition: all var(--t-fast); }
.choice .tick .icon { width: .9rem; height: .9rem; stroke-width: 3; color: #fff; opacity: 0; transform: scale(.6); transition: all var(--t-fast) var(--ease); }
.choice:has(input:checked) .tick { background: var(--moss-700); border-color: var(--moss-700); }
.choice:has(input:checked) .tick .icon { opacity: 1; transform: none; }
.choice .ct { display: grid; gap: .2rem; min-width: 0; }
.choice .ct b { font-weight: 700; }
.choice .ct span { font-size: .9rem; color: var(--ink-3); }

.check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-size: .9375rem; line-height: 1.45; }
.check input { appearance: none; flex: none; width: 1.5rem; height: 1.5rem; margin: 0; border: 1.5px solid var(--field-border); border-radius: 7px; background: var(--oat) center / 1rem no-repeat; transition: all var(--t-fast); cursor: pointer; }
.check input:checked { background-color: var(--moss-700); border-color: var(--moss-700); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.check input:focus-visible { outline: 3px solid var(--moss-700); outline-offset: 3px; }
.field.is-invalid .check input { border-color: var(--brick); box-shadow: 0 0 0 1px var(--brick); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.switch input { appearance: none; flex: none; width: 3.25rem; height: 1.9rem; border-radius: var(--r-pill); background: var(--sand-300); position: relative; margin: 0; transition: background var(--t-fast); cursor: pointer; border: 1.5px solid var(--field-border); }
.switch input::after { content: ""; position: absolute; top: 50%; left: .2rem; translate: 0 -50%; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: left var(--t-fast) var(--ease); }
.switch input:checked { background: var(--moss-700); border-color: var(--moss-700); }
.switch input:checked::after { left: calc(100% - 1.5rem); }
.switch input:focus-visible { outline: 3px solid var(--moss-700); outline-offset: 3px; }

.segmented { display: inline-flex; padding: .3rem; gap: .2rem; background: var(--sand-100); border-radius: var(--r-pill); }
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.segmented span { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .35rem 1.1rem; border-radius: var(--r-pill); font-weight: 600; font-size: .9375rem; color: var(--ink-2); transition: all var(--t-fast); }
.segmented input:checked + span { background: var(--oat); color: var(--ink); box-shadow: var(--shadow-1); }
.segmented input:focus-visible + span { outline: 3px solid var(--moss-700); }

/* ---------- surfaces ---------- */
.card { background: var(--oat); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.card-flat { background: var(--sand-100); border-radius: var(--r-lg); padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.card-lift { transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--sage-200); }
a.card, a.card-lift { text-decoration: none; color: inherit; }
.divider { height: 1px; background: var(--line); border: 0; margin: 1.25rem 0; }

/* alerts */
.alert { display: flex; gap: .85rem; padding: 1rem 1.15rem; border-radius: 16px; border: 1px solid transparent; font-size: .9375rem; line-height: 1.5; }
.alert .icon { margin-top: .12rem; }
.alert b { display: block; font-weight: 700; }
.alert-info { background: var(--sand-100); border-color: var(--sand-200); color: var(--ink-2); }
.alert-ok { background: var(--ok-bg); border-color: #C5D6B8; color: var(--moss-900); }
.alert-warn { background: var(--warn-bg); border-color: #EBD59A; color: #5E4208; }
.alert-err { background: var(--brick-bg); border-color: #EBBDB5; color: #7C2218; }

.toasts { position: fixed; z-index: 90; left: 50%; bottom: 1.25rem; translate: -50% 0; display: grid; gap: .6rem; width: min(92vw, 26rem); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .75rem; align-items: center; padding: .9rem 1.1rem; border-radius: 16px; background: var(--ink); color: var(--oat); font-size: .9375rem; box-shadow: var(--shadow-3); animation: toast-in .35s var(--ease); }
.toast .icon { color: var(--honey-400); }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.progress { height: .5rem; border-radius: var(--r-pill); background: var(--sand-200); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--moss-700); transition: width .6s var(--ease); }

.skeleton { position: relative; overflow: hidden; background: var(--sand-100); border-radius: 10px; min-height: 1rem; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.empty { display: grid; justify-items: center; text-align: center; gap: .75rem; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: color-mix(in srgb, var(--oat) 60%, transparent); }
.empty .empty-art { width: 7rem; margin-bottom: .25rem; }
.empty h3, .empty h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: -.01em; }
.empty p { color: var(--text-3); max-width: 28rem; }

/* avatars / illustrated portraits */
.portrait { display: block; width: 100%; height: auto; border-radius: var(--arch); overflow: hidden; }
.avatar { display: inline-block; width: 3rem; height: 3rem; border-radius: 50%; overflow: hidden; flex: none; background: var(--sage-100); }
.avatar svg { width: 100%; height: 100%; }
.avatar.sm { width: 2.25rem; height: 2.25rem; }
.avatar.lg { width: 4.5rem; height: 4.5rem; }
.avatar.initials { display: inline-grid; place-items: center; font: 700 .95rem var(--font-ui); background: var(--blush-200); color: var(--clay-700); }

/* tabs */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: .85rem 1rem; min-height: 2.75rem; background: none; border: 0; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--moss-800); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--moss-700); }
.tab .count { margin-left: .4rem; font-size: .75rem; background: var(--sand-100); padding: .1rem .5rem; border-radius: 99px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .embed .reveal { opacity: 1; transform: none; }

/* modal / dialog */
.scrim { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; background: rgba(32, 53, 42, .5); backdrop-filter: blur(4px); animation: fade .25s; }
.dialog { width: min(32rem, 100%); max-height: 90vh; overflow: auto; background: var(--oat); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-3); animation: pop .35s var(--ease); }
.dialog h3 { margin-bottom: .6rem; }
.dialog .actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1.5rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ==========================================================================
   SITE SHELL
   ========================================================================== */
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -.015em; line-height: 1; font-variation-settings: 'SOFT' 100, 'WONK' 0; }
.logo .logo-word i { font-style: italic; font-weight: 400; color: var(--moss-700); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.logo.on-dark { color: var(--oat); }
.logo.on-dark .logo-word i { color: var(--honey-400); }
.logo svg { width: auto; height: 2.1em; }

.announce { background: var(--moss-900); color: #DCE6D5; font-size: .875rem; }
.announce .container { display: flex; justify-content: center; align-items: center; gap: .6rem; min-height: 2.5rem; padding-block: .35rem; text-align: center; }
.announce a { color: var(--honey-400); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--linen) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t); }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px rgba(35, 38, 34, .25); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a { padding: .6rem .95rem; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: .9875rem; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); }
.nav-links a:hover { background: var(--sand-100); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--moss-800); background: var(--sage-100); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-signin { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem .9rem; border-radius: var(--r-pill); font-weight: 600; font-size: .9875rem; text-decoration: none; color: var(--ink-2); }
.nav-signin:hover { background: var(--sand-100); color: var(--ink); }
.nav-toggle { display: none; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--ink); background: transparent; font-weight: 600; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--linen); padding: 1rem var(--gutter) 1.75rem; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 1rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; font-weight: 380; }
.mobile-menu .btn { margin-top: 1.25rem; }
@media (min-width: 1021px) { .mobile-menu { display: none !important; } }
@media (max-width: 1020px) {
  .nav-links, .nav-signin { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) { .nav-actions .btn { display: none; } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--sand-300); }
.breadcrumb ol { display: contents; list-style: none; padding: 0; margin: 0; }
.breadcrumb li { display: inline; }

.page-hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero .inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.page-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); margin-block: 1rem 1.25rem; }
.page-hero .art { justify-self: end; width: min(100%, 380px); }
.page-hero.simple .inner { grid-template-columns: 1fr; }

.site-footer { background: var(--moss-900); color: #CAD5C5; padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; position: relative; overflow: hidden; }
.site-footer a:not(.btn) { color: #DCE6D5; text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 3rem; }
.footer-grid h2 { font: 700 .8125rem/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--honey-400); margin-bottom: 1.1rem; }
.footer-grid ul { display: grid; gap: .65rem; }
.footer-brand p { margin-top: 1.25rem; max-width: 22rem; font-size: .9375rem; }
.footer-legal { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(220, 230, 213, .18); display: grid; gap: .75rem; font-size: .8125rem; color: #AFC0AA; }
.footer-legal strong { color: var(--honey-400); letter-spacing: .08em; }
.footer-arches { position: absolute; right: -90px; bottom: -70px; width: 380px; opacity: .07; pointer-events: none; }

/* ==========================================================================
   HOME + MARKETING SECTIONS
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-block: 1.35rem 1.5rem; font-size: clamp(2.7rem, 6.4vw, 5.3rem); }
.hero .lead { margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; font-size: .9375rem; color: var(--ink-2); }
.trust-row li { display: inline-flex; align-items: center; gap: .55rem; }
.trust-row .icon { color: var(--sage-600); }
.hero-art { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 560px; justify-self: end; }
.hero-art .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-card { position: absolute; display: flex; align-items: center; gap: .85rem; padding: .85rem 1.1rem .85rem .85rem; background: var(--oat); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); font-size: .875rem; line-height: 1.3; animation: float 7s ease-in-out infinite; }
.float-card b { display: block; font-size: .9375rem; }
.float-card.a { left: -2%; bottom: 14%; }
.float-card.b { right: -3%; top: 12%; animation-delay: -3s; }
.float-card.c { right: 2%; bottom: 4%; animation-delay: -5s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.promise > div { padding: 2rem 2rem 0 0; display: grid; gap: .9rem; align-content: start; }
.promise > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.promise .num { font: 400 .875rem var(--font-ui); letter-spacing: .1em; color: var(--clay-600); font-weight: 700; }
.promise h3 { font-size: 1.65rem; }
.promise p { color: var(--text-2); }
.statement { font-family: var(--font-display); font-weight: 320; font-variation-settings: 'SOFT' 60; font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.18; letter-spacing: -.02em; max-width: 24em; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.statement em { font-style: italic; color: var(--moss-700); }

.service-card { display: flex; flex-direction: column; gap: 1rem; min-height: 15rem; position: relative; overflow: hidden; }
.service-card h3 { font-size: 1.4rem; font-weight: 400; }
.service-card p { color: var(--text-2); font-size: .975rem; }
.service-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--moss-700); }
.service-card .more .icon { width: 1em; height: 1em; transition: transform var(--t) var(--ease); }
.service-card:hover .more .icon { transform: translateX(4px); }
.service-card .arch-deco { position: absolute; right: -1.2rem; top: -1.2rem; width: 6.5rem; opacity: .0; transition: opacity var(--t), transform var(--t) var(--ease); transform: translateY(10px); }
.service-card:hover .arch-deco { opacity: 1; transform: none; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 1.7rem; border-top: 1.5px dashed var(--sage-400); z-index: 0; }
.step { position: relative; z-index: 1; display: grid; gap: .8rem; align-content: start; }
.step .badge-num { counter-increment: step; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--linen); border: 1.5px solid var(--moss-700); color: var(--moss-800); font: 400 1.4rem var(--font-display); }
.step .badge-num::before { content: counter(step); }
.step h3 { font-size: 1.3rem; font-weight: 400; }
.step p { color: var(--text-2); font-size: .975rem; }
.tint .step .badge-num { background: var(--oat); }

.provider-card { display: grid; gap: 1.1rem; text-decoration: none; color: inherit; }
.provider-card .portrait-wrap { position: relative; border-radius: var(--arch); overflow: hidden; background: var(--sage-100); aspect-ratio: 5 / 6; transition: transform var(--t) var(--ease); }
.provider-card:hover .portrait-wrap { transform: translateY(-4px); }
.provider-card .portrait-wrap svg { width: 100%; height: 100%; }
.provider-card .next { position: absolute; left: 50%; bottom: .9rem; translate: -50% 0; background: var(--oat); border-radius: var(--r-pill); padding: .4rem .85rem; font-size: .8125rem; font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; box-shadow: var(--shadow-1); white-space: nowrap; }
.provider-card .next .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--sage-600); }
.provider-card h3 { font-size: 1.35rem; font-weight: 400; }
.provider-card .role { color: var(--text-3); font-size: .9375rem; }
.provider-card .tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.plan { display: grid; gap: 1.25rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-xl); background: var(--oat); border: 1.5px solid var(--line); position: relative; }
.plan.featured { background: var(--moss-800); color: var(--oat); border-color: var(--moss-700); }
.plan.featured h3 { color: var(--oat); }
.plan .price { font: 300 3.2rem/1 var(--font-display); letter-spacing: -.03em; font-variation-settings: 'SOFT' 60; }
.plan .price small { font: 500 1rem var(--font-ui); letter-spacing: 0; opacity: .75; }
.plan ul { display: grid; gap: .75rem; }
.plan li { display: flex; gap: .7rem; align-items: flex-start; font-size: .975rem; }
.plan li .icon { color: var(--sage-600); margin-top: .15rem; }
.plan.featured li .icon { color: var(--honey-400); }
.plan .tag { position: absolute; top: -.9rem; left: 2rem; }
.plan .desc { opacity: .85; font-size: .975rem; }

.quote { display: grid; gap: 1.5rem; align-content: space-between; }
.quote blockquote { font-family: var(--font-display); font-weight: 340; font-size: 1.35rem; line-height: 1.35; letter-spacing: -.01em; font-variation-settings: 'SOFT' 80; }
.quote .who { display: flex; align-items: center; gap: .85rem; font-size: .9375rem; }
.quote .who b { display: block; }
.stars { display: inline-flex; gap: 2px; color: var(--honey-600); }
.stars .icon { width: 1rem; height: 1rem; fill: currentColor; stroke-width: 1; }

.location-card { display: grid; gap: .9rem; }
.location-card h3 { font-size: 1.3rem; font-weight: 400; }
.location-card address { font-style: normal; color: var(--text-2); font-size: .9375rem; }
.location-card .meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .875rem; color: var(--text-3); }
.location-card .meta span { display: inline-flex; gap: .4rem; align-items: center; }
.map-tile { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--sage-100); }
.map-tile svg { width: 100%; height: 100%; }

.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--sage-200); padding: clamp(2.25rem, 6vw, 5rem); display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.cta-band h2 { max-width: 14em; }
.cta-band .art { justify-self: end; width: min(100%, 300px); }

.article-card { display: grid; gap: 1rem; text-decoration: none; color: inherit; align-content: start; }
.article-card .thumb { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; position: relative; transition: transform var(--t) var(--ease); }
.article-card:hover .thumb { transform: translateY(-3px); }
.article-card .thumb svg { width: 100%; height: 100%; }
.article-card h3 { font-size: 1.3rem; font-weight: 400; line-height: 1.2; }
.article-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-card .meta { font-size: .8125rem; color: var(--text-3); display: flex; gap: .75rem; align-items: center; }

.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; font: 400 1.3rem var(--font-display); cursor: pointer; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--t) var(--ease); flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.5rem; color: var(--text-2); max-width: 44em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--oat); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .975rem; }
.compare thead th { font: 400 1.2rem var(--font-display); background: var(--sand-100); border-bottom: 1px solid var(--line-strong); }
.compare tbody th { font-weight: 600; width: 34%; }
.compare td { text-align: center; }
.compare td .icon { color: var(--sage-600); margin-inline: auto; }
.compare tr:last-child > * { border-bottom: 0; }

.stat { display: grid; gap: .25rem; }
.stat b { font: 300 clamp(2.4rem, 4vw, 3.4rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--moss-800); }
.stat span { color: var(--text-3); font-size: .9375rem; }
.dark .stat b { color: var(--honey-400); }
.dark .stat span { color: #CAD5C5; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }

.mini-dash { background: var(--oat); border: 1px solid var(--line); border-radius: 28px; padding: 1.25rem; box-shadow: var(--shadow-3); display: grid; gap: 1rem; }
.mini-dash .row-card { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: 18px; background: var(--linen); border: 1px solid var(--line); }
.mini-dash .date-tile { display: grid; place-items: center; width: 3.6rem; height: 3.8rem; border-radius: 14px; background: var(--moss-700); color: #fff; text-align: center; line-height: 1; flex: none; }
.mini-dash .date-tile b { font: 400 1.5rem var(--font-display); display: block; }
.mini-dash .date-tile span { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .page-hero .inner, .cta-band { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 480px; }
  .page-hero .art { justify-self: start; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band .art { display: none; }
}
@media (max-width: 760px) {
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; }
  .promise > div, .promise > div + div { padding: 1.75rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .section-head.row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .float-card.a { left: 0; } .float-card.b { right: 0; }
  .float-card { font-size: .8rem; padding: .65rem .85rem .65rem .65rem; }
  .cols-4.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 460px) {
  .cols-4 { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html[data-motion="reduce"] .reveal { opacity: 1; transform: none; }

/* plans on dark sections */
.dark .plan { background: rgba(251, 248, 242, .06); border-color: rgba(251, 248, 242, .2); color: var(--oat); }
.dark .plan h3 { color: var(--oat); }
.dark .plan li .icon { color: var(--honey-400); }
.dark .plan.featured { background: var(--oat); color: var(--ink); border-color: var(--oat); }
.dark .plan.featured h3 { color: var(--ink); }
.dark .plan.featured li .icon { color: var(--sage-600); }
.dark .plan .btn-secondary { color: var(--oat); border-color: rgba(251, 248, 242, .6); }
.dark .plan .btn-secondary:hover { background: var(--oat); color: var(--moss-900); }

.list-stack { display: grid; gap: 1.1rem; }

/* phone frames in the case study: reserve room for the device notch */
@media (max-width: 480px) {
  html.embed body { padding-top: 34px; }
  html.embed::before { content: "9:41"; position: fixed; z-index: 200; top: 0; left: 0; right: 0; height: 34px; padding: 10px 0 0 28px; background: color-mix(in srgb, var(--linen) 96%, transparent); font: 700 13px/1 var(--font-ui); color: var(--ink); pointer-events: none; }
  html.embed .m-bar { top: 34px; }
}
