/* CD Ladder — Marketing Site
   Shared stylesheet for all pages
   Design System: Manrope · Indigo #2F1CD1 · Cloud #EDEFF7
   Manrope is loaded via <link> in each page's <head> (not @import here,
   which would block rendering and double-load the font). */

/* ─── Custom properties ──────────────────────────────────── */
:root {
  --indigo:       #2F1CD1;
  --indigo-hover: #2415A8;
  --indigo-press: #1B1080;
  --violet:       #857BF5;
  --ink:          #050274;
  --gradient:     linear-gradient(135deg, #050274 0%, #2F1CD1 55%, #857BF5 100%);

  --cloud:        #EDEFF7;
  --smoke:        #D3D6E0;
  --steel:        #BCBFCC;
  --graphite:     #6E7180;
  --phantom:      #1E1E24;
  --white:        #FFFFFF;

  --success:      #248A3D;
  --warning:      #B0741A;
  --danger:       #FF3B30;

  --text-1:       #1E1E24;
  --text-2:       #6E7180;
  --text-3:       #9DA2B3;
  --surface:      #F6F7FB;

  --shadow-sm:    0 2px 6px rgba(15,18,36,.10);
  --shadow-md:    0 8px 20px rgba(15,18,36,.13);
  --shadow-lg:    0 24px 60px rgba(15,18,36,.22);
  --shadow-brand: 0 12px 40px rgba(47,28,209,.32);

  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    24px;

  --font:         'Manrope', system-ui, -apple-system, sans-serif;
  --ease:         cubic-bezier(.4,0,.2,1);
  --dur:          220ms;
}

/* ─── Reset + base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Skip-to-content link — visible only when focused via keyboard */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--indigo); color: #fff;
  font-family: var(--font); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: var(--radius-md);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; text-decoration: none; outline: 3px solid rgba(47,28,209,.45); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text-1);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ─── Nav ────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  height: 64px;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-nav.transparent { background: transparent; }
.site-nav.solid {
  background: rgba(5,2,116,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
/* Inner pages always show solid nav */
body.inner-page .site-nav { background: rgba(30,30,36,.96); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img { width: 28px; height: 28px; }
.nav-logo span {
  font-size: 17px; font-weight: 800; color: #fff;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px);
}
.nav-links a {
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82);
  text-decoration: none; transition: color var(--dur);
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links .nav-cta {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 16px; border-radius: 999px;
  transition: background var(--dur);
}
.nav-links .nav-cta:hover { background: rgba(255,255,255,.22); text-decoration: none; }

/* Mobile hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--dur); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(30,30,36,.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 28px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 16px; }
  .nav-links .nav-cta { margin: 14px 28px 0; justify-content: center; border-radius: var(--radius-md); }
}

/* ─── Utility layout ─────────────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 56px); }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--violet);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius-lg);
  cursor: pointer; transition: background var(--dur), transform 80ms, box-shadow var(--dur);
  text-decoration: none;
}
.btn:active { transform: scale(.97); text-decoration: none; }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--indigo-hover); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.22); text-decoration: none; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--gradient);
  padding: 140px 0 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; right: -60px; top: 50%;
  transform: translateY(-55%);
  width: min(640px, 56%); aspect-ratio: 1;
  background: url('../assets/logo-mark-white.png') no-repeat center / contain;
  opacity: .07; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-content {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 48px; align-items: flex-end;
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-phones { display: flex; justify-content: center; }
}

.hero-text { padding-bottom: 80px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9); font-size: 13px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 32px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--violet); }
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.0;
  color: #fff; max-width: 14ch;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.8);
  line-height: 1.55; margin-top: 24px; max-width: 50ch;
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 36px;
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.72);
}
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { opacity: .7; }

.hero-phones {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 20px;
}
.phone-frame {
  background: #0a0a12; border-radius: 44px; padding: 10px;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.phone-frame .screen { border-radius: 35px; overflow: hidden; }
.phone-frame img { display: block; width: 100%; }
.phone-frame.main { width: 240px; }
.phone-frame.secondary { width: 200px; margin-bottom: 32px; opacity: .88; }

/* ─── Features ───────────────────────────────────────────── */
.features { background: var(--white); padding: clamp(72px, 9vw, 120px) 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.08; color: var(--text-1);
  margin-top: 14px;
}
.section-head p { font-size: 18px; color: var(--text-2); margin-top: 16px; max-width: 56ch; margin-inline: auto; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 740px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--cloud); border-radius: var(--radius-xl);
  padding: clamp(28px, 3.5vw, 40px);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
  color: var(--indigo);
}
.feature-card h3 {
  font-size: 21px; font-weight: 800; letter-spacing: -0.015em;
  color: var(--text-1); margin-bottom: 12px;
}
.feature-card p { font-size: 15.5px; color: var(--text-2); line-height: 1.6; }

/* ─── Screenshots ────────────────────────────────────────── */
.screenshots { background: var(--cloud); padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }
.screenshots .section-head { margin-bottom: 60px; }
.screenshots .section-head h2 { color: var(--text-1); }
.screenshots .section-head .eyebrow { color: var(--indigo); }

.screens-row {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 28px; flex-wrap: wrap;
}
.screens-row .phone-frame { background: #0a0a12; }
.screens-row .phone-frame.main { width: 260px; }
.screens-row .phone-frame.secondary { width: 218px; margin-bottom: 24px; }

/* ─── Final CTA ──────────────────────────────────────────── */
.cta-section {
  background: var(--phantom); padding: clamp(72px, 9vw, 112px) 0;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: url('../assets/logo-mark-white.png') no-repeat center / contain;
  opacity: .04; pointer-events: none;
}
.cta-section .wrap { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(30px, 4vw, 48px); font-weight: 800;
  letter-spacing: -0.025em; color: #fff; max-width: 18ch; margin-inline: auto;
}
.cta-section p { font-size: 18px; color: rgba(255,255,255,.7); margin-top: 18px; }
.cta-section .cta-email {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 36px; color: var(--violet); font-size: 17px; font-weight: 700;
  text-decoration: none;
}
.cta-section .cta-email:hover { text-decoration: underline; }
.cta-section .cta-email svg { opacity: .8; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #14141A; border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 0 36px;
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 24px; height: 24px; }
.footer-brand span { font-size: 15px; font-weight: 800; color: rgba(255,255,255,.9); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.55); text-decoration: none; transition: color var(--dur); }
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-copy {
  margin-top: 36px;
  font-size: 13px; color: rgba(255,255,255,.6); text-align: center;
}

/* ─── Legal / inner page prose ───────────────────────────── */
.page-hero {
  background: var(--gradient);
  padding: 120px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 800;
  letter-spacing: -0.025em; color: #fff; margin-top: 14px;
}
.page-hero .eyebrow { color: rgba(255,255,255,.72); }
.page-hero p { color: rgba(255,255,255,.72); font-size: 17px; margin-top: 14px; }

.prose-section { padding: clamp(56px, 7vw, 100px) 0; }
.prose { max-width: 720px; margin: 0 auto; }

.prose h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -0.015em;
  color: var(--text-1); margin-top: 48px; margin-bottom: 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; color: var(--text-2); margin-bottom: 16px; line-height: 1.7; }
.prose ul { margin-bottom: 16px; padding-left: 0; }
.prose ul li {
  font-size: 16px; color: var(--text-2); line-height: 1.7;
  padding: 6px 0 6px 22px; position: relative;
}
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--indigo);
}
.prose a { color: var(--indigo); font-weight: 600; }
.prose strong { color: var(--text-1); font-weight: 700; }
.prose .last-updated {
  display: inline-block; margin-bottom: 40px;
  font-size: 13px; font-weight: 600; color: var(--text-3);
  background: var(--cloud); padding: 6px 14px; border-radius: 999px;
}
.prose .highlight {
  background: #F0EEFC; border-left: 3px solid var(--indigo);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 24px 0;
}
.prose .highlight p { margin: 0; color: var(--phantom); }

/* ─── Contact page ───────────────────────────────────────── */
.contact-card {
  background: var(--cloud); border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 60px); max-width: 560px; margin: 0 auto;
  text-align: center;
}
.contact-icon {
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); margin: 0 auto 24px; color: var(--indigo);
}
.contact-card h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 12px; }
.contact-card p { font-size: 16px; color: var(--text-2); line-height: 1.65; }
.contact-email {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 28px; background: var(--indigo); color: #fff;
  font-size: 16px; font-weight: 700; text-decoration: none;
  padding: 14px 28px; border-radius: var(--radius-lg);
  transition: background var(--dur);
}
.contact-email:hover { background: var(--indigo-hover); text-decoration: none; }

.contact-meta {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 48px; max-width: 560px; margin-inline: auto;
}
@media (max-width: 500px) { .contact-meta { grid-template-columns: 1fr; } }
.meta-card {
  background: var(--white); border: 1px solid var(--smoke);
  border-radius: var(--radius-lg); padding: 22px 24px;
}
.meta-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.meta-card p { font-size: 14px; color: var(--text-2); margin: 0; }
