/* =========================================================================
   Ledgermend — validation landing page
   Restrained, trustworthy B2B palette. Strong type. No clutter.
   ========================================================================= */

:root {
  /* Brand + neutrals */
  --navy:        #0f2942;  /* primary text / headers */
  --navy-2:      #1c3d5a;
  --brand:       #0e7c5b;  /* "safe" green accent */
  --brand-dark:  #0a5e45;
  --brand-soft:  #e6f4ef;
  --ink:         #16324c;
  --muted:       #56697d;
  --line:        #e3eaf0;
  --line-strong: #cdd9e3;
  --bg:          #ffffff;
  --bg-soft:     #f4f8fa;
  --bg-deep:     #0f2942;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 41, 66, .06), 0 1px 3px rgba(15, 41, 66, .08);
  --shadow-md: 0 6px 16px rgba(15, 41, 66, .08), 0 2px 6px rgba(15, 41, 66, .06);
  --shadow-lg: 0 18px 48px rgba(15, 41, 66, .14);

  --radius:    14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: var(--brand-dark); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); background: #fff; }

.btn--outline { background: #fff; color: var(--brand-dark); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--brand); background: var(--brand-soft); }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav__links a:hover { color: var(--navy); }
.nav .btn { margin-left: 8px; }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__name { font-weight: 800; font-size: 19px; color: var(--navy); letter-spacing: -0.02em; }
.brand__accent { color: var(--brand); }
.brand__mark { flex: none; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  background:
    radial-gradient(900px 460px at 78% -8%, var(--brand-soft) 0%, rgba(230,244,239,0) 62%),
    linear-gradient(180deg, #fbfdfe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__inner { padding: 84px 24px 80px; max-width: 880px; text-align: center; margin: 0 auto; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand-dark);
  background: var(--brand-soft); border: 1px solid #c9e7dc;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero__title { font-size: clamp(34px, 5.5vw, 56px); font-weight: 800; }
.hero__sub {
  font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 22px auto 0;
  max-width: 660px;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }

.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.hero__trust {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: center;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--navy-2); }
.hero__trust svg { width: 20px; height: 20px; flex: none; fill: var(--brand); background: var(--brand-soft); border-radius: 50%; padding: 2px; }

/* ============================ SECTIONS ============================ */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(27px, 3.6vw, 38px); font-weight: 800; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.kicker--brand { color: var(--brand); }
.section__lead { font-size: 18px; color: var(--muted); margin-top: 16px; }

/* ============================ DEMO VIDEO ============================ */
.section--demo {
  padding-top: 72px;
  background:
    radial-gradient(820px 380px at 50% -12%, var(--brand-soft) 0%, rgba(230,244,239,0) 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

/* Three-beat summary (so a muted viewer instantly gets the story) */
.demo__beats {
  list-style: none; padding: 0;
  margin: 0 auto 30px; max-width: 920px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.demo__beat {
  flex: 1 1 0; min-width: 210px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  font-size: 15px; color: var(--ink); line-height: 1.35;
}
.demo__beat strong { color: var(--navy); font-weight: 700; }
.demo__beat-num {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.demo__beat:nth-child(3) .demo__beat-num { background: var(--brand); color: #fff; }

/* Framed video */
.demo__figure { margin: 0; }
.demo__media {
  position: relative;
  max-width: 940px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0b1d30;
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.demo__video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1600 / 888;
}
.demo__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15, 41, 66, .72); color: #eaf2f8;
  font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.demo__badge svg path:first-child { fill: #eaf2f8; }
.demo__badge svg path:last-child { fill: none; stroke: #eaf2f8; stroke-width: 2; }
.demo__fallback { line-height: 1.5; color: #cddae6; font-size: 15px; padding: 24px; }
.demo__fallback a { color: #7fe0bf; text-decoration: underline; }
.demo__caption {
  text-align: center; color: var(--muted); font-size: 15px;
  margin: 18px auto 0; max-width: 660px; line-height: 1.5;
}

/* ============================ GRID + CARDS ============================ */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}

/* Problem cards */
.problem h3 { font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.problem h3::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: #e2574c; box-shadow: 0 0 0 4px rgba(226,87,76,.14);
}
.problem p { color: var(--muted); font-size: 15.5px; }

/* ============================ STEPS ============================ */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative;
}
.step__num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--navy);
  color: #fff; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step:nth-child(3) .step__num { background: var(--brand); }
.step__body h3 { font-size: 20px; margin-bottom: 10px; }
.step__body p { color: var(--muted); font-size: 15.5px; }
.step__body strong { color: var(--ink); font-weight: 600; }

/* ============================ SAFEGUARDS ============================ */
.safeguard { display: flex; gap: 18px; align-items: flex-start; }
.safeguard__icon { flex: none; width: 52px; height: 52px; border-radius: 13px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; }
.safeguard__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--brand-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.safeguard__icon svg .ico-fg { stroke: var(--brand); }
.safeguard h3 { font-size: 18px; margin-bottom: 8px; }
.safeguard p { color: var(--muted); font-size: 15.5px; }

/* ============================ PRICING ============================ */
.pricing { max-width: 840px; margin: 0 auto; align-items: stretch; }
.price { display: flex; flex-direction: column; padding: 32px; position: relative; }
.price--featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.price__badge {
  position: absolute; top: -13px; right: 28px; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.price__tag { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark); }
.price__desc { color: var(--muted); font-size: 15px; margin-top: 8px; min-height: 44px; }
.price__amount { font-size: 52px; font-weight: 800; color: var(--navy); margin-top: 14px; line-height: 1; letter-spacing: -0.03em; }
.price__currency { font-size: 26px; font-weight: 700; vertical-align: super; margin-right: 2px; }
.price__period { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price__sub { font-size: 14px; color: var(--muted); margin-top: 8px; }
.price__sub strong { color: var(--ink); }
.price__features { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; }
.price__features li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink); }
.price__features li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%230a5e45' d='m8 13-3-3 1.4-1.4L8 10.2l5.6-5.6L15 6Z'/%3E%3C/svg%3E") center/14px no-repeat;
  border-radius: 50%;
}
.price .btn { margin-top: auto; }
.pricing__note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 28px; }

/* ============================ WAITLIST ============================ */
.waitlist { background: var(--bg-deep); color: #d8e3ec; border-top: 1px solid var(--line); }
.waitlist__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.waitlist__copy .kicker { color: #5fd3ab; }
.waitlist__copy h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); }
.waitlist__copy > p { color: #aebfce; margin-top: 16px; font-size: 17px; }
.waitlist__perks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.waitlist__perks li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; color: #cddae6; }
.waitlist__perks svg { width: 20px; height: 20px; flex: none; fill: #fff; background: var(--brand); border-radius: 50%; padding: 3px; }
.waitlist__contact { text-align: center; margin: 18px 0 0; font-size: 14.5px; color: #aebfce; }
.waitlist__contact a { color: #7fe0bf; font-weight: 600; }
.waitlist__contact a:hover { text-decoration: underline; }

/* ============================ FORM ============================ */
.form, .form__success {
  background: #fff; color: var(--ink); border-radius: 16px; padding: 30px;
  box-shadow: var(--shadow-lg);
}
.form__title { font-size: 21px; margin-bottom: 22px; }
.field { border: 0; padding: 0; margin: 0 0 20px; }
.field label, .field legend { display: block; font-weight: 600; font-size: 14.5px; color: var(--navy); margin-bottom: 8px; padding: 0; }
.field legend { line-height: 1.4; }
.req { color: var(--brand); }

.field input[type="email"], .field input[type="text"] {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #9aaabb; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,124,91,.14); }

.radios { display: grid; gap: 9px; }
.radios--inline { grid-auto-flow: column; grid-auto-columns: max-content; gap: 8px; }
.radio {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 14px;
  font-size: 14.5px; color: var(--ink); transition: border-color .15s ease, background .15s ease;
  user-select: none;
}
.radios--inline .radio { padding: 9px 13px; }
.radio:hover { border-color: var(--brand); }
.radio input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; flex: none; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(14,124,91,.14); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__fineprint { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.form__status { font-size: 14px; margin-top: 14px; text-align: center; min-height: 0; }
.form__status.is-error { color: #c43b2f; }
.form__status.is-loading { color: var(--muted); }

/* Success state */
.form__success { text-align: center; }
.form__success-icon { margin: 0 auto 8px; }
.form__success-icon svg { width: 60px; height: 60px; fill: none; }
.form__success-icon circle { fill: var(--brand-soft); }
.form__success-icon path { stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.form__success h3 { font-size: 22px; margin-bottom: 10px; }
.form__success p { color: var(--muted); font-size: 15.5px; }

/* ============================ FOOTER ============================ */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer__legal { color: var(--muted); font-size: 13px; max-width: 420px; text-align: right; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .grid--3, .steps { grid-template-columns: repeat(2, 1fr); }
  .waitlist__inner { grid-template-columns: 1fr; gap: 36px; }
  .nav__links { display: none; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .hero__inner { padding: 60px 20px 56px; }
  .grid--2, .grid--3, .steps, .pricing { grid-template-columns: 1fr; }
  .radios--inline { grid-auto-flow: row; grid-auto-columns: auto; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__legal { text-align: left; }
  .hero__cta .btn { width: 100%; }
}

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