/* Homepage only. Shared styles and the install/invitation routes stay independent. */
.marketing-page {
  min-width: 0;
  overflow-wrap: anywhere;
  background:
    radial-gradient(ellipse at 85% 7%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 38rem),
    var(--bg);
}

.marketing-page :is(section[id], main[id]) { scroll-margin-top: 6rem; }
.marketing-page :focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }
.marketing-page .button:not(.secondary) { background: #315fcf; color: #fff; gap: 1.25rem; }
.marketing-page .button:not(.secondary):hover { background: #244ba8; }
.marketing-page .theme-toggle { min-height: 2.75rem; }
.marketing-page .nav-links > a { padding-block: 0.7rem; }
.marketing-page .status-line, .marketing-page .site-footer { color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.marketing-page .hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem;
  padding-block: 3.75rem 4rem;
}
.marketing-page .hero h1 { max-width: none; font-size: clamp(4rem, 7.5vw, 6.75rem); line-height: 1.02; }
.marketing-page .hero h1 span { color: var(--brand); }
.marketing-page .hero-copy { max-width: 30rem; margin-top: 1.75rem; }
.marketing-page .hero .eyebrow { margin-bottom: 1.5rem; }
.hero-product { position: relative; margin: 0; display: grid; justify-items: center; }
.hero-product::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 15% 0 9%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  filter: blur(40px);
}
.device {
  width: min(100%, 18.5rem);
  border: 6px solid #080d18;
  border-radius: 2.5rem;
  overflow: hidden;
  background: #101626;
  box-shadow: 0 0 0 1px #394356, var(--shadow);
}
.device :is(img, video) { display: block; width: 100%; height: auto; }
.device video { aspect-ratio: 720 / 1560; }
.hero-product .device { width: min(100%, 18.5rem); }
.marketing-page figcaption { color: var(--muted); font-size: 0.875rem; line-height: 1.55; margin-top: 1.1rem; }
.hero-product figcaption { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 650; }
.resume-symbol {
  display: inline-flex;
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--brand);
  font-size: 1.1rem;
  line-height: 1;
}

.product-overview { padding-block: 1rem 2rem; }
.product-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.product-path li { border-block: 1px solid var(--border); }
.product-path li + li { border-left: 1px solid var(--border); }
.product-path a { position: relative; display: block; height: 100%; padding: 1.6rem 2rem; text-decoration: none; }
.product-path a:hover { background: var(--brand-soft); color: var(--text); }
.path-number { display: block; color: var(--brand); font-size: 0.75rem; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 1rem; }
.product-path h3 { max-width: 18rem; padding-right: 1rem; }
.product-path p { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }
.path-arrow { position: absolute; top: 1.4rem; right: 1.4rem; color: var(--muted); font-size: 1.3rem; }
.marketing-section { padding-block: clamp(2.5rem, 5vw, 4.75rem); }
.section-copy { color: var(--muted); font-size: 1.1rem; line-height: 1.75; max-width: 37rem; }

.plans-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, var(--surface), color-mix(in srgb, var(--brand-soft) 55%, var(--surface)));
}
.plans-copy > .eyebrow { display: flex; gap: 0.65rem; align-items: center; letter-spacing: 0.07em; font-size: 0.73rem; }
.plans-copy h2 { font-size: clamp(2.25rem, 3.8vw, 3.5rem); line-height: 1.09; max-width: 18ch; }
.return-promise { border-left: 3px solid var(--brand); padding-left: 1.15rem; margin-block: 1.75rem; font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 600; line-height: 1.6; }
.return-promise span, .return-promise strong { display: block; }
.return-promise strong { color: var(--brand-strong); }
.continuity-list { list-style: none; padding: 0; margin-block: 1.5rem; }
.continuity-list li { display: flex; align-items: baseline; gap: 0.75rem; margin-block: 0.65rem; font-weight: 580; }
.continuity-list li::before { content: ""; flex: 0 0 0.4rem; width: 0.4rem; height: 0.4rem; background: var(--brand); border-radius: 50%; }
.experience-note { color: var(--muted); font-size: 0.88rem; max-width: 28rem; margin-bottom: 0; }
.demo-figure { margin: 0; display: grid; justify-items: center; }
.demo-figure figcaption { max-width: 19rem; text-align: center; }
.demo-figure figcaption strong { display: block; color: var(--text); margin-bottom: 0.3rem; }

.jot-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.jot-section h2 { max-width: 14ch; line-height: 1.1; }
.jot-example { display: flex; align-items: flex-start; gap: 1.1rem; padding: 1.4rem; border: 1px solid var(--border); border-radius: 1.25rem; background: var(--surface); margin-top: 1.5rem; }
.jot-example svg { flex: 0 0 auto; color: var(--brand); margin-top: 0.25rem; }
.jot-example span { color: var(--muted); font-size: 0.8rem; }
.jot-example p { margin: 0.25rem 0 0; font-size: 1.05rem; }

.hats-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); border-top: 1px solid var(--border); margin-top: 1.5rem; }
.hats-copy h2 { max-width: 13ch; line-height: 1.1; }
.hat-labels { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin-top: 1.5rem; }
.hat-labels li { border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 999px; padding: 0.25rem 0.9rem; font-size: 0.85rem; background: var(--surface); }
.hat-labels li:nth-child(2) { border-left-color: #b77a0a; }
.hat-labels li:nth-child(3) { border-left-color: #16825d; }
.hat-labels li:nth-child(4) { border-left-color: #8a64d6; }
.hats-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.today-figure { margin: 0; padding-top: 3rem; text-align: center; }
.hats-media .device { border-radius: 2rem; }
.hats-media figcaption { font-size: 0.8rem; }

.handoff-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: 2.5rem; border-block: 1px solid var(--border); }
.handoff-panel h2 { max-width: 14ch; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.12; }
.handoff-signoff { font-weight: 650; color: var(--brand-strong); margin-bottom: 0; }
.focus-note { margin: 1.5rem auto 0; max-width: 44rem; text-align: center; color: var(--muted); font-size: 0.95rem; }
.focus-note strong { color: var(--text); }
.marketing-page .beta-panel { background: var(--surface); }
.marketing-page .beta-panel h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; }
.beta-actions { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.text-link { color: var(--muted); padding-block: 0.65rem; font-size: 0.9rem; }

@media (max-width: 60rem) {
  .marketing-page .hero { gap: 1.5rem; }
  .marketing-page .hero h1 { font-size: clamp(3.5rem, 7.8vw, 6rem); }
  .product-path a { padding: 1.5rem; }
  .plans-feature { gap: 2rem; }
  .hats-section { grid-template-columns: 1fr; }
  .hats-copy { max-width: 40rem; }
  .hats-copy h2 { max-width: 18ch; }
  .hats-media { max-width: 36rem; width: 100%; margin-inline: auto; gap: 2rem; }
}

@media (max-width: 44rem) {
  .marketing-page .nav { flex-wrap: wrap; padding-block: 0.65rem; }
  .marketing-page .nav-links { flex-wrap: wrap; }
  .marketing-page .hero { grid-template-columns: 1fr; padding-block: 3.5rem 2.5rem; gap: 2rem; }
  .marketing-page .hero h1 { font-size: clamp(3.25rem, 13vw, 5.5rem); }
  .marketing-page .hero-copy { margin-top: 1.25rem; }
  .marketing-page .hero .eyebrow { margin-bottom: 1rem; }
  .hero-product .device { width: min(100%, 18rem); }
  .product-path { grid-template-columns: 1fr; }
  .product-path li + li { border-left: 0; border-top: 0; }
  .product-path a { padding: 1.1rem 1.25rem; }
  .path-number { margin-bottom: 0.4rem; }
  .product-path h3 { max-width: none; }
  .plans-feature, .jot-section, .handoff-panel { grid-template-columns: 1fr; }
  .plans-feature { padding: 1.5rem 1.25rem; gap: 2.5rem; border-radius: 1.5rem; }
  .plans-copy h2 { max-width: 19ch; }
  .jot-section { gap: 1rem; }
  .hats-copy h2 { max-width: 14ch; }
  .hats-media { gap: 2rem; grid-template-columns: 1fr; justify-items: center; }
  .hats-media figure { max-width: 18.5rem; width: 100%; }
  .today-figure { padding-top: 0; }
  .hats-media .device { border-width: 4px; border-radius: 1.5rem; }
  .handoff-panel { gap: 1rem; }
  .beta-actions { align-items: flex-start; }
  .marketing-page .beta-panel { padding: 1.5rem; }
}

@media (max-width: 24rem) {
  .marketing-page .nav { gap: 0.6rem; }
  .marketing-page .nav-links { gap: 0.65rem; }
  .marketing-page .brand { gap: 0.4rem; font-size: 1rem; }
  .hats-media { grid-template-columns: 1fr; justify-items: center; }
  .hats-media figure { max-width: 17rem; width: 100%; }
  .today-figure { padding-top: 0; }
}
.demo-player { position: relative; aspect-ratio: 720 / 1560; }
.demo-play {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  border: 1px solid #9bb4ff;
  border-radius: 999px;
  background: #315fcf;
  color: #fff;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 4px 24px #0008;
}
.demo-play:hover { background: #244ba8; }
.marketing-page .demo-play:focus-visible { outline-color: #fff; }
.playback-help { max-width: 19rem; margin: 1rem 0 0; color: var(--muted); font-size: 0.875rem; }