/* ==========================================================================
   Unprompt — marketing site styles
   Calm, editorial, privacy-first. A restrained violet accent (#6d28d9),
   deliberately *not* the glowing-purple AI-SaaS look — this is the web,
   put back the way you liked it.
   ========================================================================== */

/* ----- Design tokens ----------------------------------------------------- */
:root {
  --bg:          #faf8f5;   /* warm paper */
  --surface:     #ffffff;
  --surface-2:   #f4f1ea;
  --ink:         #18181b;
  --ink-soft:    #3f3f46;
  --muted:       #5d5d66;
  --line:        #e7e2d8;
  --line-strong: #d8d2c5;

  --accent:      #6d28d9;
  --accent-ink:  #5b21b6;
  --accent-soft: #f1ecfb;
  --accent-line: #ddd0f5;
  --accent-solid:       #6d28d9;  /* solid fill behind white text */
  --accent-solid-hover: #5b21b6;

  --free:        #0f766e;   /* calm teal for "Free" */
  --free-soft:   #e6f3f1;

  --radius:      14px;
  --radius-sm:   10px;
  --radius-lg:   22px;
  --maxw:        1080px;
  --pad:         clamp(20px, 5vw, 40px);

  --shadow-sm:   0 1px 2px rgba(24,24,27,.05), 0 1px 1px rgba(24,24,27,.04);
  --shadow:      0 4px 14px rgba(24,24,27,.06), 0 1px 3px rgba(24,24,27,.05);
  --shadow-lg:   0 18px 50px rgba(24,24,27,.10), 0 4px 12px rgba(24,24,27,.06);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0e0e11;
    --surface:     #161619;
    --surface-2:   #1c1c20;
    --ink:         #f4f4f5;
    --ink-soft:    #d4d4d8;
    --muted:       #a1a1aa;
    --line:        #27272b;
    --line-strong: #34343a;

    --accent:      #a78bfa;
    --accent-ink:  #c4b5fd;
    --accent-soft: #1d1830;
    --accent-line: #322a4d;
    --accent-solid:       #6d28d9;  /* stays dark enough for white text */
    --accent-solid-hover: #7c3aed;

    --free:        #5eead4;
    --free-soft:   #11241f;

    --shadow-sm:   0 1px 2px rgba(0,0,0,.4);
    --shadow:      0 4px 16px rgba(0,0,0,.45);
    --shadow-lg:   0 18px 50px rgba(0,0,0,.55);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; color: var(--ink); font-weight: 680; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.02em; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--accent-solid); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 100; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 580; letter-spacing: -0.01em;
  padding: 12px 20px; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent-solid); color: #fff; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-solid-hover); box-shadow: var(--shadow); }
.btn-secondary {
  background: var(--surface); color: var(--ink); border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 15px 26px; font-size: 1.03rem; border-radius: 13px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ----- Header / nav ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 660; font-size: 1.08rem; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.brand .mark { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 9px;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 10px; }

/* Mobile menu (no-JS, uses a checkbox toggle) */
.nav-toggle, .nav-toggle-label { display: none; }
@media (max-width: 860px) {
  .nav-cta .btn-secondary { display: none; }
  .nav-toggle-label {
    display: inline-flex; margin-left: auto; cursor: pointer;
    width: 42px; height: 42px; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink);
  }
  .nav-toggle-label svg { width: 22px; height: 22px; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 18px; margin: 0;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .nav-cta { margin: 6px 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* ----- Layout helpers ---------------------------------------------------- */
section { padding-block: clamp(56px, 8vw, 96px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 620; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }
.lead { color: var(--muted); font-size: 1.1rem; }

/* ----- Hero -------------------------------------------------------------- */
.hero { padding-top: clamp(52px, 8vw, 92px); padding-bottom: clamp(40px, 6vw, 72px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.7rem); letter-spacing: -0.035em; font-weight: 700; }
.hero .sub { font-size: clamp(1.08rem, 2vw, 1.22rem); color: var(--muted); margin-top: 20px; max-width: 32ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--free); flex: none; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .sub { max-width: none; }
  .hero-demo { order: -1; }
}

/* "Before/after" demo card */
.hero-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.demo-url { margin-left: 8px; font: 500 .82rem/1 var(--mono); color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 7px 11px; flex: 1; }
.demo-body { padding: 18px; display: grid; gap: 12px; }
.demo-block { border-radius: var(--radius-sm); padding: 14px; font-size: .9rem; }
.demo-ai { border: 1px dashed var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); position: relative; }
.demo-ai .tag { font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.demo-ai.removed { display: flex; align-items: center; gap: 10px; color: var(--muted); border-color: var(--line); background: var(--surface-2); justify-content: center; font-size: .82rem; padding: 11px; }
.demo-ai.removed svg { width: 15px; height: 15px; color: var(--free); }
.demo-result { background: var(--bg); border: 1px solid var(--line); }
.demo-result .t { color: var(--accent-ink); font-weight: 580; }
.demo-result .u { color: var(--free); font-size: .76rem; margin: 2px 0 6px; }
.demo-result .d { color: var(--muted); font-size: .82rem; }

/* ----- Cards / grids ----------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px;
  border: 1px solid var(--accent-line);
}
.card-icon svg { width: 21px; height: 21px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step .num {
  counter-increment: step; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 660; font-size: .95rem;
  background: var(--accent-solid); color: #fff; margin-bottom: 16px;
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 7px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ----- What it blocks ---------------------------------------------------- */
.block-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .block-grid { grid-template-columns: 1fr; } }
.block-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.block-item .check { width: 22px; height: 22px; flex: none; color: var(--free); }
.block-item .name { font-weight: 520; flex: 1; }
.tier-pill {
  font-size: .73rem; font-weight: 650; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.tier-free { color: var(--free); background: var(--free-soft); border: 1px solid color-mix(in srgb, var(--free) 30%, transparent); }
.tier-pro  { color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.block-note { margin-top: 18px; color: var(--muted); font-size: .92rem; text-align: center; }

/* ----- Privacy ----------------------------------------------------------- */
.privacy { background: var(--surface); border-block: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 820px) { .privacy-grid { grid-template-columns: 1fr; } }
.privacy-headline { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; }
.privacy-headline .em { color: var(--accent-ink); }
.privacy-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.privacy-list li { display: flex; gap: 13px; align-items: flex-start; }
.privacy-list .ic { width: 22px; height: 22px; flex: none; color: var(--free); margin-top: 2px; }
.privacy-list b { font-weight: 600; color: var(--ink); }
.privacy-list span { color: var(--muted); }

/* ----- Pricing ----------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
}
.plan.featured {
  border-color: var(--accent); box-shadow: var(--shadow-lg);
  position: relative; outline: 1px solid var(--accent);
}
.plan-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-solid); color: #fff; font-size: .76rem; font-weight: 620;
  letter-spacing: .02em; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.plan-name { font-size: 1.05rem; font-weight: 640; letter-spacing: -0.01em; }
.plan-tagline { color: var(--muted); font-size: .9rem; margin-top: 4px; min-height: 2.6em; }
.plan-price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; }
.plan-price .per { color: var(--muted); font-size: .95rem; font-weight: 500; }
.plan-sub { font-size: .86rem; color: var(--muted); min-height: 1.3em; }
.plan-sub .was { text-decoration: line-through; opacity: .7; }
.save-badge {
  display: inline-block; font-size: .74rem; font-weight: 640; color: var(--free);
  background: var(--free-soft); border: 1px solid color-mix(in srgb, var(--free) 30%, transparent);
  padding: 3px 9px; border-radius: 999px; margin-left: 4px; vertical-align: middle;
}
.plan-cta { margin: 22px 0; }
.plan-features { list-style: none; padding: 0; display: grid; gap: 11px; margin-top: auto; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.plan-features .ic { width: 19px; height: 19px; flex: none; color: var(--free); margin-top: 2px; }
.plan-features li.muted { color: var(--muted); }
.plan-features li.muted .ic { color: var(--muted); }
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; margin: 0 auto 32px; }
.billing-toggle button {
  font: inherit; font-weight: 560; font-size: .92rem; border: none; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; background: transparent; color: var(--muted);
}
.billing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.price-note { text-align: center; color: var(--muted); font-size: .92rem; max-width: 620px; margin: 26px auto 0; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .96rem; }
.compare caption { text-align: left; color: var(--muted); margin-bottom: 14px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 620; color: var(--ink); }
.compare tbody th { font-weight: 500; color: var(--ink-soft); }
.compare td { text-align: center; width: 120px; }
.compare .yes { color: var(--free); }
.compare .no { color: var(--muted); opacity: .6; }
.compare tbody tr:hover { background: var(--surface-2); }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* ----- FAQ --------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px;
  font-weight: 560; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 20px; height: 20px; color: var(--muted); transition: transform .2s ease; flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 20px; color: var(--muted); }
.faq .answer a { font-weight: 500; }

/* ----- CTA band ---------------------------------------------------------- */
.cta-band { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 60px); box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.cta-band p { color: var(--muted); margin: 12px auto 0; max-width: 48ch; }
.cta-band .hero-cta { justify-content: center; margin-top: 26px; }

/* ----- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 52px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 620; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--muted); font-size: .87rem; }

/* ----- Legal / prose ----------------------------------------------------- */
.legal { padding-top: clamp(40px, 6vw, 64px); }
.legal-head { max-width: 760px; margin: 0 auto 40px; }
.legal-head h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.legal-head .updated { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; margin-top: 44px; margin-bottom: 14px; scroll-margin-top: 84px; }
.prose h3 { font-size: 1.1rem; margin-top: 28px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1rem; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.prose a { font-weight: 500; }
.prose strong { color: var(--ink); font-weight: 620; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }
.callout {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 8px 0 24px;
  color: var(--accent-ink); font-size: .95rem;
}
.callout strong { color: var(--accent-ink); }
.placeholder {
  font-family: var(--mono); font-size: .92em; background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 6px; color: var(--ink);
}
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.toc h2 { font-size: .82rem !important; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 12px !important; }
.toc ol { margin: 0; padding-left: 20px; gap: 7px; }
.toc a { color: var(--ink-soft); }

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hr { border: none; border-top: 1px solid var(--line); }
