/* /ipo/ - IPO application help page (src/pages/ipo.astro). Plain static
   file, NOT a component <style> block: Astro's scoped-CSS pipeline can drop
   CSS chunks from production builds on this site (astro-site/CLAUDE.md,
   "Scoped-CSS ..."). Guarded by python-scripts/verify_build.py. Every
   selector is prefixed with .ipo so nothing leaks to the rest of the site. */

.ipo {
  --ipo-ink: #1c1f2a;
  --ipo-deep: #2a2257;
  --ipo-accent: #693bb8;
  --ipo-gold: #f2b544;
  --ipo-ground: #f6f5fa;
  --ipo-card: #ffffff;
  --ipo-border: #dcd8ea;
  --ipo-muted: #4a4e5c;
  --ipo-wa: #1a7f4b;
  --ipo-err: #b3261e;
  background: var(--ipo-ground);
  color: var(--ipo-ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 32px;
}
.ipo,
.ipo p,
.ipo li {
  text-align: left;
}
.ipo-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.ipo .ipo-hero-sub {
  max-width: 720px;
}

/* Desktop: two-column rows. Phones keep one column in source order
   (steps, limits, disclosures, form). */
@media (min-width: 960px) {
  .ipo .ipo-row {
    display: grid;
    gap: 40px;
    align-items: start;
    margin: 40px 0;
  }
  .ipo .ipo-row > section {
    margin: 0;
  }
  .ipo .ipo-row--steps {
    grid-template-columns: 3fr 2fr;
  }
  .ipo .ipo-row--form {
    grid-template-columns: 2fr 3fr;
  }
  .ipo .ipo-limits,
  .ipo .ipo-row--form .ipo-how {
    position: sticky;
    top: 24px;
  }
  .ipo .ipo-limits {
    background: var(--ipo-card);
    border: 1px solid var(--ipo-border);
    border-radius: 10px;
    padding: 16px 18px;
  }
  .ipo .ipo-faq .cb-faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    align-items: start;
  }
  .ipo .ipo-faq .cb-faq h2 {
    grid-column: 1 / -1;
  }
  .ipo .ipo-more .ipo-list {
    columns: 2;
    column-gap: 40px;
  }
  .ipo .ipo-more .ipo-list li {
    break-inside: avoid;
  }
}

/* Hero */
.ipo .ipo-hero {
  background: var(--ipo-deep);
  color: #fff;
  padding: 40px 0 36px;
}
.ipo .ipo-hero h1 {
  color: #fff;
  font-size: 1.9rem;
  line-height: 1.3;
  margin: 0 0 12px;
}
.ipo .ipo-hero-sub {
  color: #e2def3;
  margin: 0 0 20px;
}
@media (min-width: 768px) {
  .ipo .ipo-hero h1 {
    font-size: 2.4rem;
  }
}

/* Buttons */
.ipo .ipo-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ipo .ipo-btn {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.ipo .ipo-btn--primary {
  background: var(--ipo-gold);
  color: #1c1f2a;
}
.ipo .ipo-btn--primary:hover,
.ipo .ipo-btn--primary:focus-visible {
  background: #e3a22c;
  color: #1c1f2a;
}
.ipo .ipo-btn--primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
.ipo .ipo-btn--wa {
  background: var(--ipo-wa);
  color: #fff;
}
.ipo .ipo-btn--wa:hover,
.ipo .ipo-btn--wa:focus-visible {
  background: #146a3e;
  color: #fff;
}
@media (max-width: 480px) {
  .ipo .ipo-btns .ipo-btn {
    flex: 1 1 100%;
  }
}

/* Sections */
.ipo section {
  margin: 32px 0;
}
/* The hero is a <section> too - butt it against the header */
.ipo section.ipo-hero {
  margin: 0;
}
.ipo h2 {
  color: var(--ipo-deep);
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 0 0 14px;
}
.ipo h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.ipo .ipo-steps,
.ipo .ipo-list {
  padding-left: 1.3em;
  margin: 0;
}
.ipo .ipo-steps li,
.ipo .ipo-list li {
  margin-bottom: 10px;
}

/* Help / don't columns */
.ipo .ipo-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .ipo .ipo-cols {
    grid-template-columns: 1fr 1fr;
  }
}
.ipo .ipo-card {
  background: var(--ipo-card);
  border: 1px solid var(--ipo-border);
  border-radius: 10px;
  padding: 16px 18px;
}
.ipo .ipo-card ul {
  padding-left: 1.2em;
  margin: 0;
}
.ipo .ipo-card li {
  margin-bottom: 8px;
}
.ipo .ipo-card--yes {
  border-top: 4px solid var(--ipo-wa);
}
.ipo .ipo-card--no {
  border-top: 4px solid var(--ipo-accent);
}

/* How this service works - normal size on purpose, not fine print */
.ipo .ipo-how {
  background: var(--ipo-card);
  border: 1px solid var(--ipo-border);
  border-left: 4px solid var(--ipo-gold);
  border-radius: 10px;
  padding: 16px 18px;
}
.ipo .ipo-how p {
  margin: 0 0 10px;
}
.ipo .ipo-how p:last-child {
  margin-bottom: 0;
}

/* Form */
.ipo .ipo-request {
  background: var(--ipo-card);
  border: 1px solid var(--ipo-border);
  border-radius: 10px;
  padding: 20px 18px;
}
.ipo .ipo-field {
  margin: 0 0 16px;
}
.ipo .ipo-field label,
.ipo .ipo-radios legend {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.ipo .ipo-opt {
  font-weight: 400;
  color: var(--ipo-muted);
}
.ipo .ipo-field input[type='text'],
.ipo .ipo-field input[type='tel'] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ipo-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
  color: var(--ipo-ink);
}
.ipo .ipo-field input:focus {
  outline: 2px solid var(--ipo-accent);
  outline-offset: 1px;
}
.ipo .ipo-radios {
  border: 0;
  padding: 0;
}
/* style.css gives <legend> a heading size - reset to a field label */
.ipo .ipo-radios legend {
  font-size: 1rem;
  line-height: 1.5;
  border: 0;
  padding: 0;
  width: auto;
}
.ipo .ipo-radios label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  margin: 0 18px 6px 0;
}
.ipo .ipo-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
}
.ipo .ipo-check input {
  margin-top: 5px;
  flex: 0 0 auto;
}
.ipo .ipo-consent {
  font-size: 0.95rem;
  color: var(--ipo-muted);
}
.ipo .ipo-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ipo .ipo-error {
  color: var(--ipo-err);
  font-weight: 600;
  margin: 0 0 12px;
}
.ipo .ipo-error-wa {
  margin-top: 12px;
}
.ipo .ipo-privacy {
  font-size: 0.9rem;
  color: var(--ipo-muted);
  margin: 12px 0 0;
}
.ipo .ipo-success p {
  font-weight: 600;
  margin: 0 0 14px;
}
.ipo [hidden] {
  display: none !important;
}

/* FAQ (reuses components/landing/Faq.astro markup: .cb-faq) */
.ipo .ipo-faq .cb-faq details {
  background: var(--ipo-card);
  border: 1px solid var(--ipo-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.ipo .ipo-faq .cb-faq summary {
  font-weight: 600;
  cursor: pointer;
}
.ipo .ipo-faq .cb-faq details p {
  margin: 10px 0 0;
}
