/* About page styles — ported from Astro about.astro */

/* Hero */
.hero { padding: 56px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--hero-eyebrow-text, var(--blue-dark));
  font-size: 15px;
  letter-spacing: 0;
  font-weight: 700;
  margin-bottom: 18px;
}
.eyebrow--filled {
  background: var(--hero-eyebrow-bg);
  border-radius: 999px;
  padding: 6px 12px;
}
.hero h1 {
  font-size: 65px;
  line-height: 1.02;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -1px;
}
.hero h1 .accent,
.hero h1 .underline-accent {
  color: #1a1a1a;
  --filld-hero-underline: var(--blue-dark);
}
/* This hero has two underline spans on separate lines; draw the second ~0.3s
   after the first (global base delay is .85s) so it reads as line-by-line.
   nth-of-type counts the spans; reduced-motion fallback (full-width, no draw)
   is inherited from global.css. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .underline-accent:nth-of-type(2) { animation-delay: .6s; }
}
.hero h1 .desktop-break { display: inline; }
.hero .lede {
  color: #4a4a4a;
  font-size: 16px;
  margin: 0 0 24px;
  line-height: 1.55;
  max-width: 480px;
}
.hero-image {
  border-radius: 20px;
  overflow: hidden;
  background: #d8d8d8;
  aspect-ratio: 5/3.4;
  background-image: url('../images/design/our-story-1.webp');
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 50px -24px rgba(14, 63, 140, 0.28);
}
.hero-grid--image-left {
  grid-template-columns: 1fr max-content;
}
.hero-grid--image-left .hero-image-wrap { order: -1; }
.hero-caption {
  margin-top: 10px;
  font-size: 12px;
  color: #777;
  text-align: right;
  word-break: break-all;
}

/* Story section */
.story-section { padding: 40px 0 64px; }
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.story-text p {
  margin: 0 0 18px;
  font-size: 16px;
  color: #2a2a2a;
  line-height: 1.65;
}
.story-accordion { display: flex; flex-direction: column; gap: 8px; }
.story-item { border-top: 1px solid #e6e6e6; scroll-margin-top: 72px; }
.story-item:last-child { border-bottom: 1px solid #e6e6e6; }
.story-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  line-height: 1.15;
}
.story-item summary::-webkit-details-marker { display: none; }
.story-item summary h2 {
  display: inline;
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: #b5b5b5;
  transition: color .2s;
}
.story-item:hover summary h2 { color: var(--blue-dark); }
.story-item[open] summary h2 { color: #111; }
.story-body { padding: 4px 0 20px; }
.story-body p:last-child { margin-bottom: 0; }
.story-image-wrap {
  position: sticky;
  top: 96px;
}
.story-grid--image-left {
  grid-template-columns: 1fr 1.2fr;
}
.story-grid--image-left .story-image-wrap { order: -1; }
.story-image {
  border-radius: 20px;
  background: #d8d8d8;
  aspect-ratio: 5/3.6;
  background-image: url('../images/design/our-story-2.webp');
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 50px -24px rgba(14, 63, 140, 0.22);
}
.story-image-cap {
  margin-top: 8px;
  font-size: 12px;
  color: #777;
  font-style: italic;
}

/* Built list */
.built-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 14px; }
.built-list__item { border-left: 4px solid var(--built-list-accent, #c8f1e9); padding: 6px 0 6px 16px; }
.built-list__item h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--built-list-accent, #111); }
.built-list__item h4 a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,0.25); }
.built-list__item h4 a:hover { text-decoration-color: currentColor; }
.built-list__body { font-size: 15px; line-height: 1.55; color: #2a2a2a; }
.built-list__body p { margin: 0; }
.built-list__body p + p,
.built-list__body ul,
.built-list__body ol { margin: 10px 0 0; }
.built-list__body ul,
.built-list__body ol { padding-left: 20px; }
.built-list__body li + li { margin-top: 4px; }
.built-list__item--blue { --built-list-accent: #c8f1e9; }
.built-list__item--peach { --built-list-accent: #c0541e; }
.built-list__item--yellow { --built-list-accent: #4a8a2e; }
.built-list__item--mint { --built-list-accent: #5e47a0; }

.closer-tag { font-size: 18px; margin-top: 22px !important; }

/* Beliefs */
.beliefs-section { padding: 48px 0 80px; }
.beliefs-cta { display: flex; justify-content: center; margin-top: 40px; }
.beliefs-cta .signup-trigger { background: var(--blue-dark); color: #fff; padding: 13px 32px; font-weight: 700; font-size: 16px; }
.beliefs-cta .signup-menu { left: 50%; transform: translate(-50%, 4px); }
.beliefs-cta .signup-menu::before { left: calc(50% - 7px); right: auto; }
.beliefs-cta .signup-dropdown:hover .signup-menu,
.beliefs-cta .signup-dropdown:focus-within .signup-menu,
.beliefs-cta .signup-dropdown.is-open .signup-menu { transform: translate(-50%, 0); }
.beliefs-section h2 {
  font-size: 56px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.05;
}
.beliefs-section .sub { color: var(--muted); margin: 0 0 32px; font-size: 16px; }
.beliefs-section .sub p { margin: 0; }
.beliefs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.belief-card { border-radius: 20px; padding: 32px 40px; }
.belief-card.blue { background: var(--belief-card-bg, #e2f3f0); }
.belief-card.peach { background: var(--belief-card-bg, #e2f3f0); }
.belief-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--belief-title-color, var(--blue-dark)); letter-spacing: -0.2px; }
.belief-card.peach h3 { color: var(--belief-title-color, var(--blue-dark)); }
.belief-card-body { font-size: 14px; color: #333; line-height: 1.6; }
.belief-card-body p { margin: 0; }
.belief-card-body p + p,
.belief-card-body ul,
.belief-card-body ol { margin: 10px 0 0; }
.belief-card-body ul,
.belief-card-body ol { padding-left: 20px; }
.belief-card-body li + li { margin-top: 4px; }

/* Community */
.community-section { padding: 24px 0 80px; }
.community-section h2 { font-size: 56px; margin: 0 0 28px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.05; }
.community-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: stretch; }
.community-grid--single { grid-template-columns: 1fr; }
.community-grid--single .community-text { width: 100%; }
.community-text .community-book { background: var(--about-community-button-bg, var(--blue-dark)); color: var(--about-community-button-text, #fff); padding: 12px 28px; font-size: 14px; font-weight: 700; border-radius: 999px; display: block; width: fit-content; margin: 8px auto 0; }
.community-text .community-book:hover { background: var(--about-community-button-bg, var(--blue-dark)); opacity: .92; }
.community-text { background: var(--about-community-bg, #e2f3f0); border-radius: 20px; padding: 36px 36px; }
.community-text p { margin: 0 0 16px; font-size: 15px; color: #2a2a2a; line-height: 1.65; }
.community-text .small-italic { font-style: italic; color: #555; font-size: 14px; margin: 8px 0 18px; }
.community-text .btn { padding: 12px 22px; font-size: 14px; }
.community-image {
  border-radius: 20px;
  background: #fff;
  background-image: url('../images/design/coverage-map.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 320px;
}

/* FAQ */
.faq-section { padding: 24px 0 80px; }
.faq-section h2 { text-align: center; font-size: 48px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.5px; }
.faq-section .sub { text-align: center; color: var(--muted); margin: 0 auto 32px; font-size: 15px; }
.faq-section .sub p { margin: 0; }
.faq-section .sub p + p,
.faq-section .sub ul,
.faq-section .sub ol { margin: 10px 0 0; }
.faq-section .sub ul,
.faq-section .sub ol { padding-left: 20px; text-align: left; }
.faq-section .sub li + li { margin-top: 4px; }
.faq-group { max-width: 880px; margin: 0 auto; }
.faq-item { background: #f4f6fa; border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; color: #333;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: #555; font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 20px 16px; font-size: 14px; color: #444; }
.faq-footer { text-align: center; margin-top: 22px; font-size: 14px; color: #333; }
.faq-footer a { color: var(--blue); font-weight: 600; }

/* Closing band */
.closing-band {
  background: var(--about-closing-bg, #1f52a4);
  padding: 56px 32px;
  text-align: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.closing-band h2 {
  color: var(--about-closing-heading, #fff); font-size: 36px; margin: 0 0 24px;
  font-weight: 700; letter-spacing: -0.5px; line-height: 1.15;
}
.closing-band h2 .cb-underline,
.closing-band h2 .underline-accent {
  text-decoration: underline;
  text-decoration-color: var(--about-closing-underline, #c5e5e7);
  text-decoration-thickness: 5px;
  text-underline-offset: 6px;
}
.closing-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.closing-actions .btn { padding: 12px 24px; font-size: 15px; min-width: 180px; text-align: center; font-weight: 700; }
.closing-actions .about-get-started { background: var(--about-closing-cta-bg, #fff); color: var(--about-closing-cta-text, var(--blue)); }
.closing-actions .about-get-started:hover { background: var(--about-closing-cta-bg, #fff); opacity: .92; }
.closing-actions .about-book-call {
  background: var(--about-closing-book-bg, #1f52a4);
  color: var(--about-closing-book-text, #fff);
  border: 1.5px solid var(--about-closing-book-border, #fff);
}
.closing-actions .about-book-call:hover { background: var(--about-closing-book-bg, #1f52a4); opacity: .92; }
.closing-note { margin-top: 18px; color: var(--about-closing-note, #e8efff); font-size: 14px; }
.closing-actions .signup-menu { left: 50%; transform: translate(-50%, 4px); }
.closing-actions .signup-menu::before { left: calc(50% - 7px); right: auto; }
.closing-actions .signup-dropdown:hover .signup-menu,
.closing-actions .signup-dropdown:focus-within .signup-menu,
.closing-actions .signup-dropdown.is-open .signup-menu { transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1100px) {
  .hero h1 { font-size: 48px; }
  .beliefs-section h2, .community-section h2 { font-size: 44px; }
  .story-item summary h2 { font-size: 24px; }
}
@media (max-width: 980px) {
  .hero-grid, .story-grid, .community-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-image-wrap { position: static; }
  .hero-grid--image-left .hero-image-wrap,
  .story-grid--image-left .story-image-wrap { order: 0; }
  .hero h1 { font-size: 42px; }
  .beliefs-section h2, .community-section h2 { font-size: 36px; }
}
@media (max-width: 760px) {
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 37px; line-height: 1.18; }
  .hero h1 br { display: none; }
  .hero h1 .desktop-break { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .story-item summary h2 { font-size: 20px; line-height: 1.15; }
  .story-item summary { padding: 14px 0; line-height: 1.15; }
  .built-list__item h4 { font-size: 15px; }
  .built-list__body { font-size: 14px; }
  .closer-tag { font-size: 16px; }
  .beliefs-grid { grid-template-columns: 1fr; gap: 10px; }
  .belief-card { border-radius: 20px; padding: 18px 22px; }
  .belief-card h3 { min-height: auto; }
  .closing-band h2 { font-size: 26px; }
  .closing-band h2 .cb-underline,
  .closing-band h2 .underline-accent { text-underline-offset: 4px; text-decoration-thickness: 3px; }
  .closing-actions { display: flex; flex-direction: column; width: 100%; gap: 10px; }
  .closing-actions .btn { width: 100%; text-align: center; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 31px; }
  .beliefs-section h2, .community-section h2 { font-size: 28px; }
  .story-item summary h2 { font-size: 18px; }
  .faq-section h2 { font-size: 26px; }
}
