@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Noto+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #292623;
  --ink-2: #36312c;
  --ink-3: #454039;
  --cream: #f7f4ed;
  --cream-deep: #ece6da;
  --paper: #fffdf8;
  --gold: #d2ad70;
  --gold-bright: #ead0a1;
  --gold-dark: #8e6935;
  --line: #ded5c6;
  --text: #342f29;
  --muted: #70695f;
  --shadow: 0 28px 70px rgba(28, 24, 19, .14);
  --font-head: "Montserrat", "Arial", sans-serif;
  --font-body: "Noto Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--cream); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
body.home-page { background: var(--ink); }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--gold-dark); }
button, a, input, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #f2c778; outline-offset: 3px; }
::selection { color: #211c16; background: #e9c58e; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.16; letter-spacing: -.035em; }
p { margin-bottom: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; padding: .75rem 1rem; color: var(--ink); background: var(--gold-bright); font-weight: 700; border-radius: 3px; }
.skip-link:focus { top: 1rem; }

/* Header: the warm dark overlay recalls the reference without copying its identity. */
.site-header { position: relative; z-index: 30; background: var(--ink); color: #fffaf0; }
.home-page .site-header { position: absolute; inset: 0 0 auto; background: rgba(29, 27, 25, .88); border-bottom: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header__inner { width: min(100% - 64px, 1400px); min-height: 94px; margin: auto; display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4.5rem); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 13px; color: #fffaf0; text-decoration: none; }
.brand:hover { color: #fffaf0; }
.brand__mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--gold); border-radius: 50%; color: var(--gold-bright); font: 700 26px/.9 var(--font-head); letter-spacing: -.08em; position: relative; }
.brand__mark::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(210,173,112,.55); border-radius: 50%; }
.brand__name { display: block; font: 700 20px/1.05 var(--font-head); letter-spacing: .13em; text-transform: uppercase; }
.brand__small { display: block; margin-top: 4px; font: 500 9px/1.2 var(--font-head); letter-spacing: .27em; text-transform: uppercase; color: var(--gold-bright); }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(1.4rem, 3vw, 3.1rem); flex: 1; }
.desktop-nav a { color: #f1ede6; text-decoration: none; font: 600 12px/1.4 var(--font-head); letter-spacing: .065em; transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--gold-bright); }
.header-cta { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 46px; padding: .8rem 1.2rem; color: #241f18; background: linear-gradient(115deg, #e7c990, #be9458); text-decoration: none; text-align: center; font: 700 11px/1.35 var(--font-head); letter-spacing: .075em; text-transform: uppercase; border: 1px solid #e5c891; border-radius: 3px; box-shadow: 0 7px 22px rgba(0,0,0,.12); transition: transform .2s ease, box-shadow .2s ease; }
.header-cta:hover { color: #241f18; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.mobile-nav { display: none; }
.nav-logout { flex: 0 0 auto; margin: 0; }
.nav-logout .header-cta { margin: 0; cursor: pointer; }
.section-intro--center { margin-inline: auto; text-align: center; }
.section-intro--center .eyebrow { justify-content: center; }

/* Home hero */
.site-main { display: block; }
.hero { isolation: isolate; position: relative; display: flex; align-items: center; min-height: min(850px, 92svh); min-height: clamp(700px, 92svh, 850px); overflow: hidden; background: #28231f; color: #fff; }
.hero__image, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__image { z-index: -3; object-fit: cover; object-position: 53% center; }
.hero__shade { z-index: -2; background: linear-gradient(90deg, rgba(14,13,12,.43) 0%, rgba(14,13,12,.12) 48%, rgba(14,13,12,.05) 100%), linear-gradient(0deg, rgba(17,16,14,.18), transparent 40%); }
.hero__inner { width: min(100% - 64px, 1400px); margin: auto; padding-top: 112px; padding-bottom: 54px; }
.hero__panel { width: min(100%, 605px); padding: clamp(2rem, 4vw, 4.15rem); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(22,21,20,.76); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 1.35rem; color: var(--gold-bright); font: 700 10px/1.5 var(--font-head); letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 27px; height: 1px; background: currentColor; }
.hero__title { max-width: 11ch; margin: 0 0 1.35rem; color: #fffdf9; font-size: clamp(2.45rem, 4.2vw, 4.55rem); font-weight: 700; line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--gold-bright); }
.hero__lede { max-width: 48ch; margin-bottom: 2.05rem; color: #eee9df; font-size: clamp(.98rem, 1.2vw, 1.08rem); line-height: 1.75; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero__note { margin: 1.8rem 0 0; color: #d5c9b9; font-size: .82rem; }
.hero__note::before { content: ""; display: inline-block; width: 21px; height: 1px; margin: 0 10px 4px 0; background: var(--gold); }

/* Buttons take Magic UI's restrained shimmer/blur-fade cues in framework-free CSS. */
.btn { position: relative; display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: .75rem; padding: .8rem 1.4rem; border: 1px solid transparent; border-radius: 3px; color: var(--ink); text-align: center; text-decoration: none; font: 700 11px/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; overflow: hidden; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active, .header-cta:active { transform: translateY(0); }
.btn--gold { color: #271f15; background: linear-gradient(110deg, #ebd19f 0%, #d4ad71 52%, #b88950 100%); border-color: #e9cc98; box-shadow: 0 10px 25px rgba(17,13,7,.14); }
.btn--gold:hover { color: #271f15; box-shadow: 0 14px 29px rgba(17,13,7,.22); }
.btn--outline { border-color: rgba(255,255,255,.6); background: rgba(31,29,27,.24); color: #fffaf0; }
.btn--outline:hover { color: #fff; background: rgba(255,255,255,.12); border-color: #fff; }
.btn--dark { color: #fffaf0; background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { color: #fff; background: #454039; box-shadow: 0 12px 25px rgba(30,24,18,.14); }
.shimmer-button::after { content: ""; position: absolute; top: -90%; left: -70%; width: 52%; height: 280%; transform: rotate(25deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent); animation: aster-shimmer 5.8s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes aster-shimmer { 0%, 74% { left: -70%; } 100% { left: 140%; } }
.blur-fade { animation: aster-blur-fade .7s both cubic-bezier(.2,.7,.2,1); }
@keyframes aster-blur-fade { from { opacity: 0; filter: blur(9px); transform: translateY(13px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }

/* Benefits */
.section-shell { width: min(100% - 64px, 1210px); margin-inline: auto; }
.benefits { background: #302d29; color: #f7f2e8; padding: clamp(3rem, 5.5vw, 5.6rem) 0; }
.section-intro { max-width: 710px; margin-bottom: clamp(2.2rem, 4vw, 3.6rem); }
.section-intro .eyebrow { margin-bottom: .95rem; }
.section-title { margin: 0 0 1.1rem; font-size: clamp(2rem, 3.6vw, 3.3rem); font-weight: 700; text-wrap: balance; }
.section-intro p { color: var(--muted); }
.benefits .section-intro p { color: #d0c5b6; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.benefit { min-width: 0; padding: 0 clamp(1.1rem, 2.5vw, 2.2rem); border-left: 1px solid rgba(215,190,153,.22); }
.benefit:first-child { padding-left: 0; border-left: 0; }
.benefit__icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 1.55rem; color: var(--gold-bright); }
.benefit__icon svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.benefit h3 { margin-bottom: .85rem; color: var(--gold-bright); font-size: clamp(1.02rem, 1.4vw, 1.25rem); }
.benefit p { margin-bottom: 0; color: #d6cec3; font-size: .91rem; line-height: 1.78; }

/* Editorial middle section */
.story { padding: clamp(4.5rem, 8vw, 8rem) 0; background: var(--cream); }
.story__grid { display: grid; grid-template-columns: minmax(0,.91fr) minmax(0,1.09fr); gap: clamp(3rem, 7vw, 8rem); align-items: center; }
.story__copy .eyebrow { color: var(--gold-dark); }
.story__copy .section-title { max-width: 15ch; color: var(--ink); }
.story__copy > p { max-width: 56ch; color: #665e54; font-size: 1.02rem; line-height: 1.8; }
.story__visual { position: relative; padding: 30px 0 30px 30px; }
.story__visual::before { content: ""; position: absolute; inset: 0 30px 40px 0; border: 1px solid #ccb687; border-radius: 4px; }
.preview { position: relative; z-index: 1; min-height: 385px; overflow: hidden; border: 1px solid #d6cebf; border-radius: 9px; background: #fffdfa; box-shadow: var(--shadow); }
.preview__top { display: flex; align-items: center; justify-content: space-between; min-height: 55px; padding: 0 19px; background: #302d29; color: #f8f2e8; font: 700 .7rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.preview__dots { color: #cfb989; letter-spacing: .28em; font-size: 8px; }
.preview__body { display: grid; grid-template-columns: 112px minmax(0,1fr); min-height: 335px; }
.preview__rail { display: flex; flex-direction: column; gap: 19px; padding: 27px 12px; background: #eae3d7; border-right: 1px solid #d7cdbd; }
.preview__rail span { color: #756b5f; font-size: .54rem; font-weight: 700; white-space: nowrap; }
.preview__rail span:first-child { color: #614a2b; }
.preview__content { min-width: 0; padding: clamp(1.25rem, 3vw, 2.25rem); }
.preview__eyebrow, .preview__caption { margin: 0 0 .55rem; color: #997243; font: 700 .62rem/1.4 var(--font-head); letter-spacing: .11em; }
.preview__caption { margin: .55rem 0 .3rem; color: #786b5b; }
.preview__content h3 { margin: 0 0 1.1rem; color: var(--ink); font-size: clamp(1.1rem, 2vw, 1.55rem); }
.preview__stat { display: grid; grid-template-columns: 1fr auto; width: 100%; min-height: 76px; margin: 0 0 1rem; padding: .95rem 1.05rem; align-items: center; gap: .15rem; border-radius: 5px; background: var(--cream); color: var(--ink); font-size: .8rem; }
.preview__stat span { grid-column: 1; color: #706457; font: 600 .62rem/1.3 var(--font-body); }
.preview__stat strong { grid-column: 1; font: 700 .88rem/1.35 var(--font-head); }
.preview__stat i { grid-row: 1 / 3; grid-column: 2; display: block; width: 28px; height: 28px; border: 7px solid #dac28e; border-radius: 50%; }
.preview__row { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: .55rem 0; border-bottom: 1px solid #e9e2d8; color: #534c43; font-size: .8rem; }
.preview__row span:last-child { margin-left: auto; color: #9a7140; }
.preview__row-icon { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; margin-right: .6rem; color: #906b40; background: #f1e9d9; border-radius: 3px; }
.story__seal { position: absolute; z-index: 2; right: -11px; bottom: 5px; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; color: #fff5e6; background: #3a332b; border: 5px solid #d3b27b; box-shadow: 0 10px 25px rgba(0,0,0,.18); font: 700 .55rem/1.5 var(--font-head); letter-spacing: .07em; text-align: center; transform: rotate(9deg); }
.check-list { list-style: none; padding: 0; margin: 1.7rem 0 2.2rem; }
.check-list li { position: relative; padding: .55rem 0 .55rem 32px; color: var(--ink-2); border-bottom: 1px solid #e5dccd; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .55rem; color: var(--gold-dark); font-weight: 700; }

/* Entry points */
.pathways { padding: clamp(4rem, 7vw, 7rem) 0; background: #eae4d9; }
.pathways .section-intro { text-align: center; margin-inline: auto; }
.pathways .eyebrow { color: var(--gold-dark); }
.pathways__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 25px; }
.pathway-card { min-height: 305px; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(2rem, 4vw, 3.2rem); border-radius: 4px; color: #f8f4ec; background: var(--ink-2); box-shadow: 0 20px 45px rgba(49,39,25,.08); }
.pathway-card--gold { color: #2b241d; background: linear-gradient(135deg, #efdbb4, #d2ab70 66%, #ba8c50); }
.pathway-card .eyebrow { color: var(--gold-bright); }
.pathway-card--gold .eyebrow { color: #604523; }
.pathway-card h3 { max-width: 22ch; margin: 0 0 .8rem; font-size: clamp(1.5rem, 2.3vw, 2.2rem); }
.pathway-card p { max-width: 47ch; color: #e6ddd0; font-size: .94rem; }
.pathway-card--gold p { color: #41362a; }
.pathway-card .btn { margin-top: auto; }
.pathway-card__number { display: block; margin-bottom: 2.2rem; color: #d9bd8d; font: 700 .65rem/1.3 var(--font-head); letter-spacing: .15em; }
.pathway-card--gold .pathway-card__number { color: #5d4525; }
.pathway-card > a { display: inline-flex; min-height: 44px; align-items: center; gap: .7rem; margin-top: auto; color: var(--gold-bright); border-bottom: 1px solid currentColor; text-decoration: none; font: 700 .75rem/1.3 var(--font-head); }
.pathway-card > a:hover { color: #fffaf0; }
.pathway-card--gold > a { color: #43321e; }
.pathway-card--gold > a:hover { color: #21180f; }
.pathway-card--gold .btn--outline { color: #2b241d; border-color: #5b4730; background: transparent; }
.pathway-card--gold .btn--outline:hover { color: #2b241d; border-color: #2b241d; background: rgba(255,255,255,.2); }

/* FAQ / last call */
.faq { padding: clamp(4.5rem, 7vw, 7.5rem) 0; background: radial-gradient(circle at 85% 12%, rgba(164,125,67,.14), transparent 34%), linear-gradient(135deg, #272420, #36312c); color: #fffaf0; }
.faq .section-intro { margin-inline: auto; text-align: center; }
.faq .section-intro p { color: #d7cdc1; }
.faq__grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.faq__grid > div:first-child { position: sticky; top: 2rem; }
.faq__grid > div:first-child > p:last-child { color: #d8cfc2; }
.faq-list { width: min(100%, 850px); margin-inline: auto; border-top: 1px solid rgba(239,222,193,.24); }
.faq-list details { border-bottom: 1px solid rgba(239,222,193,.24); }
.faq-list summary { position: relative; display: flex; align-items: center; min-height: 66px; padding: 1.1rem 2.3rem 1.1rem 0; list-style: none; font: 600 1rem/1.45 var(--font-head); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: .15rem; color: var(--gold-bright); font: 400 1.75rem/1 var(--font-body); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 75ch; padding: 0 2rem 1.3rem 0; color: #d8cfc2; line-height: 1.8; }
.closing { padding: clamp(4rem, 6vw, 6rem) 0; background: #d9b880; color: #29241e; text-align: center; }
.closing .section-shell { max-width: 830px; }
.closing .eyebrow { color: #4f3b22; }
.closing .section-title { margin-bottom: 1.3rem; }
.closing p { color: #4f4031; }
.closing .btn { margin-top: .8rem; }
.closing__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; text-align: left; }
.closing__inner h2 { max-width: 20ch; margin-bottom: 0; font-size: clamp(1.9rem, 3vw, 3rem); }
.closing__inner .btn { flex: 0 0 auto; margin: 0; }

/* Shared footer */
.site-footer { background: #211f1d; color: #e7ddd0; }
.site-footer__inner { width: min(100% - 64px, 1210px); display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: auto; padding: 3rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__inner .brand__mark { width: 38px; height: 38px; font-size: 22px; }
.site-footer__inner .brand__name { font-size: 17px; }
.site-footer p { margin: 0; color: #c6bcb0; font-size: .82rem; }
.site-footer a { color: #e9dcc8; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer__brand { display: block; margin-bottom: .45rem; color: #f7f0e5; font: 700 1.2rem/1 var(--font-head); letter-spacing: .18em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer nav a { font: 600 .74rem/1.4 var(--font-head); text-decoration: none; }
.site-footer small { color: #baae9d; font-size: .73rem; white-space: nowrap; }

/* Inner surfaces, shared across login, archive and dossier pages. */
.inner-page { background: var(--cream); }
.inner-hero { padding: clamp(4rem, 7vw, 6rem) 0; background: radial-gradient(circle at 85% 20%, rgba(183,143,80,.2), transparent 29%), linear-gradient(120deg, #24221f, #39332d); color: #fffaf0; }
.inner-hero .eyebrow { margin-bottom: .85rem; }
.inner-hero h1 { max-width: 22ch; margin: 0 0 1rem; font-size: clamp(2.2rem, 4vw, 4rem); }
.inner-hero p { max-width: 63ch; color: #e6ded2; font-size: 1.04rem; line-height: 1.8; }
.inner-shell { width: min(100% - 64px, 1120px); margin: clamp(3rem, 6vw, 5rem) auto; }
.inner-hero .inner-shell { margin-top: 0; margin-bottom: 0; }
.inner-content { min-height: 250px; }
.inner-shell > .section-intro .eyebrow { color: var(--gold-dark); }
.surface { padding: clamp(1.4rem, 3vw, 2.5rem); border: 1px solid #e3dacb; border-radius: 6px; background: var(--paper); box-shadow: 0 15px 40px rgba(41,34,25,.06); }
.surface h2 { margin-bottom: 1rem; color: var(--ink); font-size: clamp(1.45rem, 2.2vw, 2.15rem); }
.surface h3 { color: var(--ink); font-size: 1.2rem; }
.surface p:last-child { margin-bottom: 0; }
.form-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: stretch; }
.site-main > .form-layout { min-height: calc(100svh - 94px); gap: 0; }
.site-main > .form-layout .form-aside, .site-main > .form-layout .form-panel { border-radius: 0; }
.form-aside { display: flex; align-items: center; padding: clamp(2rem, 4vw, 3.5rem); border-radius: 6px; background: linear-gradient(120deg, rgba(27,24,21,.84), rgba(27,24,21,.9)), url('/static/hero-salon.webp') center/cover; color: #f8f1e7; }
.form-aside > div { width: min(100%, 450px); margin-inline: auto; }
.form-aside .eyebrow { color: var(--gold-bright); }
.form-aside h1 { max-width: 15ch; font-size: clamp(2rem, 3.3vw, 3.7rem); }
.form-aside h2 { max-width: 16ch; font-size: clamp(1.65rem, 2.6vw, 2.65rem); }
.form-aside p { color: #dfd2c0; line-height: 1.85; }
.form-aside__signature { display: inline-block; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(235,204,150,.4); color: #e9cf9e; font: 700 .78rem/1.4 var(--font-head); }
.form-panel { display: flex; align-items: center; padding: clamp(1.75rem, 4vw, 3.5rem); border: 1px solid #e5dac9; border-radius: 6px; background: var(--paper); box-shadow: 0 22px 52px rgba(53,42,28,.08); }
.form-panel__inner { width: min(100%, 455px); margin-inline: auto; }
.form-panel__inner > .eyebrow { color: var(--gold-dark); }
.form-panel__inner h2 { font-size: clamp(2rem, 3vw, 3rem); }
.form-panel h1, .form-panel h2 { color: var(--ink); }
.form-panel h1 { font-size: clamp(1.7rem, 2.4vw, 2.4rem); }
.form-field { margin: 1.3rem 0; }
.form-field label, label { display: block; margin: 0 0 .45rem; color: #3e352a; font: 700 .8rem/1.45 var(--font-head); }
.form-field input, input[type="text"], input[type="password"], input[type="email"], textarea, select { width: 100%; min-height: 49px; padding: .7rem .9rem; border: 1px solid #bfb3a2; border-radius: 3px; background: #fffefa; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease; }
.form-field input:focus, input:focus, textarea:focus, select:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(211,172,109,.18); }
input::placeholder { color: #82796e; }
form .btn, form button { min-height: 49px; }
.form-submit { width: 100%; margin: .75rem 0 1.45rem; }
.notice { padding: 1rem 1.15rem; border: 1px solid #c9baa0; border-left: 4px solid var(--gold-dark); border-radius: 3px; background: #f5efe4; color: #493d2c; line-height: 1.6; }
.notice--error, .error { border-color: #e1afa9; border-left-color: #a84238; background: #fff1ef; color: #8a3028; }
.page-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.35rem; }
.surface--featured { margin-bottom: 1.35rem; }
.documents-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.documents-toolbar p { margin: 0; color: var(--muted); }
.documents-toolbar .text-link { min-height: 44px; }
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.document-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 1.6rem; }
.document-card h2 { margin: 1.2rem 0 .8rem; font-size: 1.25rem; line-height: 1.35; letter-spacing: -.025em; }
.document-card p { font-size: .9rem; color: var(--muted); }
.document-card .document-meta { margin: auto 0 1rem; padding-top: .6rem; font-size: .72rem; color: #70695f; }
.document-card .text-link { min-height: 44px; font-size: .85rem; }
.data-list { list-style: none; margin: 0; padding: 0; }
.data-list li { padding: 1rem 0; border-bottom: 1px solid #e6ded1; }
.data-list li:last-child { border-bottom: 0; }
.data-list li a { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 1rem; text-decoration: none; }
.data-list a { color: var(--ink); font-weight: 700; }
.data-list a:hover, .text-link:hover { color: var(--gold-dark); }
.text-link { display: inline-flex; align-items: center; gap: .4rem; color: #765127; font-weight: 700; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: .25rem .6rem; border-radius: 2px; background: #e9dcc2; color: #4c371e; font: 700 .68rem/1.2 var(--font-head); letter-spacing: .045em; text-transform: uppercase; }
.muted { color: var(--muted); }
code { overflow-wrap: anywhere; color: #704a20; font-size: .9em; }

/* Compatibility with inherited utility markup. */
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 1.25rem; }
.card { padding: 1.5rem; border: 1px solid #e3dacb; border-radius: 6px; background: var(--paper); box-shadow: 0 10px 30px rgba(41,34,25,.05); }
.badge { display: inline-flex; padding: .25rem .6rem; background: #e9dcc2; color: #4c371e; border-radius: 2px; font-size: .72rem; font-weight: 700; }

@media (max-width: 1050px) {
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header__inner { gap: 1.5rem; }
  .desktop-nav { gap: 1rem; }
  .desktop-nav a { font-size: 11px; }
  .benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 2.4rem; }
  .benefit:nth-child(3) { padding-left: 0; border-left: 0; }
  .story__grid { gap: 3rem; }
}

@media (max-width: 760px) {
  .document-grid { grid-template-columns: 1fr; }
  .documents-toolbar { align-items: flex-start; flex-direction: column; gap: .3rem; }
  .site-header__inner, .section-shell, .site-footer__inner, .inner-shell, .hero__inner { width: min(100% - 36px, 640px); }
  .site-header__inner { min-height: 74px; justify-content: space-between; }
  .brand__mark { width: 38px; height: 38px; font-size: 22px; }
  .brand__name { font-size: 16px; }
  .brand__small { font-size: 8px; }
  .desktop-nav, .site-header__inner > .header-cta, .site-header__inner > .nav-logout { display: none; }
  .mobile-nav { display: block; position: relative; margin-left: auto; }
  .mobile-nav summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 46px; height: 46px; border: 1px solid rgba(237,219,191,.5); border-radius: 3px; color: #fff5e5; font-size: 1.55rem; line-height: 1; list-style: none; }
  .mobile-nav summary span { width: 19px; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .mobile-nav[open] summary span:first-child { transform: translateY(6.5px) rotate(45deg); }
  .mobile-nav[open] summary span:nth-child(2) { opacity: 0; }
  .mobile-nav[open] summary span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] summary { background: var(--gold); color: var(--ink); }
  .mobile-nav__panel { position: absolute; top: calc(100% + 11px); right: 0; width: min(300px, calc(100vw - 36px)); padding: .55rem; border: 1px solid #d8ccba; border-radius: 5px; background: #fffdf8; color: var(--ink); box-shadow: 0 18px 44px rgba(0,0,0,.2); }
  .mobile-nav nav a, .mobile-nav nav button { display: flex; width: 100%; min-height: 48px; align-items: center; margin: 0; padding: .7rem .85rem; border: 0; border-bottom: 1px solid #ece5d9; border-radius: 0; background: transparent; color: var(--ink); text-decoration: none; text-align: left; font: 700 .8rem/1.35 var(--font-head); }
  .mobile-nav nav a:last-child, .mobile-nav nav button:last-child { border-bottom: 0; }
  .mobile-nav nav a:hover, .mobile-nav nav button:hover { color: var(--gold-dark); background: #f6efe4; }
  .hero { min-height: 780px; min-height: min(820px, 100svh); align-items: flex-end; }
  .hero__image { object-position: 68% center; }
  .hero__shade { background: linear-gradient(0deg, rgba(15,14,13,.86) 0%, rgba(15,14,13,.34) 72%, rgba(15,14,13,.3) 100%); }
  .hero__inner { padding-top: 116px; padding-bottom: 35px; }
  .hero__panel { width: 100%; padding: clamp(1.55rem, 6vw, 2.5rem); background: rgba(28,26,24,.85); border-radius: 11px; }
  .hero__title { max-width: 13ch; font-size: clamp(2.35rem, 8.5vw, 4rem); }
  .benefit-grid, .story__grid, .pathways__grid, .form-layout, .page-grid { grid-template-columns: 1fr; }
  .benefit { padding: 0 0 1.5rem !important; border-left: 0 !important; border-bottom: 1px solid rgba(215,190,153,.22); }
  .benefit:last-child { border-bottom: 0; padding-bottom: 0 !important; }
  .benefit-grid { gap: 1.6rem; }
  .benefit__icon { margin-bottom: .8rem; }
  .story__visual { max-width: 610px; margin-inline: auto; }
  .story__seal { right: 0; }
  .story__copy .section-title { max-width: 20ch; }
  .pathway-card { min-height: 270px; }
  .faq__grid { grid-template-columns: 1fr; gap: 2rem; }
  .faq__grid > div:first-child { position: static; }
  .closing__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .inner-hero { padding: 3.5rem 0; }
  .inner-shell { margin-block: 2.5rem; }
  .site-main > .form-layout { min-height: 0; }
  .site-main > .form-layout .form-aside { min-height: 280px; }
  .site-main > .form-layout .form-panel { min-height: 500px; }
}

@media (max-width: 430px) {
  .hero { min-height: 700px; min-height: 100svh; }
  .hero__panel { padding: 1.45rem; }
  .hero__title { font-size: clamp(2.1rem, 9.2vw, 2.8rem); }
  .hero__lede { font-size: .94rem; line-height: 1.65; }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .preview { min-height: 330px; }
  .preview__body { grid-template-columns: 58px minmax(0,1fr); }
  .preview__rail { width: auto; padding-inline: 8px; }
  .preview__rail span { overflow: hidden; font-size: .36rem; }
  .preview__content { margin-left: 0; padding: 1rem; }
  .preview__stat { min-width: 90px; padding: .6rem; margin-bottom: .6rem; font-size: 1rem; }
  .story__visual { padding: 18px 0 18px 18px; }
  .story__visual::before { inset: 0 18px 28px 0; }
  .form-panel, .form-aside, .surface { padding: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .blur-fade { opacity: 1; filter: none; transform: none; }
}
