/* ---------------------------------------------------------------
   Sattr marketing site (sattr.ai)
   Tokens mirror the product design system (manage.sattr.app):
   Geist, warm off-white surfaces, deep navy chrome, brand orange
   reserved for primary CTAs and small accents - as text on light
   surfaces only via --brand-text, which is AA-verified.
   Geist is self-hosted (SIL OFL) so no visitor data reaches a
   third-party font CDN.
   --------------------------------------------------------------- */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #fcfaf6;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --primary: #001226;
  --secondary: #ece7db;
  --muted-foreground: #6b7270;
  --border: rgba(107, 114, 112, 0.2);

  --brand: #ff5a1f;
  --brand-hover: #e84b0f;
  --brand-text: #c2410c; /* the only orange allowed as text on light - AA-verified */
  --brand-tint: #fff2ea;
  --brand-foreground: #001226;

  --chrome: #0a1526;
  --chrome-foreground: #f5f2ec;
  --chrome-muted: #8a9098;

  --cleared-tint: #dcf7ef;
  --cleared-text: #086958;

  --header: #f5f2ec;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --radius-btn: 6px;
  --shadow: 0 1px 3px rgba(10, 21, 38, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
p { max-width: 68ch; }
a { color: var(--foreground); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header { background: var(--header); border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.logo { font-weight: 700; font-size: 21px; color: var(--primary); text-decoration: none; letter-spacing: -0.02em; }
.logo .dot { color: var(--brand); }
.site-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--foreground); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.site-nav a:hover { color: var(--brand-text); }
.site-nav a[aria-current="page"] {
  color: var(--brand-text);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.header-actions { display: flex; gap: 14px; align-items: center; }
.signin { font-size: 14px; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Buttons */
.btn {
  font-family: var(--font); font-weight: 500; font-size: 15px;
  border: none; border-radius: var(--radius-btn); padding: 12px 22px; cursor: pointer;
  text-decoration: none; display: inline-block; transition: background 0.15s ease;
}
.btn-brand { background: var(--brand); color: var(--brand-foreground); }
.btn-brand:hover { background: var(--brand-hover); }
.btn-quiet { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-quiet:hover { background: var(--secondary); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Hero */
.hero { padding: 92px 0 76px; }
.hero h1 { font-size: clamp(38px, 5.5vw, 60px); margin: 16px 0 18px; max-width: 20ch; color: var(--primary); }
.hero .lede { font-size: 18px; color: var(--muted-foreground); max-width: 56ch; margin-bottom: 30px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-block; background: var(--secondary); color: var(--primary);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 12px; border-radius: var(--radius-btn);
}

/* Sections */
section { padding: 56px 0; }
.kicker {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted-foreground);
}
section h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 8px 0 12px; color: var(--primary); }
.section-lede { font-size: 17px; color: var(--muted-foreground); margin-bottom: 8px; }

.grid { display: grid; gap: 14px; margin: 26px 0 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.card p { font-size: 14.5px; color: var(--muted-foreground); }
.card .step-no {
  display: inline-flex; width: 30px; height: 30px; border-radius: var(--radius-btn);
  background: var(--brand-tint); color: var(--brand-text); font-weight: 600; font-size: 14px;
  align-items: center; justify-content: center; margin-bottom: 12px;
}

/* Audience cards */
a.card { display: block; text-decoration: none; transition: border-color 0.15s ease; }
a.card:hover { border-color: var(--brand); }
a.card .more { font-weight: 500; color: var(--brand-text); font-size: 14.5px; margin-top: 6px; }

/* Spacing utility - keeps pages free of inline styles (strict CSP) */
.mt-lg { margin-top: 28px; }

/* Checklist (mirrors the product's made-for-those-who-want-to list) */
.checklist { list-style: none; margin: 22px 0 0; display: grid; gap: 12px; max-width: 60ch; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checklist .check {
  flex: none; width: 22px; height: 22px; border-radius: var(--radius-btn);
  background: var(--cleared-tint); color: var(--cleared-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-top: 2px;
}

/* Dark chrome panel */
.chrome-panel { background: var(--chrome); color: var(--chrome-foreground); border-radius: var(--radius); padding: 44px 36px; }
.chrome-panel h2 { color: var(--chrome-foreground); }
.chrome-panel .kicker { color: var(--chrome-muted); }
.chrome-panel .grid { gap: 26px; }
.stat .num { font-weight: 600; font-size: 40px; letter-spacing: -0.02em; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat p { color: var(--chrome-muted); font-size: 14.5px; }
.chrome-panel .source { color: var(--chrome-muted); font-size: 13px; margin-top: 26px; }
.chrome-panel .source a { color: var(--chrome-foreground); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 30px 0 46px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p, .site-footer a { font-size: 13.5px; color: var(--muted-foreground); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.card { transition: none; }
}

/* ---------------------------------------------------------------
   Wow layer: hero glow, product mockup, sticky header, reveals.
   All motion is CSS-only, honors prefers-reduced-motion, and
   degrades to a static page where scroll-driven animations are
   unsupported.
   --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 242, 236, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(560px 380px at 82% 8%, rgba(255, 90, 31, 0.14), transparent 70%),
    radial-gradient(640px 420px at 8% 96%, rgba(236, 231, 219, 0.9), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px; align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(40px, 5.8vw, 68px); letter-spacing: -0.035em; }

/* Product mockup - a stylized, fictional slice of the payer portal */
.hero-visual { position: relative; padding: 30px 0 26px; }
.mock {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(10, 21, 38, 0.12);
}
.mock-main { position: relative; z-index: 1; padding: 18px 18px 6px; animation: float 7s ease-in-out infinite; }
.mock-main .mock-title {
  font-size: 13px; font-weight: 600; color: var(--muted-foreground);
  display: flex; justify-content: space-between; padding: 0 4px 12px;
}
.mock-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-top: 1px solid var(--border); font-size: 13.5px;
}
.mock-row .avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--secondary); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600;
}
.mock-row .who { min-width: 0; }
.mock-row .who .name { font-weight: 500; }
.mock-row .who .kind { display: block; font-size: 11.5px; color: var(--muted-foreground); }
.mock-row .amt { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill {
  flex: none; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--cleared-tint); color: var(--cleared-text); white-space: nowrap;
}
.mock-toast {
  position: absolute; z-index: 2; right: -10px; top: 0;
  padding: 10px 14px; font-size: 12.5px; font-weight: 500;
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--cleared-text); animation: float 6s ease-in-out infinite 0.8s;
}
.mock-chip {
  position: absolute; z-index: 2; left: -10px; bottom: 0;
  padding: 10px 14px; font-size: 12.5px; font-weight: 500;
  color: var(--primary); animation: float 8s ease-in-out infinite 1.6s;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 880px) {
  .hero-visual { margin-top: 12px; }
  .mock-toast { right: 0; }
  .mock-chip { left: 0; }
}

/* Capability strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; }
.strip .wrap {
  display: flex; gap: 12px 28px; flex-wrap: wrap; justify-content: center;
  font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted-foreground);
}

/* Buttons get depth */
.btn-brand { box-shadow: 0 6px 18px rgba(255, 90, 31, 0.28); }
.btn { transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
a.card { transition: border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(10, 21, 38, 0.1); }

/* Scroll reveals - progressive enhancement only */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  .mock-main, .mock-toast, .mock-chip { animation: none; }
  .btn:hover, a.card:hover { transform: none; }
  .reveal { animation: none; }
}
