/* Public marketing site stylesheet.
   Loaded AFTER theme.css — consumes its design tokens (--c-*, --brand-*,
   --gray-*, --space-*, --radius-*, --shadow-*, --dur-*, --ease-*) and its
   shared component classes (.btn, .card, .icon*, .reveal/.in-view/.delay-*,
   the nav/footer chrome). This file holds ONLY public/marketing-specific
   page styling: hero, pricing tables, comparison, feature rows, docs/help
   prose, the buy-flow pages — restyled to the pink (#FE64B0 = --brand-400)
   design system with subtle hover lifts and scroll-reveal animations.

   No palette is declared here — theme.css owns the tokens. Do NOT add a
   :root block; it would shadow the shared palette since we load second. */

body.public { background: var(--c-bg); color: var(--c-text); }

/* =============================================================
   Hero — left-aligned, generous space, pink glow + gradient.
   ============================================================= */
.hero {
  position: relative; overflow: hidden;
  padding: var(--space-12) var(--space-5) var(--space-10);
  background:
    radial-gradient(1100px 520px at 78% -15%, rgba(254, 100, 176, 0.16), transparent 60%),
    radial-gradient(900px 600px at -8% 25%, rgba(254, 100, 176, 0.07), transparent 60%),
    linear-gradient(to bottom, var(--c-bg) 0%, var(--c-surface) 100%);
}
.hero-inner {
  max-width: 880px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.hero h1 {
  font-size: clamp(2em, 5vw, 3.4em); line-height: 1.1; margin: 0 0 0.5em;
  letter-spacing: -0.02em; font-weight: 700;
}
.hero h1 strong {
  font-weight: 700;
  background: linear-gradient(120deg, var(--brand-500), var(--brand-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  font-size: 1.2em; color: var(--c-text-soft); max-width: 640px;
  margin: 0 auto 1.75em; line-height: 1.55;
}
.cta-row { display: flex; gap: 0.75em; justify-content: center; flex-wrap: wrap; margin-bottom: 1em; }

/* hero v2 — left-aligned, no centered text, the main home/landing variant */
.hero.v2 { padding: var(--space-12) var(--space-5) var(--space-10); text-align: left; }
.hero.v2 .hero-inner-v2 { max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }
.hero.v2 h1 {
  font-size: clamp(2.4em, 5.5vw, 3.8em); line-height: 1.05;
  letter-spacing: -0.025em; font-weight: 600;
  margin: 0 0 0.6em; color: var(--c-text);
}
.hero.v2 .lead {
  font-size: 1.2em; max-width: 620px; margin: 0 0 2em;
  color: var(--c-text-soft); line-height: 1.55;
}

/* live-status pill */
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.4em;
  background: var(--c-primary-soft); color: var(--brand-600);
  padding: 0.35em 0.85em; border-radius: var(--radius-pill); font-size: 0.85em;
  font-weight: 500; margin-bottom: 1.5em;
}
.hero-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.18);
  animation: pulse-ring 2.4s ease-in-out infinite;
}

/* decorative blurred accent shapes (pink) */
.float-shape {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(46px); opacity: 0.5; z-index: 0;
}
.float-shape.one { top: 8%; right: 8%; width: 220px; height: 220px; background: var(--brand-400); animation: floatA 13s ease-in-out infinite; }
.float-shape.two { bottom: 0; left: 6%; width: 240px; height: 240px; background: var(--brand-300, var(--brand-400)); opacity: 0.32; animation: floatB 15s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-30px) translateX(20px); } }
@keyframes floatB { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(20px) translateX(-25px); } }

/* =============================================================
   Sections + headings
   ============================================================= */
.section.alt {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
  text-align: center;
}
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-5); }
.section-inner.narrow { max-width: 740px; }
.section h2 { font-size: 1.8em; margin: 0 0 1em; letter-spacing: -0.01em; }
.section.alt h2 { margin-bottom: 0.5em; }
.section h3 { margin-top: 1.5em; }
.section .lead { font-size: 1.1em; color: var(--c-text-soft); max-width: 640px; margin: 0 auto 1.5em; }

.section .eyebrow {
  display: inline-block; color: var(--brand-600); font-weight: 600;
  font-size: 0.82em; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.75em;
}
.section .section-title { font-size: 2em; margin: 0 0 0.6em; letter-spacing: -0.02em; max-width: 700px; }
.section.center { text-align: center; }
.section.center .section-title, .section.center .lead { margin-left: auto; margin-right: auto; }

.muted { color: var(--c-text-soft); }

/* =============================================================
   Page header (pricing / docs / buy flow)
   ============================================================= */
.page-header {
  background: var(--c-surface); border-bottom: 1px solid var(--c-border);
  padding: var(--space-8) var(--space-5);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 300px at 85% -40%, rgba(254, 100, 176, 0.12), transparent 60%);
}
.page-header-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }
.page-header h1 { margin: 0 0 0.4em; font-size: 2.2em; letter-spacing: -0.01em; }
.page-header .eyebrow {
  display: inline-block; color: var(--brand-600); font-weight: 600;
  font-size: 0.82em; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.6em;
}
.page-header .lead { color: var(--c-text-soft); font-size: 1.1em; max-width: 640px; }

/* =============================================================
   Mock window screenshot band
   ============================================================= */
.screenshot-band { padding: 0 var(--space-5) var(--space-10); background: var(--c-bg); }
.screenshot-band-inner { max-width: 1080px; margin: 0 auto; }
.mock-window {
  background: var(--c-surface); border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 0.5em;
  padding: 0.7em 1em; background: var(--gray-100);
  border-bottom: 1px solid var(--c-border);
}
.mock-titlebar .dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-titlebar .dot.r { background: #f87171; }
.mock-titlebar .dot.y { background: #fbbf24; }
.mock-titlebar .dot.g { background: #34d399; }
.mock-titlebar .mock-url {
  margin-left: 1em; padding: 0.25em 0.75em;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em; color: var(--c-text-soft);
}
.mock-body { display: grid; grid-template-columns: 200px 1fr; min-height: 320px; }
.mock-side { background: var(--gray-50); border-right: 1px solid var(--c-border); padding: 1em 0.5em; }
.mock-side div {
  padding: 0.5em 0.85em; font-size: 0.9em; color: var(--c-text-soft);
  border-radius: var(--radius-sm); margin-bottom: 0.15em;
}
.mock-side div.active { background: var(--c-primary-soft); color: var(--brand-600); font-weight: 500; }
.mock-content { padding: 1em 1.5em; }
.mock-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85em 0; border-bottom: 1px solid var(--gray-100);
  font-size: 0.95em;
}
.mock-row:last-child { border-bottom: none; }
.mock-username { color: var(--c-text); font-weight: 500; }
.mock-meta { color: var(--c-text-soft); font-size: 0.88em; }
@media (max-width: 600px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}

/* =============================================================
   Definition / fact lists used on the home page (cost reality,
   what's included). Replaces former inline-styled <ul>s.
   ============================================================= */
.fact-list { list-style: none; padding: 0; margin: 1em 0 0;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-soft); line-height: 1.8; font-size: 1.05em; }
.fact-list li { padding: 1em 0; border-bottom: 1px solid var(--c-border); }
.fact-list li strong { color: var(--c-text); }

.included-list { list-style: none; padding: 0; margin: 1.5em 0 0;
  border-top: 1px solid var(--c-border); }
.included-list li {
  display: flex; justify-content: space-between; gap: 1em;
  padding: 0.85em 0; border-bottom: 1px solid var(--c-border); flex-wrap: wrap;
}
.included-list .what { color: var(--c-text); }
.included-list .where { color: var(--c-text-soft); font-size: 0.92em; }

/* =============================================================
   Pricing — price-grid (3 tiers) + plan cards
   ============================================================= */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; margin-top: 1.5em; }
.price-cell {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 1.5em 1.25em; text-align: left;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.price-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-cell.highlight {
  border-color: var(--brand-400); border-width: 2px;
  background: var(--c-primary-soft);
  box-shadow: var(--shadow-glow);
}
.price-cell .amount { font-size: 1.8em; font-weight: 600; color: var(--c-text); letter-spacing: -0.02em; }
.price-cell .period { font-size: 0.85em; color: var(--c-text-soft); margin-bottom: 0.6em; }
.price-cell .who { font-size: 0.95em; color: var(--c-text); font-weight: 500; }
@media (max-width: 700px) { .price-grid { grid-template-columns: 1fr; } }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5em; }
.plan-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-xl);
  padding: 2em 1.75em; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan-card.main {
  border-color: var(--brand-400); border-width: 2px;
  box-shadow: var(--shadow-glow);
}
.plan-card h2 { margin: 0; font-size: 1.4em; }
.plan-card .tagline { margin: 0.25em 0 1.25em; color: var(--c-text-soft); font-size: 0.95em; }
.plan-card .price { margin: 0.5em 0 1em; }
.plan-card .price .amount { font-size: 2.2em; font-weight: 700; letter-spacing: -0.01em; }
.plan-card .price .period { color: var(--c-text-soft); margin-left: 0.25em; }
.plan-card .trial-banner {
  background: var(--c-primary-soft); color: var(--brand-600); padding: 0.5em 0.75em;
  border-radius: var(--radius-sm); font-size: 0.85em; margin: 0 0 1em; text-align: center;
  font-weight: 500;
}
.plan-card .desc { color: var(--c-text-soft); line-height: 1.55; margin: 0 0 1em; }
.plan-card .bullets { list-style: none; padding: 0; margin: 0 0 1.5em; }
.plan-card .bullets li {
  padding: 0.4em 0 0.4em 1.5em; position: relative; line-height: 1.45; font-size: 0.95em;
}
.plan-card .bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.plan-card .full { margin-top: auto; }
.plan-card .center { text-align: center; margin-top: 0.75em; }

/* checklist (two-col) */
.checklist { list-style: none; padding: 0; columns: 2; column-gap: 2em; }
.checklist li { padding: 0.4em 0 0.4em 1.5em; position: relative; break-inside: avoid; line-height: 1.45; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
@media (max-width: 700px) { .checklist { columns: 1; } }

/* =============================================================
   Comparison chart
   ============================================================= */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--c-surface); border-radius: var(--radius-lg);
  border: 1px solid var(--c-border); overflow: hidden;
}
.compare th, .compare td {
  padding: 0.95em 1.1em; text-align: left;
  border-bottom: 1px solid var(--c-border); vertical-align: middle;
}
.compare th {
  background: var(--gray-50); font-weight: 600; font-size: 0.9em;
  color: var(--c-text-soft); text-transform: uppercase; letter-spacing: 0.04em;
}
.compare th.us {
  background: var(--brand-500); color: #fff; text-transform: none;
  letter-spacing: 0; font-size: 1em;
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare td.feat { font-weight: 500; color: var(--c-text); }
.compare td.us { background: var(--c-primary-soft); font-weight: 500; color: var(--brand-600); }
.compare .check { color: var(--success); font-weight: 700; }
.compare .cross { color: var(--gray-400, #d1d5db); }
.compare .partial { color: var(--brand-500); font-weight: 500; font-size: 0.85em; }

/* =============================================================
   Feature rows (calm type-only blocks)
   ============================================================= */
.row-features { padding: 1.75em 0; border-bottom: 1px solid var(--c-border); }
.row-features:last-child { border-bottom: none; }
.row-features h3 {
  font-size: 1.18em; margin: 0 0 0.4em; letter-spacing: -0.01em;
  font-weight: 600; color: var(--c-text);
}
.row-features p { margin: 0; color: var(--c-text-soft); line-height: 1.65; max-width: 640px; font-size: 1em; }

/* what-it-doesn't-do list */
.dont-list { list-style: none; padding: 0; margin: 1.5em 0 0; border-top: 1px solid var(--c-border); }
.dont-list li { padding: 1em 0; border-bottom: 1px solid var(--c-border); color: var(--c-text-soft); line-height: 1.6; }
.dont-list li strong { color: var(--c-text); margin-right: 0.5em; }

/* =============================================================
   Savings table
   ============================================================= */
.savings-wrap { overflow-x: auto; margin-top: 0.75em; }
.savings {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--c-surface); border-radius: var(--radius-lg);
  border: 1px solid var(--c-border); overflow: hidden;
}
.savings th, .savings td { padding: 0.95em 1.1em; text-align: left; border-bottom: 1px solid var(--c-border); }
.savings th {
  background: var(--gray-50); font-weight: 600; font-size: 0.9em;
  color: var(--c-text-soft); text-transform: uppercase; letter-spacing: 0.04em;
}
.savings tr:last-child td { border-bottom: none; }
.savings td { font-size: 1em; }
.savings th.save { color: var(--success); }
.savings td.save { color: var(--success); font-weight: 600; background: var(--success-soft, rgba(21, 128, 61, 0.06)); }

/* =============================================================
   Prose blocks (about page, etc.) — replaces repeated inline styles
   ============================================================= */
.prose { color: var(--c-text-soft); line-height: 1.7; max-width: 640px; }
.prose.lead-prose { font-size: 1.15em; }
.prose + .prose { margin-top: 1.5em; }
.prose a { color: var(--brand-600); }
.prose-list { color: var(--c-text-soft); line-height: 1.8; max-width: 640px; padding-left: 1.2em; }

/* =============================================================
   Contact cards
   ============================================================= */
.contact-card {
  padding: 1.5em 0; border-bottom: 1px solid var(--c-border);
}
.contact-card:last-child { border-bottom: none; }
.contact-card h3 { margin: 0 0 0.4em; font-size: 1.05em; }
.contact-card p { margin: 0; color: var(--c-text-soft); }
.contact-card a { color: var(--brand-600); }

/* =============================================================
   Big dark CTA band (keeps the inverse-on-dark button override)
   ============================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  color: #fff; padding: var(--space-10) var(--space-5);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 400px at 90% 100%, rgba(254, 100, 176, 0.30), transparent 60%),
    radial-gradient(600px 300px at 0% 0%, rgba(255, 255, 255, 0.10), transparent 60%);
}
.cta-band-inner { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.cta-band h2 { font-size: 2em; margin: 0 0 0.5em; letter-spacing: -0.02em; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.1em; margin: 0 0 1.75em; }
.cta-band .btn.primary { background: #fff; color: var(--brand-700); border-color: #fff; }
.cta-band .btn.primary:hover { background: var(--gray-100); border-color: var(--gray-100); }
.cta-band .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta-band .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* provisioning pulse dot (buy success) */
.provision-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-400); margin-right: 0.5em; vertical-align: middle;
  animation: pulse-ring 1.8s ease-in-out infinite;
}

/* =============================================================
   Docs — index grid + sidebar layout + article prose
   ============================================================= */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25em; }
.docs-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 1.5em; text-decoration: none; color: inherit; display: block;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.docs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-300, var(--brand-400)); }
.docs-card h3 { margin: 0 0 0.5em; color: var(--brand-600); font-size: 1.1em; }
.docs-card p { margin: 0; color: var(--c-text-soft); font-size: 0.95em; line-height: 1.5; }
.docs-card strong { color: var(--brand-600); }

.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; max-width: 1200px; margin: 0 auto; min-height: 70vh; }
.docs-sidebar { background: var(--c-surface); border-right: 1px solid var(--c-border); padding: 2em 0; }
.docs-sidebar-inner { padding: 0 1.5em; position: sticky; top: 5em; }
.docs-sidebar .docs-back { display: block; color: var(--c-text-soft); font-size: 0.9em; margin-bottom: 1.5em; text-decoration: none; }
.docs-sidebar .docs-back:hover { color: var(--c-text); }
.docs-sidebar nav { display: flex; flex-direction: column; gap: 0.4em; }
.docs-sidebar nav a {
  color: var(--c-text); text-decoration: none; padding: 0.4em 0.6em; border-radius: var(--radius-sm);
  font-size: 0.95em; line-height: 1.3;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.docs-sidebar nav a:hover { background: var(--gray-100); }
.docs-sidebar nav a.active { background: var(--brand-500); color: #fff; }

.docs-article { padding: 2.5em 1.5em 4em; }
.docs-article-inner { max-width: 760px; margin: 0 auto; line-height: 1.7; }
.docs-article h1 { font-size: 2.2em; margin-top: 0; letter-spacing: -0.01em; }
.docs-article h2 { font-size: 1.5em; margin-top: 2em; padding-bottom: 0.3em; border-bottom: 1px solid var(--c-border); }
.docs-article h3 { font-size: 1.2em; margin-top: 1.75em; }
.docs-article p, .docs-article li { font-size: 1.02em; }
.docs-article ul, .docs-article ol { padding-left: 1.5em; }
.docs-article code { background: var(--gray-100); padding: 0.15em 0.4em; border-radius: var(--radius-sm); font-size: 0.92em; }
.docs-article pre {
  background: var(--gray-900, #0f172a); color: #e2e8f0; padding: 1em 1.25em;
  border-radius: var(--radius-md); overflow-x: auto; line-height: 1.5; margin: 1em 0;
}
.docs-article pre code { background: transparent; padding: 0; color: inherit; font-size: 0.9em; }
.docs-article blockquote {
  border-left: 3px solid var(--brand-400); padding-left: 1em; margin-left: 0;
  color: var(--c-text-soft); font-style: italic;
}
.docs-article table { border-collapse: collapse; margin: 1em 0; }
.docs-article table th, .docs-article table td { border: 1px solid var(--c-border); padding: 0.5em 0.8em; }
.docs-article table th { background: var(--gray-50); }
.docs-article a { color: var(--brand-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.docs-article a:hover { text-decoration-thickness: 2px; }

@media (max-width: 800px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { border-right: none; border-bottom: 1px solid var(--c-border); padding: 1em 0; }
  .docs-sidebar-inner { position: static; }
  .docs-sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 0.25em; }
}

/* =============================================================
   Help center prose + breadcrumbs
   ============================================================= */
.help-doc h1 { font-size: 2em; letter-spacing: -0.015em; margin-top: 0; }
.help-doc h2 { font-size: 1.4em; margin-top: 2em; padding-bottom: 0.25em; border-bottom: 1px solid var(--c-border); }
.help-doc h3 { font-size: 1.12em; margin-top: 1.6em; }
.help-doc p, .help-doc li { font-size: 1.02em; line-height: 1.7; color: var(--c-text); }
.help-doc strong { color: var(--c-text); }
.help-doc blockquote { border-left: 3px solid var(--brand-400); padding-left: 1em; margin-left: 0; color: var(--c-text-soft); }
.help-doc ul, .help-doc ol { padding-left: 1.4em; }
.help-doc a { color: var(--brand-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.help-doc a:hover { text-decoration-thickness: 2px; }
.help-doc hr { border: none; border-top: 1px solid var(--c-border); margin: 2.5em 0; }
.help-doc code { background: var(--gray-100); padding: 0.15em 0.4em; border-radius: var(--radius-sm); font-size: 0.92em; }

.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.75em; }

.crumbs { color: var(--c-text-soft); font-size: 0.9em; margin-bottom: 1.5em; }
.crumbs a { color: var(--c-text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--c-text); text-decoration: underline; }
.crumbs .sep { color: var(--gray-400, #d1d5db); margin: 0 0.4em; }

/* =============================================================
   Mobile
   ============================================================= */
@media (max-width: 700px) {
  .hero, .hero.v2 { padding: var(--space-8) var(--space-4) var(--space-6); }
}

/* page-specific animations respect reduced motion (theme handles .reveal) */
@media (prefers-reduced-motion: reduce) {
  .float-shape, .hero-pill .dot, .provision-dot { animation: none; }
}
