/* ExamCorrect — marketing site (SPECS #44). Tokens copied VERBATIM from
   web/styles.css :root so the page and the app read as one product (Req 4.8).
   Phase 1 uses the font stacks with their system fallbacks and declares NO
   @font-face and NO external font source (Req 3.3, 4.10): self-hosted OFL woff2
   is a parked owner item. */

:root {
  --navy: #0a1a3c;
  --navy-soft: #24345a;
  --green: #1fa64a;
  --green-deep: #178a3d;
  --blue: #1e63ff;
  --blue-deep: #1550db;

  --bg: #f4f7fc;
  --panel-bg: #ffffff;
  --ink: #0a1a3c;
  --muted: #4a5878;
  --line: #e6eaf2;
  --brand: #1e63ff;
  --brand-dark: #1550db;
  --radius: 16px;

  --ink-dim: #4a5878;
  --ink-faint: #8a94ac;
  --bg-cool: #f5f7fb;
  --bg-mint: #eaf6ee;
  --border-strong: #d3dae8;

  --grad: linear-gradient(135deg, #1e63ff 0%, #1a9fd6 45%, #1fa64a 100%);
  --grad-text: linear-gradient(120deg, #1e63ff 0%, #1fa64a 90%);

  --shadow-sm: 0 2px 8px rgba(10, 26, 60, 0.06);
  --shadow-md: 0 12px 34px rgba(10, 26, 60, 0.1);
  --shadow-lg: 0 30px 70px rgba(10, 26, 60, 0.16);
  --shadow-blue: 0 14px 32px rgba(30, 99, 255, 0.26);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--panel-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- buttons ---------------------------------------------------------- */
.pill {
  display: inline-block; padding: 13px 24px; border-radius: var(--r-pill);
  font-family: var(--head); font-weight: 600; text-decoration: none; font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.pill-primary:hover { background: var(--blue-deep); }
.pill-secondary { border: 2px solid var(--line); color: var(--ink); background: #fff; }
.pill-green { background: var(--green); color: #fff; }
.pill-green:hover { background: var(--green-deep); }
.pill-sm { padding: 10px 18px; font-size: 15px; }

/* ---- header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 28px; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--navy); }
.brand-mark { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.band-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill-outline { border: 2px solid rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.pill-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* ---- hero ------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  max-width: var(--wrap); margin: 0 auto; padding: 72px 28px 96px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -0.02em; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.photo-card {
  margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; background: var(--bg-cool);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }

/* ---- pillars ---------------------------------------------------------- */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: var(--wrap); margin: 0 auto; padding: 56px 28px;
}
.card {
  background: var(--panel-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card .ico {
  width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--bg-mint);
  color: var(--green-deep); display: grid; place-items: center; font-weight: 700; margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.pillars-caption {
  grid-column: 1 / -1; margin: 8px auto 0; max-width: 640px; text-align: center;
  color: var(--muted); font-size: 15px;
}

/* ---- steps ------------------------------------------------------------ */
.steps { background: var(--bg); padding: 56px 28px; }
.steps h2 { font-size: 32px; text-align: center; margin-bottom: 34px; }
.steprow {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.step { background: #fff; border-radius: var(--r-md); padding: 18px; border: 1px solid var(--line); }
.step b { display: block; font-family: var(--head); color: var(--blue); font-size: 13px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---- trust ------------------------------------------------------------ */
.trust {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: var(--wrap); margin: 0 auto; padding: 56px 28px;
}
.trust h2 { font-size: 30px; margin-bottom: 10px; }
.trust-intro p { color: var(--muted); }
.trust-list { margin: 0; padding: 0; list-style: none; }
.trust-list li { padding: 10px 0 10px 30px; position: relative; color: var(--muted); }
.trust-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---- CTA band --------------------------------------------------------- */
.band { background: var(--navy); color: #fff; padding: 56px 28px; text-align: center; }
.band h2 { font-size: 34px; margin-bottom: 10px; }
.band p { color: #c8d2ea; margin-bottom: 26px; }

/* ---- footer ----------------------------------------------------------- */
.site-footer {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto; padding: 28px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer b { color: var(--ink); }
.transparency { margin-top: 4px; }
.contact-address { word-break: break-all; }

/* ---- reveal (site.js) -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }

/* ---- breakpoints ------------------------------------------------------- */
@media (max-width: 820px) {
  .site-header { padding: 12px 18px; flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; gap: 18px; justify-content: center; padding-top: 6px; font-size: 14px; }
  .hero { grid-template-columns: 1fr; padding: 44px 18px 72px; gap: 36px; }
  .hero h1 { font-size: 40px; }
  .hero-visual { max-width: 88vw; margin: 0 auto; }
  .pillars, .trust { grid-template-columns: 1fr; padding: 40px 18px; }
  .steprow { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 22px 18px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 32px; }
  .hero .sub { font-size: 17px; }
  .steprow { grid-template-columns: 1fr; }
  .pill { width: 100%; text-align: center; }
}

/* ---- motion preference -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill, .pill:hover { transition: none; transform: none; }
}
