/* StorySage marketing site — shared styles */
:root {
  --sage-black: #0f1014;
  --sage-black-soft: #16171d;
  --sage-ink: #f5f6fa;
  --sage-ink-muted: #a8adb8;
  --sage-line: rgba(255, 255, 255, 0.1);
  --sage-violet: #7b5bff;
  --sage-violet-600: #6848f0;
  --sage-violet-soft: rgba(123, 91, 255, 0.14);
  --sage-cyan: #3dd0e0;
  --sage-coral: #ff7a6b;
  --sage-white: #ffffff;
  --sage-panel: #ffffff;
  --sage-panel-ink: #15171d;
  --sage-panel-muted: #5c6472;
  --sage-gold: #d4a84b;
  --radius-pill: 999px;
  --radius-card: 18px;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.35);
  --shadow-violet: 0 8px 30px rgba(123, 91, 255, 0.35);
  --max: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --focus: 0 0 0 3px rgba(123, 91, 255, 0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--sage-black);
  color: var(--sage-ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-cyan); text-decoration: none; }
a:hover { color: #6de0ec; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
ul, ol { padding-left: 1.2rem; }
li + li { margin-top: 0.35rem; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--sage-black);
  color: #fff;
  border: 1px solid var(--sage-violet);
  border-radius: 10px;
  box-shadow: var(--focus);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-cyan);
  margin-bottom: 0.75rem;
}

.muted { color: var(--sage-ink-muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--sage-ink-muted); max-width: 42rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--sage-violet);
  color: #fff !important;
  box-shadow: var(--shadow-violet);
}
.btn-primary:hover { background: var(--sage-violet-600); color: #fff !important; }
.btn-coral {
  background: var(--sage-coral);
  color: #fff !important;
}
.btn-ghost {
  background: transparent;
  border-color: var(--sage-line);
  color: var(--sage-ink) !important;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-dark {
  background: var(--sage-panel-ink);
  color: #fff !important;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 16, 20, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--sage-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--sage-ink) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--sage-line);
  color: var(--sage-ink);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 1.25rem;
  cursor: pointer;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  color: var(--sage-ink);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--sage-violet-soft);
  color: #fff;
}
.nav-links .btn-coral {
  margin-left: 0.35rem;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .nav-links .btn-coral { margin-left: 0; text-align: center; }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  position: relative;
}
.section-dark { background: var(--sage-black); color: var(--sage-ink); }
.section-soft { background: var(--sage-black-soft); }
.section-light {
  background: var(--sage-panel);
  color: var(--sage-panel-ink);
}
.section-light .muted,
.section-light .lead,
.section-light .eyebrow { color: var(--sage-panel-muted); }
.section-light .eyebrow { color: var(--sage-violet); }
.section-light .btn-ghost {
  color: var(--sage-panel-ink) !important;
  border-color: rgba(21, 23, 29, 0.2);
}
.section-light a:not(.btn) { color: var(--sage-violet-600); }
.section-light a:not(.btn):hover { color: var(--sage-violet); }
.section-violet {
  background: linear-gradient(135deg, #5a3fd6 0%, #7b5bff 55%, #3a2a8a 100%);
  color: #fff;
}
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse at 20% 20%, rgba(123, 91, 255, 0.22), transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(61, 208, 224, 0.12), transparent 40%),
    var(--sage-black);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--sage-line);
  aspect-ratio: 4 / 3;
  background: #1a1b22;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,16,20,0.75));
  pointer-events: none;
}
.float-card {
  position: absolute;
  z-index: 2;
  background: rgba(22, 23, 29, 0.92);
  border: 1px solid var(--sage-line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  max-width: 220px;
}
.float-card.top-left { top: 1rem; left: 1rem; }
.float-card.bottom-right { right: 1rem; bottom: 1.25rem; }
.float-card strong { display: block; margin-bottom: 0.2rem; }
.float-card .tiny { color: var(--sage-ink-muted); font-size: 0.75rem; }

.timeline-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.timeline-ribbon span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sage-line);
  color: var(--sage-ink-muted);
}
.timeline-ribbon span.active {
  background: var(--sage-violet-soft);
  color: #fff;
  border-color: rgba(123, 91, 255, 0.45);
}

/* Cards / grids */
.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius-card);
  padding: 1.35rem;
}
.section-light .card {
  background: #f7f8fb;
  border-color: rgba(21, 23, 29, 0.08);
}
.card img {
  border-radius: 12px;
  margin-bottom: 1rem;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card h3 { margin-bottom: 0.4rem; }
.icon-badge {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-violet-soft);
  color: var(--sage-violet);
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.feature-row {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row.reverse .feature-copy { order: 2; }
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--sage-line);
  background: rgba(255,255,255,0.03);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 700;
  color: var(--sage-violet);
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* Comparison */
.compare-verdict {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .compare-verdict { grid-template-columns: 1fr 1fr; }
}
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sage-line);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,0.02);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}
.compare-table th,
.compare-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sage-line);
  vertical-align: top;
}
.compare-table th {
  background: rgba(123, 91, 255, 0.12);
  font-weight: 600;
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-note {
  font-size: 0.85rem;
  color: var(--sage-ink-muted);
  margin-top: 0.85rem;
}

/* Pricing */
.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--sage-line);
  background: rgba(255,255,255,0.03);
}
.price-card.featured {
  border-color: rgba(123, 91, 255, 0.55);
  box-shadow: var(--shadow-violet);
  background: linear-gradient(180deg, rgba(123,91,255,0.16), rgba(255,255,255,0.02));
}
.price-card .price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0;
}
.price-card .price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage-ink-muted);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  flex: 1;
}
.price-card li {
  padding-left: 1.3rem;
  position: relative;
  margin-top: 0.55rem;
  color: var(--sage-ink-muted);
  font-size: 0.92rem;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage-cyan);
  font-weight: 700;
}

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; max-width: 760px; }
.faq-item {
  border: 1px solid var(--sage-line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.section-light .faq-item {
  background: #f7f8fb;
  border-color: rgba(21,23,29,0.08);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--sage-violet);
  font-size: 1.25rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body {
  padding: 0 1.15rem 1.15rem;
  color: var(--sage-ink-muted);
}
.section-light .faq-item .faq-body { color: var(--sage-panel-muted); }

/* Blog */
.article {
  max-width: 720px;
  margin: 0 auto;
}
.article-meta {
  color: var(--sage-ink-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.prose {
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose h2 {
  margin-top: 2.25rem;
  font-family: var(--font-serif);
}
.prose h3 { margin-top: 1.75rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.prose th, .prose td {
  border: 1px solid var(--sage-line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.prose th { background: rgba(123,91,255,0.12); }
.blog-card {
  display: block;
  color: inherit !important;
  transition: transform 0.2s ease;
}
.blog-card:hover { transform: translateY(-2px); }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--sage-violet-soft);
  color: #cbbdff;
  margin-right: 0.35rem;
}

/* Forms */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--sage-line);
  background: rgba(255,255,255,0.03);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--sage-line);
  background: rgba(0,0,0,0.25);
  color: var(--sage-ink);
  font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage-violet);
  box-shadow: var(--focus);
}
.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--sage-ink-muted);
}
.checkbox input { margin-top: 0.25rem; }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok {
  background: rgba(61, 208, 224, 0.12);
  border: 1px solid rgba(61, 208, 224, 0.35);
  color: #9ceaf2;
}
.form-status.err {
  background: rgba(255, 122, 107, 0.12);
  border: 1px solid rgba(255, 122, 107, 0.35);
  color: #ffc2ba;
}
.contact-channels {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.contact-channels a,
.contact-channels div {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--sage-line);
  background: rgba(255,255,255,0.03);
  color: inherit !important;
}
.channel-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: var(--sage-violet-soft);
  color: var(--sage-violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(123,91,255,0.18), transparent 45%),
    var(--sage-black);
}
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--sage-ink-muted);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--sage-ink-muted); }
.breadcrumbs a:hover { color: var(--sage-cyan); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--sage-line);
  padding: 3rem 0 2rem;
  background: #0c0d11;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-ink-muted);
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  color: var(--sage-ink);
  padding: 0.25rem 0;
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--sage-cyan); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sage-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--sage-ink-muted);
  font-size: 0.85rem;
}

.legal-notice {
  font-size: 0.85rem;
  color: var(--sage-ink-muted);
  border-left: 3px solid var(--sage-gold);
  padding: 0.75rem 1rem;
  background: rgba(212, 168, 75, 0.08);
  border-radius: 0 12px 12px 0;
  margin: 1.25rem 0;
}

.media-list a {
  display: inline-flex;
  margin: 0.35rem 0.5rem 0.35rem 0;
}

.cta-band .container {
  text-align: center;
  max-width: 720px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .blog-card, .card { transition: none; }
  .btn:hover, .blog-card:hover { transform: none; }
}
