/* Ridgeline Technologies, LLC
   Tokens are locked: ONE accent, ONE radius scale, no pure #000 or #fff.
   Accent #17656F is the AA-safe text/button weight of the logo teal (6.5:1 on
   light). The brighter #2E9AA6 fails contrast as text, so it is decorative only. */

:root {
  --bg: #fbfcfc;
  --surface: #f4f7f8;
  --surface-2: #ffffff;
  --fg: #12263D;
  --muted: #55677a;
  --rule: #dde5e9;
  --accent: #17656F;
  --accent-strong: #0f4f57;
  --accent-deco: #2E9AA6;
  --accent-soft: #edf5f6;
  --on-accent: #ffffff;
  --radius: 10px;
  --maxw: 62rem;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1720;
    --surface: #16202b;
    --surface-2: #1a2632;
    --fg: #e6edf2;
    --muted: #93a3b2;
    --rule: #24313d;
    --accent: #5FD4D6;
    --accent-strong: #8ee6e7;
    --accent-deco: #2E9AA6;
    --accent-soft: #12242a;
    --on-accent: #0b1a1d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.wrap-wide { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--on-accent);
  padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Nav: single line, height capped ---------- */
.nav {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--fg); }
.logo img { display: block; width: 30px; height: 30px; }
.logo-text { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.015em; white-space: nowrap; }
.logo-text span { color: var(--accent); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; font-size: 0.92rem; }
.nav-links a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 640px) {
  .nav-inner { height: auto; padding-top: 0.85rem; padding-bottom: 0.85rem; flex-wrap: wrap; gap: 0.5rem 1rem; }
  .nav-links { gap: 1rem; font-size: 0.88rem; }
}

/* ---------- Hero: split, capped padding, 4 text elements max ---------- */
.hero { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--rule); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
}
/* Scale and measure are tuned together so the headline holds to 2 lines at
   desktop (Section 4.7 caps it there). Widening the measure without dropping
   the scale pushes it to 3. */
.hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 26ch;
}
.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 1.75rem;
}
.hero-art {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: grid;
  place-items: center;
}
.hero-art img { width: 100%; max-width: 190px; height: auto; display: block; }
@media (max-width: 800px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; padding: 1.75rem; }
  .hero-art img { max-width: 130px; }
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-secondary { border-color: var(--rule); color: var(--fg); background: var(--surface-2); }
.btn-secondary:hover { border-color: var(--accent); color: var(--fg); }

/* ---------- Generic section ---------- */
.section { padding: 3.5rem 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: 0; }
.section h2 {
  font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2;
  margin: 0 0 0.6rem;
}
.section > .wrap-wide > p { color: var(--muted); max-width: var(--measure); }

/* ---------- Products: stacked rows, not equal cards ---------- */
.product { border-top: 1px solid var(--rule); padding: 1.6rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: start; }
.product:first-of-type { border-top: 0; }
.product h3 { margin: 0 0 0.35rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.product p { margin: 0; color: var(--muted); max-width: 52ch; }
.status {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 0.3rem 0.7rem; white-space: nowrap;
}
@media (max-width: 640px) { .product { grid-template-columns: 1fr; } }

/* ---------- Data handling panel ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  max-width: var(--maxw);
}
.panel ul { margin: 0.85rem 0 0; padding-left: 1.1rem; }
.panel li { margin: 0 0 0.55rem; color: var(--muted); max-width: 62ch; }
.panel li strong { color: var(--fg); font-weight: 600; }
.panel li:last-child { margin-bottom: 0; }

/* ---------- Company facts: definition grid ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1.5rem 2rem; margin: 0; }
.facts div { margin: 0; }
.facts dt { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.2rem; }
.facts dd { margin: 0; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Legal pages (shared with eula/privacy/security/subprocessors) ---------- */
header.site { border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem; margin-bottom: 2.5rem; }
.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--fg); display: inline-flex; align-items: center; gap: 0.55rem; }
.brand img { width: 26px; height: 26px; display: block; }
/* Wordmark is nested (<span>Ridgeline <span>Technologies</span></span>), so only
   the inner span takes the accent. */
.brand > span { color: var(--fg); }
.brand span span { color: var(--accent); }
.tagline { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

h1 { font-size: 1.85rem; line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 0.4rem; }
.updated { color: var(--muted); font-size: 0.875rem; margin: 0 0 2rem; }
h2 { font-size: 1.05rem; margin: 2rem 0 0.5rem; letter-spacing: -0.01em; }
p, li { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
.lede { font-size: 1.05rem; color: var(--muted); }

.card-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; }
.card-list li { margin: 0; }
.card {
  display: block; height: 100%;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--surface-2);
  padding: 1rem 1.15rem; text-decoration: none; color: var(--fg);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.card:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); }
.card-title { font-weight: 600; }
.card-desc { color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }

.legal-note { background: var(--accent-soft); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.15rem; font-size: 0.925rem; }
.legal-note p:last-child { margin-bottom: 0; }
.caps { text-transform: none; }

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem; padding-top: 1.25rem;
  color: var(--muted); font-size: 0.875rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between;
}
footer.site a { color: var(--muted); }
.footer-wide { border-top: 1px solid var(--rule); }
.footer-wide .wrap-wide {
  padding-top: 1.5rem; padding-bottom: 2.5rem;
  color: var(--muted); font-size: 0.875rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.footer-wide a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* ---------- Subprocessor table ---------- */
table.subs { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.94rem; }
table.subs th, table.subs td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--rule); }
table.subs th { font-weight: 600; }
@media (max-width: 640px) {
  table.subs, table.subs thead, table.subs tbody, table.subs tr, table.subs th, table.subs td { display: block; }
  table.subs thead { display: none; }
  table.subs tr { margin-bottom: 1rem; }
  table.subs td { border: none; padding: 0.2rem 0; }
  table.subs td:first-child { font-weight: 600; }
}
