/* ------------------------------------------------------------------
   Ayer — Observational Mirror
   Shared stylesheet for getayer.com (landing + legal pages)
   ------------------------------------------------------------------ */

/* ---- Design tokens ---- */
:root {
  --bg: #FAFAF8;          /* warm off-white */
  --surface: #F3F2F0;     /* secondary surface */
  --text: #2C2C2C;        /* soft black */
  --text-secondary: #5A5A5A;
  --sage: #5A9B7F;        /* positive */
  --sage-dark: #4d8a70;
  --terracotta: #C9785D;  /* accent */
  --border: #E0DDD9;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(44, 44, 44, 0.04), 0 1px 3px rgba(44, 44, 44, 0.06);
  --shadow-md: 0 2px 8px rgba(44, 44, 44, 0.06), 0 4px 16px rgba(44, 44, 44, 0.05);
  --maxw: 1080px;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-data: "DM Sans", var(--font-ui);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
p { margin: 0; }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.eyebrow {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand .mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
  position: relative;
}
.brand .mark::after {
  content: "";
  position: absolute;
  inset: 6px 6px auto auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-secondary); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, transform .05s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sage); color: #fff; }
.btn--primary:hover { background: var(--sage-dark); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface); }
.btn--sm { padding: 9px 16px; font-size: 15px; }

/* ---- Hero ---- */
.hero { padding: 80px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin-bottom: 20px;
}
.hero .lede {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 36ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- Placeholder image slots ---- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-data);
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 24px;
  min-height: 120px;
}
.ph--phone {
  aspect-ratio: 9 / 18;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 28px;
  border-width: 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow-md);
}
.ph--wide { aspect-ratio: 16 / 10; }
.ph--step { aspect-ratio: 4 / 3; min-height: 0; font-size: 13px; }
.ph--feature { aspect-ratio: 4 / 3; min-height: 0; }

/* ---- "What it is" ---- */
.statement {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.statement .accent { color: var(--terracotta); }
.what-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.prose-lg { font-size: 1.1rem; color: var(--text-secondary); }
.prose-lg p + p { margin-top: 16px; }
.pull {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 3px solid var(--sage);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  color: var(--text);
}

/* ---- Section headings ---- */
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 12px; }
.section-head p { color: var(--text-secondary); font-size: 1.08rem; }

/* ---- How it works ---- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  counter-increment: step;
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 600;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.step-num::before {
  content: counter(step);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.98rem; }
.step .ph { margin-top: 18px; }

/* ---- Features ---- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.feature p { color: var(--text-secondary); }
.tag {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  background: var(--surface);
}
.scoring-states {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.state {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.state--sat { color: var(--sage); border-color: rgba(90,155,127,.35); }
.state--fail { color: var(--terracotta); border-color: rgba(201,120,93,.35); }

/* ---- Privacy section ---- */
.privacy-band {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
}
.privacy-band .eyebrow { color: #d8b3a5; }
.privacy-band h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  max-width: 18ch;
  margin-bottom: 20px;
}
.privacy-band p { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 52ch; }
.privacy-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.privacy-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
}
.privacy-points .check {
  color: var(--sage);
  flex: 0 0 auto;
  font-weight: 700;
  margin-top: 1px;
}

/* ---- Final CTA ---- */
.cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 72px) 24px;
}
.cta h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-bottom: 14px; }
.cta p { color: var(--text-secondary); font-size: 1.1rem; max-width: 44ch; margin: 0 auto 28px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.badge-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 180px;
  padding: 0 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-secondary);
  font-family: var(--font-data);
  font-size: 13px;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 24px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a, .footer-meta { color: var(--text-secondary); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-meta { display: flex; flex-direction: column; gap: 4px; }

/* ---- Legal / document pages ---- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.doc-back {
  font-size: 14px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
}
.doc-back:hover { color: var(--text); }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); margin-bottom: 8px; }
.doc .updated {
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.doc h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.doc h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text); font-size: 1.02rem; }
.doc p { margin-bottom: 14px; }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc strong { font-weight: 600; }
.doc a { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 2px; }
.doc hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.doc .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 0.96rem;
}
.doc th, .doc td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.doc th { background: var(--surface); font-weight: 600; }

/* ---- Visually hidden (a11y) ---- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Responsive ---- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 32px; }
  .feature--reverse .feature-media { order: -1; }
  .what-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
  .privacy-points { grid-template-columns: 1fr 1fr; }
  .cta-actions { flex-direction: row; justify-content: center; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero { padding: 96px 0 80px; }
  .section { padding: 88px 0; }
}

/* Hide nav links on small screens (CTA stays) */
@media (max-width: 599px) {
  .nav-links .nav-link { display: none; }
}

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