/* Home page only. Shared tokens, nav, buttons, about, FAQ and CTA come from
   style.css. The page leads with the real 1099 tool: the demo is the hero
   image and the "paper" form panel echoes the 1099 inside it. */

:root {
  --paper: #F3F5F8;
  --paper-ink: #142033;
  --paper-muted: #56657A;
  --paper-rule: #D5DCE5;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.h-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.h-lede {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px 56px;
  align-items: end;
}
.h-title {
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--white);
  text-wrap: balance;
  max-width: 13ch;
}
.h-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  max-width: 46ch;
  text-wrap: pretty;
}
.h-ctas { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; margin-top: 28px; }
.h-textlink { color: var(--text); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.h-textlink:hover { color: var(--white); border-color: var(--green); opacity: 1; }

.h-demo { margin-top: clamp(40px, 5vw, 64px); }
.h-demo .demo-meta { margin-top: 18px; }
.h-demo .preview-caption { color: var(--muted); font-size: 14px; }

/* One orchestrated entrance; the global reduced-motion rule in style.css
   collapses it to an instant render. Content is visible by default. */
@keyframes h-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes h-lift { from { opacity: 0; transform: translateY(28px) scale(.985); } }
.h-title  { animation: h-rise .7s var(--ease-out) both; }
.h-copy   { animation: h-rise .7s var(--ease-out) .12s both; }
.h-demo   { animation: h-lift .9s var(--ease-out) .26s both; }

/* ─── Where each form lands ─────────────────────────────────────────────── */
.h-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 40px 64px;
  align-items: center;
}
.h-split p + p { margin-top: 14px; }
.h-prose { color: var(--text); font-size: 16px; line-height: 1.7; max-width: 52ch; }
.h-prose strong { color: var(--white); }

.h-paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 6px;
  padding: 22px 24px 18px;
  font-size: 14.5px;
}
.h-paper-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 2px solid var(--paper-ink);
  padding-bottom: 10px; margin-bottom: 4px;
}
.h-paper-head b { font-size: 17px; letter-spacing: -0.01em; }
.h-paper-head span { color: var(--paper-muted); font-size: 13px; }
.h-paper table { width: 100%; border-collapse: collapse; }
.h-paper th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--paper-muted); padding: 10px 0 6px; }
.h-paper td { padding: 12px 0; border-top: 1px solid var(--paper-rule); vertical-align: top; line-height: 1.45; }
.h-paper td:first-child { font-weight: 700; white-space: nowrap; padding-right: 18px; }
.h-paper td:nth-child(2) { color: var(--paper-muted); padding-right: 18px; }
.h-paper td:last-child, .h-paper th:last-child { text-align: right; white-space: nowrap; }
.h-paper td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.h-paper-foot { color: var(--paper-muted); font-size: 12.5px; padding-top: 10px; border-top: 1px solid var(--paper-rule); }

/* ─── Brokerages ────────────────────────────────────────────────────────── */
#brokerages { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.h-brokers {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 6px clamp(20px, 2.6vw, 34px);
  margin: 28px 0 32px;
  max-width: 980px;
}
.h-brokers li {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--white);
  line-height: 1.3;
}
.h-note { color: var(--muted); font-size: 16px; max-width: 60ch; }
.h-note a { color: var(--green); }

/* ─── Setup steps (a real sequence, so numbered) ────────────────────────── */
.h-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px 40px;
  margin-top: 40px;
}
.h-steps li { counter-increment: step; border-top: 1px solid var(--border); padding-top: 18px; }
.h-steps li::before {
  content: counter(step);
  display: block;
  font-size: 40px; font-weight: 800; line-height: 1;
  color: var(--green);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.h-steps h3 { font-size: 18px; color: var(--white); margin-bottom: 8px; letter-spacing: -0.01em; }
.h-steps p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ─── Other businesses ──────────────────────────────────────────────────── */
.h-others { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: start; }
.h-others h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: var(--white); letter-spacing: -0.015em; line-height: 1.2; }
.h-others p { color: var(--text); line-height: 1.7; }
.h-others ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.h-others a { font-weight: 600; }

/* ─── Product page: trial note and plans ────────────────────────────────── */
.h-fine { color: var(--muted); font-size: 14px; margin-top: 14px; }
.h-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px 40px;
  margin: 32px 0 36px;
}
.h-plan { border-top: 1px solid var(--border); padding-top: 18px; display: flex; flex-direction: column; }
.h-plan h3 { font-size: 18px; color: var(--white); letter-spacing: -0.01em; }
.h-plan-price { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--white); letter-spacing: -0.02em; line-height: 1.2; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.h-plan ul { list-style: none; color: var(--text); font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.h-plan li { padding: 7px 0; border-top: 1px solid var(--border); }
.h-plan .btn { align-self: flex-start; margin-top: auto; }
.h-plan.is-pick { border-top: 2px solid var(--green); }
.h-plan-tag { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: 0; vertical-align: middle; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .h-lede, .h-split, .h-others { grid-template-columns: 1fr; }
  .h-title { max-width: 15ch; }
}
@media (max-width: 560px) {
  .h-sub { font-size: 16px; }
  .h-ctas .btn { width: 100%; text-align: center; }
  .h-paper { padding: 18px 16px 14px; font-size: 13.5px; }
  .h-paper td:nth-child(2), .h-paper th:nth-child(2) { display: none; }
}
