@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;      /* slate-50 */
  --ink: #020617;          /* slate-950 */
  --ink-soft: #475569;     /* slate-600 */
  --btn-dark: #0f172a;     /* slate-900 — app primary buttons */
  --btn-dark-h: #334155;   /* slate-700 (app hover) */
  --brand: #4f46e5;        /* indigo-600 — app accent */
  --brand-dark: #4338ca;   /* indigo-700 */
  --brand-soft: #e0e7ff;   /* indigo-100 */
  --sky-soft: #e0f2fe;     /* sky-100 — trial badge */
  --sky-ink: #0369a1;      /* sky-700 */
  --line: #e2e8f0;         /* slate-200 */
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Anchor targets clear the sticky header */
section[id], [id="pricing"], [id="features"], [id="canvass"], [id="contact"], [id="testimonials"] { scroll-margin-top: 100px; }

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
}
.brand small { display:block; font-weight: 500; font-size: 12px; color: var(--ink-soft); margin-top:-4px;}
.brand img.wordmark { height: 52px; width: auto; display: block; transform: translateY(-3px); }
@media (max-width: 560px) { .brand img.wordmark { height: 40px; } }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: 15px;
  padding: 10px 12px; border-radius: 8px; line-height: 1;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: transform .05s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn-dark); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--btn-dark-h); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Hero */
.hero { padding: 88px 0 64px; background: radial-gradient(1200px 500px at 50% -10%, var(--brand-soft), transparent); }
.hero .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--brand);
  font-weight: 600; font-size: 13px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 640px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }

/* Sections */
section.block { padding: 72px 0; }
section.block.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .ico {
  width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; font-size: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.price-card h3 { margin: 0 0 6px; font-size: 20px; }
.price-card .price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.price-card .price span { font-size: 16px; font-weight: 500; color: var(--ink-soft); }
.price-card .desc { color: var(--ink-soft); font-size: 14px; min-height: 40px; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.price-card li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.price-card li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 10px; }
.price-card .btn { margin-top: auto; text-align: center; }

/* Pill tag */
.pill-tag { display:inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-left: 8px; vertical-align: middle; }
.pill-tag.trial { background: var(--sky-soft); color: var(--sky-ink); }

/* Transparency banner */
.transparency-banner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 36px;
}
.transparency-banner .tb {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.transparency-banner .tb h4 { margin: 0 0 6px; font-size: 16px; }
.transparency-banner .tb p { margin: 0; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 860px) { .transparency-banner { grid-template-columns: 1fr; } }

/* Billing-period toggle (mirrors the app) */
.period-toggle { display: flex; justify-content: center; margin: 0 0 32px; }
.period-toggle .seg {
  display: inline-flex; border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 4px;
  box-shadow: 0 1px 2px rgba(2,6,23,0.05); gap: 2px;
}
.period-toggle button {
  border: none; background: transparent; cursor: pointer; font-size: 14px; font-weight: 500;
  color: var(--ink-soft); padding: 7px 18px; border-radius: 999px; font-family: inherit; transition: all .15s ease;
}
.period-toggle button:hover { color: var(--ink); }
.period-toggle button.active { background: var(--btn-dark); color: #fff; }
.period-toggle .save { font-size: 11px; opacity: .8; margin-left: 4px; }

/* Plan cards (mirror the app's subscribe cards) */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; box-shadow: var(--shadow); transition: border-color .15s ease, box-shadow .15s ease;
}
.plan-card:hover { border-color: #cbd5e1; }
.plan-card.highlight { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.plan-card .pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.plan-card h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.plan-card .pc-price { min-height: 62px; margin: 14px 0 4px; }
.plan-card .amount { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.plan-card .amount .per { font-size: 14px; font-weight: 400; color: var(--ink-soft); margin-left: 3px; }
.plan-card .permo { font-size: 12px; color: var(--ink-soft); margin: 2px 0 0; min-height: 16px; }
.plan-card ul.caps { list-style: none; padding: 0; margin: 8px 0 0; }
.plan-card ul.caps li { font-size: 14px; color: var(--ink); padding: 3px 0; }
.plan-card .feat { margin-top: 14px; border-top: 1px solid #f1f5f9; padding-top: 12px; }
.plan-card .feat li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-soft); padding: 2px 0; list-style: none; }
.plan-card .feat ul { padding: 0; margin: 0; }
.plan-card .feat .chk { color: #10b981; font-weight: 700; }
.plan-card .pc-btn {
  margin-top: auto; padding-top: 18px;
}
.plan-card .pc-btn a {
  display: block; text-align: center; width: 100%; padding: 10px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; background: var(--btn-dark); color: #fff;
}
.plan-card .pc-btn a:hover { background: var(--btn-dark-h); text-decoration: none; }
.plan-card.highlight .pc-btn a { background: var(--brand); }
.plan-card.highlight .pc-btn a:hover { background: var(--brand-dark); }
.plan-card .pc-btn a.ghost { background: #fff; color: var(--ink); border: 1px solid #cbd5e1; }
.plan-card .pc-btn a.ghost:hover { background: var(--bg-soft); }
@media (max-width: 1000px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }

/* Interactive pricing calculator (live from the app's public pricing API) */
.pricing-calc { max-width: 720px; margin: 0 auto; }
.pc-loading { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.calc-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.calc-period { display: flex; justify-content: center; margin-bottom: 24px; }
.calc-period .seg { display: inline-flex; border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 4px; gap: 2px; box-shadow: 0 1px 2px rgba(2,6,23,0.05); }
.calc-period button { border: none; background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 7px 16px; border-radius: 999px; font-family: inherit; transition: all .15s ease; }
.calc-period button:hover { color: var(--ink); }
.calc-period button.active { background: var(--btn-dark); color: #fff; }
.calc-period .save { font-size: 11px; opacity: .85; margin-left: 4px; }

.calc-slider { margin: 6px 0; }
.calc-slider label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; text-align: center; }
.calc-slider input[type=range] { width: 100%; accent-color: var(--brand); height: 6px; cursor: pointer; }
.calc-ticks { display: flex; justify-content: space-between; margin-top: 10px; }
.calc-ticks span { font-size: 11px; color: var(--ink-soft); font-weight: 500; }
.calc-ticks span.on { color: var(--brand); font-weight: 700; }

.calc-body { margin-top: 22px; border-top: 1px solid #f1f5f9; padding-top: 22px; }
.calc-tier { text-align: center; }
.calc-price { display: flex; align-items: baseline; justify-content: center; gap: 3px; }
.cp-amt { font-size: 44px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.cp-per { font-size: 16px; color: var(--ink-soft); }
.calc-sub { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.calc-sub2 { font-size: 14px; color: var(--ink-soft); margin-top: 6px; font-weight: 600; }

.calc-incl { list-style: none; padding: 0; margin: 18px auto 0; max-width: 340px; }
.calc-incl li { font-size: 14px; color: var(--ink); padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.calc-incl li::before { content: "✓"; color: var(--brand); font-weight: 800; }

.calc-addon { margin-top: 18px; border-top: 1px solid #f1f5f9; padding-top: 16px; }
.ca-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px; }
.ca-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font-family: inherit; font-size: 13px; color: var(--ink); padding: 7px 12px; border-radius: 999px; transition: all .15s ease; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }

.calc-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink); }
.calc-toggle input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.calc-toggle .ca-price { margin-left: auto; font-weight: 700; color: var(--ink); white-space: nowrap; }

.calc-total { margin-top: 18px; background: var(--brand-soft); color: var(--brand-dark); border-radius: 12px; padding: 12px 16px; text-align: center; font-size: 15px; }
.calc-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 12px; }
.pc-foot { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 16px; }

@media (max-width: 560px) { .cp-amt { font-size: 36px; } .calc-card { padding: 20px; } .calc-ticks span { font-size: 10px; } }

/* Contact */
.contact-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; text-align: center; box-shadow: var(--shadow);
}
.contact-box a.email { font-size: 22px; font-weight: 700; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: 34px; margin: 0 0 8px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink); font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal .back { display: inline-block; margin-bottom: 28px; font-weight: 600; }

/* Trust & Security table */
.table-wrap { overflow-x: auto; margin: 18px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.trust-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.trust-table th, .trust-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.trust-table thead th { background: var(--bg-soft); font-weight: 700; color: var(--ink); font-size: 13px; }
.trust-table tbody tr:last-child td { border-bottom: none; }
.trust-table td:first-child { width: 42%; font-weight: 600; color: var(--ink); }
.trust-table td:last-child { color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0; margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: 14px; }
.footer-copy { color: var(--ink-soft); font-size: 14px; }

/* Mobile menu (CSS-only) */
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  list-style: none; cursor: pointer; font-size: 22px; line-height: 1;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
  user-select: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: var(--bg-soft); }
.mobile-nav .sheet {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40;
  min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column;
}
.mobile-nav .sheet a {
  padding: 12px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 15px;
}
.mobile-nav .sheet a:hover { background: var(--bg-soft); text-decoration: none; }

@media (max-width: 860px) {
  .grid, .pricing { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-nav { display: block; }
  .nav-cta { display: none; }
}

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 18px; }
