/* The public site's layout, on top of base.css: full-width bands on a white
   page, a sky hero with a serif headline, the app in a window frame, and
   soft lavender surfaces. */

.site-body { background: var(--page); }
main.site { max-width: none; padding: 0; }
.wrap { max-width: 1216px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.band { padding: clamp(72px, 10vw, 128px) 0 0; }
.section-title { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.045em; margin: 0 0 18px; max-width: 16em; }
.section-title.center { margin-left: auto; margin-right: auto; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }

/* --- top bar: transparent over the sky, scrolling away with it ---------------------- */

.site-top { position: absolute; left: 0; right: 0; background: transparent; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-top .brand { color: #fff; }
.site-top .brand svg { color: var(--blue); filter: drop-shadow(0 0 0.5px #fff) drop-shadow(0 2px 6px rgba(10, 40, 120, 0.25)); }
.site-nav { display: flex; gap: 30px; margin-right: auto; margin-left: 48px; }
.site-nav a { color: rgba(255, 255, 255, 0.92); text-decoration: none; font-weight: 450; font-size: 15px; }
.site-nav a:hover { color: #fff; }
.site-top a.top-cta { gap: 0; background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.55); color: #fff; box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-top a.top-cta:hover { background: rgba(255, 255, 255, 0.3); border-color: #fff; }

/* --- hero: a morning sky, the headline, then the app in a window --------------------- */

.hero-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(120px, 15vw, 168px) var(--gutter) 0;
  background: linear-gradient(180deg, #2b7fe0 0%, #4f9ae9 26%, #8cc4f2 52%, #cfe6fb 70%, #ffffff 86%);
  text-align: center;
}
.hero-band.short { padding-bottom: clamp(90px, 12vw, 150px); }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sun {
  position: absolute; width: 200px; height: 200px; right: 7%; top: 22%; border-radius: 50%;
  background: radial-gradient(circle, #fffef6 0 32%, rgba(255, 246, 220, 0.75) 46%, rgba(255, 240, 210, 0) 70%);
  filter: blur(2px);
}
.clouds span {
  position: absolute; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); filter: blur(14px);
  animation: drift 60s linear infinite alternate;
}
.clouds span:nth-child(1) { width: 420px; left: -4%; top: 44%; }
.clouds span:nth-child(2) { width: 300px; left: 26%; top: 49%; animation-duration: 75s; opacity: 0.8; }
.clouds span:nth-child(3) { width: 520px; right: -6%; top: 47%; animation-duration: 90s; }
.clouds span:nth-child(4) { width: 260px; right: 30%; top: 41%; animation-duration: 70s; opacity: 0.6; }
@keyframes drift { to { transform: translateX(60px); } }
.hills { position: absolute; left: 0; right: 0; top: 40%; width: 100%; height: 46%; }
.motion-switch:checked ~ .hero-band .clouds span { animation-play-state: paused; }

.hero-copy { max-width: 1120px; margin: 0 auto; color: #fff; }
.hero-copy h1 { font-size: clamp(44px, 6.4vw, 86px); margin: 0 0 24px; text-shadow: 0 2px 30px rgba(20, 60, 140, 0.25); }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; max-width: 36em; margin: 0 auto 30px; color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 12px rgba(20, 60, 140, 0.25); }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }
.hero-copy .eyebrow.pill { margin-bottom: 22px; }

/* The hero's copy rises in, one line after another. */
.hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.window-wrap { position: relative; max-width: 1100px; margin: clamp(56px, 7vw, 88px) auto 0; }
.window-glow {
  position: absolute; inset: 8% -4% -6%; z-index: -1; filter: blur(50px); opacity: 0.75;
  background: radial-gradient(60% 60% at 20% 60%, #6aa8ff, transparent 70%),
              radial-gradient(50% 60% at 80% 40%, #b9a6ff, transparent 70%),
              radial-gradient(50% 50% at 50% 100%, #8fe3ff, transparent 70%);
}
.window {
  border-radius: 18px; overflow: hidden; background: #fff; text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 40px 80px rgba(40, 70, 150, 0.25), 0 0 0 6px rgba(255, 255, 255, 0.45);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f3f5fa; border-bottom: 1px solid var(--line); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.window-bar em { font-style: normal; font-size: 12px; color: var(--muted); margin: 0 auto; padding: 3px 40px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.demo { display: block; width: 100%; height: auto; }

/* "Pause motion": a checkbox at the top of <main>, so it can reach the hero
   and the strip. Works without JavaScript and from the keyboard. */
.motion-toggle {
  flex: none; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); color: var(--muted); background: var(--panel); user-select: none;
}
.motion-toggle:hover { color: var(--text); border-color: #c9cdd8; }
.when-paused { display: none; }
.motion-switch:focus-visible ~ .strip .motion-toggle { outline: 3px solid var(--focus); outline-offset: 2px; }
.motion-switch:checked ~ * .when-moving { display: none; }
.motion-switch:checked ~ * .when-paused { display: inline; }
.motion-switch:checked ~ * .track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: none; }
  .formats[aria-hidden="true"] { display: none; }
  .track { width: auto; }
  .formats { flex-wrap: wrap; row-gap: 10px; }
}

/* --- export formats: a strip of names scrolling past -------------------------------- */

.strip { max-width: 1216px; margin: clamp(48px, 6vw, 72px) auto 0; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.strip-label { color: var(--muted); font-size: 14px; flex: none; }
.marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.formats { list-style: none; margin: 0; padding: 0 40px 0 0; display: flex; flex: none; gap: 40px; }
.formats li { font-weight: 600; font-size: 20px; letter-spacing: -0.04em; color: #9aa0b2; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-25%); } }

/* --- how it works: three cards, the first one glossy ---------------------------------- */

.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.how-card {
  border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 10px; min-height: 340px;
  background: linear-gradient(160deg, var(--lavender-2) 0%, var(--panel-soft) 100%);
  border: 1px solid #fff; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(15, 23, 42, 0.04);
}
.how-card h3 { font-size: 23px; letter-spacing: -0.035em; line-height: 1.2; margin: 0; }
.how-card p { margin: 0; color: var(--muted); }
.how-card.glossy { background: linear-gradient(160deg, #6f9dff 0%, #4a73f0 100%); color: #fff; border: 0;
  box-shadow: 0 20px 40px rgba(74, 115, 240, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.how-card.glossy p { color: rgba(255, 255, 255, 0.88); }
.mock-drop { margin-top: auto; border: 2px dashed rgba(255, 255, 255, 0.6); border-radius: 16px; padding: 26px 16px;
  display: grid; gap: 4px; text-align: center; background: rgba(255, 255, 255, 0.12); }
.mock-drop span { font-size: 13px; opacity: 0.85; }
.mock-finding { margin-top: auto; background: #fff; border-radius: 16px; padding: 16px; font-size: 14px; color: var(--ink-2);
  box-shadow: var(--shadow); display: grid; gap: 10px; }
.mock-button { justify-self: start; font-size: 13px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.mock-formats { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.mock-formats span { background: #fff; border-radius: 10px; padding: 6px 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 2px 9px; border-radius: 999px; vertical-align: 0.15em; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.bad { background: var(--bad-bg); color: var(--bad); justify-self: start; }
.more-link { margin: 22px 0 0; }
.more-link a { font-weight: 500; text-decoration: none; }

/* --- why: a framed result beside large figures ------------------------------------------ */

.soft-frame {
  border-radius: 28px; padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(170deg, var(--lavender) 0%, var(--lavender-2) 100%);
}
.stats-art { min-height: 380px; display: grid; place-content: center; text-align: center; gap: 14px; }
.stats-art p { margin: 0; background: #fff; border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-lift); color: var(--ink-2); }
.mini-badge { justify-self: center; font-weight: 600; letter-spacing: -0.02em; font-size: clamp(26px, 3vw, 38px); color: #fff;
  padding: 14px 30px; border-radius: 18px; background: linear-gradient(135deg, #12925a, #0b6e42);
  box-shadow: 0 18px 36px rgba(12, 110, 66, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.stats { margin: 26px 0 0; }
.stats div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.stats dt { font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.045em; line-height: 1; font-weight: 450; }
.stats dt small { font-size: 0.55em; }
.stats dd { margin: 0; color: var(--muted); }
.stats dd strong { display: block; color: var(--text); font-weight: 500; font-size: 20px; letter-spacing: -0.03em; margin-bottom: 4px; }

/* --- step by step: numbered stages ----------------------------------------------------- */

.timeline-steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 56px; }
.timeline-steps li { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline-steps .step-number {
  flex: none; font-size: 14px; font-weight: 600; color: var(--accent);
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-soft);
}
.timeline-steps h3 { font-size: 20px; letter-spacing: -0.03em; margin: 6px 0 6px; }
.timeline-steps p { margin: 0; color: var(--muted); }

/* --- feature cards ---------------------------------------------------------------------- */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.feature {
  display: flex; flex-direction: column; gap: 8px; padding: 28px; min-height: 220px;
  border-radius: 22px; background: linear-gradient(160deg, var(--lavender-2), var(--panel-soft)); color: var(--text); text-decoration: none;
  border: 1px solid #fff; box-shadow: inset 0 1px 0 #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.feature h3 { font-size: 21px; letter-spacing: -0.03em; margin: 0; }
.feature p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.feature .more { margin-top: auto; font-weight: 500; font-size: 15px; color: var(--accent); }

.bank-list { list-style: none; padding: 0; margin: 26px 0 8px; display: flex; flex-wrap: wrap; gap: 12px; }
.bank-list a {
  display: inline-flex; gap: 8px; align-items: center; padding: 12px 20px; border-radius: 14px;
  background: linear-gradient(160deg, var(--lavender-2), var(--panel-soft)); color: var(--text); text-decoration: none; font-weight: 500;
  border: 1px solid #fff;
}
.bank-list a:hover { color: var(--accent); }

.faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 22px; }
.faq p { color: var(--muted); margin: 0; }
.faq-list { margin-top: 34px; }
.faq-list summary { font-size: 19px; padding: 22px 0; }
.faq-list details p { margin-left: 0; color: var(--muted); opacity: 1; }

/* Pricing cards (also used by the app). */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 26px; }
.plan { border: 1px solid #fff; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(160deg, var(--lavender-2), var(--panel-soft)); }
.plan.featured { background: var(--glossy); border: 0; color: #fff; box-shadow: var(--glossy-shadow); }
.plan.featured .per { color: rgba(255, 255, 255, 0.85); }
.plan h3 { margin: 0; font-size: 16px; }
.plan .price { font-size: 34px; font-weight: 500; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.plan .per { color: var(--muted); font-size: 14px; }

/* --- closing call to action: a band of sky --------------------------------------------- */

.cta-sky {
  border-radius: 28px; padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px); text-align: center; color: #fff;
  background:
    radial-gradient(500px 220px at 80% 20%, rgba(255, 252, 235, 0.55), transparent 70%),
    linear-gradient(180deg, #2b7fe0 0%, #5aa3ec 60%, #a9d2f5 100%);
}
.cta-sky h2 { font-size: clamp(36px, 5vw, 64px); max-width: 15em; margin: 0 auto 16px; }
.cta-sky .lede { color: rgba(255, 255, 255, 0.92); margin: 0 auto 26px; }
.cta-sky p:last-child { margin: 0; }

/* --- footer: columns on lavender ------------------------------------------------------ */

.site-footer { margin-top: clamp(72px, 10vw, 128px); text-align: left; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h3 { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin: 4px 0 12px; }
.footer-grid a:not(.brand) { display: block; text-decoration: none; margin: 0 0 8px; }
.footer-grid a:not(.brand):hover { color: var(--accent); }
.footer-grid .brand { margin-bottom: 10px; }
.footer-grid .muted { max-width: 22em; font-size: 14px; }

.draft-banner { background: var(--warn-bg); border: 2px solid var(--bad); border-radius: var(--radius-sm); padding: 12px 16px; }
.text-link { margin-left: 14px; }

@media (prefers-color-scheme: dark) {
  .hero-band { background: linear-gradient(180deg, #0b1f4d 0%, #173a80 40%, #2c5aa8 62%, var(--page) 88%); }
  .hills { opacity: 0.25; }
  .how-card, .feature, .plan, .bank-list a { border-color: var(--line); box-shadow: none; }
  .window { border-color: var(--line); background: var(--panel); }
  .window-bar { background: var(--panel-soft); }
  .stats-art p, .mock-finding, .mock-formats span { background: var(--panel); }
}

@media (max-width: 1000px) {
  .site-nav { display: none; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .how-grid, .features, .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .how-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .how-grid, .features, .faq, .timeline-steps { grid-template-columns: minmax(0, 1fr); }
  .site-top a.top-cta { padding: 8px 16px; font-size: 14px; }
  .site-top a.top-cta .long { display: none; }
  .strip { flex-direction: column; align-items: flex-start; gap: 12px; }
  .marquee { width: 100%; }
  .stats div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .stats-art { min-height: 260px; }
  .sun { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Bank pages have no pause control, so their clouds stay still. */
.hero-band.short .clouds span { animation: none; }

.beta-panel .lede { max-width: 38em; }
