/* ==========================================================================
   Arbor — shared styles
   Tokens, base reset, shared component helpers, and responsive utilities.
   Page layout lives inline on each page (faithful to the design); this file
   carries only what inline styles can't express: @font-face, :hover/:focus,
   keyframes, and the breakpoints that let the fixed desktop grids stack.
   ========================================================================== */

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/Outfit.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* Spectral (headings + wordmark). Self-hosted, not @import'd from Google Fonts:
   the site CSP is style-src 'self' 'unsafe-inline'; font-src 'self' — no Google
   hosts — so an @import would be blocked and headings would fall back to Georgia.
   Weights 400/500/600, roman + italic (italic used for Sage reflection quotes). */
@font-face {
  font-family: 'Spectral';
  font-style: normal; font-weight: 400;
  src: url('/fonts/Spectral-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal; font-weight: 500;
  src: url('/fonts/Spectral-Medium.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal; font-weight: 600;
  src: url('/fonts/Spectral-SemiBold.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic; font-weight: 400;
  src: url('/fonts/Spectral-Italic.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic; font-weight: 500;
  src: url('/fonts/Spectral-MediumItalic.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic; font-weight: 600;
  src: url('/fonts/Spectral-SemiBoldItalic.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Brand */
  --teal: #5B9E6F;
  --dark-teal: #2D6B50;
  --navy: #1A3545;
  --navy-deep: #0D1F25;
  --coral: #E05C5C;
  --warm-white: #F8F5F0;
  --soft-grey: #94A3B8;
  /* Arbor greens (marketing) */
  --green: #5B9E6F;
  --green-mid: #2D6B50;
  --green-dark: #1A3D2B;
  /* Semantic surfaces & ink (LIGHT). Dark values live in html[data-theme="dark"].
     Every light value equals the original literal, so light mode is unchanged. */
  --bg: #F8F5F0;            /* page background */
  --bg-2: #F0EDE8;          /* subtly raised band (e.g. Sage section) */
  --surface: #ffffff;       /* cards, node circles, inputs */
  --ink-rgb: 26,53,69;      /* primary + muted ink — used as rgb()/rgba() */
  --ink-strong: #1A3D2B;    /* headings */
  --nav-link: #3A4A57;      /* nav link text */
  --border-rgb: 26,61,43;   /* hairline borders on light surfaces */
  --nav-bg: rgba(248,245,240,0.82);

  /* Accent text that lifts on dark (light values identical to before) */
  --a-green: #2D6B50;  --a-deep: #234E36;  --a-gold: #9A7526;
  --a-slate: #5E7186;  --a-plum: #6C5A7C;  --a-rust: #9A3E32;
  --a-teal: #3F7E78;   --a-olive: #5E7644; --a-terra: #8A4A28;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1E17;
  --bg-2: #16211A;
  --surface: #18221C;
  --ink-rgb: 236,231,220;
  --ink-strong: #F4F1EC;
  --nav-link: rgba(236,231,220,0.78);
  --border-rgb: 236,231,220;
  --nav-bg: rgba(15,30,23,0.82);
  --a-green: #8FBE9C;  --a-deep: #A9C9A6;  --a-gold: #D9B45C;
  --a-slate: #9BADBE;  --a-plum: #B6A6C6;  --a-rust: #D6907F;
  --a-teal: #84BAB2;   --a-olive: #A6C084; --a-terra: #D89A6A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { margin: 0; }

img { max-width: 100%; }

a { color: inherit; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav { font-family: 'Outfit', system-ui, sans-serif; }

.nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--nav-link);
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: rgba(45, 107, 80, 0.12); color: var(--ink-strong); }
.nav-link.is-active {
  font-weight: 600;
  color: rgb(var(--ink-rgb));
  background: rgba(45, 107, 80, 0.14);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #B4602F;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(180, 96, 47, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(180, 96, 47, 0.34); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-link { transition: color .15s ease; }
.footer-link:hover { color: #7FB98E; }

/* --------------------------------------------------------------------------
   Buttons / CTAs (subtle lift on hover, no shrink)
   -------------------------------------------------------------------------- */
.btn { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.link-arrow { transition: gap .15s ease, color .15s ease; }

/* --------------------------------------------------------------------------
   Legal pages (Terms / Privacy / Consumer Data Addendum)
   -------------------------------------------------------------------------- */
.lg-sec h2 { scroll-margin-top: 90px; }
.lg-toc a { transition: color .15s ease; }
.lg-toc a:hover { color: var(--a-green) !important; }
.lg-body a { color: var(--a-green); font-weight: 600; }

.pc-th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.55);
  padding: 0 14px 10px;
}
.pc-td {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(var(--ink-rgb), 0.80);
  padding: 12px 14px;
  border-top: 1px solid rgba(var(--border-rgb), 0.10);
  vertical-align: top;
}

/* --------------------------------------------------------------------------
   Support page (functional form)
   -------------------------------------------------------------------------- */
@keyframes arbspin { to { transform: rotate(360deg); } }
.arb-spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: arbspin .6s linear infinite;
}
.arb-in { transition: border-color .15s ease; }
.arb-in:focus { border-color: #2D6B50 !important; outline: none; }
.is-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Responsive utilities
   The design is authored at ~1180px. These classes own the column counts so
   media queries can collapse them; everything else stays inline.
   -------------------------------------------------------------------------- */
.r-grid { display: grid; }
.cols-2     { grid-template-columns: 1fr 1fr; }
.cols-2-wide{ grid-template-columns: 1.1fr 0.9fr; }
.cols-2-lead{ grid-template-columns: 1.05fr 0.95fr; }
.cols-2-sage{ grid-template-columns: 0.95fr 1.05fr; }
.cols-3     { grid-template-columns: repeat(3, 1fr); }
.cols-6     { grid-template-columns: repeat(6, 1fr); }
.legal-grid { grid-template-columns: 240px 1fr; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .lg-toc { position: static !important; top: auto !important; }
}

@media (max-width: 860px) {
  .cols-2, .cols-2-wide, .cols-2-lead, .cols-2-sage { grid-template-columns: 1fr; }
  .cols-6 { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none !important; }
  .hero-h1 { font-size: 44px !important; }
  .section-h2 { font-size: 32px !important; }
}

@media (max-width: 640px) {
  .cols-3 { grid-template-columns: 1fr; }
  .cols-6 { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none !important; }
  .quick-actions { grid-template-columns: 1fr !important; }
}

h1, h2, .hero-h1, .section-h2 { font-family: 'Spectral', Georgia, serif !important; font-weight: 600 !important; letter-spacing: -0.015em; }
.nav a span, footer a span { font-family: 'Spectral', Georgia, serif; }
/* Dark-mode toggle button (nav). Icons swap on [data-theme]. */
.theme-toggle {
  width: 40px; height: 40px; padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  background: transparent;
  color: rgb(var(--ink-rgb));
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}
.theme-toggle:hover { background: rgba(var(--ink-rgb), 0.07); }
.theme-toggle svg { width: 19px; height: 19px; display: block; }
.theme-toggle .ic-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: block; }

/* Always-light island: the phone mock is a product screenshot of the app's
   light theme. Re-point the tokens to their light values on this subtree so
   site dark mode never bleeds into the device screen. (Swap for a dark
   screenshot in dark mode later if desired.) */
.phone-mock {
  --bg: #F8F5F0; --bg-2: #F0EDE8; --surface: #ffffff;
  --ink-rgb: 26,53,69; --ink-strong: #1A3D2B; --nav-link: #3A4A57;
  --border-rgb: 26,61,43;
  --a-green: #2D6B50; --a-deep: #234E36; --a-gold: #9A7526;
  --a-slate: #5E7186; --a-plum: #6C5A7C; --a-rust: #9A3E32;
  --a-teal: #3F7E78;  --a-olive: #5E7644; --a-terra: #8A4A28;
}
