/* ClosingVault marketing site — shared styles.
   Look: "Bold & modern" (dark ground #0E1116, accent #FF6A2B,
   Bricolage Grotesque headings, DM Sans body). No framework. */

:root {
  --bg: #0E1116;
  --bg-alt: #151A21;
  --surface: #161B23;
  --surface-2: #1D2430;
  --line: #222A36;
  --line-2: #263040;
  --text: #E9ECF1;
  --text-strong: #FFFFFF;
  --text-soft: #D5DBE4;
  --muted: #B6BECB;
  --faint: #8C97A8;
  --accent: #FF6A2B;
  --accent-link: #FF8A57;
  --accent-link-hover: #FFB08C;
  --focus: #FFD3BF;
  --radius: 18px;
  --wrap: 1240px;
  --gutter: 32px;
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a { color: var(--accent-link); }
a:hover { color: var(--accent-link-hover); }

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

h1, h2, h3 { color: var(--text-strong); margin: 0; }
h1, h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; }
h3 { font-size: 21px; line-height: 1.3; }
p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Header ---------- */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 28px; padding-top: 24px; padding-bottom: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
  color: var(--text-strong); text-decoration: none;
}
.brand:hover { color: var(--text-strong); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
}
.site-nav { order: 3; flex: 1 1 100%; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
}
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text-strong); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.header-cta { order: 2; }
@media (min-width: 1040px) {
  .site-nav { order: 2; flex: 0 1 auto; }
  .header-cta { order: 3; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 17px;
  text-decoration: none; border-radius: 999px; padding: 15px 26px; border: 0; cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #FF8550; color: var(--bg); }
.btn-light { background: #FFFFFF; color: var(--bg); }
.btn-light:hover { background: #E9ECF1; color: var(--bg); }
.btn-small { font-size: 15px; padding: 11px 18px; }
.btn-ghost { color: var(--text); padding-left: 6px; padding-right: 6px; font-weight: 500; }
.btn-ghost:hover { color: var(--text-strong); }

/* ---------- Sections ---------- */
.section { padding-top: 104px; padding-bottom: 104px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 840px; margin-bottom: 48px; }
.eyebrow {
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.section-head .lead { max-width: 760px; }
.strong-line { color: var(--text-strong); font-weight: 700; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.section:not(.section-alt) .card { background: var(--surface); border-color: var(--line-2); }
.card p { color: var(--muted); line-height: 1.55; }

/* ---------- Hero ---------- */
.hero .wrap {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
  padding-top: 64px; padding-bottom: 96px;
}
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-media { flex: 1 1 520px; min-width: 0; margin: 0; }
.hero-sub .wrap { padding-top: 56px; padding-bottom: 80px; }
.hero-sub .hero-copy { max-width: 860px; flex-basis: 100%; }

.demo-frame {
  position: relative; aspect-ratio: 16 / 10; width: 100%;
  border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.demo-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center; color: var(--faint); font-size: 15px;
  background:
    linear-gradient(135deg, rgba(255, 106, 43, 0.10), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.03) 39px 40px);
}
.demo-placeholder strong { color: var(--text-soft); font-family: var(--font-head); font-size: 20px; }
.demo-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--text-strong);
  background: rgba(14, 17, 22, 0.82); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.hero-media figcaption { margin-top: 12px; color: var(--faint); font-size: 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: none; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--font-head); font-size: 60px; font-weight: 800; color: var(--accent); line-height: 1; }
.steps h3 { font-size: 23px; }
.steps p { color: var(--muted); }

/* ---------- Audience cards (home) ---------- */
.audience-card { padding: 36px; gap: 18px; border-radius: 22px; }
.audience-card h3 { font-family: var(--font-head); font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.audience-card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.audience-card .card-link:hover { text-decoration: underline; }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 22px; color: var(--text-soft); line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.compare caption { text-align: left; color: var(--faint); font-size: 14px; padding-bottom: 12px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); background: var(--surface); }
.compare thead th.cv { color: var(--accent); }
.compare tbody th { color: var(--text-strong); font-weight: 700; width: 22%; }
.compare td.old { color: var(--faint); width: 34%; }
.compare td.cv { color: var(--text-soft); background: rgba(255, 106, 43, 0.06); }
@media (max-width: 760px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { border-bottom: 1px solid var(--line-2); padding: 18px 0; }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border: 0; padding: 4px 18px; }
  .compare tbody th { font-size: 18px; padding-bottom: 8px; }
  .compare td::before { content: attr(data-label); display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
  .compare td.cv { background: transparent; margin-top: 8px; }
  .compare td.cv::before { color: var(--accent); }
}

.taglines { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* ---------- Security ---------- */
.security-grid { display: grid; gap: 28px 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.security-grid h3 { font-size: 19px; margin-bottom: 8px; }
.security-grid p { color: var(--muted); line-height: 1.55; }
.pending { border: 1px dashed var(--line-2); border-radius: 14px; padding: 18px 20px; }
.pending-tag { color: var(--faint); font-weight: 700; }

/* ---------- Pricing ---------- */
.price-card { padding: 40px; border-radius: 24px; background: var(--bg); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 16px; }
.price-card.featured { border: 2px solid var(--accent); }
.price-label { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.price-card.featured .price-label { color: var(--accent); }
.price-big { font-family: var(--font-head); font-size: clamp(40px, 5vw, 56px); font-weight: 800; color: var(--text-strong); line-height: 1; }
.price-card p:not(.price-label):not(.price-big) { color: var(--text-soft); font-size: 18px; line-height: 1.5; }
.price-card .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.faq details { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 700; color: var(--text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--accent); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { display: inline; font-size: 18px; font-family: var(--font-body); }
.faq .answer { padding: 0 22px 22px; color: var(--muted); }

/* ---------- Cross links ---------- */
.cross { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cross a {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line-2); text-decoration: none; color: var(--text);
}
.cross a:hover { border-color: var(--accent); color: var(--text); }
.cross strong { color: var(--text-strong); font-family: var(--font-head); font-size: 22px; }
.cross span { color: var(--muted); }

/* ---------- CTA ---------- */
.cta-wrap { padding-bottom: 104px; }
.cta {
  background: var(--accent); color: var(--bg); border-radius: 28px; padding: 64px 56px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.cta h2 { color: var(--bg); line-height: 1; }
.cta-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta-copy p { font-size: 19px; line-height: 1.5; }
.cta form { flex: 1 1 360px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cta input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 17px; padding: 15px 18px;
  border-radius: 999px; border: 2px solid var(--bg); background: #FFFFFF; color: var(--bg);
}
.cta input::placeholder { color: #4A5260; }
.cta button { font: inherit; font-weight: 700; font-size: 17px; padding: 15px 26px; border-radius: 999px; border: 0; background: var(--bg); color: #FFFFFF; cursor: pointer; }
.cta button:hover { background: #222A36; }
.cta :focus-visible { outline-color: var(--bg); }
.form-note { flex-basis: 100%; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between;
  padding-top: 32px; padding-bottom: 40px; color: var(--faint); font-size: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text-strong); text-decoration: underline; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-top: 80px; padding-bottom: 80px; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 64px; gap: 40px; }
  .lead { font-size: 18px; }
  .card, .audience-card, .price-card { padding: 24px; }
  .cta { padding: 40px 22px; border-radius: 22px; }
  .cta-wrap { padding-bottom: 72px; }
  .cta button { flex: 1 1 100%; }
  .site-nav ul { gap: 4px 16px; }
  .header-cta .btn { padding: 10px 14px; font-size: 14px; }
}
