/* ============================================
   Claira — shared styles
   Palette: dark purple / gray / black / white
   (variable names kept from v1 to avoid markup churn:
    "green-*" = purples, "chartreuse" = lavender accent,
    "ivory" = light gray)
   ============================================ */

:root {
  /* Brand palette — Claira
     purples: light #E7DCF9 · main #6E32DC · dark #3F305D · darker #281E3B
     greens:  light #4DBFA0 · main #076A43 · dark #0C4536
     (legacy var names retained to avoid markup churn) */
  --green-deep: #3F305D;   /* dark purple — headings, dark bands */
  --green-ink: #281E3B;    /* darkest purple — footer */
  --green-mid: #6E32DC;    /* main purple — kickers, links, hovers */
  --chartreuse: #076A43;   /* accent green — CTA buttons */
  --chartreuse-dim: #4DBFA0;/* light green — soft accents, decorative marks */
  --purple-light: #E7DCF9;
  --purple-main: #6E32DC;
  --purple-dark: #3F305D;
  --green-light: #4DBFA0;
  --green-main: #076A43;
  --green-dark: #0C4536;
  --ivory: #f4f3f6;
  --ivory-dim: #e4e2ea;
  --ink: #141318;
  --ink-soft: #5c5965;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --max-w: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

a { color: inherit; }

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

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 243, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ivory-dim);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
}

.logo .dot { color: var(--chartreuse-dim); }

.logo img { width: auto; display: block; }
.logo .logo-full { display: none; }
.logo .logo-mark { display: block; height: 60px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--green-deep); }

@media (max-width: 720px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--purple-main);
  color: var(--white);
}

.btn-primary:hover { background: var(--purple-dark); }

.btn-accent {
  background: rgba(77, 191, 160, 0.32); /* light green, semi-transparent */
  color: var(--green-dark);
}

.btn-accent:hover { background: var(--green-main); color: var(--white); }

/* nav "Book a demo" — soft transparent purple */
.nav .btn-primary {
  background: rgba(110, 50, 220, 0.14);
  color: var(--purple-dark);
}

.nav .btn-primary:hover {
  background: var(--purple-main);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border: 1.5px solid var(--green-deep);
}

.btn-ghost:hover { background: rgba(110, 50, 220, 0.06); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  color: var(--green-deep);
  margin-bottom: 18px;
  max-width: 22ch;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- dark band ---------- */
.band {
  background: var(--green-deep);
  color: var(--ivory);
}

.band h2, .band .display { color: var(--ivory); }
.band .kicker { color: var(--green-light); }
.band .lede { color: rgba(244, 243, 246, 0.75); }

/* ---------- cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--ivory-dim);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card h3 {
  font-size: 1.25rem;
  color: var(--green-deep);
  margin-bottom: 10px;
}

.card p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- statement band ---------- */
.statement { background: var(--purple-light); }

.statement-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.9vw, 2.05rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--green-deep);
  max-width: 42ch;
}

.st-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.st-line + .st-line { margin-top: 0.45em; }

.st-line.em {
  font-weight: 600;
  color: var(--purple-main);
}

.statement-text.revealed .st-line { opacity: 1; transform: none; }
.statement-text.revealed .st-line:nth-child(1) { transition-delay: 0.05s; }
.statement-text.revealed .st-line:nth-child(2) { transition-delay: 0.40s; }
.statement-text.revealed .st-line:nth-child(3) { transition-delay: 0.75s; }
.statement-text.revealed .st-line:nth-child(4) { transition-delay: 1.10s; }
.statement-text.revealed .st-line:nth-child(5) { transition-delay: 1.45s; }

@media (prefers-reduced-motion: reduce) {
  .st-line { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- comparison table ---------- */
.compare-wrap { margin-top: 44px; overflow-x: auto; }

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
}

.compare th, .compare td {
  text-align: left;
  padding: 18px 22px;
  vertical-align: top;
  border-bottom: 1px solid var(--ivory-dim);
}

.compare thead th {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-deep);
  border-bottom: 2px solid var(--ivory-dim);
}

.compare thead th span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 6px;
}

.compare tbody th {
  width: 24%;
  font-weight: 600;
  color: var(--ink);
}

.compare td { color: var(--ink-soft); font-size: 0.97rem; }

.compare .col-claira {
  background: rgba(110, 50, 220, 0.05);
  color: var(--ink);
  font-weight: 500;
}

.compare thead .col-claira {
  color: var(--purple-main);
  background: rgba(110, 50, 220, 0.10);
  border-radius: 12px 12px 0 0;
}

.compare tbody tr:last-child td,
.compare tbody tr:last-child th { border-bottom: none; }
.compare tbody tr:last-child .col-claira { border-radius: 0 0 12px 12px; }

/* comparison table on a dark band */
.band .compare th,
.band .compare td { border-bottom-color: rgba(244, 243, 246, 0.15); }
.band .compare thead th {
  color: var(--ivory);
  border-bottom-color: rgba(244, 243, 246, 0.28);
}
.band .compare thead th span { color: rgba(244, 243, 246, 0.6); }
.band .compare tbody th { color: var(--ivory); }
.band .compare td { color: rgba(244, 243, 246, 0.72); }
.band .compare .col-claira {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
}
.band .compare thead .col-claira {
  color: var(--green-light);
  background: rgba(77, 191, 160, 0.16);
}

/* comparison table → stacked cards on mobile (so the Claira column always shows) */
@media (max-width: 640px) {
  .compare-wrap { overflow-x: visible; }
  .compare { min-width: 0; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }

  .compare tr {
    border: 1px solid rgba(244, 243, 246, 0.16);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    margin-bottom: 14px;
  }

  .compare tbody th {
    width: auto;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--ivory);
    padding: 0 0 12px;
    border: none;
  }

  .compare td {
    padding: 6px 0 0;
    border: none;
    color: rgba(244, 243, 246, 0.78);
  }

  .compare td::before {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 5px;
  }

  .compare td:not(.col-claira)::before {
    content: "The alternatives";
    color: rgba(244, 243, 246, 0.5);
  }

  .compare td.col-claira {
    background: rgba(77, 191, 160, 0.10);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 12px;
    color: var(--ivory);
  }

  .compare td.col-claira::before { content: "Claira"; color: var(--green-light); }
  .compare tbody tr:last-child .col-claira { border-radius: 10px; }
}

/* ---------- doors ---------- */
.door {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1.5px solid var(--ivory-dim);
  border-radius: var(--radius);
  padding: 36px 30px 32px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  overflow: hidden;
}

a.door:hover {
  transform: translateY(-4px);
  border-color: var(--green-mid);
  box-shadow: 0 14px 36px rgba(110, 50, 220, 0.12);
}

.door .door-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chartreuse-dim);
  margin-bottom: 14px;
}

.door h3 {
  font-size: 1.45rem;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.door .door-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--ivory);
  border: 1px solid var(--ivory-dim);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
  color: var(--green-mid);
}

.door p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 18px; }

.door .door-go {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-deep);
}

/* ---------- round door variant ---------- */
.door.round {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  max-width: 320px;
  margin: 0 auto;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.door.round:hover {
  transform: translateY(-4px) scale(1.015);
}

button.door.round {
  font-family: var(--font-body);
  cursor: pointer;
  text-align: center;
}

.door.round.is-active {
  border-color: var(--green-main);
  background: rgba(77, 191, 160, 0.08);
}

.door.round.is-active .door-go { color: var(--green-main); }

/* surface reveal panel (screen grab + copy) */
.surface-reveal { margin-top: 48px; }

.surface-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--ivory-dim);
  border-radius: var(--radius);
  padding: 26px;
}

@media (max-width: 820px) {
  .surface-panel { grid-template-columns: 1fr; gap: 24px; }
}

/* full-width image on top, copy below (used for wide screenshots like Slack) */
.surface-panel.stacked { grid-template-columns: 1fr; gap: 24px; }
.surface-panel.stacked .surface-copy { max-width: 68ch; }

.surface-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: center;
  padding: 20px;
}

.surface-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* when a real screen grab is present, show it in full (no crop) with a frame */
.surface-media.has-img {
  aspect-ratio: auto;
  height: auto;
  background: transparent;
  padding: 0;
  border: 1px solid var(--ivory-dim);
  box-shadow: 0 14px 34px rgba(20, 19, 24, 0.14);
}

.surface-media.has-img img,
.surface-media.has-img video { height: auto; width: 100%; display: block; border-radius: var(--radius-sm); }

.surface-copy h3 { font-size: 1.4rem; color: var(--green-deep); margin-bottom: 12px; }
.surface-copy p { color: var(--ink-soft); margin-bottom: 22px; }

.door.round .door-num { margin-bottom: 8px; }
.door.round .door-tag { margin-bottom: 10px; }
.door.round h3 { font-size: 1.25rem; }
.door.round p { font-size: 0.84rem; line-height: 1.45; margin-bottom: 12px; }

@media (max-width: 860px) {
  .door.round { max-width: 300px; }
}

/* ---------- wizard ---------- */
.wizard {
  background: var(--white);
  border: 1.5px solid var(--ivory-dim);
  border-radius: var(--radius);
  padding: 44px 40px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(110, 50, 220, 0.07);
}

.wizard .wz-step {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chartreuse-dim);
  margin-bottom: 12px;
}

.wizard h3 {
  font-size: 1.5rem;
  color: var(--green-deep);
  margin-bottom: 24px;
}

.wz-options { display: grid; gap: 12px; }

.wz-option {
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--ivory);
  border: 1.5px solid var(--ivory-dim);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.wz-option:hover {
  border-color: var(--green-mid);
  background: var(--white);
  transform: translateX(3px);
}

.wz-result-card {
  text-align: center;
}

.wz-result-card .big {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--green-deep);
  margin: 12px 0 10px;
}

.wz-result-card p { color: var(--ink-soft); margin-bottom: 24px; }

.wz-reset {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- quotes ---------- */
.quote-card {
  background: var(--white);
  border: 1px solid var(--ivory-dim);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.6;
  color: var(--chartreuse-dim);
  display: block;
  margin-bottom: 10px;
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--green-deep);
  margin-bottom: 20px;
}

.quote-card cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.quote-card cite strong { color: var(--ink); display: block; }

/* ---------- by the numbers ---------- */
.stats-band { text-align: center; }

.stat-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 243, 246, 0.55);
  margin: 30px 0 22px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px 24px;
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ivory);
  margin-bottom: 10px;
}

.stats-claira .stat .num { color: var(--green-light); }

.stat .lbl {
  font-size: 0.92rem;
  color: rgba(244, 243, 246, 0.75);
  max-width: 26ch;
  margin: 0 auto;
}

.stat .src {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 243, 246, 0.45);
  margin-top: 10px;
}

/* interactive stat tabs → quote */
.stat-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.stat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 18px;
  cursor: pointer;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.stat-tab:hover { transform: translateY(-3px); border-color: var(--green-light); }

.stat-tab.is-active {
  border-color: var(--green-light);
  background: rgba(77, 191, 160, 0.14);
}

.stat-tab .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--green-light);
}

.stat-tab .lbl {
  font-size: 0.85rem;
  color: rgba(244, 243, 246, 0.75);
}

.stat-quote {
  max-width: 62ch;
  margin: 0 auto;
  min-height: 8.5em;
}

.stat-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ivory);
  margin-bottom: 18px;
}

.stat-quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(244, 243, 246, 0.6);
}

.stat-quote cite strong { color: var(--ivory); }

@media (max-width: 520px) {
  .stat-quote { min-height: 0; }
}

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-card { text-align: center; text-decoration: none; display: block; }

.team-card .avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
  background: var(--green-deep);
  color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  transition: transform 0.18s, box-shadow 0.18s;
}

.team-card .avatar::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card .avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.team-card:hover .avatar {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(110, 50, 220, 0.22);
}

.team-card h4 { font-size: 1.02rem; color: var(--green-deep); }
.team-card p { font-size: 0.85rem; color: var(--ink-soft); }
.team-card .li {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-mid);
}

/* ---------- logos ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  align-items: center;
  justify-content: center;
}

.logo-strip img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-strip span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.65;
}

/* ---------- steps (landing pages) ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--ivory-dim);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--chartreuse);
  color: var(--green-ink);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h4 { font-size: 1.05rem; color: var(--green-deep); margin-bottom: 4px; }
.step p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer {
  background: var(--green-ink);
  color: rgba(244, 243, 246, 0.7);
  padding: 56px 0 36px;
  font-size: 0.9rem;
}

.footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 720px) { .footer .footer-grid { grid-template-columns: 1fr; } }

.footer h5 {
  color: var(--ivory);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer a { color: rgba(244, 243, 246, 0.7); text-decoration: none; }
.footer a:hover { color: var(--green-light); }
.footer ul { list-style: none; display: grid; gap: 8px; }

.footer .fine {
  border-top: 1px solid rgba(244, 243, 246, 0.15);
  padding-top: 24px;
  font-size: 0.8rem;
}

/* ---------- misc ---------- */
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--ivory-dim);
  border-radius: 999px;
  padding: 6px 16px;
  color: var(--green-mid);
  margin-bottom: 24px;
}

.placeholder-note {
  font-size: 0.78rem;
  color: #b08a3e;
  background: #fdf6e3;
  border: 1px dashed #e3cf96;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  display: inline-block;
  margin-top: 16px;
}

.fade-in {
  animation: fadeIn 0.35s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
