:root {
  --ink: #172b34;
  --muted: #58707a;
  --paper: #f4f1eb;
  --surface: #fffdfa;
  --brand: #173f52;
  --brand-2: #2e7182;
  --accent: #d5a947;
  --sage: #dce8df;
  --danger: #a73232;
  --line: #d7ddd9;
  --shadow: 0 18px 50px rgba(23, 63, 82, .12);
  --radius: 22px;
  --focus: 0 0 0 4px rgba(213, 169, 71, .42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top right, rgba(213,169,71,.14), transparent 34rem), var(--paper); line-height: 1.55; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: var(--ink); color: white; border-radius: .6rem; }
.skip-link:focus { top: 1rem; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1rem 0; }
.app-header nav, .app-footer nav { display: flex; align-items: center; gap: 1rem; }
.header-signout { margin: 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { display: block; width: 3.25rem; height: 3.25rem; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(144,101,17,.24)); }
.brand-name { color: var(--ink); font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", "URW Chancery L", cursive; font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 500; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .78rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-small { min-height: 42px; padding: .55rem 1rem; background: var(--surface); border-color: var(--line); }
.button-primary { background: var(--brand); color: white; box-shadow: 0 10px 25px rgba(23,63,82,.2); }
.button-secondary { background: var(--surface); border-color: var(--brand); color: var(--brand); }
.eyebrow { margin: 0; color: var(--brand-2); text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; font-weight: 900; }
.lede { max-width: 59ch; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.27rem); }
.microcopy { color: var(--muted); font-size: .9rem; }

.home-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .72fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding-block: clamp(3rem, 8vw, 7rem); }
.home-hero h1 { max-width: 13ch; margin: .45rem 0 1.3rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 5.6rem); line-height: .97; letter-spacing: -.05em; }
.home-hero-copy { position: relative; z-index: 1; }
.home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.6rem; }
.home-text-link { display: inline-flex; min-height: 48px; align-items: center; gap: .4rem; color: var(--brand); font-weight: 850; text-underline-offset: .2rem; }
.home-trust-list { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; margin: 1.3rem 0 0; padding: 0; color: var(--muted); list-style: none; font-size: .84rem; font-weight: 750; }
.home-trust-list li { display: inline-flex; align-items: center; gap: .42rem; }
.home-trust-list li::before { content: ""; width: .48rem; aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(213,169,71,.15); }
.home-hero-visual { position: relative; min-height: 640px; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.75); border-radius: 34px; background: var(--brand); box-shadow: 0 28px 70px rgba(23,63,82,.22); }
.home-hero-visual::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(10,32,42,.7)); pointer-events: none; }
.home-hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.home-hero-visual figcaption { position: absolute; z-index: 2; right: 1.2rem; bottom: 1.2rem; left: 1.2rem; display: grid; gap: .15rem; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.28); border-radius: 18px; background: rgba(15,47,60,.72); color: white; backdrop-filter: blur(12px); }
.home-hero-visual figcaption strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.home-hero-visual figcaption span { color: rgba(255,255,255,.8); font-size: .84rem; }

.home-introduction { padding-block: clamp(4rem, 8vw, 7rem); background: var(--brand); color: white; }
.home-introduction-grid { display: grid; grid-template-columns: .8fr 1.15fr .82fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.home-introduction .eyebrow, .home-steps-band .eyebrow, .home-final-cta .eyebrow { color: #9ed1d5; }
.home-introduction h2, .home-section h2, .home-steps-band h2, .home-final-cta h2 { margin: .35rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4.2vw, 3.8rem); line-height: 1.04; letter-spacing: -.035em; }
.home-introduction-copy { color: rgba(255,255,255,.82); font-size: 1.05rem; }
.home-introduction-copy p:first-child { margin-top: 0; }
.home-principle-card { padding: 1.4rem; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); background: rgba(255,255,255,.08); }
.home-principle-card > span { color: #f2d58e; font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.home-principle-card strong { display: block; margin: .6rem 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; line-height: 1.15; }
.home-principle-card p { margin-bottom: 0; color: rgba(255,255,255,.73); font-size: .9rem; }

.home-section { padding-block: clamp(4.5rem, 9vw, 7rem); }
.home-section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .72fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.home-section-heading > p { margin: 0; color: var(--muted); }
.home-area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.home-area-grid article { min-height: 230px; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,250,.76); }
.home-area-grid span { color: var(--brand-2); font-size: .76rem; font-weight: 900; letter-spacing: .11em; }
.home-area-grid h3 { margin: 2.8rem 0 .5rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; line-height: 1.1; }
.home-area-grid p { margin-bottom: 0; color: var(--muted); }

.home-steps-band { padding-block: clamp(4.5rem, 8vw, 6.5rem); background: #e2ece9; }
.home-section-heading-light { margin-bottom: 2.4rem; }
.home-section-heading-light .eyebrow { color: var(--brand-2); }
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.home-steps li { display: grid; grid-template-columns: 3rem 1fr; gap: .85rem; align-items: start; padding: 1.4rem; border-radius: var(--radius); background: rgba(255,253,250,.72); }
.home-steps li > span { display: grid; width: 3rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--brand); color: white; font-weight: 900; }
.home-steps strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.home-steps p { margin: .35rem 0 0; color: var(--muted); }
.home-timing-note { display: flex; width: fit-content; max-width: 100%; gap: .45rem; align-items: baseline; margin: 1.2rem auto 0; padding: .9rem 1.25rem; border: 1px solid rgba(23,63,82,.12); border-radius: 999px; background: var(--surface); box-shadow: 0 10px 30px rgba(23,63,82,.08); }
.home-timing-note strong { color: var(--brand); }
.home-timing-note span { color: var(--muted); }

.home-testimonials { padding-block: clamp(5rem, 9vw, 8rem); }
.home-testimonial-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.home-testimonial-heading h2 { margin: .35rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4.2vw, 3.8rem); line-height: 1.04; letter-spacing: -.035em; }
.home-testimonial-arrows { display: flex; gap: .65rem; }
.home-testimonial-arrows button { display: grid; width: 3.15rem; min-height: 3.15rem; place-items: center; border: 1px solid var(--brand); border-radius: 50%; background: transparent; color: var(--brand); cursor: pointer; font-size: 1.35rem; font-weight: 900; }
.home-testimonial-arrows .home-testimonial-toggle { width: auto; min-width: 5.8rem; padding: 0 .9rem; border-radius: 999px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .8rem; letter-spacing: .02em; }
.home-testimonial-arrows button:hover { background: var(--brand); color: white; }
.home-testimonial-slide { margin: 0; padding: clamp(1.6rem, 5vw, 3.5rem); border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.home-testimonial-slide[hidden] { display: none; }
.home-testimonial-slide p { max-width: 44ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 2.6vw, 2.15rem); line-height: 1.35; }
.home-testimonial-slide cite { display: block; margin-top: 1.4rem; color: var(--brand-2); font-style: normal; font-weight: 900; }
.home-testimonial-dots { display: flex; justify-content: center; gap: .65rem; margin-top: 1.35rem; }
.home-testimonial-dots button { display: grid; width: 2.75rem; min-height: 2.75rem; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.home-testimonial-dots button::before { content: ""; width: .78rem; aspect-ratio: 1; border: 1px solid var(--brand); border-radius: 50%; background: transparent; }
.home-testimonial-dots button[aria-current="true"]::before { background: var(--brand); box-shadow: 0 0 0 4px rgba(23,63,82,.12); }

.home-tier-section { padding-top: 1rem; }
.home-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.home-tier-card { display: flex; min-height: 355px; flex-direction: column; padding: 1.45rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.home-tier-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.home-tier-heading p { margin: 0; color: var(--brand-2); font-size: .76rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.home-tier-heading h3 { margin: .2rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; }
.home-tier-heading > strong { font-family: Georgia, "Times New Roman", serif; font-size: 2.35rem; line-height: 1; }
.home-tier-card > p { color: var(--muted); }
.home-tier-card > span { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .86rem; font-weight: 850; }
.home-tier-card .button { margin-top: 1rem; }

.home-final-cta { padding-block: clamp(5rem, 10vw, 8rem); background: linear-gradient(145deg, #102f3d, var(--brand)); color: white; text-align: center; }
.home-final-cta .shell { display: grid; justify-items: center; }
.home-final-cta h2 { max-width: 16ch; }
.home-final-cta p:not(.eyebrow) { max-width: 48ch; color: rgba(255,255,255,.75); }
.home-final-cta .button-primary { margin-top: .8rem; background: var(--surface); color: var(--brand); }
.app-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem max(1rem, calc((100% - 1120px) / 2)); background: var(--brand); color: white; }
.offline { padding-block: 15vh; }
.auth-shell { display: grid; place-items: center; min-height: calc(100vh - 12rem); padding-block: 3rem; }
.auth-card { width: min(100%, 34rem); padding: clamp(1.4rem, 4vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card h1 { margin: .35rem 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; }
.form-stack { display: grid; gap: 1rem; margin-block: 1.5rem; }
.form-stack label { display: grid; gap: .4rem; font-weight: 800; }
.form-stack input, .form-stack select, .form-stack textarea { width: 100%; min-height: 48px; padding: .78rem .9rem; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 12px; }
.alert { padding: .9rem 1rem; border-radius: 12px; }
.alert-error { color: #701f1f; background: #fde7e4; border: 1px solid #efb7b0; }
.legal-page { max-width: 52rem; padding-block: clamp(2.5rem, 7vw, 6rem); }
.legal-page h1 { margin: .35rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; }
.legal-page h2 { margin-top: 2rem; font-size: 1.3rem; }
.legal-page p, .legal-page li { color: var(--muted); }

@media (max-width: 960px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); gap: 2rem; }
  .home-hero-visual { min-height: 570px; }
  .home-introduction-grid { grid-template-columns: 1fr 1fr; }
  .home-principle-card { grid-column: 1 / -1; }
  .home-area-grid { grid-template-columns: repeat(2, 1fr); }
  .home-tier-grid { grid-template-columns: 1fr; }
  .home-tier-card { min-height: 0; }
}

@media (max-width: 760px) {
  .app-header { align-items: flex-start; }
  .app-header nav { gap: .6rem; }
  .app-header nav > a:not(.button) { display: none; }
  .home-hero { grid-template-columns: 1fr; padding-block: 2.5rem 4rem; }
  .home-hero h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .home-hero-actions { align-items: stretch; flex-direction: column; }
  .home-hero-actions .button, .home-text-link { width: 100%; justify-content: center; }
  .home-trust-list { display: grid; }
  .home-hero-visual { min-height: 540px; }
  .home-introduction-grid, .home-section-heading { grid-template-columns: 1fr; }
  .home-section-heading { align-items: start; }
  .home-area-grid, .home-steps, .home-tier-grid { grid-template-columns: 1fr; }
  .home-area-grid article { min-height: 190px; }
  .home-area-grid h3 { margin-top: 2rem; }
  .home-timing-note { width: 100%; align-items: center; flex-direction: column; border-radius: 18px; text-align: center; }
  .home-testimonial-heading { align-items: start; flex-direction: column; }
  .home-final-cta .button { width: 100%; }
  .app-footer { flex-direction: column; }
}

@media (max-width: 460px) {
  .brand { gap: .4rem; }
  .brand-mark { width: 2.7rem; height: 2.7rem; }
  .brand-name { font-size: 1.45rem; }
  .home-hero-visual { min-height: 470px; }
  .home-hero-visual figcaption { right: .8rem; bottom: .8rem; left: .8rem; }
  .home-tier-heading { align-items: end; }
  .home-tier-heading > strong { font-size: 2rem; }
}

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