.home {
  --max: 1160px;
  --stage: #eeefed;
  --stage-edge: #d7dad7;
}

@media (prefers-color-scheme: dark) {
  .home {
    --stage: #1d1f22;
    --stage-edge: #3a3d43;
  }
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}

.home main { padding: clamp(36px, 6.5vw, 90px) 0 64px; }

.home-hero,
.two-up {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
}

.home h1 {
  max-width: 12ch;
  font-size: clamp(44px, 6.1vw + 1rem, 86px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-wrap: balance;
}

.home .lead {
  max-width: 36ch;
  margin-top: 22px;
  font-size: clamp(18px, 1.6vw + 3px, 21px);
  line-height: 1.5;
}

.home .hero-actions { margin-top: 28px; }
.home .hero-actions .button { min-height: 46px; padding-inline: 18px; }

.home .hero-actions .primary {
  background: var(--signal);
  color: #141413;
  border-color: transparent;
}

.home .hero-actions .primary:hover { border-color: #141413; }
.testflight-icon { display: block; flex-shrink: 0; border-radius: 6px; }

.showcase {
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--stage);
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font: 600 11px/1.3 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.showcase-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: clamp(8px, 1.6vw, 18px);
}

.showcase figure, .hub-shot { margin: 0; }

.showcase img, .hub-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(10px, 1.6vw, 18px);
  border: 1px solid var(--stage-edge);
}

.home figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.home-section {
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 7vw, 96px);
  padding-top: clamp(36px, 6.5vw, 84px);
}

.home h2 {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  font-size: clamp(30px, 4.4vw, 56px);
  letter-spacing: -0.045em;
  line-height: 1.03;
  text-wrap: balance;
}

.section-copy > p:not(.eyebrow) { max-width: 46ch; color: var(--muted); }

@media (min-width: 781px) {
  .intro-film { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

.intro-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--stage-edge);
  border-radius: clamp(12px, 2vw, 24px);
  background: #0d0e10;
}

.bill-demo {
  padding: clamp(16px, 2.7vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.bill-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
}

.bill-heading h3 { margin: 0; font-size: 22px; }
.bill-heading span { color: var(--muted); font-size: 13px; }

.bill-demo fieldset {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(8px, 1.6vw, 16px);
  min-width: 0;
  margin: 20px 0 16px;
  padding: 0;
  border: 0;
}

.bill-demo label { color: var(--muted); font-size: 13px; font-weight: 600; }

.bill-demo input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--muted);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.bill-demo input[aria-invalid="true"] { border-color: var(--accent); }

.bill-result {
  display: grid;
  gap: 5px;
  padding: 14px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--stage);
  color: var(--muted);
  font-size: 13px;
}

.bill-result output {
  color: var(--ink);
  font-size: clamp(26px, 5vw, 52px);
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.bill-hint { min-height: 2lh; }
.bill-demo fieldset:not([disabled]) ~ .demo-fallback { display: none; }

.workflow {
  counter-reset: step;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.workflow li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.workflow li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--accent);
  font: 650 12px/2.2 ui-monospace, "SF Mono", Menlo, monospace;
}

.workflow p { margin: 0; color: var(--muted); }
.workflow strong { color: var(--ink); }

.hub-shot {
  justify-self: center;
  width: min(100%, 460px);
}

.ownership .grid { gap: 16px; }
.ownership .card { padding: clamp(16px, 2.4vw, 28px); }
.ownership .card h3 { font-size: 19px; }
.ownership .card p { max-width: 55ch; font-size: 15px; }
.ownership .card a { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }

@media (max-width: 780px) {
  .home-hero, .two-up { grid-template-columns: minmax(0, 1fr); }
  .home h1 { font-size: clamp(42px, 10vw, 68px); }
  .showcase, .bill-demo, .hub-shot { width: min(100%, 560px); justify-self: start; }
}

@media (max-width: 560px) {
  .home header.site { padding: 16px 0; }
  .home nav.primary { column-gap: 18px; }
  .home nav.primary a { display: inline-flex; align-items: center; min-height: 30px; }
}
