/* DueSoon site styles: shared by index, privacy and terms pages. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --fg: #0f172a;
  --muted: #5b6475;
  --border: #e3e6ee;
  --brand: #4f46e5;
  --brand-strong: #3730a3;
  --brand-soft: #eef0ff;
  --on-brand: #ffffff;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --red: #b91c1c;
  --red-soft: #fee2e2;
  --green: #15803d;
  --green-soft: #dcfce7;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .06), 0 30px 60px -20px rgba(49, 46, 129, .35);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14;
    --bg-soft: #11141d;
    --surface: #161a25;
    --fg: #e8eaf2;
    --muted: #9aa3b5;
    --border: #262b3a;
    --brand: #818cf8;
    --brand-strong: #a5b4fc;
    --brand-soft: #1e1b4b;
    --on-brand: #0b0d14;
    --amber: #fbbf24;
    --amber-soft: #3a2a08;
    --red: #f87171;
    --red-soft: #3b1212;
    --green: #4ade80;
    --green-soft: #0f2e1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 30px 60px -20px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img, svg { display: block; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

/* ---------- Nav ---------- */
.nav-bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--fg); text-decoration: none; letter-spacing: -0.02em; }
.logo img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
.nav-links .btn { color: var(--on-brand); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 650; text-decoration: none; font-size: 16px;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--brand-strong); }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { background: var(--bg-soft); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(700px 360px at -10% 110%, color-mix(in srgb, #f59e0b 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 48px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-strong);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px color-mix(in srgb, #f59e0b 25%, transparent); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 850; letter-spacing: -0.035em; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--brand), #db2777 55%, #f59e0b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--green); }

/* ---------- Product mockup ---------- */
.mock { position: relative; padding: 8px 0 36px; }
.sheet {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
}
@media (max-width: 920px) { .sheet { transform: none; } }
.sheet-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.sheet-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.sheet-title { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sheet-table th { text-align: left; font-weight: 600; color: var(--muted); background: var(--bg-soft); padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sheet-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sheet-table tr:last-child td { border-bottom: 0; }
.sheet-table td:first-child { font-weight: 600; }
@media (max-width: 480px) { .sheet-table .hide-sm { display: none; } }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.grey { background: var(--bg-soft); color: var(--muted); }
.row-due { background: color-mix(in srgb, #f59e0b 8%, transparent); }

.toast {
  position: absolute; right: -8px; bottom: 0; width: min(340px, 86%);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 14px 16px;
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  animation: float 6s ease-in-out infinite;
}
.toast img { width: 40px; height: 40px; }
.toast .from { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.toast .subj { font-weight: 700; font-size: 14px; margin: 2px 0; }
.toast .snip { font-size: 13px; color: var(--muted); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; }
.kicker { display: block; color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

/* Use cases */
.usecases { padding: 36px 0; border-bottom: 1px solid var(--border); }
.usecases p { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 19px; }
.step p { color: var(--muted); margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.feature .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* Email preview */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 32px; margin: 12px 0; color: var(--muted); }
.ticks li b { color: var(--fg); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316a34a'%3E%3Cpath d='M8.2 13.6 4.9 10.3l-1.2 1.2 4.5 4.5 8.6-8.6-1.2-1.2z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.email {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.email-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.email-head img { width: 40px; height: 40px; }
.email-head .subj { font-weight: 700; }
.email-head .meta { font-size: 13px; color: var(--muted); }
.email-body { padding: 20px; font-size: 15px; }
.email-body .btnlike { display: inline-block; margin-top: 4px; padding: 8px 14px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; font-size: 14px; text-decoration: none; }

/* Pricing */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); margin-top: 8px; }
.billing-toggle button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.save { color: var(--green); font-weight: 700; }
.billing-toggle button[aria-pressed="true"] .save { color: inherit; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .tag { position: absolute; top: -13px; left: 32px; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.price { font-size: 48px; font-weight: 850; letter-spacing: -0.03em; margin: 12px 0 0; line-height: 1; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { font-size: 14px; color: var(--muted); min-height: 22px; margin: 8px 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { position: relative; padding-left: 28px; margin: 10px 0; font-size: 15px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234f46e5'%3E%3Cpath d='M8.2 13.6 4.9 10.3l-1.2 1.2 4.5 4.5 8.6-8.6-1.2-1.2z'/%3E%3C/svg%3E") center/18px no-repeat;
}
.plan .btn { justify-content: center; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* CTA band */
.cta-band {
  margin: 0 20px; border-radius: 24px; padding: 64px 24px; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 20% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #4f46e5, #7c3aed 55%, #db2777);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 850; }
.cta-band p { opacity: .9; font-size: 18px; margin-bottom: 28px; }
.cta-band .btn { background: #fff; color: #3730a3; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.cta-band .btn:hover { background: #eef0ff; }
.cta-band .note { font-size: 14px; opacity: .85; margin: 16px 0 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 40px; margin-top: 88px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--fg); }
.site-footer .legal { margin-top: 20px; font-size: 13px; }

/* ---------- Legal pages ---------- */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 24px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 850; }
.doc h2 { font-size: 21px; margin-top: 36px; }
.doc li { margin: 8px 0; }
.doc code { background: var(--bg-soft); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: 13px; }

code { background: var(--bg-soft); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
