.home-width { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.home-hero { padding: 156px 0 76px; }
.home-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 76px; }
.home-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; font-weight: 500; color: var(--text-muted); }
.home-headline { margin: 30px 0 24px; font-size: clamp(48px, 5.1vw, 70px); line-height: 1.05; letter-spacing: -.06em; font-weight: 500; }
.home-headline .headline-before { display: block; font-size: .46em; line-height: 1.4; letter-spacing: -.025em; color: var(--text-secondary); margin-bottom: 18px; }
.home-headline em { font-style: normal; color: var(--gold); }
.home-description { max-width: 440px; color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
.home-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.home-actions .btn-primary { background: var(--gold); color: #fff; }
.home-actions .btn-primary:hover { background: #1d43ad; }
.home-note { color: var(--text-muted); font-size: 11px; margin-top: 20px; }

/* A real format preview replaces decorative hero illustrations. */
/* No backing panel: the phone itself is the preview, and the figure hugs its width. */
.story-preview { --hero-phone: clamp(400px, calc(100svh - 280px), 640px); position: relative; justify-self: center; width: min(100%, calc(var(--hero-phone) * 720 / 1556 + 74px)); margin: 0; color: #152747; }
.story-preview-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; color: #50617b; }
.story-preview-heading .site-icon { width: 17px; height: 17px; }
/* The full portrait recording plays in a phone frame sized to the viewport. */
.story-screen.video-preview { --screen-height: var(--hero-phone); }
.story-choice { position: relative; z-index: 2; margin: 18px 0 0; padding: 18px; background: #fff; border: 1px solid var(--dark-border); box-shadow: 0 6px 22px #1635780f; border-radius: 5px; }
.story-choice-meta { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #5f708a; }
.story-choice-meta img { width: 14px; height: 14px; }
.story-choice strong { display: block; font-size: 15px; font-weight: 500; margin: 7px 0 13px; letter-spacing: -.02em; }
.story-choice button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; border: 0; padding: 11px 14px; border-radius: 3px; background: #2556dc; color: #fff; font-size: 11px; cursor: pointer; }
.story-choice button:hover { background: #1d43ad; }
.story-choice .site-icon { width: 14px; height: 14px; }
.story-preview > figcaption { font-size: 9px; color: #50617b; text-align: center; margin-top: 17px; }
.home-surfaces { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--dark-border); padding: 26px 0; }
.home-surfaces > p { color: var(--text-muted); max-width: 200px; font-size: 12px; line-height: 1.6; }
.home-surfaces ul { display: flex; flex-wrap: wrap; column-gap: 36px; row-gap: 14px; font-size: 13px; font-weight: 500; }
.home-surfaces li { display: flex; align-items: center; gap: 9px; }
.home-surfaces .site-icon { width: 18px; height: 18px; color: var(--text-muted); }

.home-section { padding-block: 100px; }
.home-section-heading { display: grid; grid-template-columns: 1.3fr 1fr; gap: 100px; align-items: end; }
.home-section h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.12; font-weight: 500; letter-spacing: -.045em; margin-top: 24px; }
.home-section-heading > p { color: var(--text-secondary); font-size: 16px; max-width: 420px; }
.home-process { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; gap: 40px; }
.home-process li { border-top: 1px solid var(--dark-border); padding-top: 22px; }
.home-process small { color: var(--text-muted); font-size: 11px; }
.home-process h3 { margin: 24px 0 12px; font-size: 21px; font-weight: 500; letter-spacing: -.025em; }
.home-process p { font-size: 14px; color: var(--text-secondary); max-width: 320px; line-height: 1.75; }

.home-audiences { background: var(--dark-surface); }
.audience-row { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: start; }
.audience-row + .audience-row { border-top: 1px solid var(--dark-border); margin-top: 64px; padding-top: 64px; }
.audience-row h2 { max-width: 470px; }
.audience-details > p { color: var(--text-secondary); font-size: 16px; margin-top: 36px; line-height: 1.75; }
.audience-details ul { display: grid; gap: 16px; margin-top: 28px; font-size: 13px; }
.audience-details li { display: flex; align-items: center; gap: 12px; }
.audience-details .site-icon { width: 18px; height: 18px; color: var(--text-muted); }
.home-text-link { display: inline-flex; align-items: center; gap: 20px; font-size: 13px; font-weight: 500; padding-bottom: 6px; border-bottom: 1px solid var(--text-primary); margin-top: 30px; }
.home-text-link:hover { color: var(--gold); border-color: var(--gold); }

.format-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.format-feature-copy > p { margin-top: 24px; font-size: 16px; line-height: 1.75; color: var(--text-secondary); max-width: 420px; }
.format-list { border-top: 1px solid var(--dark-border); }
.format-list a { display: flex; align-items: center; gap: 18px; min-height: 88px; padding: 22px 6px; border-bottom: 1px solid var(--dark-border); font-size: 15px; }
.format-list .format-index { font-size: 10px; color: var(--text-muted); }
.format-list .site-icon { margin-left: auto; }
.format-list a:hover { color: var(--gold); }
.home-closing { background: #edf3ff; color: #152747; padding: 72px 0; }
.home-closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.home-closing h2 { font-size: clamp(32px, 3.7vw, 48px); font-weight: 500; line-height: 1.15; letter-spacing: -.045em; max-width: 580px; }
.home-closing p { color: #50617b; font-size: 14px; margin-top: 16px; }
.home-closing .btn-primary { background: var(--gold); color: #fff; flex-shrink: 0; }

.demo-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; border: 1px solid var(--dark-border); border-radius: 10px; padding: 24px; background: var(--dark-bg); color: var(--text-primary); overflow-y: auto; }
.demo-dialog::backdrop { background: #101e38d9; }
.demo-dialog-header { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 20px; }
.demo-dialog h2 { font-size: 19px; font-weight: 500; }
.demo-close { display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--dark-border); color: inherit; border-radius: 4px; height: 36px; width: 36px; cursor: pointer; }
.demo-dialog video { width: 100%; max-height: calc(100dvh - 220px); background: #101e38; }
.demo-dialog p { margin-top: 16px; font-size: 12px; color: var(--text-secondary); }
.demo-dialog p a { text-decoration: underline; text-underline-offset: 3px; }
body.demo-open { overflow: hidden; }


@media (max-width: 1100px) {
  .home-width { width: calc(100% - 64px); }
  .home-hero-grid { gap: 44px; grid-template-columns: 1.3fr 1fr; }
  .home-headline { font-size: 54px; }
  .home-surfaces ul { gap: 20px; }
  .home-section-heading, .audience-row, .format-feature { gap: 60px; }
}
@media (max-width: 800px) {
  .home-hero { padding-top: 132px; }
  .home-hero-grid { grid-template-columns: 1fr 0.85fr; gap: 28px; }
  .home-headline { font-size: 43px; }
  .home-actions { flex-direction: column; align-items: flex-start; }
  .home-description { font-size: 15px; }
  .story-preview { --hero-phone: 460px; }
  .story-choice { padding: 14px; }
  .home-surfaces { align-items: flex-start; }
  .home-surfaces ul { display: grid; grid-template-columns: 1fr 1fr; font-size: 11px; }
  .home-section { padding-block: 72px; }
  .home-section-heading, .audience-row, .format-feature { gap: 36px; }
  .home-process { gap: 24px; }
  .home-process h3 { font-size: 18px; }
  .home-closing-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media (max-width: 640px) {
  .home-width { width: calc(100% - 48px); }
  .home-hero { padding: 112px 0 42px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .home-headline { font-size: clamp(42px, 10.8vw, 64px); margin-top: 22px; }
  .home-headline .headline-before { font-size: .48em; margin-bottom: 15px; }
  .home-description { font-size: 15px; max-width: 430px; }
  .home-actions { flex-direction: row; gap: 10px; margin-top: 24px; }
  .home-actions a { font-size: 12px; padding-inline: 16px; min-height: 46px; }
  .home-note { font-size: 10px; }
  .story-preview { --hero-phone: clamp(420px, calc(100svh - 260px), 600px); }
  .story-choice { padding: 18px; }
  .home-surfaces { flex-direction: column; gap: 20px; padding-block: 24px 0; }
  .home-surfaces > p { max-width: none; font-size: 12px; }
  .home-surfaces ul { width: 100%; gap: 20px 16px; font-size: 12px; }
  .home-section { padding-block: 64px; }
  .home-section h2 { font-size: 35px; margin-top: 18px; }
  .home-section-heading, .audience-row, .format-feature { grid-template-columns: 1fr; gap: 24px; }
  .home-section-heading > p, .audience-details > p, .format-feature-copy > p { font-size: 15px; }
  .home-process { grid-template-columns: 1fr; margin-top: 36px; gap: 28px; }
  .home-process h3 { margin-top: 12px; font-size: 21px; }
  .home-process p { max-width: none; }
  .audience-details > p { margin-top: 0; }
  .audience-row + .audience-row { margin-top: 44px; padding-top: 44px; }
  .format-list { margin-top: 16px; }
  .format-list a { min-height: 74px; font-size: 14px; }
  .home-closing { padding-block: 52px; }
  .home-closing h2 { font-size: 35px; }
  .demo-dialog { padding: 18px; }
}
