/* ── Hero ── */

.hero {
  /* The homepage is the crossroads, so its hero carries both brands:
     Ask blue on one side, Answer black on the other, meeting in the middle. */
  background: var(--hero-both);
  padding: 8rem 2rem 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-both-veil);
  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.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  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;
}

.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);
}

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  background: transparent;
  color: #ffffff;
  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.1);
}

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

.hero .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.38);
}

.hero-trust {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  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;
}

/* ── How it Works ── */

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

.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 45%, rgba(0, 87, 255, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

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

.section-eyebrow-light {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ask-blue);
  background: rgba(0, 87, 255, 0.07);
  border: 1px solid rgba(0, 87, 255, 0.2);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.step {
  background: var(--paper-alt);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--ask-blue);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(17, 20, 32, 0.07);
}

.step-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(0, 87, 255, 0.22);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

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

.step p {
  font-size: 0.875rem;
  color: #666b7e;
  line-height: 1.7;
}

/* ── CTA Band ── */

.cta-band {
  background: var(--hero-both);
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-both-veil);
  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.78);
  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.78);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ── FAQ ── */

.home-faq {
  padding: 7rem 2rem 6rem;
  background: var(--paper);
  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;
}

/* ── Responsive ── */

/* ── Hero: secondary link ── */

.hero-actions {
  margin-bottom: 1.5rem;
}

.hero-alt {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.hero-alt a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 0.1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hero-alt a:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* ── Two Sides ── */

.sides {
  padding: 7rem 2rem 6rem;
  background: var(--paper-alt);
  position: relative;
  overflow: hidden;
}

.sides::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 15%, rgba(0, 87, 255, 0.045) 0%, transparent 50%),
    radial-gradient(ellipse at 8% 85%, rgba(120, 0, 255, 0.03) 0%, transparent 45%);
  pointer-events: none;
}

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

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

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

.side-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-top: 3px solid var(--ask-blue);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.side-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* Each card wears its product's colour: Ask blue, Answer black.
   The homepage is the neutral crossroads; the cards carry the brands. */

.side-card--ask { border-top-color: var(--ask-blue); }
.side-card--answer { border-top-color: var(--answer-black); }

.side-card--answer .side-tag {
  color: var(--answer-black);
  background: rgba(13, 13, 13, 0.06);
  border-color: rgba(13, 13, 13, 0.18);
}

.side-card--answer .side-list li { border-left-color: rgba(13, 13, 13, 0.22); }

.side-card--answer .side-cta {
  color: var(--answer-black);
  border-bottom-color: rgba(13, 13, 13, 0.25);
}

.side-card--answer .side-cta:hover { border-bottom-color: var(--answer-black); }

.side-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ask-blue);
  background: rgba(0, 87, 255, 0.08);
  border: 1px solid rgba(0, 87, 255, 0.2);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.side-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.side-lede {
  font-size: 0.975rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.side-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.side-list li {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(0, 87, 255, 0.2);
}

.side-list li strong {
  color: #222;
  font-weight: 700;
}

.side-cta {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0057ff;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 87, 255, 0.25);
  padding-bottom: 0.15rem;
  transition: border-color 0.15s ease;
}

.side-cta:hover {
  border-color: #0057ff;
}

/* ── Two-sided loop diagram ── */

.loop-fig {
  margin: 0 0 3.5rem;
}

.loop {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.loop-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  fill: #8a90a6;
}

.node {
  fill: #ffffff;
  stroke: rgba(17, 20, 32, 0.12);
  stroke-width: 1;
}

.cap--ask { fill: var(--ask-blue); }
.cap--answer { fill: var(--answer-black); }

.node-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.node-name--ask { fill: var(--ask-blue); }
.node-name--answer { fill: var(--answer-black); }

.node-line {
  font-size: 14px;
  fill: #55596b;
}

.flow-label {
  font-size: 13px;
  font-weight: 600;
  fill: #33384a;
}

.cycle-label {
  font-size: 13.5px;
  fill: #55596b;
}

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

@media (max-width: 640px) {
  .loop-eyebrow { font-size: 13px; }
  .node-name { font-size: 22px; }
  .node-line, .cycle-label { font-size: 16px; }
  .flow-label { font-size: 15px; }
}

/* ── The 8: plain black, dissolving into the connector ──
   Armed by script only. Removing .is-armed IS the animation, so the resting
   state in the markup is the finished diagram and every fallback path is correct. */

/* Everything shares one delay and one duration, so the plain black 8 holds for a
   beat on its own and then the connector, both flow labels and the cycle line all
   resolve together. */
.two-sided .eight-black,
.two-sided .eight-grade,
.two-sided .eight-lbl {
  transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1) 1.2s;
}

.two-sided .eight-black { opacity: 0; }
.two-sided .eight-grade { opacity: 1; }

.is-armed .eight-black { opacity: 1; transition: none; }
.is-armed .eight-grade { opacity: 0; transition: none; }
.is-armed .eight-lbl   { opacity: 0; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .two-sided .eight-black,
  .two-sided .eight-grade,
  .two-sided .eight-lbl { transition: none; }
}

/* ── Our Edge ── */

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

.edge::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(0, 87, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(120, 0, 255, 0.03) 0%, transparent 45%);
  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: #111111;
  margin-bottom: 1rem;
  max-width: 640px;
}

.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.edge-card {
  padding: 2.25rem 2rem;
  border-right: 1px solid rgba(0, 0, 0, 0.09);
}

.edge-card:last-child {
  border-right: none;
}

.edge-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: var(--anchor);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.edge-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.edge-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

/* ── FAQ: inline links ── */

.faq-answer a {
  color: #0057ff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */

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

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

  .edge-card {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  }

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

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

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

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

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

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

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