/* ── Hero ── */

.hero {
  background: linear-gradient(160deg, var(--ask-blue) 0%, var(--ask-blue-deep) 100%);
  padding: 8rem 2rem 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* The product's sidenav blue is light enough that dimmed white fails AA on it.
     A flat 12% scrim buys back the headroom without changing the hue. */
  background: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
              radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
              radial-gradient(ellipse at 10% 90%, rgba(0, 0, 0, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* On an Ask-blue ground a blue button vanishes, so the hero inverts it:
   white fill, blue label. The CTA band does the same. */

.btn-primary {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  background: linear-gradient(135deg, #0057ff, #0041cc);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 87, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 87, 255, 0.55);
}

.hero .btn-primary,
.cta-band .btn-primary {
  background: #ffffff;
  color: var(--ask-blue-deep);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.hero .btn-primary:hover,
.cta-band .btn-primary:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.26);
}

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-trust {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.03em;
}

.hero-trust-line {
  display: block;
  margin-top: 0.35rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111111;
  background: rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.18);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 3.5rem;
}

.section-eyebrow-light {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7eb3ff;
  background: rgba(100, 160, 255, 0.12);
  border: 1px solid rgba(100, 160, 255, 0.25);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

/* ── CTA Band ── */

.cta-band {
  background: linear-gradient(160deg, var(--ask-blue) 0%, var(--ask-blue-deep) 100%);
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
              radial-gradient(ellipse at 50% 55%, rgba(255, 255, 255, 0.13) 0%, transparent 62%);
  pointer-events: none;
}

.cta-band-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-band p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.cta-band-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.cta-band-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.15s ease;
}

.cta-band-link:hover {
  color: #ffffff;
}

/* ── FAQ ── */

.home-faq {
  padding: 7rem 2rem 6rem;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}

.home-faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(0, 87, 255, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 5% 85%, rgba(120, 0, 255, 0.03) 0%, transparent 45%);
  pointer-events: none;
}

.home-faq-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.home-faq h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 3rem;
  color: #111111;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item summary {
  list-style: none;
  padding: 1.4rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111111;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: #0057ff;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  font-size: 0.975rem;
  color: #444;
  line-height: 1.75;
  padding: 0 2rem 1.5rem 0;
  max-width: 620px;
}

/* ── Variance Monitoring (marquee section) ── */

.variance {
  padding: 8rem 2rem 7rem;
  background: var(--paper);
  position: relative;
}

.variance::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 88% 12%, rgba(0, 87, 255, 0.09) 0%, transparent 52%),
    radial-gradient(ellipse at 6% 88%, rgba(120, 0, 255, 0.05) 0%, transparent 45%);
  pointer-events: none;
}

.variance-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.variance h2 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #111111;
  margin-bottom: 1.15rem;
  max-width: 640px;
}

.variance .section-intro {
  font-size: 1.1rem;
  max-width: 680px;
  margin-bottom: 3.25rem;
}

.variance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 40, 120, 0.07);
}

.variance-card {
  padding: 2.75rem 2.5rem;
  border-right: 1px solid rgba(0, 0, 0, 0.09);
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.variance-card:nth-child(2n) {
  border-right: none;
}

.variance-card:nth-last-child(-n + 2) {
  border-bottom: none;
}

.variance-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #0057ff, #0041cc);
  color: #fff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.variance-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.7rem;
  letter-spacing: -0.015em;
}

.variance-card p {
  font-size: 0.975rem;
  color: #555;
  line-height: 1.75;
}

.variance-note {
  margin-top: 2rem;
  padding: 2.25rem 2.5rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-left: 4px solid #0057ff;
  border-radius: 14px;
  max-width: 780px;
}

.variance-note h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.variance-note p {
  font-size: 0.975rem;
  color: #555;
  line-height: 1.8;
}

.variance-note em {
  font-style: italic;
  color: #222;
}

/* ── Product screenshots ── */

.shot {
  margin: 2.75rem 0 3rem;
}

/* Squeezed into the 960px column the product UI shrinks to ~8px type.
   The two evidence shots break out wider so they stay legible. */
.shot--lead {
  width: min(1200px, calc(100vw - 3rem));
  margin-left: 50%;
  transform: translateX(-50%);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(17, 20, 32, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(17, 20, 32, 0.12);
  background: #fff;
}

.shot figcaption {
  font-size: 0.875rem;
  color: #6a7086;
  line-height: 1.65;
  margin-top: 0.9rem;
  max-width: 62ch;
}

.shot figcaption em {
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(17, 20, 32, 0.06);
  padding: 0.08em 0.36em;
  border-radius: 3px;
  color: #33384a;
}

/* the marquee shot sits between the intro and the four cards */
.shot--lead {
  margin-top: 0;
  margin-bottom: 3.5rem;
}

/* Table Stakes gets a deliberately quiet letterbox — it is not the argument */
.shot--strip {
  margin: 2.75rem 0 0;
}

.shot--strip img {
  box-shadow: 0 8px 24px rgba(17, 20, 32, 0.08);
}

.shot--strip figcaption {
  font-size: 0.85rem;
}

.shot-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #8a90a6;
}

/* ── Variance demo: resting, typed, analysed ──
   Three layers. The typed layer is a thin strip of just the input row, revealed
   left to right by an animated clip, so the "typing" uses the product's own
   rendered text rather than a font we would have to match. Base state is the
   analysed result, so with animation off you still get the meaningful frame. */

.demo {
  position: relative;
  border: 1px solid rgba(17, 20, 32, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(17, 20, 32, 0.12);
  overflow: hidden;
  background: #fff;
}

.demo img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.demo-base { position: relative; z-index: 0; }

/* geometry measured off the render, so it holds at any width.
   Selector needs the img to outrank `.demo img { width:100% }`, which would
   otherwise stretch this strip to the full frame. */
.demo img.demo-empty,
.demo img.demo-typed {
  position: absolute;
  left: 0;
  top: 15.98%;
  width: 66.67%;
  opacity: 0;
}

/* clears the placeholder the instant "typing" starts, the way a real field does */
.demo img.demo-empty { z-index: 1; }

.demo img.demo-typed {
  z-index: 2;
  clip-path: inset(0 76.1% 0 0);
}

.demo-caret {
  position: absolute;
  z-index: 3;
  top: 19.3%;
  left: 15.9%;
  width: 2px;
  height: 2.6%;
  background: #33384a;
  z-index: 2;
  opacity: 0;
}

.demo-press {
  position: absolute;
  left: 91.5%;
  top: 18.48%;
  width: 6.5%;
  height: 4.48%;
  border-radius: 7px;
  box-shadow: 0 0 0 3px rgba(91, 75, 225, 0.55);
  background: rgba(255, 255, 255, 0.3);
  z-index: 4;
  opacity: 0;
}

.demo-result { position: absolute; inset: 0; z-index: 3; }

@media (prefers-reduced-motion: no-preference) {
  .is-playing img.demo-empty  { animation: vd-empty 13s linear infinite; }
  .is-playing img.demo-typed  { animation: vd-typed 13s linear infinite, vd-clip 13s linear infinite; }
  .is-playing .demo-caret  { animation: vd-caret 13s linear infinite; }
  .is-playing .demo-press  { animation: vd-press 13s linear infinite; }
  .is-playing .demo-result { animation: vd-result 13s linear infinite; }
}

@keyframes vd-empty {
  0%, 6.1%     { opacity: 0 }
  7.3%, 88%    { opacity: 1 }
  92%, 100%    { opacity: 0 }
}

@keyframes vd-typed {
  0%, 7.2%     { opacity: 0 }
  7.3%, 88%    { opacity: 1 }
  92%, 100%    { opacity: 0 }
}

/* the reveal edge tracks the text, from the input's left to the end of the prompt */
/* percentages here are relative to the strip element (66.67% of the frame),
   not to the frame: the prompt spans 23.9% to 58.2% of the strip's own width */
@keyframes vd-clip {
  0%, 7.3%     { clip-path: inset(0 76.1% 0 0) }
  23.1%, 91.9% { clip-path: inset(0 41.8% 0 0) }
  92%, 100%    { clip-path: inset(0 76.1% 0 0) }
}

@keyframes vd-caret {
  0%, 6.1%     { left: 15.9%; opacity: 0 }
  6.2%, 7.3%   { left: 15.9%; opacity: 1 }
  23.1%, 27.5% { left: 39%;   opacity: 1 }
  28%, 100%    { left: 39%;   opacity: 0 }
}

@keyframes vd-press {
  0%, 29.9%    { opacity: 0; transform: scale(1) }
  31%          { opacity: 1; transform: scale(0.93) }
  34%          { opacity: 0.5; transform: scale(1.09) }
  36%, 100%    { opacity: 0; transform: scale(1.14) }
}

@keyframes vd-result {
  0%, 33.5%    { opacity: 0 }
  44%, 84%     { opacity: 1 }
  92%, 100%    { opacity: 0 }
}

/* ── Our Unfair Advantage ── */

.edge {
  background: var(--ask-blue-deep);
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}

.edge::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 82% 45%, rgba(255, 255, 255, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 12% 25%, rgba(0, 0, 0, 0.14) 0%, transparent 50%);
  pointer-events: none;
}

.edge-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.edge h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1rem;
  max-width: 640px;
}

.edge-intro {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  max-width: 660px;
  margin-bottom: 3rem;
}

.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.edge-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: background 0.2s ease;
}

.edge-card:hover {
  background: rgba(255, 255, 255, 0.13);
}

.edge-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.edge-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.edge-cta {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 0.15rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.edge-cta:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* ── Table Stakes ── */

.stakes {
  padding: 6rem 2rem 5.5rem;
  background: var(--paper-alt);
  border-top: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}

.stakes-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stakes h2 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #111111;
  margin-bottom: 0.9rem;
}

.stakes .section-intro {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

/* The switching-cost answer. Table Stakes is deliberately quiet, but this
   handles the main objection an allocator on Word-and-email will have,
   so it gets a little more weight than the three steps below it. */

.stakes-start {
  background: #ffffff;
  border: 1px solid rgba(17, 20, 32, 0.1);
  border-left: 3px solid var(--ask-blue);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.75rem;
  max-width: 760px;
}

.stakes-start h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.012em;
  margin-bottom: 0.55rem;
}

.stakes-start p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.75;
}

.stakes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stakes-item {
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  padding-top: 1.25rem;
}

.stakes-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 0.5rem;
}

.stakes-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.stakes-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

/* ── Responsive ── */

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

  .stakes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .variance-card {
    padding: 2.25rem 2rem;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .variance h2 {
    font-size: 1.95rem;
  }

  .variance-grid {
    grid-template-columns: 1fr;
  }

  .variance-card,
  .variance-card:nth-last-child(-n + 2) {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  }

  .variance-card:last-child {
    border-bottom: none;
  }

  .variance-note {
    padding: 1.75rem 1.5rem;
  }

  .edge h2,
  .cta-band h2,
  .home-faq h2 {
    font-size: 1.75rem;
  }

  .stakes h2 {
    font-size: 1.6rem;
  }

  .cta-band-actions {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.85rem;
  }
}
