/* ==========================================================================
   Stovura — shared stylesheet
   Brand: deep navy + teal, clean/minimal SaaS.
   Edit palette in :root only; both pages inherit.
   ========================================================================== */

:root {
  /* Palette */
  --navy:        #0B1B3B;
  --navy-800:    #10254E;
  --navy-700:    #17356E;
  --teal:        #14B8A6;
  --teal-600:    #0E9488;
  --off-white:   #F8FAFC;
  --white:       #FFFFFF;
  --slate-700:   #334155;
  --slate-500:   #64748B;
  --slate-300:   #CBD5E1;
  --slate-200:   #E2E8F0;
  --slate-100:   #F1F5F9;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", var(--font-sans);

  /* Rhythm */
  --maxw: 1080px;
  --maxw-prose: 720px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(11, 27, 59, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 27, 59, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-700);
  background: var(--off-white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

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

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { height: 28px; width: auto; display: block; }
.brand .wordmark { color: var(--navy); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--slate-500); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--slate-300);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--white); }

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(20, 184, 166, 0.14) 0%, rgba(20, 184, 166, 0) 45%),
    linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
  border-bottom: 1px solid var(--slate-200);
}
.hero-inner {
  padding: 96px 0 88px;
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.10);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--teal-600); }
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--slate-500);
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: 13px; color: var(--slate-500); margin: 16px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; }
.section-head p { color: var(--slate-500); font-size: 1.1rem; margin: 0; }

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.section-alt .feature { background: var(--off-white); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.feature-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--teal); }
.feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--slate-500); font-size: 0.98rem; margin: 0; }

/* ---------- Demo video ---------- */
.video-wrap {
  max-width: 860px;
  margin: 56px auto 0;
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--navy);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
}
.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.video-embed:hover .video-thumb { transform: scale(1.03); opacity: 0.92; }
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border: none;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(11, 27, 59, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.video-embed:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--teal-600); }
.video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-label {
  position: absolute;
  left: 0; bottom: 0;
  padding: 14px 18px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  background: linear-gradient(0deg, rgba(11,27,59,0.55) 0%, rgba(11,27,59,0) 100%);
  width: 100%;
  pointer-events: none;
}
.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--teal-600); margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--slate-500); font-size: 0.98rem; margin: 0; }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  color: var(--off-white);
}
.contact h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact p { color: var(--slate-300); max-width: 500px; margin: 0 auto 28px; }
.contact .email-btn {
  background: var(--teal);
  color: var(--white);
  font-size: 1.05rem;
  padding: 14px 28px;
}
.contact .email-btn:hover { background: var(--teal-600); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  border-top: 1px solid var(--slate-200);
}
.faq-item { border-bottom: 1px solid var(--slate-200); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: block;
  padding: 22px 48px 22px 4px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--slate-100); }
.faq-item summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--slate-500);
  border-bottom: 2px solid var(--slate-500);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item[open] summary { color: var(--teal-600); }
.faq-answer {
  padding: 0 4px 24px;
  color: var(--slate-500);
  font-size: 1rem;
  max-width: 68ch;
}
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: 4px 0 12px; padding-left: 22px; }
.faq-answer li { margin: 6px 0; }
.faq-answer strong { color: var(--slate-700); }
.faq-answer a { color: var(--teal-600); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .faq-item summary, .faq-item summary::after { transition: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--slate-200);
  background: var(--off-white);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.footer-brand img { height: 22px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--slate-500); font-size: 14px; }
.footer-links a:hover { color: var(--navy); text-decoration: none; }
.footer-legal { color: var(--slate-500); font-size: 13px; width: 100%; margin-top: 8px; }

/* ---------- Legal / prose page ---------- */
.legal-hero { background: var(--navy); color: var(--off-white); padding: 64px 0 48px; }
.legal-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal-hero .meta { color: var(--slate-300); font-size: 0.95rem; margin: 0; }

.prose { max-width: var(--maxw-prose); margin: 0 auto; padding: 56px 24px 88px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose p { color: var(--slate-700); }
.prose ul, .prose ol { color: var(--slate-700); padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--teal-600); text-decoration: underline; }
.prose hr { border: none; border-top: 1px solid var(--slate-200); margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--slate-200); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--slate-100); color: var(--navy); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .features, .steps { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .contact { padding: 44px 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-links a.nav-text { display: none; } /* keep only the CTA on small screens */
  .hero-inner { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
}
