/* CandidRecord site.css v2 (Build 002, "The Ledger" elevation pass) */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0E1B2C;
  --ink-soft: #3D4C61;
  --paper: #FFFFFF;
  --paper-tint: #F4F7FA;
  --green: #0E9F6E;
  --green-deep: #0B7A55;
  --green-soft: #E7F6F0;
  --amber: #D98A0B;
  --amber-deep: #935B07;
  --amber-soft: #FFF7E8;
  --red: #C2402F;
  --red-deep: #9B3024;
  --red-soft: #FCEDEA;
  --hero-grad-a: #0E1B2C;
  --hero-grad-b: #123B33;
  --line: #DCE4EE;
  --radius: 16px;
  --radius-s: 10px;
  --shadow-1: 0 1px 2px rgba(14, 27, 44, 0.05), 0 6px 18px rgba(14, 27, 44, 0.06);
  --shadow-2: 0 2px 4px rgba(14, 27, 44, 0.06), 0 18px 44px rgba(14, 27, 44, 0.12);
  --shadow-glow: 0 24px 70px rgba(8, 16, 28, 0.55), 0 0 90px rgba(14, 159, 110, 0.14);
  --display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { color: var(--paper); background: var(--green-deep); }

img, svg { max-width: 100%; }

a {
  color: var(--green-deep);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
  transition: color 160ms var(--ease-out);
}

a:hover { color: var(--ink); }

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw + 1rem, 4.4rem); }
h2 { font-size: clamp(1.75rem, 2.6vw + 0.6rem, 2.6rem); }
h3 { font-size: clamp(1.12rem, 0.6vw + 1rem, 1.3rem); letter-spacing: -0.012em; }

p { margin: 0 0 1rem; }

.wrap { width: min(100% - 40px, 1140px); margin: 0 auto; }
.narrow { max-width: 760px; }

/* ---------- focus + skip ---------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-160%);
  padding: 0.75rem 1.1rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  font-weight: 600;
  transition: transform 200ms var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(14, 27, 44, 0.07);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .mark {
  width: 34px;
  height: 34px;
  flex: none;
  filter: drop-shadow(0 3px 8px rgba(14, 159, 110, 0.35));
}

.wordmark strong { color: var(--green); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }

.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}

.site-nav a:not(.button) {
  position: relative;
  padding: 0.2rem 0;
}

.site-nav a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--green);
  transition: right 220ms var(--ease-out);
}

.site-nav a:not(.button):hover::after,
.site-nav a:not(.button)[aria-current="page"]::after { right: 0; }

.menu-toggle { display: none; }

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  color: var(--paper);
  background: linear-gradient(160deg, #12B47E, var(--green-deep));
  border: 0;
  border-radius: 999px;
  font: 700 1rem/1 var(--body);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(11, 122, 85, 0.35), 0 10px 26px rgba(11, 122, 85, 0.22);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), filter 180ms var(--ease-out);
}

.button:hover {
  color: var(--paper);
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(11, 122, 85, 0.38), 0 16px 36px rgba(11, 122, 85, 0.28);
}

.button:active { transform: translateY(0); }

.button-small { min-height: 42px; padding: 0.6rem 1.1rem; font-size: 0.92rem; }

/* ---------- dark sections: aurora + ledger grid ---------- */

.section-dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background: linear-gradient(150deg, var(--hero-grad-a) 30%, var(--hero-grad-b));
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46rem 30rem at 82% -10%, rgba(14, 159, 110, 0.28), transparent 60%),
    radial-gradient(34rem 26rem at 4% 110%, rgba(18, 180, 126, 0.14), transparent 60%);
}

.section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 56px);
  -webkit-mask-image: radial-gradient(80% 90% at 50% 10%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 90% at 50% 10%, #000 30%, transparent 100%);
}

/* signature: confidence-flag hairline (green > amber > red) */
.flag-hairline {
  display: block;
  height: 3px;
  border: 0;
  margin: 0;
  background: linear-gradient(to right, var(--green) 0 55%, var(--amber) 55% 85%, var(--red) 85% 100%);
}

/* ---------- hero ---------- */

.hero { padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem); }

.hero-grid { display: grid; gap: 3rem; align-items: center; }

.hero-copy { max-width: 640px; }

.hero h1 { max-width: 14ch; margin-bottom: 0.5em; }

.hero h1 .hl {
  position: relative;
  font-style: normal;
  white-space: nowrap;
  color: #9BEFCC;
}

.hero h1 .hl svg {
  position: absolute;
  left: 2%;
  bottom: -0.18em;
  width: 96%;
  height: 0.3em;
  overflow: visible;
}

.hero h1 .hl svg path {
  fill: none;
  stroke: var(--green);
  stroke-width: 7;
  stroke-linecap: round;
}

.js .hero h1 .hl svg path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw-line 900ms 500ms var(--ease-out) forwards;
}

@keyframes draw-line { to { stroke-dashoffset: 0; } }

.hero-sub {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.15rem);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-dark .eyebrow { color: #8CE0BF; }

/* ---------- waitlist form ---------- */

.waitlist-form { margin-top: 2rem; }

.field-row { display: grid; gap: 0.7rem; }

label { font-weight: 600; font-size: 0.95rem; }

input[type="email"],
input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1.2rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  box-shadow: var(--shadow-1);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

input[type="email"]:focus,
input[type="text"]:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 4px rgba(14, 159, 110, 0.22);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note, .form-status {
  max-width: 60ch;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.form-status:empty { margin: 0; }
.form-status[data-state="success"] { color: #A8F0D1; font-weight: 600; }
.form-status[data-state="error"] { color: #FFD4CC; font-weight: 600; }

/* ---------- mockup panels ---------- */

.mockup-panel {
  position: relative;
  padding: 1.1rem 1.1rem 0.6rem;
  color: var(--ink);
  background: rgba(10, 20, 34, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.js .hero .mockup-panel { animation: float 7s ease-in-out infinite alternate; }

@keyframes float {
  from { transform: translateY(-5px) rotate(-0.25deg); }
  to { transform: translateY(7px) rotate(0.25deg); }
}

.mockup-panel.small {
  align-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mockup-caption {
  margin: 0 0.2rem 0.75rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
}

.mockup-panel.small .mockup-caption { color: var(--ink-soft); }

.mockup-svg { display: block; width: 100%; height: auto; }

.mockup-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(220, 228, 238, 0.85);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(14, 27, 44, 0.18);
}

.mini-svg { display: block; width: 100%; max-width: 380px; margin-top: 1.25rem; }

/* ---------- trust strip ---------- */

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.trust-grid { display: grid; gap: 1rem; padding: 1.4rem 0; }

.trust-grid p {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

.trust-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 12px;
}

.trust-icon svg { width: 22px; height: 22px; }

/* ---------- sections ---------- */

.section, .page-hero { padding: clamp(4rem, 8vw, 6.75rem) 0; }

.section-tint { background: var(--paper-tint); }

.section-heading { max-width: 740px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }

.section-heading h2 { margin-bottom: 0.4em; }

/* ---------- cards ---------- */

.card-grid { display: grid; gap: 1.1rem; }

.card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.5rem;
  background: var(--paper);
  border: 1px solid rgba(14, 27, 44, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card:hover::before { transform: scaleX(1); }

.card h3 { margin-bottom: 0.45em; }

.card p { color: var(--ink-soft); }

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 12px;
}

.card-icon svg { width: 22px; height: 22px; }

.card-icon.tone-amber { color: var(--amber-deep); background: var(--amber-soft); }
.card-icon.tone-red { color: var(--red-deep); background: var(--red-soft); }
.card-icon.tone-ink { color: var(--paper); background: var(--ink); }

.card p:last-child, .step p:last-child, .copy-block p:last-child { margin-bottom: 0; }

.closing-line {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  max-width: 62ch;
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.2vw + 0.9rem, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.closing-line::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--green), var(--amber));
  transform: translateY(-0.35em);
}

/* ---------- steps ---------- */

.steps { display: grid; gap: 1.1rem; counter-reset: step; }

.step {
  position: relative;
  overflow: hidden;
  padding: 1.7rem 1.5rem 1.6rem;
  background: var(--paper);
  border: 1px solid rgba(14, 27, 44, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.step-number {
  position: absolute;
  top: -1.4rem;
  right: 0.4rem;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 2px rgba(14, 159, 110, 0.22);
  font-family: var(--display);
  font-size: 7.5rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

@supports not (-webkit-text-stroke: 2px black) {
  .step-number { color: rgba(14, 159, 110, 0.14); }
}

.step h3, .step p, .step svg { position: relative; z-index: 1; }

.step h3 { max-width: 17ch; }

.step p { color: var(--ink-soft); }

/* ---------- features layout ---------- */

.features { grid-template-columns: 1fr; }

.feature-layout { display: grid; gap: 1.6rem; }

.two-col, .faq-grid { display: grid; gap: 1.8rem; }

.copy-block { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; }

.copy-block h2 { margin-top: 2rem; color: var(--ink); }
.copy-block h2:first-child { margin-top: 0; }

.caveat {
  padding: 0.9rem 1.1rem;
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--amber-deep);
}

/* ---------- flags ("stamps") ---------- */

.flag-row { display: grid; gap: 1.1rem; }

.flag-chip {
  display: grid;
  gap: 0.3rem;
  padding: 1.5rem 1.4rem;
  background: var(--paper);
  border: 2px dashed currentColor;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform 220ms var(--ease-out);
}

.flag-chip:nth-child(1) { transform: rotate(-1deg); }
.flag-chip:nth-child(3) { transform: rotate(1deg); }
.flag-chip:hover { transform: rotate(0) translateY(-3px); }

.flag-chip strong {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.flag-glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
}

.flag-glyph svg { width: 18px; height: 18px; }

.flag-chip span { color: var(--ink-soft); font-size: 0.97rem; }

.confirmed { color: var(--green-deep); }
.verify { color: var(--amber-deep); }
.blocked { color: var(--red-deep); }

.flags-section .closing-line { margin-inline: auto; justify-content: center; text-align: left; }

/* ---------- FAQ details ---------- */

.details-list { display: grid; gap: 0.85rem; }

details {
  background: var(--paper);
  border: 1px solid rgba(14, 27, 44, 0.07);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-1);
  transition: box-shadow 200ms var(--ease-out);
}

details:hover { box-shadow: var(--shadow-2); }

summary {
  position: relative;
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::before, summary::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green-deep);
  transform: translateY(-50%);
  transition: transform 240ms var(--ease-out);
}

summary::after { transform: translateY(-50%) rotate(90deg); }

details[open] summary::after { transform: translateY(-50%) rotate(0deg); }

details p { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }

/* ---------- final CTA ---------- */

.final-cta { padding: clamp(4.5rem, 9vw, 7rem) 0; text-align: left; }

.cta-inner { max-width: 720px; }

.cta-inner h2 { font-size: clamp(2rem, 3.4vw + 0.6rem, 3.1rem); }

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.74);
  background: var(--ink);
  padding: 3rem 0 2.4rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--green) 0 55%, var(--amber) 55% 85%, var(--red) 85% 100%);
}

.footer-inner { display: grid; gap: 1.6rem; }

.footer-wordmark { color: var(--paper); }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }

.site-footer a { color: rgba(255, 255, 255, 0.88); }
.site-footer a:hover { color: var(--paper); }

/* ---------- secondary pages ---------- */

.page-main { min-height: 54vh; }

.page-hero {
  position: relative;
  background: var(--paper-tint);
  border-bottom: 1px solid var(--line);
}

.not-found .page-hero { min-height: 48vh; display: grid; align-items: center; }

.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;
}

/* ---------- reveal + stagger ---------- */

.reveal { opacity: 1; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

.js .stagger > .reveal:nth-child(2) { transition-delay: 90ms; }
.js .stagger > .reveal:nth-child(3) { transition-delay: 180ms; }
.js .stagger > .reveal:nth-child(4) { transition-delay: 270ms; }
.js .stagger > .reveal:nth-child(5) { transition-delay: 360ms; }
.js .stagger > .reveal:nth-child(6) { transition-delay: 450ms; }

/* ---------- breakpoints ---------- */

@media (min-width: 720px) {
  body { font-size: 17px; }

  .hero-grid, .two-col, .faq-grid, .feature-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    align-items: center;
  }

  .feature-layout { align-items: start; }

  .field-row { grid-template-columns: 1fr auto; align-items: end; }
  .field-row label { grid-column: 1 / -1; }

  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .card-grid.three, .steps, .flag-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-inner { grid-template-columns: 1.4fr auto 1fr; align-items: start; }
}

@media (min-width: 1040px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .js .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    cursor: pointer;
  }

  .menu-bars, .menu-bars::before, .menu-bars::after {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
  }

  .menu-bars { position: relative; }

  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -7px; }
  .menu-bars::after { top: 7px; }

  .header-inner { flex-wrap: wrap; }

  .js .site-nav { display: none; width: 100%; padding: 0.9rem 0 0.4rem; }
  .js .site-nav.is-open { display: grid; gap: 0.85rem; }

  .no-js .site-nav { flex-wrap: wrap; }

  .hero h1 { max-width: 12ch; }
  .hero h1 .hl { white-space: normal; }

  .step-number { font-size: 6rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .js .hero .mockup-panel { animation: none; }
  .js .hero h1 .hl svg path { stroke-dashoffset: 0; animation: none; }
  .flag-chip:nth-child(1), .flag-chip:nth-child(3) { transform: none; }
}
