/* Unwritten Health: styles for the pages generated by scripts/build_site.py.
 * Colours and fonts come from chrome.css (--uh-*).
 */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--uh-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--uh-cream); color: var(--uh-ink); font-family: var(--uh-body); font-size: 1.04rem; line-height: 1.68; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--uh-sage-dark); text-underline-offset: 3px; }
a:hover { color: var(--uh-sage-deep); }
p { margin: 0 0 1.05em; }
h1, h2, h3, h4 { font-family: var(--uh-head); font-weight: 400; color: var(--uh-ink); margin: 0; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); line-height: 1.14; margin-bottom: 0.6em; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.45rem); line-height: 1.25; margin-bottom: 0.5em; }
strong { font-weight: 700; color: var(--uh-ink); }
main { display: block; padding-top: var(--uh-header-h); }
:focus-visible { outline: 3px solid #9DB7AA; outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 780px; }
.section { padding: 88px 0; }
.section--paper, .section--sand { padding: 88px 0 !important; }
.section--paper { background: var(--uh-paper); }
.section--sand { background: var(--uh-sand); }
.kicker { display: block; font-family: var(--uh-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--uh-sage-dark); margin-bottom: 14px; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.2rem); line-height: 1.65; color: var(--uh-charcoal); max-width: 720px; }
.muted { color: var(--uh-soft); }
.source { font-size: 0.82rem; line-height: 1.55; color: var(--uh-soft); font-style: italic; margin-top: 18px; max-width: 760px; }
.prose { max-width: 740px; }
/* A .wrap that is also a text column stays full width (left-aligned with the page); its children keep the reading width. */
.wrap.prose, .wrap.faq { max-width: 1240px; }
.wrap.prose > * { max-width: 740px; }
.wrap.faq > * { max-width: 800px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose h3 { margin-top: 1.6em; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--uh-sage-dark); text-decoration: none; margin-top: 8px; }
.more::after { content: "\2192"; transition: transform .15s; }
.more:hover::after { transform: translateX(3px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 100px; font: 700 0.95rem/1 var(--uh-body); text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s, transform .15s, box-shadow .15s; cursor: pointer; }
.btn--primary { background: var(--uh-sage-dark); color: #fff; }
.btn--primary:hover { background: var(--uh-sage-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(46,74,60,0.25); }
.btn--ghost { background: transparent; color: var(--uh-ink); border-color: rgba(43,43,47,0.35); }
.btn--ghost:hover { background: var(--uh-ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Hero */
.hero { padding: 84px 0 76px; background: radial-gradient(1000px 520px at 92% -10%, rgba(91,129,112,0.16), transparent 70%), var(--uh-cream); }
.hero h1 { max-width: 920px; }
.hero .lede { margin-top: 22px; }
.hero--home .eyebrow-h1 { font-family: var(--uh-body); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.5; color: var(--uh-sage-dark); max-width: 640px; margin-bottom: 22px; }
.display { font-family: var(--uh-head); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.02em; color: var(--uh-ink); max-width: 960px; margin: 0; }
.hero--home .lede { margin-top: 26px; }
.hero-meta { margin-top: 18px; font-size: 0.86rem; color: var(--uh-soft); }

/* Two-column split */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; }
.split--top { align-items: start; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Figures */
.figure { background: var(--uh-paper); border: 1px solid var(--uh-line); border-radius: 20px; padding: 28px; }
.section--paper .figure { background: var(--uh-cream); }
.figure-title { font-size: 0.92rem; font-weight: 700; color: var(--uh-ink); margin: 0 0 16px; line-height: 1.45; }
.figure-note { font-size: 0.8rem; color: var(--uh-soft); margin: 14px 0 0; line-height: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.8rem; color: var(--uh-soft); margin-top: 14px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* 100-square grid */
.grid100 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 340px; }
.grid100 span { aspect-ratio: 1; border-radius: 3px; background: var(--uh-sage); }
.grid100 span.off { background: #D9A184; }

/* Paired bars (population vs panel) */
.pairs { display: grid; gap: 22px; }
.pair-label { font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 44px; align-items: center; gap: 12px; font-size: 0.84rem; color: var(--uh-soft); margin-bottom: 6px; }
.bar-track { height: 14px; background: rgba(43,43,47,0.05); border-radius: 7px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 7px; background: var(--uh-sage-dark); }
.bar-fill.pop { background: #CFC7BA; }
.bar-val { font-weight: 700; color: var(--uh-ink); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 1fr 44px; } .bar-row > span:first-child { grid-column: 1 / -1; margin-bottom: -4px; } .bar-row .bar-track { grid-column: 1; } }

/* Timeline */
.timeline { position: relative; padding-top: 74px; }
.tl-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; }
.tl-steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 13px; height: 2px; background: var(--uh-line); }
.tl-step { text-align: center; position: relative; font-size: 0.86rem; font-weight: 600; color: var(--uh-charcoal); line-height: 1.35; }
.tl-step::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; margin: 7px auto 12px; background: var(--uh-paper); border: 3px solid #CFC7BA; position: relative; z-index: 1; }
.tl-step.in::before { border-color: var(--uh-sage-dark); background: var(--uh-sage-dark); }
.tl-bracket { position: absolute; top: 0; height: 58px; border: 2px solid var(--uh-sage-dark); border-bottom: 0; border-radius: 12px 12px 0 0; display: flex; align-items: flex-start; justify-content: center; }
.tl-bracket span { background: var(--uh-sage-dark); color: #fff; font-size: 0.76rem; font-weight: 700; padding: 5px 12px; border-radius: 100px; transform: translateY(-50%); white-space: nowrap; }
.tl-bracket.us { left: 2%; width: 56%; }
.tl-bracket.reg { left: 62%; width: 16%; border-color: #B9B1A4; border-style: dashed; border-bottom: 0; height: 40px; top: 18px; }
.tl-bracket.reg span { background: #EEE8DF; color: var(--uh-soft); }
@media (max-width: 640px) {
  .timeline { padding-top: 0; }
  .tl-steps { grid-template-columns: 1fr; gap: 0; }
  .tl-steps::before { left: 13px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .tl-step { text-align: left; display: flex; align-items: center; gap: 14px; padding: 10px 0; }
  .tl-step::before { margin: 0 0 0 6px; flex-shrink: 0; }
  .tl-step em { margin-left: auto; font-style: normal; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 100px; background: var(--uh-sage-pale); color: var(--uh-sage-deep); }
  .tl-step em.reg { background: #EEE8DF; color: var(--uh-soft); }
  .tl-bracket { display: none; }
}
@media (min-width: 641px) { .tl-step em { display: none; } }

/* Figure tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { background: var(--uh-paper); border: 1px solid var(--uh-line); border-radius: 18px; padding: 26px; }
.tile-fig { font-family: var(--uh-head); font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; color: var(--uh-sage-deep); margin-bottom: 12px; }
.tile-cap { font-size: 0.9rem; color: var(--uh-soft); line-height: 1.5; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }

/* Three things */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-bottom: 40px; }
.trio h3 { font-size: 1.35rem; margin-bottom: 10px; }
.trio p { font-size: 0.98rem; color: var(--uh-charcoal); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; gap: 22px; } }

/* Odds ratio chart */
.orchart { font-size: 0.84rem; }
.or-row { display: grid; grid-template-columns: minmax(150px, 0.9fr) 2fr; gap: 14px; align-items: center; margin-bottom: 18px; }
.or-label { font-weight: 600; color: var(--uh-charcoal); line-height: 1.35; }
.or-label b { display: block; font-family: var(--uh-head); font-weight: 400; font-size: 1.5rem; color: var(--uh-ink); }
.or-plot { position: relative; height: 34px; }
.or-bar { position: absolute; left: 0; top: 8px; height: 18px; border-radius: 0 6px 6px 0; background: var(--uh-sage-dark); }
.or-bar.light { background: #9DB7AA; }
.or-ci { position: absolute; top: 16px; height: 2px; background: var(--uh-ink); }
.or-ci::before, .or-ci::after { content: ""; position: absolute; top: -6px; width: 2px; height: 14px; background: var(--uh-ink); }
.or-ci::before { left: 0; } .or-ci::after { right: 0; }
.or-scale { display: grid; grid-template-columns: minmax(150px, 0.9fr) 2fr; gap: 14px; }
.or-ticks { position: relative; height: 24px; border-top: 1px solid var(--uh-line); color: var(--uh-soft); font-size: 0.74rem; }
.or-ticks span { position: absolute; top: 4px; transform: translateX(-50%); }
.or-null { position: absolute; top: -6px; bottom: -12px; width: 0; border-left: 2px dashed #B9B1A4; z-index: 2; }
.or-nulllab { position: absolute; top: -20px; left: 0; transform: translateX(-50%); font-style: normal; font-size: 0.7rem; font-weight: 700; color: var(--uh-soft); white-space: nowrap; }
.orchart .or-row:first-child { margin-top: 26px; }
@media (max-width: 560px) { .or-row, .or-scale { grid-template-columns: 1fr; gap: 6px; } .or-scale > span { display: none; } .or-nulllab { display: none; } .orchart .or-row:first-child { margin-top: 0; } }

/* Icon grid */
.icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.icons li { display: flex; align-items: center; gap: 14px; background: var(--uh-paper); border: 1px solid var(--uh-line); border-radius: 14px; padding: 16px 18px; font-size: 0.93rem; font-weight: 600; line-height: 1.35; color: var(--uh-charcoal); }
.section--paper .icons li { background: var(--uh-cream); }
.icons svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--uh-sage-dark); stroke-width: 1.6; }
.icons--small { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 900px) { .icons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .icons { grid-template-columns: 1fr; } }

/* Story / result */
.result { max-width: 860px; }
.result .display-quote { font-family: var(--uh-head); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.3; color: var(--uh-ink); margin-bottom: 22px; }

/* Question links */
.qlist { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--uh-line); max-width: 760px; }
.qlist li { border-bottom: 1px solid var(--uh-line); }
.qlist a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; color: var(--uh-ink); text-decoration: none; font-weight: 600; }
.qlist a::after { content: "\2192"; color: var(--uh-sage-dark); }
.qlist a:hover { color: var(--uh-sage-deep); }

/* Steps (how it works) */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: flow; margin-top: 40px; padding: 0; list-style: none; }
.flow li { counter-increment: flow; }
.flow a { display: block; height: 100%; background: var(--uh-paper); border: 1px solid var(--uh-line); border-radius: 14px; padding: 16px 14px; text-decoration: none; color: var(--uh-ink); font-weight: 700; font-size: 0.88rem; line-height: 1.3; transition: border-color .15s, transform .15s; }
.flow a::before { content: counter(flow); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--uh-sage-dark); color: #fff; font-size: 0.8rem; margin-bottom: 10px; }
.flow a:hover { border-color: var(--uh-sage); transform: translateY(-2px); }
@media (max-width: 960px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding: 56px 0; border-top: 1px solid var(--uh-line); }
.step:first-of-type { border-top: 0; }
.step-num { font-family: var(--uh-head); font-size: 2.6rem; line-height: 1; color: var(--uh-sage); }
.step h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 6px; padding: 40px 0; } .step-num { font-size: 2rem; } }

/* Surveys vs diaries */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.compare-card { border-radius: 18px; padding: 24px; border: 1px solid var(--uh-line); background: var(--uh-paper); overflow: hidden; position: relative; }
.compare-card h3 { font-family: var(--uh-body); font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.ticks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 260px; }
.ticks span { aspect-ratio: 1; border: 2px solid #B9C9C1; border-radius: 5px; position: relative; }
.ticks span.on::after { content: ""; position: absolute; left: 30%; top: 12%; width: 30%; height: 55%; border: solid var(--uh-sage-dark); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.compare-card--loose { background: var(--uh-sage-deep); color: #fff; border-color: transparent; }
.compare-card--loose h3 { color: #fff; }
.loose { display: flex; flex-direction: column; gap: 10px; position: relative; }
.loose span { display: inline-block; align-self: flex-start; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); color: #fff; padding: 9px 14px; border-radius: 22px 22px 22px 6px; font-size: 0.88rem; line-height: 1.4; }
.loose span:nth-child(2) { margin-left: 18%; border-radius: 22px 22px 6px 22px; }
.loose span:nth-child(3) { margin-left: 34%; margin-right: -40px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } .loose span:nth-child(3) { margin-right: 0; margin-left: 10%; } }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--uh-line); border-radius: 16px; background: var(--uh-paper); margin: 24px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--uh-line); vertical-align: top; line-height: 1.5; }
table.data thead th { background: var(--uh-sand); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--uh-charcoal); white-space: nowrap; }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tbody th { font-weight: 700; }
table.data--narrow { min-width: 0; }
.table-note { font-size: 0.82rem; color: var(--uh-soft); font-style: italic; margin-top: -8px; }
.price { font-weight: 700; white-space: nowrap; }

/* Condition bars */
.cbars { display: grid; gap: 4px; }
.cbar { border-radius: 10px; }
.cbar summary { list-style: none; display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 7px 8px; border-radius: 10px; cursor: pointer; font-size: 0.9rem; font-weight: 600; }
.cbar summary::-webkit-details-marker { display: none; }
.cbar summary:hover { background: rgba(91,129,112,0.07); }
.cbar-track { position: relative; height: 22px; }
.cbar-fill { height: 100%; border-radius: 0 6px 6px 0; background: var(--uh-sage-dark); min-width: 4px; }
.cbar-n { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 8px; font-size: 0.82rem; font-weight: 700; color: var(--uh-ink); font-variant-numeric: tabular-nums; }
.cbar-detail { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 18px; padding: 8px 8px 16px 172px; font-size: 0.8rem; color: var(--uh-soft); }
.mini { display: grid; gap: 4px; }
.mini-track { height: 6px; background: rgba(43,43,47,0.07); border-radius: 3px; overflow: hidden; }
.mini-fill { height: 100%; background: var(--uh-sage); }
.mini b { color: var(--uh-ink); }
@media (max-width: 600px) { .cbar summary { grid-template-columns: 112px 1fr; font-size: 0.84rem; } .cbar-detail { padding-left: 8px; } }
@media (hover: none), (max-width: 900px) { .cbar-hint { display: none; } }

/* Callout */
.callout { border-left: 4px solid var(--uh-sage-dark); background: var(--uh-paper); border-radius: 4px 16px 16px 4px; padding: 22px 26px; margin: 26px 0; max-width: 780px; }
.callout p:last-child { margin-bottom: 0; }
.list-plain { list-style: none; padding: 0; margin: 0 0 1.2em; max-width: 760px; }
.list-plain li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--uh-line); }
.list-plain li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--uh-sage); }
.list-plain--cross li::before { background: none; width: 12px; height: 2px; top: 23px; left: 2px; background: #B9B1A4; }

/* Report mock */
.report-mock { position: relative; max-width: 520px; margin: 10px auto 0; }
.report-page { background: #fff; border-radius: 10px; box-shadow: 0 30px 60px rgba(43,43,47,0.16), 0 2px 8px rgba(43,43,47,0.06); padding: 28px 26px; transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); font-size: 0.7rem; line-height: 1.45; color: var(--uh-charcoal); }
.rp-head { display: flex; justify-content: space-between; border-bottom: 2px solid var(--uh-sage-dark); padding-bottom: 8px; margin-bottom: 12px; font-weight: 700; color: var(--uh-sage-deep); }
.rp-sec { margin-bottom: 12px; padding: 8px; border-radius: 6px; }
.rp-sec h4 { font-family: var(--uh-body); font-size: 0.7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; color: var(--uh-ink); }
.rp-line { height: 5px; background: #ECE7DF; border-radius: 3px; margin-bottom: 5px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rp-chips span { background: var(--uh-sage-pale); color: var(--uh-sage-deep); border-radius: 10px; padding: 2px 7px; font-weight: 700; }
.rp-row { display: grid; grid-template-columns: 1fr 52px; gap: 8px; align-items: center; margin-bottom: 4px; }
.rp-tag { font-weight: 800; font-size: 0.6rem; text-align: center; border-radius: 8px; padding: 2px 0; color: #fff; background: var(--uh-sage-dark); }
.rp-tag.part { background: #9DB7AA; }
.rp-tag.not { background: #B9B1A4; }
.rp-sec { position: relative; }
#rp-who, #rp-points, #rp-changed, #rp-not { background: rgba(91,129,112,0.06); outline: 1.5px dashed rgba(63,97,82,0.35); outline-offset: 2px; }
.rp-label { position: absolute; top: -11px; right: -22px; background: var(--uh-ink); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 5px 11px; border-radius: 100px; white-space: nowrap; box-shadow: 0 6px 16px rgba(43,43,47,0.18); }
@media (max-width: 1080px) { .report-page { transform: none; } .rp-label { right: -8px; } }

/* Numbered report contents */
.olist { list-style: none; padding: 0; margin: 0; counter-reset: ol; max-width: 820px; }
.olist li { counter-increment: ol; position: relative; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--uh-line); }
.olist li::before { content: counter(ol); position: absolute; left: 0; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--uh-sage-pale); color: var(--uh-sage-deep); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* Sample report points */
.points { display: grid; gap: 12px; }
.point { display: grid; grid-template-columns: 120px minmax(0, 1fr) 150px; gap: 18px; align-items: center; background: var(--uh-paper); border: 1px solid var(--uh-line); border-radius: 14px; padding: 14px 18px; font-size: 0.88rem; }
.tag { display: inline-flex; justify-content: center; padding: 5px 10px; border-radius: 100px; font-size: 0.74rem; font-weight: 800; color: #fff; background: var(--uh-sage-dark); white-space: nowrap; }
.tag--part { background: #8FAE9F; }
.tag--not { background: #9A9286; }
.point-bar { display: grid; gap: 4px; font-size: 0.76rem; color: var(--uh-soft); }
.point-track { height: 8px; background: rgba(43,43,47,0.07); border-radius: 4px; overflow: hidden; }
.point-fill { height: 100%; background: var(--uh-sage-dark); }
@media (max-width: 700px) { .point { grid-template-columns: 1fr; gap: 8px; } }
.illus { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a5a2b; background: #F6E7D8; border-radius: 100px; padding: 4px 10px; margin-bottom: 14px; }
blockquote.quote { margin: 28px 0; padding: 22px 26px; border-radius: 16px; background: var(--uh-sage-deep); color: #fff; font-family: var(--uh-head); font-size: 1.28rem; line-height: 1.45; max-width: 760px; }
blockquote.quote cite { display: block; margin-top: 10px; font-family: var(--uh-body); font-style: normal; font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* Stacked spend bars */
.stack { display: grid; gap: 20px; }
.stack-row { display: grid; gap: 8px; }
.stack-head { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 700; }
.stack-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; background: #E3DDD3; }
.stack-bar span { background: var(--uh-sage-dark); color: #fff; font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; }

/* Sector pages and hub */
.facts { display: grid; gap: 0; max-width: 820px; }
.fact { padding: 26px 0; border-top: 1px solid var(--uh-line); }
.fact:first-child { border-top: 0; padding-top: 0; }
.fact h2, .fact h3 { font-family: var(--uh-body); font-size: 1.04rem; font-weight: 800; letter-spacing: 0; margin-bottom: 8px; color: var(--uh-ink); }
.fact p:last-child { margin-bottom: 0; }
.first-work { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; background: var(--uh-sage-pale); border-radius: 16px; padding: 20px 24px; margin-top: 30px; max-width: 820px; }
.first-work b { font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--uh-sage-deep); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--uh-paper); border: 1px solid var(--uh-line); border-radius: 18px; padding: 26px; text-decoration: none; color: var(--uh-ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--uh-sage); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(43,43,47,0.08); color: var(--uh-ink); }
.card .kicker { margin-bottom: 10px; }
.card h2, .card h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 14px; }
.card .more { margin-top: auto; }

/* Pricing */
table.prices td:first-child { font-weight: 700; white-space: nowrap; }
table.prices td:last-child { white-space: nowrap; font-weight: 700; }
@media (max-width: 760px) {
  table.prices, table.prices tbody, table.prices tr, table.prices td { display: block; width: 100%; min-width: 0; }
  table.prices { min-width: 0; }
  table.prices thead { display: none; }
  table.prices tr { padding: 16px 18px; border-bottom: 1px solid var(--uh-line); }
  table.prices td { padding: 2px 0; border: 0; white-space: normal !important; }
  table.prices td:first-child { font-size: 1.05rem; }
  table.prices td:last-child { color: var(--uh-sage-deep); margin-top: 6px; }
}

/* FAQ */
.faq { max-width: 800px; }
.faq-item { padding: 34px 0; border-top: 1px solid var(--uh-line); }
.faq-item h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 14px; }
.faq-toc { columns: 2; column-gap: 32px; padding: 0; list-style: none; margin: 30px 0 0; max-width: 900px; }
.faq-toc li { break-inside: avoid; margin-bottom: 10px; }
@media (max-width: 700px) { .faq-toc { columns: 1; } }

/* Form */
.form-card { background: var(--uh-paper); border: 1px solid var(--uh-line); border-radius: 22px; padding: 34px; box-shadow: 0 18px 44px rgba(43,43,47,0.06); }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .field legend { font-size: 0.9rem; font-weight: 700; color: var(--uh-ink); }
.field .opt { font-weight: 500; color: var(--uh-soft); }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem/1.4 var(--uh-body); color: var(--uh-ink); background: var(--uh-cream); border: 1.5px solid rgba(43,43,47,0.18); border-radius: 12px; padding: 13px 14px; transition: border-color .15s, background .15s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--uh-sage-dark); background: #fff; box-shadow: 0 0 0 4px rgba(91,129,112,0.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } .form-card { padding: 24px 18px; } }
.form-error { display: none; color: #a02c1a; font-weight: 600; font-size: 0.9rem; margin-top: 12px; }
.form-done { display: none; }
.form-done h2 { font-size: 1.8rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .section, .section--paper, .section--sand { padding: 64px 0 !important; }
  .hero { padding: 56px 0 56px; }
  .figure { padding: 20px; }
}
@media (max-width: 380px) { .wrap { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
