/* Landing page. Shared theme tokens and icons come from style.css. */
.home-root {
  --home-header-offset: 96px;
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
  scroll-behavior: smooth;
  scroll-padding-top: var(--home-header-offset);
  scrollbar-gutter: stable;
  scrollbar-color: var(--border-strong) var(--surface);
}

.home-page {
  background: var(--surface);
  height: auto;
}

.home-page a { text-decoration: none; }
.home-page p, .home-page h1, .home-page h2, .home-page h3 { margin: 0; }
.home-page section[id], .home-page details[id] { scroll-margin-top: 8px; }
.home-page :is(a, button, summary) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.home-page :is(a, button, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.home-page :is(main, section)[tabindex="-1"]:focus { outline: none; }

.home-section, .home-footer {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 80px;
  padding: 12px max(32px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid transparent;
  background: var(--surface);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.home-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(10, 28, 61, 0.05); }
@supports (backdrop-filter: blur(12px)) {
  .home-header { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); }
}

.home-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 21px; font-weight: 750; letter-spacing: -0.8px; white-space: nowrap; }
.home-brand-mark { display: grid; place-items: center; width: 40px; height: 37px; border-radius: 11px; color: #0b1c3d; background: var(--gold-500); font-size: 18px; font-style: italic; font-weight: 900; letter-spacing: -1px; }
.home-brand-ai { margin-left: 5px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.home-nav, .home-header-actions { display: flex; align-items: center; gap: 6px; }
.home-nav { position: relative; isolation: isolate; padding: 4px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-2); }
.home-nav::before { content: ''; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: var(--nav-active-width, 0px); border-radius: inherit; background: var(--surface); box-shadow: var(--shadow-xs); opacity: 0; transform: translateX(var(--nav-active-x, 0px)); transition: transform 300ms var(--home-ease), width 300ms var(--home-ease), opacity 180ms ease; }
.home-nav.has-active::before { opacity: 1; }
.home-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 15px; border-radius: 99px; transition: color 180ms ease; }
.home-nav a[aria-current="location"] { color: var(--link); }
.home-nav a, .home-footer nav a { color: var(--muted); font-size: 13px; font-weight: 500; }
.home-nav a:hover, .home-footer nav a:hover { color: var(--link); }
.home-header-actions { gap: 14px; }
.home-theme { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink-2); transition: background 180ms ease, border-color 180ms ease, transform 220ms var(--home-ease); }
.home-theme:hover { background: var(--surface-3); }

.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 54px; padding: 14px 26px; border: 1px solid transparent; border-radius: 14px; background: var(--blue-700); color: #fff; box-shadow: 0 4px 12px rgba(23, 71, 216, 0.16); font-size: 14px; font-weight: 650; transition: background 180ms ease, transform 260ms var(--home-ease), box-shadow 260ms ease; }
.home-button-small { min-height: 44px; padding: 10px 18px; gap: 16px; font-size: 12px; background: var(--ink); color: var(--surface); box-shadow: none; }
.home-button .icon { width: 17px; height: 17px; }
.home-button .icon, .home-secondary-link span, .topic-action > span, .preview-send { transition: transform 260ms var(--home-ease); }
.home-secondary-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: color 180ms ease; }
.home-secondary-link:hover { color: var(--link); }
.home-secondary-link span { font-size: 18px; }

.home-hero { padding: 64px 32px 0; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse at 85% 28%, var(--blue-50), transparent 60%), radial-gradient(ellipse at 90% 75%, color-mix(in srgb, var(--gold-100) 55%, transparent), transparent 40%), var(--surface-2); }
.home-hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 64px; max-width: 1120px; margin-inline: auto; padding-bottom: 56px; }
.home-hero-intro { min-width: 0; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12px; font-weight: 550; }
.home-eyebrow > span { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-500) 14%, transparent); }
.home-page h1 { margin-top: 22px; font-size: clamp(46px, 4.8vw, 66px); font-weight: 650; letter-spacing: -2.8px; line-height: 1.08; text-wrap: balance; }
.home-page h1 > span { color: var(--link); white-space: nowrap; }
.home-page .home-hero-copy { max-width: 470px; margin-top: 24px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.home-hero-note { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.home-hero-note > span { display: inline-flex; align-items: center; gap: 6px; }
.home-hero-note .icon { width: 14px; height: 14px; color: var(--link); }
.home-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1120px; min-height: 66px; margin-inline: auto; padding-block: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.home-hero-foot a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; flex-shrink: 0; color: var(--link); font-weight: 550; }
.home-hero-foot .icon { width: 15px; height: 15px; }

.home-preview { min-width: 0; border: 1px solid var(--border-strong); border-radius: 24px; background: var(--surface); box-shadow: 0 22px 50px -24px rgba(15, 35, 75, 0.25); }
.preview-heading { display: flex; align-items: center; gap: 12px; padding: 24px; border-radius: 23px 23px 0 0; background: var(--navy-900); color: #fff; }
.preview-avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #ffffff26; border-radius: 12px; background: #ffffff0d; color: var(--gold-500); }
.preview-tag { display: block; margin-bottom: 4px; color: #b3c3df; font-size: 11px; }
.home-page .preview-heading h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; }
.preview-edition { margin-left: auto; padding-left: 12px; border-left: 1px solid #ffffff26; color: #b3c3df; font-size: 10px; line-height: 1.5; }
.preview-body { padding: 22px; }
.home-page .preview-label { margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.preview-question { display: flex; align-items: center; gap: 12px; min-height: 62px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 500; transition: border-color 180ms ease, background 180ms ease, transform 220ms var(--home-ease), box-shadow 220ms ease; }
.preview-question-icon { color: var(--link); }
.preview-send { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; margin-left: auto; border-radius: 8px; color: var(--link); }
.preview-send .icon { width: 16px; height: 16px; }
.preview-source { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.preview-source-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: var(--gold-100); color: var(--warn); }
.preview-source strong { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.home-page .preview-source p { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.home-section { padding-block: 64px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.home-page .home-kicker { margin-bottom: 9px; color: var(--link); font-size: 10px; font-weight: 650; letter-spacing: 1.5px; text-transform: uppercase; }
.home-page h2 { font-size: clamp(27px, 3vw, 37px); line-height: 1.22; font-weight: 600; letter-spacing: -1.3px; }
.home-section-heading > p { color: var(--muted); font-size: 14px; }
.home-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-topic { display: flex; flex-direction: column; padding: 24px 22px 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--ink); transition: transform 300ms var(--home-ease), border-color 220ms ease, box-shadow 300ms ease, background 220ms ease; }
.topic-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px; border-radius: 13px; background: var(--blue-50); color: var(--link); transition: transform 300ms var(--home-ease); }
.home-topic:nth-child(2) .topic-icon, .home-topic:nth-child(4) .topic-icon { background: var(--gold-100); color: var(--warn); }
.home-page h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; }
.home-page .home-topic p { margin-top: 8px; margin-bottom: 24px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.topic-action { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--border); color: var(--link); font-size: 12px; font-weight: 550; }
.home-page .home-topics-note { margin-top: 23px; text-align: center; color: var(--muted); font-size: 12px; }
.home-topics-note a { margin-left: 5px; color: var(--link); font-weight: 550; }

.home-how { display: grid; grid-template-columns: 1fr 1.1fr; align-items: start; gap: 80px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-page .home-how-intro > p:not(.home-kicker) { max-width: 340px; margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.home-how-intro > a { margin-top: 20px; }
.home-steps { list-style: none; padding: 0; margin: 0; }
.home-steps li { position: relative; display: flex; gap: 20px; padding: 0 0 26px; }
.home-steps li:not(:last-child)::after { content: ''; position: absolute; top: 46px; bottom: 9px; left: 18px; width: 1px; background: var(--border-strong); }
.home-steps li:last-child { padding-bottom: 0; }
.step-number { flex: 0 0 auto; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--border); border-radius: 12px; background: var(--blue-50); color: var(--link); font-size: 11px; font-weight: 650; }
.home-page .home-steps p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.home-faq { display: grid; grid-template-columns: 1fr 1.35fr; align-items: start; gap: 60px; }
.home-page .home-faq-intro > p:not(.home-kicker) { max-width: 310px; margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.home-faq-intro > a { margin-top: 16px; }
.home-faq-list details { border: 1px solid var(--border); border-radius: 15px; margin-bottom: 12px; background: var(--surface); transition: border-color 220ms ease, background 220ms ease; }
.home-faq-list details[open] { border-color: var(--border-strong); background: var(--surface-2); }
.home-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 18px 20px; border-radius: 15px; cursor: pointer; list-style: none; color: var(--ink-2); font-size: 14px; font-weight: 550; transition: color 180ms ease; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary::after { content: '+'; flex: 0 0 auto; width: 24px; text-align: center; font-size: 23px; font-weight: 400; color: var(--link); transition: transform 240ms var(--home-ease); }
.home-faq-list details[open] summary::after { transform: rotate(45deg); }
.home-page .home-faq-list p { padding: 0 20px 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.home-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; width: min(1120px, calc(100% - 64px)); margin: 0 auto 24px; padding: 48px; border: 1px solid #ffffff18; border-radius: 24px; background: radial-gradient(ellipse at 95% 100%, #163972, transparent 65%), var(--navy-900); color: #fff; }
.home-page .home-final-cta .home-kicker { color: var(--gold-500); }
.home-page .home-final-cta h2 { font-size: clamp(26px, 2.6vw, 32px); }
.home-page .home-final-cta p:not(.home-kicker) { margin-top: 14px; color: #b3c3df; font-size: 14px; }
.home-final-cta .home-button { flex-shrink: 0; background: var(--gold-500); color: var(--navy-900); box-shadow: none; }
.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 34px; }
.home-footer > p { margin-right: auto; color: var(--muted); font-size: 11px; line-height: 1.8; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.home-footer nav a { display: inline-flex; align-items: center; min-height: 44px; border-radius: 6px; font-size: 12px; transition: color 180ms ease; }

/* One-shot, compositor-friendly entrances. Normal scrolling stays native. */
.home-reveal { transition: opacity 500ms ease, transform 500ms var(--home-ease), border-color 220ms ease, box-shadow 300ms ease, background 220ms ease; }
.home-reveal.is-reveal-pending { opacity: 0; transform: translateY(12px); }
.home-back-top { position: fixed; z-index: 35; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--link); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 220ms ease, transform 260ms var(--home-ease), visibility 220ms; }
.home-back-top.is-visible { visibility: visible; opacity: 1; transform: translateY(0); }
.home-back-top .icon { transform: rotate(-90deg); }

/* Intrinsic-size disclosure transitions progressively enhance native details. */
@supports (interpolate-size: allow-keywords) {
  .home-faq-list details { interpolate-size: allow-keywords; }
  .home-faq-list details::details-content { height: 0; opacity: 0; overflow: clip; transition: height 280ms var(--home-ease), opacity 200ms ease, content-visibility 280ms allow-discrete; }
  .home-faq-list details[open]::details-content { height: auto; opacity: 1; }
}

@media (hover: hover) and (pointer: fine) {
  .home-nav a:hover { color: var(--link); }
  .home-button:hover { background: var(--blue-800); transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(23, 71, 216, 0.32); }
  .home-button-small:hover { background: var(--ink-2); }
  .home-button:hover .icon, .home-secondary-link:hover span { transform: translateX(3px); }
  .home-final-cta .home-button:hover { background: #ffca2c; box-shadow: 0 8px 24px -8px #0004; }
  .home-topic:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 38%, var(--border)); box-shadow: 0 18px 32px -18px rgba(23, 71, 216, 0.22); background: var(--surface-2); }
  .home-topic:hover .topic-icon { transform: rotate(-5deg); }
  .home-topic:hover .topic-action > span { transform: translate(2px, -2px); }
  .preview-question:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: var(--blue-50); box-shadow: var(--shadow-xs); transform: translateY(-1px); }
  .preview-question:hover .preview-send { transform: translateX(3px); }
  .home-faq-list summary:hover { color: var(--link); }
  .home-back-top:hover { background: var(--blue-50); transform: translateY(-3px); }
}

.home-page :is(.home-button, .home-theme, .home-topic, .preview-question, .home-back-top):active { transform: scale(0.98); transition-duration: 80ms; }
.home-page .home-button:active { box-shadow: none; }

@media (max-width: 960px) {
  .home-header { gap: 12px; padding-inline: 24px; }
  .home-nav { gap: 0; }
  .home-nav a { padding-inline: 12px; font-size: 12px; }
  .home-hero-inner { gap: 32px; }
  .home-page h1 { font-size: clamp(44px, 5.4vw, 54px); letter-spacing: -2px; }
  .home-page .home-hero-copy { font-size: 15px; }
  .preview-heading { padding: 20px; }
  .preview-edition { display: none; }
  .preview-body { padding: 18px; }
  .home-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-how { gap: 42px; }
  .home-faq { gap: 32px; }
  .home-final-cta { padding: 36px; }
  .home-footer { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .home-root { --home-header-offset: 144px; }
  .home-header { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; padding: 12px 20px; }
  .home-header > .home-brand { grid-column: 1; grid-row: 1; }
  .home-header-actions { grid-column: 2; grid-row: 1; }
  .home-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; justify-self: center; width: min(100%, 380px); padding: 2px; }
  .home-nav a { flex: 1; min-height: 40px; padding-inline: 10px; font-size: 12px; white-space: nowrap; }
  .home-nav::before { top: 2px; bottom: 2px; }
  .home-hero { padding-top: 40px; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .home-hero-intro { max-width: 560px; }
  .home-page h1 { max-width: 540px; font-size: clamp(42px, 7.8vw, 54px); }
  .home-page .home-hero-copy { max-width: 540px; margin-top: 20px; }
  .home-preview { width: 100%; max-width: 560px; justify-self: center; }
  .home-final-cta { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 640px) {
  .home-section, .home-footer, .home-final-cta { width: calc(100% - 40px); }
  .home-brand { gap: 8px; font-size: 19px; }
  .home-brand-mark { width: 34px; height: 33px; font-size: 16px; }
  .home-header-actions { gap: 8px; }
  .home-button-small { padding: 8px 14px; gap: 8px; }
  .home-hero { padding-inline: 20px; }
  .home-page h1 { letter-spacing: -1.8px; }
  .home-page .home-hero-copy { font-size: 14px; }
  .home-hero-actions { gap: 20px; margin-top: 24px; }
  .home-button { padding-inline: 20px; gap: 15px; }
  .home-secondary-link { font-size: 13px; }
  .home-hero-note { gap: 10px 16px; font-size: 11px; }
  .home-hero-foot { align-items: flex-start; flex-direction: column; gap: 2px; padding-block: 16px 8px; font-size: 11px; }
  .home-preview { border-radius: 18px; }
  .preview-heading { border-radius: 17px 17px 0 0; padding: 18px; }
  .home-page .preview-heading h2 { font-size: 19px; }
  .preview-body { padding: 16px; }
  .preview-question { font-size: 13px; gap: 10px; padding: 12px; }
  .home-section { padding-block: 48px; }
  .home-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .home-topic-grid { gap: 12px; }
  .home-topic { padding: 18px 15px; }
  .home-topic h3 { font-size: 15px; }
  .home-page .home-topic p { font-size: 13px; }
  .topic-action { font-size: 11px; align-items: center; }
  .home-how, .home-faq { grid-template-columns: 1fr; gap: 28px; }
  .home-how-intro h2 br { display: none; }
  .home-steps li { gap: 16px; }
  .home-final-cta { padding: 32px 24px; border-radius: 20px; margin-bottom: 16px; }
  .home-footer { gap: 20px; }
  .home-footer > p { flex: 1; min-width: 150px; }
  .home-footer nav { width: 100%; padding-top: 16px; border-top: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .home-topic-grid { grid-template-columns: 1fr; }
  .home-topic { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; padding: 20px; }
  .topic-icon { width: 42px; height: 42px; margin: 0; }
  .home-page .home-topic p { margin-bottom: 16px; }
  .topic-action { grid-column: 2; padding-top: 12px; font-size: 12px; }
}

@media (max-width: 380px) {
  .home-header { padding-inline: 16px; gap: 10px 8px; }
  .home-header .home-brand { font-size: 17px; gap: 7px; }
  .home-header .home-brand-ai { display: none; }
  .home-header .home-button-small { padding-inline: 12px; }
  .home-header .home-button-small .icon { display: none; }
  .home-page h1 { font-size: 38px; }
  .home-eyebrow { font-size: 11px; }
  .home-hero-actions { gap: 14px; }
  .home-hero-actions .home-button { padding-inline: 16px; gap: 10px; }
  .preview-heading { gap: 10px; padding: 16px; }
  .preview-avatar { flex-basis: 34px; width: 34px; height: 34px; }
  .home-page .preview-heading h2 { font-size: 17px; }
  .preview-question { gap: 8px; font-size: 12px; }
  .preview-question-icon { width: 16px; height: 16px; }
  .preview-send { flex-basis: 20px; width: 20px; }
  .home-topic { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-root { scroll-behavior: auto; }
  .home-reveal.is-reveal-pending { opacity: 1; transform: none; }
  .home-page :is(.home-button, .home-topic, .home-theme, .preview-question, .home-back-top, .topic-icon, .home-button .icon, .home-secondary-link span, .topic-action > span, .preview-send) { transform: none !important; }
}

@media print {
  .home-header-actions, .home-nav, .home-hero-actions, .home-final-cta, .home-theme, .home-back-top { display: none; }
  .home-header { position: static; backdrop-filter: none; }
  .home-reveal.is-reveal-pending { opacity: 1; transform: none; }
  .home-hero { padding-top: 20px; }
  .home-section { break-inside: avoid; }
}
