/* highland.earth — shared styles. Same tokens as the diagnostic app so the two read as one product. */
:root {
  --paper: #F1F4F3;
  --surface: #FFFFFF;
  --ink: #15201D;
  --muted: #56655F;
  --line: #D3DBD8;
  --accent: #0E5A5E;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEBEA;
  --signal: #A86B12;
  --signal-soft: #F5E8D2;

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 5vw, 3.5rem);
  --radius: 10px;
  --measure: 62ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1513; --surface: #16201D; --ink: #E4EBE8; --muted: #95A6A0; --line: #2B3935;
    --accent: #6BBDBB; --accent-ink: #0E1513; --accent-soft: #1C3634;
    --signal: #E2AE58; --signal-soft: #3A2E1A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1513; --surface: #16201D; --ink: #E4EBE8; --muted: #95A6A0; --line: #2B3935;
  --accent: #6BBDBB; --accent-ink: #0E1513; --accent-soft: #1C3634;
  --signal: #E2AE58; --signal-soft: #3A2E1A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; max-width: var(--measure); }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: max(16px, 4vw); }
.eyebrow { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1080px; margin-inline: auto; padding: 14px max(16px, 4vw); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.15; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; font-size: var(--step--1); }
.nav ul a { color: var(--ink); text-decoration: none; }
.nav ul a:hover { color: var(--accent); text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding-block: 56px; }
section + section { border-top: 1px solid var(--line); }
.stack { display: grid; gap: 20px; }
.hero { padding-block: 72px 64px; }
.hero .stack { gap: 24px; }
.hero p.lede { font-size: var(--step-1); color: var(--muted); max-width: 56ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0; list-style: none; font-size: var(--step--1); color: var(--muted); }

.offers { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 760px) { .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offer { display: grid; gap: 12px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.offer p { font-size: var(--step--1); }
.offer .btn { justify-self: start; margin-top: 4px; }
.offer .tag { justify-self: start; font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.4fr; gap: 56px; } }
.split .stack { min-width: 0; }
.portrait { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.areas { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); padding: 0; margin: 0; list-style: none; }
.areas li { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: var(--step--1); }

.quotes { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
blockquote { margin: 0; padding: 24px; background: var(--surface); border-left: 3px solid var(--signal); border-radius: 0 var(--radius) var(--radius) 0; display: grid; gap: 12px; }
blockquote p { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.4; }
blockquote footer { font-size: var(--step--1); color: var(--muted); }

.contact address { font-style: normal; }
.email { font-size: var(--step-1); font-weight: 600; word-break: break-all; }

/* Legal pages */
.legal { padding-block: 48px 72px; }
.legal .stack { gap: 28px; }
.legal h2 { font-size: var(--step-1); margin-top: 8px; }
.legal ul { margin: 0; padding-left: 1.2em; max-width: var(--measure); }
.legal li + li { margin-top: 6px; }
.legal table { border-collapse: collapse; width: 100%; max-width: 48rem; font-size: var(--step--1); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }

.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 0.8125rem; color: var(--muted); display: grid; gap: 8px; }
.foot a { color: inherit; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
