:root {
  /* Brand palette: midnight indigo, indigo, coral and lavender on warm paper */
  --bg: #faf8f5;
  --bg-alt: #f2f0fa;
  --ink: #1a1d3a;
  --muted: #5b5f7a;
  --line: #e3e1ee;
  --primary: #4f46e5;    /* small text, links, labels (AA contrast on light backgrounds) */
  --accent: #e4572e;     /* large display text and decoration only */
  --accent-ink: #ffffff;
  --card: #ffffff;
  --night: #1a1d3a;
  --night-2: #262a52;
  --night-line: #3a3f73;
  --night-muted: #b9bce0;
  --shadow: rgba(26, 29, 58, .28);
  --radius: 14px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; margin: 0 0 16px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 22ch; }
h1 em, h2 em { color: var(--accent); }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--bg); font: 600 .95rem var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-small { padding: 8px 16px; font-size: .85rem; }
.btn-light { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--ink) 50%, var(--accent) 50%);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.trust li::before { content: "✓ "; color: var(--primary); font-weight: 700; }

/* Before / after comparison */
.compare {
  position: relative; margin: 0; aspect-ratio: 4 / 3.4;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 30px 60px -30px var(--shadow);
  user-select: none;
}
.mock { position: absolute; inset: 0; overflow: hidden; }
.mock-new { clip-path: inset(0 0 0 var(--pos)); }

.mock-old { background: #c0c0c0; font-family: "Times New Roman", serif; color: #000; font-size: 13px; }
.old-banner {
  background: #000080; color: #ffff00; text-align: center; font: bold 15px "Comic Sans MS", cursive;
  padding: 10px; border-bottom: 3px ridge #808080;
}
.old-body { padding: 10px; }
.old-table { width: 100%; border: 3px outset #fff; background: #fff; border-collapse: collapse; }
.old-side { width: 28%; background: #008080; vertical-align: top; padding: 8px; }
.old-side a { display: block; color: #ffff00; text-decoration: underline; font-weight: bold; margin-bottom: 6px; font-size: 12px; }
.old-main { padding: 10px; vertical-align: top; }
.old-blink { color: #ff0000; font-weight: bold; animation: blink 1s steps(2) infinite; margin-top: 0; }
@keyframes blink { 50% { opacity: 0; } }
.old-img {
  border: 2px inset #999; background: #ddd; color: #666; text-align: center;
  padding: 28px 0; margin: 8px 0; font-family: monospace;
}
.old-counter { font-family: monospace; background: #000; color: #0f0; display: inline-block; padding: 2px 6px; }
.old-foot { text-align: center; font-size: 11px; color: #333; }

.mock-new { background: #0f1b2d; color: #fff; font-family: var(--sans); padding: 18px 22px; }
.new-nav { display: flex; gap: 14px; align-items: center; font-size: 12px; color: #b9c4d6; }
.new-nav b { color: #fff; margin-right: auto; font-size: 14px; }
.new-pill { background: #38bdf8; color: #0f1b2d; padding: 5px 11px; border-radius: 999px; font-weight: 600; }
.new-hero { padding: 34px 0 22px; }
.new-tag { font-size: 11px; color: #38bdf8; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
.new-hero h3 { font: 400 clamp(1.5rem, 3vw, 2.1rem)/1.05 var(--serif); margin: 0 0 10px; }
.new-hero p { font-size: 13px; color: #b9c4d6; margin: 0 0 16px; max-width: 34ch; }
.new-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.new-cta span { background: #fff; color: #0f1b2d; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.new-cta .ghost { background: transparent; color: #fff; border: 1px solid #44556f; }
.new-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.new-cards div { background: #182a44; border-radius: 10px; padding: 10px; }
.new-cards b { display: block; font-size: 15px; }
.new-cards small { color: #8fa0bb; font-size: 11px; }

.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff;
  transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.compare-handle span::before {
  content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 16px var(--sans); color: var(--ink); letter-spacing: 2px;
}
.compare-label {
  position: absolute; bottom: 12px; padding: 4px 10px; border-radius: 999px;
  font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(0,0,0,.6); color: #fff; pointer-events: none;
}
.compare-label.left { left: 12px; }
.compare-label.right { right: 12px; }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}

/* Sections */
.section { padding: 96px 0; scroll-margin-top: 64px; }
.section-alt { background: var(--bg-alt); }

.steps {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-num { font: 400 2.2rem var(--serif); color: var(--accent); display: block; margin-bottom: 8px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.features article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.features p { color: var(--muted); margin: 0; font-size: .95rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.about-copy p:not(.eyebrow):not(.lead) { color: var(--muted); max-width: 58ch; }
.about-copy h2 { max-width: 16ch; }
.palette-card {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  box-shadow: 0 30px 60px -36px var(--shadow);
}
.palette-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.palette-label { font: 600 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.palette-type { font: 400 3rem/1 var(--serif); color: var(--primary); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch {
  aspect-ratio: 3 / 4; border-radius: 12px; background: var(--c); color: #fff; padding: 10px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; font-size: .78rem;
}
.swatch.light { color: var(--ink); border: 1px solid var(--line); }
.swatch span { font-weight: 600; }
.swatch code { font: 500 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .85; }
.palette-card figcaption { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.principles { grid-column: 1 / -1; list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.principles li { border-top: 2px solid var(--ink); padding-top: 16px; }
.principles p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Preview lookup */
.preview-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--night) 0%, #2d3170 100%); color: #fff; border-radius: 24px; padding: 56px;
}
.preview-box h2 { color: #fff; }
.preview-box .eyebrow { color: #a5b4fc; }
.preview-box .muted { color: var(--night-muted); }
.preview-form { display: flex; flex-wrap: wrap; gap: 10px; }
.preview-form input, .request-form input {
  flex: 1 1 220px; min-width: 0; padding: 14px 18px; border-radius: 999px;
  border: 1.5px solid var(--night-line); background: var(--night-2); color: #fff; font: 500 1rem var(--sans);
  text-transform: none;
}
.preview-form input { text-transform: uppercase; letter-spacing: .05em; }
.preview-form input:focus, .request-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.preview-form .btn { background: #ff8c69; border-color: #ff8c69; color: var(--night); }
.preview-form .btn:hover { background: #fff; border-color: #fff; color: var(--night); }
.form-note { flex-basis: 100%; margin: 4px 0 0; min-height: 1.4em; font-size: .9rem; color: var(--night-muted); }

/* Pricing */
.pricing-intro { max-width: 60ch; margin: -4px 0 28px; }
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; }
.billing-toggle button {
  border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font: 600 .92rem var(--sans); color: var(--muted);
}
.billing-toggle button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.plans[hidden] { display: none; }
.plan-for { color: var(--muted); font-size: .92rem; margin: -2px 0 0; min-height: 2.8em; }
.price-text { font-size: 2.4rem; }
.plans-note { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.pricing-foot { margin: 20px 0 0; }
.small { font-size: .88rem; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; align-items: stretch; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
}
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.plan li:last-child { border-bottom: 0; }
.price { font: 400 3rem/1 var(--serif); margin: 8px 0 20px; }
.price span { font: 500 1rem var(--sans); color: var(--muted); }
.plan-featured { border: 2px solid var(--primary); box-shadow: 0 24px 50px -30px rgba(79, 70, 229, .45); }
.badge {
  position: absolute; top: -12px; left: 32px; margin: 0; padding: 3px 10px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: .75rem; font-weight: 600;
}

/* FAQ */
.faq { max-width: 760px; }
.faq h2 { margin-bottom: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--primary) 0%, var(--night) 100%); color: #fff; text-align: center; }
.cta .eyebrow { color: #c7d2fe; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: none; }
.cta h2 em { color: #ffb39c; }
.cta p { font-size: 1.1rem; margin: 0 0 28px; }
.request-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: min(720px, 100%); }
.request-form input { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); color: #fff; }
.request-form input::placeholder { color: rgba(255,255,255,.75); }
.request-form input:focus { outline-color: var(--ink); }
.form-note.light { color: #fff; }

/* Footer */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; color: var(--muted); font-size: .92rem; }
.footer-grid p { margin: 0 0 6px; }
.footer-blurb { margin-top: 10px !important; max-width: 36ch; }
.footer-grid nav { display: grid; gap: 8px; }
.footer-grid nav a { text-decoration: none; }
.footer-grid nav a:hover, .footer-grid a:hover { color: var(--ink); }
.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.footer p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .principles { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .preview-box { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features, .plans { grid-template-columns: 1fr 1fr; }
  .preview-box { padding: 36px 24px; }
}
@media (max-width: 640px) {
  .principles, .footer-grid { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .swatch { aspect-ratio: 2 / 1; }
  .billing-toggle { display: flex; }
  .billing-toggle button { flex: 1; }
  .plan-for { min-height: 0; }
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .compare { aspect-ratio: 3 / 3.6; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .old-blink { animation: none; }
}
.footer-grid .logo { color: var(--ink); }
