/* TrueRecord — design system + landing page styles
   Plain CSS, custom properties for tokens. No build step. */

/* ---------- Tokens ---------- */
:root {
  --navy:        #0E1B2E;
  --charcoal:    #1B2434;
  --ink:         #15181F;
  --paper:       #FBFAF7;
  --surface:     #FFFFFF;
  --surface-alt: #F4F2EC;

  --green:       #15724B;  /* verified */
  --green-bright:#1FA76A;
  --green-tint:  #E7F4EE;

  --amber:       #B45309;  /* urgency / flags */
  --amber-tint:  #FDF3E7;

  --muted:       #5A6573;
  --muted-soft:  #8A93A0;
  --line:        #E6E2D9;
  --line-strong: #D4CFC3;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(14,27,46,.06), 0 1px 3px rgba(14,27,46,.08);
  --shadow:    0 4px 6px rgba(14,27,46,.05), 0 10px 24px rgba(14,27,46,.08);
  --shadow-lg: 0 12px 32px rgba(14,27,46,.12), 0 4px 8px rgba(14,27,46,.06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }
img, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--surface-alt); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: 14px 26px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-bright); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Top banner ---------- */
.banner {
  background: var(--navy); color: #EAF1FB; font-size: .92rem;
  border-bottom: 2px solid var(--green-bright);
}
.banner .wrap { display: flex; align-items: center; gap: 12px; padding-top: 11px; padding-bottom: 11px; flex-wrap: wrap; }
.banner .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green-bright); flex: none; box-shadow: 0 0 0 0 rgba(31,167,106,.6); animation: pulse 2.2s infinite; }
.banner a { color: #fff; text-decoration: underline; font-weight: 600; white-space: nowrap; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,167,106,.55); } 70% { box-shadow: 0 0 0 8px rgba(31,167,106,0); } 100% { box-shadow: 0 0 0 0 rgba(31,167,106,0); } }

/* ---------- Header / nav ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(251,250,247,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--charcoal); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--green); text-decoration: none; }
.nav .btn { padding: 10px 18px; }
.nav-links { display: flex; gap: 28px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.22rem; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.02rem; color: var(--charcoal); }
.hero-points .tick { color: var(--green); flex: none; margin-top: 3px; }

/* ---------- Demo widget ---------- */
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.demo-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-head h3 { margin: 0; font-size: 1.1rem; }
.demo-head .tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: var(--green-tint); padding: 4px 9px; border-radius: 100px; }
.demo-body { padding: 22px; }

.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius-sm);
  padding: 34px 22px; text-align: center; transition: border-color .15s, background .15s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--green-bright); background: var(--green-tint); }
.dropzone .ico { color: var(--green); margin: 0 auto 12px; }
.dropzone .big { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.dropzone .small { font-size: .88rem; color: var(--muted); margin: 0; }
.demo-or { text-align: center; font-size: .85rem; color: var(--muted-soft); margin: 14px 0; }
.demo-meta { font-size: .8rem; color: var(--muted-soft); margin-top: 14px; text-align: center; }
.demo-meta a { color: var(--muted); }

/* progress */
.steps { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--muted-soft); font-weight: 500; transition: color .2s; }
.steps li .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: all .2s; }
.steps li.active { color: var(--navy); }
.steps li.active .dot { border-color: var(--green-bright); }
.steps li.active .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); animation: pulse 1.4s infinite; }
.steps li.done { color: var(--charcoal); }
.steps li.done .dot { background: var(--green); border-color: var(--green); }
.steps li.done .dot::after { content: ""; width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(0,-1px); }
.demo-filename { font-size: .9rem; color: var(--muted); margin-bottom: 18px; word-break: break-all; }
.demo-filename strong { color: var(--navy); }

/* transcript preview */
.transcript { font-size: .92rem; line-height: 1.7; }
.transcript .line { margin-bottom: 10px; }
.transcript .spk { font-weight: 700; color: var(--navy); }
.transcript .ts { color: var(--muted-soft); font-size: .8rem; font-variant-numeric: tabular-nums; margin-right: 8px; }
.transcript .flag { background: var(--amber-tint); color: var(--amber); border-radius: 4px; padding: 0 5px; font-size: .82rem; font-weight: 600; }
.preview-wrap { position: relative; }
.preview-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(to bottom, rgba(255,255,255,0), var(--surface) 88%); pointer-events: none; }
.gate {
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 20px;
}
.gate h4 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--navy); margin: 0 0 4px; }
.gate p { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.field-row { display: flex; gap: 10px; }
.input {
  flex: 1; font-family: var(--sans); font-size: 1rem; padding: 13px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--green-bright); box-shadow: 0 0 0 3px var(--green-tint); }
.gate .fineprint { font-size: .76rem; color: var(--muted-soft); margin: 12px 0 0; }
.hidden { display: none !important; }

/* unlocked banner */
.unlocked-note { display: flex; align-items: center; gap: 10px; background: var(--green-tint); color: var(--green); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; font-weight: 600; margin-bottom: 16px; }

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trustbar .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; padding: 22px 24px; }
.trustbar .item { display: flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 500; color: var(--charcoal); }
.trustbar .item svg { color: var(--green); flex: none; }

/* ---------- Steps / how it works ---------- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.card .num { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--green); width: 38px; height: 38px; border-radius: 50%; background: var(--green-tint); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico { color: var(--green); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; color: var(--muted); margin: 0; }

/* ---------- Pricing ---------- */
.pricing-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pricing-table table { width: 100%; border-collapse: collapse; }
.pricing-table th, .pricing-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.pricing-table thead th { background: var(--navy); color: #EAF1FB; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover { background: var(--surface-alt); }
.pricing-table .tier { font-weight: 600; color: var(--navy); }
.pricing-table .price { font-family: var(--serif); font-weight: 600; color: var(--navy); white-space: nowrap; }
.pricing-table .price small { font-family: var(--sans); font-weight: 500; color: var(--muted); font-size: .8rem; }
.pricing-note { font-size: .9rem; color: var(--muted); margin-top: 16px; max-width: 70ch; }
.pricing-note strong { color: var(--charcoal); }

/* ---------- Trust / honesty ---------- */
.trust-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.faq-q { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-q summary { font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.02rem; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: "+"; color: var(--green); font-size: 1.4rem; line-height: 1; flex: none; }
.faq-q[open] summary::after { content: "–"; }
.faq-q p { margin: 12px 0 2px; color: var(--muted); font-size: .96rem; }
.honesty-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.honesty-list li { display: flex; gap: 13px; }
.honesty-list .ico { color: var(--green); flex: none; margin-top: 2px; }
.honesty-list strong { display: block; color: var(--navy); margin-bottom: 2px; }
.honesty-list span { color: var(--muted); font-size: .96rem; }

/* ---------- Quote / CTA ---------- */
.quote-card { background: var(--navy); color: #EAF1FB; border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow-lg); }
.quote-card h2 { color: #fff; }
.quote-card .lead { color: #B9C6D8; }
.quote-form { display: grid; gap: 16px; margin-top: 28px; }
.quote-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: block; font-size: .85rem; font-weight: 600; color: #B9C6D8; margin-bottom: 6px; }
.quote-form .input, .quote-form select, .quote-form textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff;
  font-family: var(--sans); font-size: 1rem; padding: 13px 14px; border-radius: var(--radius-sm);
}
.quote-form .input::placeholder, .quote-form textarea::placeholder { color: #8A97AB; }
.quote-form select { appearance: none; }
.quote-form select option { color: #15181F; }
.quote-form .input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--green-bright); box-shadow: 0 0 0 3px rgba(31,167,106,.25); }
.form-success { background: var(--green-tint); color: var(--green); border-radius: var(--radius-sm); padding: 18px 20px; font-weight: 500; }

/* ---------- Footer ---------- */
.site-foot { background: var(--charcoal); color: #AEB7C4; font-size: .9rem; padding: 48px 0 36px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-foot a { color: #D6DCE5; }
.site-foot .brand { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-disclaimer { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 20px; font-size: .8rem; color: #8A93A0; max-width: 80ch; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted-soft); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.4rem; margin-top: 36px; }
.legal p, .legal li { color: var(--charcoal); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .trust-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards--3, .cards--4 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .quote-form .row2 { grid-template-columns: 1fr; }
  .quote-card { padding: 32px 22px; }
  .field-row { flex-direction: column; }
  .pricing-table th, .pricing-table td { padding: 14px; font-size: .92rem; }
}
