/* ──────────────────────────────────────────────────────────────────────────
   Sensori Design — landing site shared stylesheet
   Palette + typography per Sensori locked decisions (DDS-02):
   no pure white, no pure black; DM Serif Display (display) / DM Sans 300 (body).
   Text-safe accent tokens (≥4.5:1 on parchment) per DDS-02 Part 1 §1.1.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --parchment: #F5F0E8;
  --parchment-dark: #EDE7D8;
  --charcoal: #2C2820;
  --charcoal-mid: #3D3530;
  --charcoal-light: #4A4237;
  --fired-clay: #B5623E;
  --fired-clay-mid: #C97A58;
  --fired-clay-text: #9A4E30;   /* text-safe accent — ≥4.5:1 on parchment */
  --sage: #7A8C6E;
  --sage-text: #56624C;         /* text-safe accent */
  --warm-stone: #C4B89A;
  --ochre: #8C7641;
  --ochre-text: #6E5B30;        /* text-safe accent */
  --rule: #D8CFBD;
  --border-strong: #8A7E64;     /* interactive borders — ≥3:1 on parchment */
  --text-body: #3A3228;
  --error: #A03020;
  --radius: 4px;
  --radius-sm: 2px;
  --shadow-overlay: 0 4px 16px rgba(44, 40, 32, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  background: var(--parchment);
  color: var(--text-body);
}

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

/* ── Accessibility utilities ── */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--parchment);
  padding: 0.6rem 1.2rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  font-weight: 400;
}
.skip-link:focus { left: 0; }

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

/* Honeypot field — hidden from people, present for bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

:focus-visible {
  outline: 2.5px solid var(--fired-clay-text);
  outline-offset: 2px;
}
.site-header a:focus-visible,
.hero a:focus-visible,
.band-dark a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--warm-stone);
}

/* ── Header ── */

.site-header {
  background: var(--charcoal);
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--warm-stone);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.wordmark-bar {
  width: 1px;
  height: 1.25rem;
  background: var(--fired-clay);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(196, 184, 154, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--parchment); }

.site-nav a[aria-current="page"] {
  color: var(--parchment);
  border-bottom: 1px solid var(--fired-clay);
  padding-bottom: 2px;
}

.site-nav .nav-cta {
  background: var(--fired-clay-text);
  color: var(--parchment);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  border-bottom: none;
}

.site-nav .nav-cta:hover { background: var(--fired-clay); color: var(--parchment); }

/* ── Hero ── */

.hero {
  background: var(--charcoal);
  padding: 5.5rem 3rem 4.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(196, 184, 154, 0.1);
}

/* Concentric-circle motif (decorative, from the Sensori cover idiom) */
.hero::before {
  content: '';
  position: absolute;
  top: -140px; right: -140px;
  width: 460px; height: 460px;
  border: 1px solid rgba(196, 184, 154, 0.10);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 280px; height: 280px;
  border: 1px solid rgba(196, 184, 154, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner { max-width: 860px; margin: 0 auto; position: relative; }

.hero-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-stone);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.12;
  color: var(--parchment);
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.hero h1 em { font-style: italic; color: var(--warm-stone); }

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.72);
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  gap: 0.75rem 2rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(196, 184, 154, 0.14);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(196, 184, 154, 0.85);
}

.hero--compact { padding: 4rem 3rem 3.5rem; }
.hero--compact h1 { font-size: clamp(2rem, 4vw, 2.9rem); }

/* ── Buttons ── */

.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--fired-clay-text);
  color: var(--parchment);
  border-color: var(--fired-clay-text);
}
.btn-primary:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--parchment); }
.band-dark .btn-primary:hover,
.hero .btn-primary:hover { background: var(--fired-clay); border-color: var(--fired-clay); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--charcoal); }

.hero .btn-ghost, .band-dark .btn-ghost {
  color: var(--warm-stone);
  border-color: rgba(196, 184, 154, 0.5);
}
.hero .btn-ghost:hover, .band-dark .btn-ghost:hover {
  color: var(--parchment);
  border-color: var(--warm-stone);
}

/* ── Sections ── */

.section { padding: 4.5rem 3rem; border-bottom: 1px solid var(--rule); }
.section--alt { background: var(--parchment-dark); }
.section-inner { max-width: 860px; margin: 0 auto; }

.band-dark {
  background: var(--charcoal);
  border-bottom: none;
}
.band-dark .section-inner { max-width: 860px; margin: 0 auto; }

.kicker {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fired-clay-text);
  margin-bottom: 0.9rem;
}

.band-dark .kicker, .hero .kicker { color: var(--warm-stone); }

.section h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.band-dark h2 { color: var(--parchment); }

.section h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--charcoal);
  margin: 2.25rem 0 0.75rem;
}

.band-dark h3 { color: var(--parchment); }

.prose { max-width: 680px; }
.prose p { margin-bottom: 1.15rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 500; color: var(--charcoal); }
.prose ul, .prose ol { margin: 0.5rem 0 1.25rem 1.35rem; }
.prose li { margin-bottom: 0.5rem; }

.band-dark .prose p, .band-dark .prose li { color: rgba(245, 240, 232, 0.75); }
.band-dark .prose strong { color: var(--parchment); }

.section a:not(.btn) {
  color: var(--fired-clay-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.band-dark a:not(.btn) {
  color: var(--warm-stone);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.smallprint { font-size: 0.85rem; color: var(--charcoal-light); }
.band-dark .smallprint { color: rgba(196, 184, 154, 0.85); }

/* ── Card grids ── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.card {
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.section--alt .card { background: var(--parchment); }
.section:not(.section--alt) .card { background: var(--parchment-dark); }

.card h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--charcoal);
  margin: 0 0 0.6rem;
}

.card p { font-size: 0.9rem; line-height: 1.7; color: var(--charcoal-light); }

.card .card-kicker {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fired-clay-text);
  margin-bottom: 0.5rem;
}

.card--muted { opacity: 0.82; }

.card .card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 400;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0.5rem; }

.chip {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--charcoal);
  background: rgba(196, 184, 154, 0.28);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}

.chip--soon {
  background: transparent;
  color: var(--charcoal-light);
  border-style: dashed;
}

/* ── Numbered steps ── */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  max-width: 640px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--fired-clay-mid);
  border: 1px solid rgba(196, 184, 154, 0.35);
  border-radius: var(--radius);
  padding: 0.15rem 0.45rem;
}

.band-dark .steps li { color: rgba(245, 240, 232, 0.75); }

/* ── Callouts & notes ── */

.callout {
  background: var(--charcoal);
  color: rgba(245, 240, 232, 0.8);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--fired-clay);
}
.callout p { margin-bottom: 0.75rem; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--parchment); font-weight: 400; }

.note {
  border-left: 3px solid var(--fired-clay);
  background: rgba(181, 98, 62, 0.06);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
}
.note p { margin-bottom: 0.6rem; }
.note p:last-child { margin-bottom: 0; }

.note--sage { border-left-color: var(--sage); background: rgba(122, 140, 110, 0.08); }

/* ── Fact rows (guide page) ── */

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.88rem;
  color: var(--charcoal-light);
  margin: 1rem 0 0;
}

/* ── Forms ── */

.form-panel {
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  max-width: 560px;
  margin: 2rem 0;
}

.form-field { margin-bottom: 1.4rem; }

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.form-field input {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-body);
  background: var(--parchment);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
}

.form-field input:focus-visible {
  outline: 2.5px solid var(--fired-clay-text);
  outline-offset: 1px;
  border-color: var(--fired-clay-text);
}

.form-consent {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--charcoal-light);
  margin: 1.25rem 0 1.5rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--charcoal);
  min-height: 1.5em;
}

.form-status.is-error { color: var(--error); }

button.btn { font-size: 1rem; }
button.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ── Footer ── */

.site-footer {
  background: var(--charcoal);
  padding: 3rem;
  text-align: center;
}

.footer-inner { max-width: 760px; margin: 0 auto; }

.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--warm-stone);
  margin-bottom: 0.5rem;
}

.site-footer p {
  font-size: 0.85rem;
  color: rgba(196, 184, 154, 0.78);
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.site-footer nav {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer a {
  color: var(--warm-stone);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  font-size: 0.78rem !important;
  color: rgba(196, 184, 154, 0.7) !important;
  margin-top: 1.25rem !important;
}

/* ── Responsive ── */

@media (max-width: 720px) {
  .site-header, .hero, .hero--compact, .section, .site-footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero { padding-top: 4rem; padding-bottom: 3.5rem; }
  .form-panel { padding: 1.75rem 1.5rem; }
}

/* ── Reduced motion (locked project decision — every stylesheet) ── */

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