/* ============================================================
   VybeScript marketing site — shared design system
   Tokens pulled from VybeScript.dc.html (Claude Design handoff)
   and Website/Content/Brand-Voice-Style-Guide.md
   ============================================================ */

:root {
  /* palette */
  --palladian: #EEE9DF;   /* primary warm cream background */
  --soft-surface: #F7F5F0;/* secondary near-white surface / cards */
  --oatmeal: #C9C1B1;     /* muted warm neutral — borders, dividers */
  --abyssal: #1B2632;     /* near-black navy — primary headline text */
  --blue-fantastic: #2C3B4D; /* deep slate blue — secondary/body text */
  --burning-flame: #FFB162;  /* warm amber-orange — primary accent, CTAs */
  --rust: #A35139;        /* deep terracotta — secondary accent */
  --border-warm: #E4DCCB;
  --border-card: #EAE2D2;
  --border-faq: #DDD4C3;
  --muted-text: #6B6355;
  --footer-muted: #6f7c88;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--palladian);
  color: var(--abyssal);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }

@keyframes vs-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes vs-bar { 0%,100% { transform: scaleY(.32); } 50% { transform: scaleY(1); } }
@keyframes vs-caret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.wrap-narrow { width: min(760px, 92vw); margin: 0 auto; }
.wrap-article { width: min(680px, 92vw); margin: 0 auto; }

/* ---------------- nav ---------------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  background: rgba(238,233,223,.78);
  border-bottom: 1px solid rgba(201,193,177,.55);
}
.site-nav .wrap { height: 62px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(145deg, #FFC261, #FF6E29 65%, #EB2E14);
  display: flex; align-items: center; justify-content: center; gap: 2.5px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.55), 0 2px 6px rgba(163,81,57,.35);
  flex: none;
}
.brand-mark span { display: block; width: 2px; background: #fff; border-radius: 2px; }
.brand-mark span:nth-child(1) { height: 8px; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 6px; }
.brand-mark span:nth-child(4) { height: 11px; }
.brand-name { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--blue-fantastic); white-space: nowrap; }
.nav-cta {
  font-size: 14px; font-weight: 600; color: var(--abyssal);
  background: var(--burning-flame); padding: 8px 16px; border-radius: 9px;
  box-shadow: 0 3px 10px -3px rgba(255,110,41,.6);
}
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-link.hide-mobile { display: none; }
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; border-radius: 12px; padding: 14px 28px;
  cursor: pointer; border: none;
}
.btn-primary {
  color: var(--abyssal); background: var(--burning-flame);
  box-shadow: 0 10px 24px -8px rgba(255,110,41,.7);
}
.btn-secondary {
  color: var(--blue-fantastic); background: var(--soft-surface);
  border: 1px solid var(--oatmeal);
}
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 13px; font-size: 15.5px; }

/* ---------------- eyebrow / heading ---------------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rust);
}
h1, h2, h3 { letter-spacing: -.025em; font-weight: 700; margin: 0; }
.section-title { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.08; margin-top: 14px; }
.section-lede { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: var(--blue-fantastic); }

/* ---------------- hero ---------------- */
.hero {
  width: min(1120px, 92vw); margin: 0 auto; padding-top: 74px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px;
  border: 1px solid var(--oatmeal); border-radius: 999px; background: rgba(247,245,240,.6);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rust); }
.hero-badge span.label { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.hero h1 {
  margin: 22px 0 0; font-size: clamp(42px, 7vw, 66px); line-height: 1.02;
  letter-spacing: -.03em; max-width: 12ch;
}
.hero-sub { margin: 20px 0 0; font-size: clamp(17px, 2.4vw, 20px); line-height: 1.5; color: var(--blue-fantastic); max-width: 30rem; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; margin-top: 30px; }
.hero-stage {
  position: relative; width: 100%; height: clamp(320px, 46vw, 460px); margin-top: 30px;
  display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(58% 52% at 50% 64%, #F6F1E8 0%, rgba(238,233,223,0) 72%);
}
.hero-stage video {
  width: clamp(320px, 46vw, 460px); height: clamp(320px, 46vw, 460px); object-fit: cover;
  animation: vs-float 6s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(closest-side at 50% 46%, #000 74%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 46%, #000 74%, transparent 100%);
  pointer-events: none;
}

/* ---------------- sections ---------------- */
.section { padding: 96px 0; }
.section-tinted { background: var(--soft-surface); border-top: 1px solid var(--border-warm); border-bottom: 1px solid var(--border-warm); }
.section-tinted .section { padding: 92px 0; }
.section-header { max-width: 34rem; }
.section-header.wide { max-width: 40rem; }

/* ---------------- how it works ---------------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 46px; }
.step-card { background: #fff; border: 1px solid var(--border-card); border-radius: 18px; padding: 26px 24px 30px; }
.step-index {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; background: #F2ECE0; border: 1px solid var(--border-warm);
  font-size: 15px; font-weight: 700; color: var(--rust);
}
.step-title { margin-top: 20px; font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.step-copy { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--blue-fantastic); }
.step-kbd-row { display: flex; gap: 6px; margin-top: 18px; }
kbd {
  font-size: 13px; font-weight: 600; color: var(--abyssal); background: var(--soft-surface);
  border: 1px solid var(--oatmeal); border-bottom-width: 2px; border-radius: 7px; padding: 5px 9px;
  font-family: inherit;
}
.bars { display: flex; align-items: flex-end; gap: 3px; height: 24px; margin-top: 18px; }
.bars.sm { height: 18px; gap: 2.5px; }
.bar { width: 3px; height: 100%; border-radius: 3px; transform-origin: bottom; animation: vs-bar 1s ease-in-out infinite; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 5px 11px;
  border-radius: 999px; background: #F2ECE0; border: 1px solid var(--border-warm);
  font-size: 12.5px; font-weight: 600; color: var(--rust);
}
.transcript-preview {
  margin-top: 18px; font-size: 14px; color: var(--abyssal); background: var(--soft-surface);
  border: 1px solid var(--border-card); border-radius: 9px; padding: 9px 11px;
}
.caret { display: inline-block; width: 2px; height: 14px; background: #FF6E29; margin-left: 1px; vertical-align: -2px; animation: vs-caret 1s step-end infinite; }

/* ---------------- writing styles demo ---------------- */
.styles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; margin-top: 42px; align-items: start; }
.demo-card { background: #fff; border: 1px solid var(--border-card); border-radius: 20px; padding: 26px; box-shadow: 0 20px 44px -28px rgba(27,38,50,.35); }
.demo-card-header { display: flex; align-items: center; gap: 10px; }
.demo-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rust); }
.demo-quote { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted-text); font-style: italic; }
.demo-card-output {
  background: linear-gradient(165deg, #FFF7EC, #F7F5F0); border: 1px solid #EAD9C0; border-radius: 20px;
  padding: 26px; box-shadow: 0 20px 44px -26px rgba(163,81,57,.4);
}
.style-tabs { display: inline-flex; gap: 4px; padding: 4px; background: rgba(238,233,223,.7); border: 1px solid var(--border-warm); border-radius: 12px; }
.style-tab {
  padding: 8px 16px; border-radius: 9px; font-size: 14px; cursor: pointer; font-weight: 500;
  color: var(--muted-text); background-color: transparent; box-shadow: none; border: none; font-family: inherit;
}
.style-tab.active { font-weight: 600; color: var(--abyssal); background-color: var(--burning-flame); box-shadow: 0 3px 8px -3px rgba(255,110,41,.6); }
.style-desc { margin: 18px 0 0; font-size: 13px; font-weight: 500; color: var(--rust); }
.style-text { margin: 10px 0 0; font-size: clamp(19px, 2.6vw, 23px); line-height: 1.5; font-weight: 500; letter-spacing: -.01em; color: var(--abyssal); min-height: 5.2em; }

/* ---------------- privacy ---------------- */
.privacy-section { background: var(--abyssal); color: var(--palladian); }
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: center; }
.privacy-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--burning-flame); }
.privacy-title { margin: 14px 0 0; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; color: var(--soft-surface); }
.privacy-copy { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--oatmeal); max-width: 32rem; }
.privacy-list { display: flex; flex-direction: column; gap: 12px; }
.privacy-item { display: flex; align-items: center; gap: 14px; background: #22303E; border: 1px solid var(--blue-fantastic); border-radius: 14px; padding: 16px 18px; }
.privacy-item .dot { font-size: 18px; }
.privacy-item span.txt { font-size: 15.5px; font-weight: 500; color: var(--palladian); }

/* ---------------- pricing ---------------- */
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; max-width: 760px; margin-left: auto; margin-right: auto; text-align: left; }
.price-card { background: #fff; border: 1px solid var(--border-warm); border-radius: 22px; padding: 32px 30px; box-shadow: 0 20px 44px -32px rgba(27,38,50,.35); position: relative; }
.price-card.featured { border: 1.5px solid var(--burning-flame); box-shadow: 0 26px 56px -30px rgba(163,81,57,.45); }
.price-badge {
  position: absolute; top: 20px; right: 24px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--rust); background: #FFF1DF; border: 1px solid #F1D9B8; border-radius: 999px; padding: 4px 11px;
}
.price-plan-name { font-size: 18px; font-weight: 650; }
.price-amount-row { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.price-amount { font-size: 44px; font-weight: 700; letter-spacing: -.03em; }
.price-period { font-size: 15px; color: var(--muted-text); }
.price-copy { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--blue-fantastic); }
.price-features { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.price-feature { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--abyssal); }
.price-feature .check { color: var(--rust); font-weight: 700; }

/* ---------------- FAQ ---------------- */
.faq-list { margin-top: 40px; border-top: 1px solid var(--border-faq); }
.faq-item { border-bottom: 1px solid var(--border-faq); padding: 22px 4px; }
.faq-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; width: 100%;
  background: none; border: none; margin: 0; padding: 0; font: inherit; color: inherit;
  text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.faq-row:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; border-radius: 4px; }
.faq-q { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--abyssal); }
.faq-icon { font-size: 24px; font-weight: 300; line-height: 1; color: var(--rust); flex: none; transition: transform .2s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  overflow: hidden; transition: max-height .3s ease, opacity .24s ease, margin-top .24s ease;
  font-size: 15.5px; line-height: 1.6; color: var(--blue-fantastic);
  max-height: 0; opacity: 0; margin-top: 0; padding-right: 36px;
}
.faq-item.open .faq-a { max-height: 420px; opacity: 1; margin-top: 12px; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--abyssal); color: var(--oatmeal); }
.footer-top { padding: 56px 0; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-about { max-width: 22rem; }
.footer-about .brand { margin-bottom: 0; }
.footer-tagline { margin: 14px 0 0; font-size: 14px; line-height: 1.55; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--footer-muted); }
.footer-col a { font-size: 14px; }
.footer-bottom { border-top: 1px solid var(--blue-fantastic); }
.footer-bottom .wrap { padding: 20px 0; font-size: 13px; color: var(--footer-muted); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* ---------------- generic article / legal pages ---------------- */
.article-hero { padding: 64px 0 8px; text-align: center; }
.article-hero .eyebrow { display: block; }
.article-hero h1 { margin-top: 12px; font-size: clamp(32px, 5vw, 46px); line-height: 1.08; }
.article-hero .dek { margin: 14px auto 0; font-size: 17px; line-height: 1.55; color: var(--blue-fantastic); max-width: 34rem; }
.article-body { padding: 40px 0 96px; }
.article-body.legal { font-size: 15.5px; line-height: 1.7; color: var(--blue-fantastic); }
.article-body.legal .effective-date { color: var(--muted-text); font-style: italic; margin-top: -8px; margin-bottom: 32px; }
.article-body h2 { font-size: 21px; color: var(--abyssal); margin: 40px 0 12px; letter-spacing: -.015em; }
.article-body h2:first-of-type { margin-top: 0; }
.article-body h3 { font-size: 17px; color: var(--abyssal); margin: 24px 0 8px; }
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 14px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--rust); text-decoration: underline; text-decoration-color: rgba(163,81,57,.35); }
.article-body strong { color: var(--abyssal); }
.article-body hr { border: none; border-top: 1px solid var(--border-faq); margin: 32px 0; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 28px 0 44px; padding: 16px 18px; background: var(--soft-surface); border: 1px solid var(--border-card); border-radius: 14px; }
.legal-toc a { font-size: 13.5px; font-weight: 600; color: var(--blue-fantastic); text-decoration: none; }

/* ---------------- support / faq page extras ---------------- */
.req-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.req-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--border-card); border-radius: 14px; padding: 14px 16px; font-size: 15px; color: var(--blue-fantastic); }
.req-item .req-dot { color: var(--rust); font-weight: 700; flex: none; }
.step-num-list { counter-reset: steplist; list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.step-num-list li { counter-increment: steplist; display: flex; gap: 14px; background: #fff; border: 1px solid var(--border-card); border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.55; color: var(--blue-fantastic); }
.step-num-list li::before {
  content: counter(steplist); flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: #F2ECE0; border: 1px solid var(--border-warm); color: var(--rust); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.cat-title { margin: 48px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.cat-title:first-of-type { margin-top: 0; }

/* ---------------- final CTA ---------------- */
.final-cta { text-align: center; padding: 80px 0 96px; }
.final-cta h2 { font-size: clamp(28px, 4.4vw, 40px); }
.final-cta p { margin: 14px auto 0; max-width: 30rem; color: var(--blue-fantastic); font-size: 17px; }
.final-cta .hero-ctas { margin-top: 28px; }

@media (max-width: 560px) {
  .hero-ctas, .final-cta .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* ---------------- waitlist / coming soon ---------------- */
.coming-soon-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; margin-bottom: 18px;
  border: 1px solid var(--oatmeal); border-radius: 999px; background: rgba(247,245,240,.6);
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rust);
}
.coming-soon-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rust); flex: none; }
.waitlist-box {
  background: #fff; border: 1px solid var(--border-card); border-radius: 20px; padding: 30px;
  box-shadow: 0 20px 44px -28px rgba(27,38,50,.35); text-align: left;
}
.waitlist-box .waitlist-title { font-size: 18px; font-weight: 650; margin-bottom: 6px; }
.waitlist-box .waitlist-copy { font-size: 14.5px; color: var(--blue-fantastic); margin-bottom: 18px; }
.waitlist-inputs { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-inputs input[type="email"] {
  flex: 1 1 220px; font-size: 15px; font-family: inherit; color: var(--abyssal);
  background: var(--soft-surface); border: 1px solid var(--oatmeal); border-radius: 10px; padding: 12px 14px;
}
.waitlist-inputs input[type="email"]:focus { outline: 2px solid var(--rust); outline-offset: 1px; }
.waitlist-inputs .btn { flex: 0 0 auto; padding: 12px 22px; font-size: 15px; }
.waitlist-inputs .btn:disabled { opacity: .6; cursor: default; }
.waitlist-status { margin: 12px 0 0; font-size: 13.5px; min-height: 1.4em; }
.waitlist-status.success { color: #2f7a4f; }
.waitlist-status.error { color: #b3402a; }
.waitlist-fineprint { margin-top: 10px; font-size: 12.5px; color: var(--muted-text); }

@media (max-width: 560px) {
  .waitlist-inputs { flex-direction: column; }
  .waitlist-inputs .btn { width: 100%; }
}

/* ---------------- cookie consent banner ---------------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border-card); border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 20px 44px -18px rgba(27,38,50,.4);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p {
  margin: 0; flex: 1 1 260px; font-size: 13.5px; line-height: 1.5; color: var(--blue-fantastic);
}
.cookie-banner p a { color: var(--rust); text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie-banner button {
  font-family: inherit; font-size: 13.5px; font-weight: 600; border-radius: 9px; padding: 9px 16px;
  cursor: pointer; border: none;
}
.cookie-banner .cookie-accept { color: var(--abyssal); background: var(--burning-flame); }
.cookie-banner .cookie-decline { color: var(--blue-fantastic); background: var(--soft-surface); border: 1px solid var(--oatmeal); }

@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner .cookie-actions { width: 100%; }
  .cookie-banner .cookie-actions button { flex: 1; }
}
