.product-home {
  --page-width: min(100% - 4rem, 80rem);
  --blue-ink: #3c4c99;
  --tour-ground: #f3f5fc;
  --secondary-surface: #f8f9fc;
}
[data-theme="dark"] .product-home {
  --blue-ink: #bac7ff;
  --tour-ground: #252b42;
  --secondary-surface: #171b24;
}
.product-home > section, .compat-strip { width: var(--page-width); margin-inline: auto; }
.product-home :is(h1, h2, h3) { color: var(--ink); font-weight: 500; }
.product-home em { font-weight: 400; }
.product-home a:focus-visible, .product-home button:focus-visible {
  outline: 3px solid var(--blue-ink);
  outline-offset: 3px;
}
.category-line, .brief-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.category-line { color: var(--blue-ink); }
.category-line::before {
  content: "";
  width: 1.65rem;
  height: 2px;
  background: currentColor;
}
.lead {
  display: grid;
  grid-template-columns: minmax(0, 0.77fr) minmax(0, 1.23fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.25rem);
  padding-block: clamp(2rem, 3.75vw, 3.75rem);
}
.lead-copy { padding-block: 1rem; }
.lead-copy h1 {
  max-width: 8.3em;
  margin: 1.1rem 0 1.35rem;
  font-size: clamp(3.6rem, 5.9vw, 5.65rem);
  line-height: 0.99;
  letter-spacing: -0.073em;
  text-wrap: balance;
}
.lead-copy h1 em {
  display: block;
  color: var(--blue-ink);
  font-size: 1.115em;
  letter-spacing: -0.036em;
}
.lead-copy > p:not(.platform-note), .chapter-head > p, .guide-intro > p, .hosting-message > p {
  max-width: 37ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.55;
  letter-spacing: -0.012em;
}
.lead-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 1.75rem; }
.lead-actions .button {
  font-size: 0.9375rem;
  min-height: 3rem;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  border-radius: 0.45rem;
}
.lead-actions .button.primary { background: var(--action); color: var(--on-action); }
.platform-note { color: var(--muted); font-size: 0.8125rem; margin-top: 0.8rem; }
.lead-stage {
  height: clamp(25rem, 33vw, 31rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  background: #809ffb url('/media/hero-paper.webp') center / cover no-repeat;
  border-radius: 1.125rem;
}
.brief-slip {
  position: absolute;
  top: 8%;
  left: 5.5%;
  width: min(72%, 24rem);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem 0.75rem 0.75rem 0.17rem;
  color: #212535;
  background: #fcfcff;
  box-shadow: 0 8px 24px #14236733;
  z-index: 1;
}
.brief-label { color: #4d5c9e; font-size: 0.75rem; }
.brief-slip p { font-size: clamp(0.9rem, 1.12vw, 1.05rem); line-height: 1.4; margin-top: 0.33rem; }
.lead-screen {
  display: block;
  position: absolute;
  top: 38%;
  left: 7%;
  width: 89%;
  overflow: hidden;
  border: 0.3rem solid #ffffff75;
  border-radius: 0.9rem;
  background: white;
  box-shadow: 0 0 0 1px #1e2a571c, 0 22px 50px #1626555e;
  cursor: zoom-in;
}
.lead-screen img, .lead-screen picture { display: block; width: 100%; height: auto; }
.compat-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 5.625rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
}
.compat-strip > span, .compat-strip > a { font-size: 0.875rem; color: var(--muted); }
.compat-strip ul { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 4rem); padding: 0; margin: 0; list-style: none; }
.compat-strip li { font-weight: 600; letter-spacing: -0.045em; font-size: clamp(1rem, 1.55vw, 1.4rem); }
.compat-strip > a, .detail-link { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: var(--line-strong); }
.compat-strip > a:hover, .detail-link:hover { text-decoration-color: currentColor; }
.product-tour { padding-block: clamp(3.5rem, 7vw, 7rem) clamp(3rem, 5.7vw, 5.75rem); }
.chapter-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: 0.9rem 2rem;
  align-items: end;
}
.chapter-head .category-line { grid-column: 1 / -1; }
.chapter-head h2, .guide-intro h2, .hosting-message h2, .product-home .faq h2 {
  font-size: clamp(2.65rem, 4.4vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.065em;
  margin: 0;
}
.chapter-head h2 em, .hosting-message h2 em { display: block; font-size: 1.08em; letter-spacing: -0.035em; }
.chapter-head > p { font-size: clamp(1rem, 1.1vw, 1.125rem); max-width: 39ch; padding-bottom: 0.15rem; }
.tour-controls {
  display: inline-flex;
  margin: 2.25rem 0 1.15rem;
  border: 1px solid var(--line);
  padding: 0.2rem;
  border-radius: 2rem;
  gap: 0.15rem;
  background: var(--secondary-surface);
}
.tour-controls button {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 2rem;
  font-size: 0.9375rem;
  min-height: 2.6rem;
  padding: 0.4rem 1.15rem;
  font-weight: 500;
}
.tour-controls button:hover { background: var(--surface-raised); }
.tour-controls button[aria-selected="true"] { background: var(--action); color: var(--on-action); }
.tour-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: stretch;
  background: var(--secondary-surface);
  border: 1px solid var(--line-soft);
  border-radius: 1.1rem;
  overflow: hidden;
}
.tour-controls[hidden] ~ .tour-panel { margin-top: 1.5rem; }
.tour-panel-copy { align-self: center; padding: clamp(1.5rem, 3.8vw, 3.75rem); }
.tour-panel-copy h3 {
  font-size: clamp(1.85rem, 2.8vw, 2.85rem);
  letter-spacing: -0.052em;
  line-height: 1.08;
}
.tour-panel-copy p, .guide-steps p, .product-home .faq details p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.detail-link { display: inline-block; margin-top: 1.35rem; font-size: 0.875rem; font-weight: 550; }
.proof-stage {
  display: grid;
  place-items: center;
  min-height: clamp(21rem, 31vw, 28rem);
  padding: 1.75rem;
  background: var(--tour-ground);
  border-inline-start: 1px solid var(--line-soft);
}
.proof-stage picture { display: grid; place-items: center; max-width: 100%; }
.proof-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(18rem, 26vw, 23rem);
  border: 1px solid #242b4219;
  border-radius: 0.5rem;
  box-shadow: 0 14px 32px #333d6617, 0 2px 6px #242b4214;
}
.tour-notes .proof-stage { background: #e6f1ed; }
.tour-review .proof-stage { background: #f5ece2; }
[data-theme="dark"] .tour-notes .proof-stage { background: #283b37; }
[data-theme="dark"] .tour-review .proof-stage { background: #3c322e; }
.getting-started {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
}
.guide-intro > p { margin-top: 1.25rem; font-size: 1.075rem; line-height: 1.65; }
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: guide; }
.guide-steps li { position: relative; counter-increment: guide; padding: 1.2rem 0 1.4rem 3.4rem; border-top: 1px solid var(--line); }
.guide-steps li:first-child { padding-top: 0; border: 0; }
.guide-steps li:last-child { padding-bottom: 0; }
.guide-steps li::before {
  content: counter(guide, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--blue-ink);
  font: 500 0.9rem/2 ui-monospace, monospace;
}
.guide-steps h3 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.035em; }
.guide-steps p { margin-top: 0.5rem; max-width: 49ch; }
.guide-steps q { color: var(--text-strong); }
.hosting-band {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: clamp(2rem, 4.3vw, 4.25rem);
  color: #f4f5ff;
  background: #222942;
  border-radius: 1.125rem;
}
.hosting-message h2 { color: inherit; }
.hosting-message h2 em { color: #bbcbff; }
.hosting-message > p { margin-top: 1rem; font-size: 1rem; color: #dce2fa; }
.hosting-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  margin-top: 1.35rem;
  padding: 0.55rem 1rem;
  border-radius: 0.4rem;
  background: #f4f6ff;
  color: #202640;
  font-size: 0.9375rem;
  font-weight: 600;
}
.hosting-link:hover { background: #dce4ff; }
.hosting-options { margin: 0; }
.hosting-options div { padding: 1rem 0; border-top: 1px solid #58617c; }
.hosting-options div:last-child { border-bottom: 1px solid #58617c; }
.hosting-options dt { font-weight: 550; font-size: 1.125rem; }
.hosting-options dd { margin: 0.2rem 0 0; color: #dce2fa; font-size: 0.9375rem; line-height: 1.45; }
.product-home .faq {
  max-width: none;
  margin: 0 auto;
  padding-block: clamp(3rem, 6vw, 6rem);
  border-top: none;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 8vw, 8rem);
}
.product-home .faq details { padding: 1.1rem 0; }
.product-home .faq details:first-child { border-top: 1px solid var(--line); }
.product-home .faq summary { font-size: 1.0625rem; font-weight: 500; }
@media (max-width: 950px) {
  .lead { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.75rem; }
  .lead-copy h1 { font-size: clamp(3.65rem, 6.75vw, 4.65rem); }
  .lead-stage { height: 25rem; }
  .brief-slip { width: 82%; }
  .lead-screen { left: 8%; width: 87%; }
}
@media (max-width: 760px) {
  .product-home { --page-width: calc(100% - 2.25rem); }
  .lead { display: block; padding-block: 2rem 1.5rem; }
  .lead-copy { padding: 0; }
  .lead-copy h1 { font-size: clamp(3.4rem, 9.2vw, 4.9rem); max-width: none; margin: 0.9rem 0 1rem; }
  .lead-copy h1 em { display: block; }
  .lead-actions { margin-top: 1.1rem; }
  .lead-stage { margin-top: 1.6rem; height: clamp(19rem, 70vw, 25rem); }
  .brief-slip { width: min(80%, 19rem); top: 6.5%; padding: 0.75rem 0.9rem; }
  .lead-screen { top: 39%; left: 8%; }
  .compat-strip { display: grid; grid-template-columns: 1fr auto; row-gap: 0.5rem; min-height: auto; }
  .compat-strip ul { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 0.5rem; }
  .compat-strip > a { grid-row: 1; grid-column: 2; }
  .chapter-head, .getting-started, .product-home .faq { grid-template-columns: 1fr; gap: 1rem; }
  .chapter-head > p { max-width: 44ch; padding: 0; }
  .tour-controls { margin-top: 1.35rem; }
  .tour-panel { grid-template-columns: 1fr; }
  .tour-panel-copy { padding: 1.5rem; }
  .tour-panel-copy p { margin-top: 0.65rem; max-width: 48ch; }
  .proof-stage { min-height: 17rem; padding: 1.3rem; border-inline-start: none; border-top: 1px solid var(--line-soft); }
  .proof-stage img { max-height: 19rem; }
  .getting-started { gap: 2rem; }
  .guide-steps li { padding-left: 2.65rem; }
  .hosting-band { grid-template-columns: 1fr; gap: 1.6rem; }
  .product-home .faq { gap: 1.75rem; }
}
@media (max-width: 600px) {
  .lead-actions { gap: 0.5rem; }
  .lead-actions .button { padding-inline: 0.85rem; font-size: 0.875rem; }
  .lead-screen { left: 8%; width: min(84%, 23rem); top: 7.7rem; }
  .lead-stage { height: clamp(24.75rem, 83vw + 6.5rem, 32rem); }
  .brief-slip { top: 1.3rem; }
  .lead-copy h1 { max-width: 8em; }
}
@media (max-width: 365px) {
  .lead-actions { gap: 0.45rem; }
  .lead-actions .button { padding-inline: 0.6rem; font-size: 0.8125rem; }
  .brief-slip { width: 88%; }
  .lead-screen { top: 8rem; }
  .compat-strip > span, .compat-strip > a { font-size: 0.8125rem; }
  .tour-controls button { padding-inline: 0.9rem; }
}

.guide-brief {
  margin-top: 1.15rem;
  padding-inline-start: 1.1rem;
  border-inline-start: 2px solid var(--blue-ink);
}
.guide-brief blockquote {
  margin: 0;
  color: var(--text-strong);
  font: italic 400 clamp(1.75rem, 2.7vw, 2.45rem)/1.1 "Instrument Serif", Georgia, serif;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.guide-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin-top: 1rem;
}
.guide-copy .button { min-height: 2.75rem; padding: 0.45rem 0.85rem; font-size: 0.875rem; }
.guide-copy [role="status"] { color: var(--muted); font-size: 0.875rem; }
