/* === BASE === */
:root {
  --bg: #f8f7f5;
  --bg-alt: #f0ede8;
  --navy: #1a2744;
  --navy-light: #2d3a5c;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --text: #1a2744;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e0d9;
  --white: #ffffff;
  --radius: 6px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark { color: var(--navy); }

/* === HERO === */
.hero {
  padding: 80px 24px 100px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
}

/* === HERO VISUAL === */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  background: var(--navy);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(26, 39, 68, 0.18), 0 8px 24px rgba(26, 39, 68, 0.12);
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: #fafaf8;
  border-radius: 28px;
  overflow: hidden;
}

.screen-header {
  background: #f0ede8;
  padding: 10px 16px;
  display: flex;
  align-items: center;
}

.screen-dots {
  display: flex;
  gap: 6px;
}

.screen-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.screen-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-input {
  border: 1.5px dashed var(--text-light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.doc-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.arrow-down {
  display: flex;
  justify-content: center;
}

.summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.summary-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.s-line {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.s-line--long { width: 100%; }
.s-line--medium { width: 75%; }
.s-line--short { width: 45%; }

.deadline-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--navy);
}

.hero-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.deco-ring--1 {
  width: 340px;
  height: 340px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.deco-ring--2 {
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: #e9e6df;
}

/* === SECTION HEADINGS === */
.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
  max-width: 600px;
}

/* === HOW IT WORKS === */
.how-it-works {
  background: var(--white);
  padding: 96px 24px;
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.step-card {
  padding: 32px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.step-icon {
  margin-bottom: 16px;
}

.step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1875rem;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 80px;
  color: var(--text-light);
}

/* === WHO CLAR === */
.whoclar {
  background: var(--navy);
  padding: 96px 24px;
  color: var(--white);
}

.whoclar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.whoclar-content .section-label {
  color: var(--amber);
}

.whoclar-content .section-title {
  color: var(--white);
}

.whoclar-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.letter-types {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.letter-type {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.lt-icon {
  color: var(--amber);
  flex-shrink: 0;
}

/* === PRICING === */
.pricing {
  padding: 96px 24px;
  background: var(--bg-alt);
}

.pricing-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: left;
}

.pricing-card {
  padding: 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.pricing-card--pro {
  border-color: var(--navy);
}

.pc-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.pc-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pc-price {
  margin-bottom: 12px;
}

.pc-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.pc-per {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.pc-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pc-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text);
}

.pc-feature--excluded {
  color: var(--text-muted);
}

.pc-feature--excluded svg path {
  stroke: var(--text-light);
}

.pricing-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* === CLOSING === */
.closing {
  padding: 96px 24px;
  background: var(--white);
}

.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.closing-icon {
  width: 96px;
  height: 96px;
  background: #fffbeb;
  border: 2px solid #fde68a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 700px;
}

.closing-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}

.closing-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.125rem;
  color: var(--amber);
  letter-spacing: 0.02em;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    width: 240px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-connector {
    display: none;
  }

  .whoclar-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* === ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
  .hero-headline {
    animation: fadeUp 0.6s ease-out;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}