/* Inland Front Desk — styles.css
   Mobile-first. No frameworks. Fonts are self-hosted (no third-party requests). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B3D6B;
  --navy-light: #164878;
  --orange: #C2410C;
  --orange-dark: #9A3412;
  --sand: #F6F1E7;
  --sand-line: #E3DACA;
  --charcoal: #1F2933;
  --muted: #4B5563;
  --sage: #5B7F6A;          /* decorative accents only */
  --sage-text: #4A6B58;     /* darker sage that passes AA for small text */
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9D6E3;
  --focus-light: var(--navy);
  --focus-dark: #FBD5B0;
  --white: #FFFFFF;

  --font-head: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  --header-h: 4rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
h1 { font-weight: 700; font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4rem); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 1.1875rem; }

p { margin: 0 0 1rem; max-width: 65ch; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--orange-dark); }

/* Focus: always visible, colour adapts to background */
:focus-visible {
  outline: 3px solid var(--focus-light);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--focus-dark); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--on-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.005em;
}
.brand:hover { color: var(--on-dark); }
.brand svg { width: 2rem; height: 2rem; flex: none; }

.nav-toggle { display: none; }
.js .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.875rem;
  font: inherit;
  font-weight: 600;
  color: var(--on-dark);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.25rem;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--on-dark); text-decoration: underline; }

/* No JS: nav simply wraps under the brand. With JS on small screens: dropdown. */
html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.5rem; }

@media (max-width: 56.249rem) {
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 24px rgba(11, 61, 107, 0.25);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }
  .js .site-nav li + li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .js .site-nav a { width: 100%; min-height: 48px; }
}
@media (min-width: 56.25rem) {
  .js .nav-toggle { display: none; }
  .site-nav ul { gap: 0 1.5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.375rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.on-dark .btn-outline { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.8); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--navy); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6rem); }
.section--sand { background: var(--sand); }
.section-intro { color: var(--muted); font-size: 1.125rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60rem 18rem at 82% 100%, rgba(233, 166, 107, 0.22), transparent 70%),
    var(--navy);
  color: var(--on-dark);
  padding-top: clamp(3rem, 2rem + 6vw, 6.5rem);
  overflow: hidden;
  --hills-h: clamp(5rem, 3rem + 8vw, 10rem);
}
.hero > .wrap { position: relative; z-index: 1; }
/* Sun lives outside the hills SVG so the SVG's "slice" cropping never clips it. */
.hero-sun {
  position: absolute;
  right: clamp(1.5rem, 10vw, 14vw);
  bottom: calc(var(--hills-h) * 1.05);
  width: clamp(3rem, 2rem + 3.5vw, 5.5rem);
  height: clamp(3rem, 2rem + 3.5vw, 5.5rem);
  border-radius: 50%;
  background: #E9A66B;
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 56.25rem) {
  .hero-sun { bottom: calc(var(--hills-h) * 0.5); }
}
.hero h1 { color: var(--on-dark); max-width: 18ch; }
.hero h1 span { display: block; }
.hero-sub {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  color: #E6EDF4;
  max-width: 40rem;
  margin-top: 1.25rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 26rem;
}
@media (min-width: 40rem) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; }
}
.audience-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.audience-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}
.audience-pills a:hover { background: rgba(255, 255, 255, 0.12); color: var(--on-dark); }
.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.75rem;
  color: var(--on-dark);
  font-weight: 600;
}
.hero-link:hover { color: var(--focus-dark); }
.hero-note {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
}
.hero-hills {
  position: relative;
  display: block;
  width: 100%;
  height: var(--hills-h);
  margin-top: clamp(2rem, 1rem + 4vw, 4rem);
  margin-bottom: -1px;
}

/* ---------- How it works ---------- */
.how-grid { display: grid; gap: 2rem; }
@media (min-width: 56.25rem) {
  .how-grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
  .how-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 3.75rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
}
.steps li::after {
  content: "";
  position: absolute;
  left: calc(1.25rem - 1px);
  top: 2.6rem;
  bottom: 0.4rem;
  border-left: 2px dashed var(--sage);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin-bottom: 0; }
.steps q {
  display: block;
  margin: 0.25rem 0 0.5rem;
  padding-left: 0.875rem;
  border-left: 3px solid var(--orange);
  font-style: italic;
  quotes: "\201C" "\201D";
}
.steps .aside { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Features ---------- */
.features {
  list-style: none;
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--sand-line);
}
.features li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--sand-line);
}
.features p { margin: 0; }
.features strong { color: var(--navy); }
.icon-badge {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--sage-text);
  background: var(--sand);
  border-radius: 50%;
}
.icon-badge svg { width: 1.375rem; height: 1.375rem; }
@media (min-width: 48rem) {
  .features { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

/* ---------- Law firms ---------- */
.law { max-width: 52rem; }
.law-quote { margin: 1.75rem 0; }
.law-quote figcaption { font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.law-quote blockquote {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-style: italic;
}
.law-quote blockquote p { margin: 0; }
.checklist { list-style: none; margin: 0 0 1.5rem; }
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.5em;
  width: 0.65rem;
  height: 0.38rem;
  border-left: 2px solid var(--sage-text);
  border-bottom: 2px solid var(--sage-text);
  transform: rotate(-45deg);
}
.law-pricing { font-weight: 600; color: var(--navy); }

/* ---------- Proof ---------- */
.proof {
  display: grid;
  gap: 1rem 4rem;
}
@media (min-width: 56.25rem) {
  .proof { grid-template-columns: 1fr 1.6fr; align-items: start; }
}
.proof-body {
  border-left: 4px solid var(--sage);
  padding-left: 1.25rem;
  font-size: 1.125rem;
}
.proof-body p:last-child { margin-bottom: 0; }

/* ---------- Pilot ---------- */
.pilot-panel {
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  background: var(--white);
  display: grid;
  gap: 1rem 3rem;
}
@media (min-width: 56.25rem) {
  .pilot-panel { grid-template-columns: 1fr 1.3fr; }
}
.pilot-panel h3 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  color: var(--orange-dark);
}
.small-print { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Plans ---------- */
.plans {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: stretch;
}
.plan--recommended, .plan--law { margin-top: 0.75rem; }
@media (min-width: 60rem) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan--recommended, .plan--law { margin-top: 0; }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.plan--recommended {
  border: 2px solid var(--navy);
  box-shadow: 0 10px 30px -18px rgba(11, 61, 107, 0.6);
}
.plan-flag {
  position: absolute;
  top: 0;
  left: 1.5rem;
  transform: translateY(-50%);
  margin: 0;
  padding: 0.2rem 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: var(--sage-text);
  border-radius: 999px;
}
.plan-flag--law { background: var(--navy); }
.plan h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.plan-price {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--navy);
}
.plan-price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan-setup { margin: 0.25rem 0 1.25rem; color: var(--muted); }
.plan ul { list-style: none; border-top: 1px solid var(--sand-line); padding-top: 1rem; }
.plan li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.6rem;
  height: 0.35rem;
  border-left: 2px solid var(--sage-text);
  border-bottom: 2px solid var(--sage-text);
  transform: rotate(-45deg);
}
.founding {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px dashed var(--orange);
  border-radius: var(--radius);
  max-width: none;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.5rem; max-width: 48rem; border-top: 1px solid var(--sand-line); }
.faq-list details { border-bottom: 1px solid var(--sand-line); }
.faq-list summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 1.125rem 2.5rem 1.125rem 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--orange);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding-bottom: 1.125rem; margin: 0; }

/* ---------- About ---------- */
.about { max-width: 48rem; }
.about p { font-size: 1.125rem; }
.areas strong { color: var(--navy); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 56.25rem) {
  .contact-grid { grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
}
.form-grid { display: grid; gap: 1.125rem; }
@media (min-width: 40rem) {
  .form-grid { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .field--full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  color: var(--navy);
}
.field .req, .field .opt { font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid #6B7280;
  border-radius: var(--radius);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--navy); outline-offset: 1px; }
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-color: #B91C1C; }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  background: var(--sand);
  border-radius: var(--radius);
}
.consent input {
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.15rem 0 0;
  accent-color: var(--navy);
}
.consent label { font-size: 0.9375rem; font-weight: 400; color: var(--charcoal); margin: 0; }
.form-actions { margin-top: 0.25rem; }
.form-alt { margin-top: 1.25rem; }
.form-status:empty, .form-error:empty { display: none; }
.form-status, .form-error {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
}
.form-status {
  background: var(--sand);
  border-left: 4px solid var(--sage-text);
  font-weight: 600;
  color: var(--navy);
}
.form-error {
  background: #FEF2F2;
  border-left: 4px solid #B91C1C;
  color: #7F1D1D;
}
.form-error p { margin: 0; }
.form-error ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.form-error a { color: #7F1D1D; }

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark-muted);
  padding-block: 2.5rem;
  font-size: 0.9375rem;
}
.site-footer p { max-width: none; margin-bottom: 0.75rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--focus-dark); }
.footer-name { font-family: var(--font-head); font-weight: 700; color: var(--on-dark); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-ai { color: var(--on-dark); }
.site-footer .copyright { margin: 1.25rem 0 0; }

/* ---------- Simple pages (thanks, 404) ---------- */
.simple-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
}
.simple-page p { font-size: 1.125rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 46rem; }
.legal-meta { color: var(--muted); }
.legal h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand-line);
}
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.5rem; }
.legal li::marker { color: var(--sage-text); }
.toc {
  margin: 1.5rem 0 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--sand);
  border-radius: var(--radius);
}
.toc h2 { font-size: 1.0625rem; margin: 0 0 0.5rem; padding: 0; border: 0; }
.toc ol { padding-left: 1.25rem; columns: 1; }
@media (min-width: 40rem) { .toc ol { columns: 2; column-gap: 2rem; } }
.toc li { margin-bottom: 0.15rem; break-inside: avoid; }
.toc a { display: inline-block; padding-block: 0.25rem; }

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

.eyebrow { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-dark); }
.plans-overage { margin-top: 1.25rem; }
