/* The same navigation on Home, Story, Product, Case Study and Legal. */
.site-header, .public-footer {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: var(--site-warm);
  color: var(--heykup-ink);
  font-family: var(--heykup-font);
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.site-header, .site-header * { box-sizing: border-box; }
.site-header .site-nav-shell {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  /* Document pages can reserve a scrollbar; the app shell does not.
     Keep the links anchored to the viewport in both scroll containers. */
  width: min(var(--site-width), calc(100vw - 2 * var(--site-gutter)));
  min-height: 88px;
  margin: 0;
  margin-inline-start: max(var(--site-gutter), calc((100vw - var(--site-width)) / 2));
  padding: 0;
}
:is(.site-header, .public-footer) a { text-decoration: none; -webkit-tap-highlight-color: transparent; }
:is(.site-header, .public-footer) a:focus-visible { outline: 3px solid var(--heykup-accent); outline-offset: 4px; }
:is(.site-header, .public-footer) .site-brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; color: var(--heykup-ink); }
:is(.site-header, .public-footer) .site-brand-mark { display: grid; place-items: center; width: 36px; height: 36px; padding: 7px; border-radius: 11px; background: var(--heykup-accent); color: #fff; --brand-mark-check: var(--heykup-accent); }
:is(.site-header, .public-footer) .site-brand-mark svg { display: block; width: 100%; height: 100%; }
:is(.site-header, .public-footer) .site-brand-wordmark { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.065em; }
:is(.site-header, .public-footer) .site-brand-wordmark > span { color: var(--heykup-accent); }
.site-header .site-nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-header .site-nav-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border-radius: 12px; color: var(--heykup-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.site-header .site-nav-links a:hover { background: var(--site-peach); color: var(--heykup-feature); }
.site-header .site-nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 18px; border: 0; border-radius: 16px; color: #fff; background: var(--heykup-feature); font-size: 14px; font-weight: 600; white-space: nowrap; }
.site-header .site-nav-cta:hover { background: var(--heykup-ink); }
/* Sticky headers occupy their own row; the hero needs only its content spacing. */
.mw .mw-hero, .mw .mw-legal-section { padding-top: 40px; }
@media (max-width: 759px) {
  .site-header .site-nav-shell { grid-template-columns: 1fr auto; gap: 8px 12px; padding-block: 12px; min-height: 120px; }
  .site-header .site-nav-cta { grid-column: 2; grid-row: 1; font-size: 12px; padding: 10px 12px; border-radius: 14px; }
  .site-header .site-nav-links { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: .8fr .8fr 1fr 1.3fr .7fr; gap: 2px; }
  .site-header .site-nav-links a { font-size: 12px; padding-inline: 5px; }
  .mw { --mw-nav-height: 120px; }
  .mw .mw-hero, .mw .mw-legal-section { padding-top: 32px; }
}
@media (min-width: 760px) and (max-width: 900px) {
  .site-header .site-nav-shell { gap: 12px; }
  .site-header .site-nav-links a { padding-inline: 6px; }
}

.public-footer { border-top: 1px solid var(--heykup-line); background: var(--site-warm); color: var(--heykup-ink); font-family: var(--heykup-font); line-height: 1.4; letter-spacing: normal; text-align: left; }
.public-footer, .public-footer * { box-sizing: border-box; }
.public-footer .site-footer-shell { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; width: min(var(--site-width), calc(100vw - 2 * var(--site-gutter))); margin: 0; margin-inline-start: max(var(--site-gutter), calc((100vw - var(--site-width)) / 2)); padding: 32px 0; }
.public-footer .site-footer-brand p { margin: 8px 0 0; color: var(--heykup-muted); font-size: 13px; line-height: 1.6; }
.public-footer .site-footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; }
.public-footer .site-footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: var(--heykup-muted); font-size: 13px; font-weight: 500; line-height: 1.4; }
.public-footer .site-footer-links a:hover { color: var(--heykup-ink); text-decoration: underline; text-underline-offset: 4px; }
.public-footer .site-footer-note { grid-column: 1 / -1; margin: 0; color: var(--heykup-muted); font-size: 11px; line-height: 1.6; }
@media (max-width: 759px) { .public-footer .site-footer-shell { grid-template-columns: 1fr; } }
/* The same restrained surfaces and reading rhythm across every public page. */
.mw .site-demo-shell, .editorial .planner-board { background: #fff; border: 1px solid var(--heykup-line); box-shadow: 0 20px 60px #17191d0a; }
.mw .site-demo-title h2 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.mw .site-demo-title p { font-size: 14px; line-height: 1.5; color: var(--heykup-muted); }
.mw .site-demo-nav { grid-template-columns: repeat(3, minmax(0,1fr)); }
.mw .site-demo-view { min-height: 320px; }
.mw .site-demo-choice { background: #fff; color: var(--heykup-ink); border: 1px solid #e3e5e9; box-shadow: none; }
.mw .site-demo-choice-heading svg { color: var(--heykup-feature); }
.mw .site-demo-options button { background: var(--heykup-paper); color: var(--heykup-ink); border-color: #e3e5e9; }
.mw .site-demo-options button[aria-pressed="true"] { background: var(--heykup-feature); color: #fff; border-color: var(--heykup-feature); box-shadow: none; }
.mw .site-demo-options button:hover { border-color: var(--heykup-feature); }
.mw .site-demo-feedback { color: var(--heykup-muted); }
.mw .site-demo-nav button[aria-pressed="true"] { background: var(--heykup-feature); color: #fff; }
.mw .site-demo-rides { padding: 8px 0; }
.mw .site-demo-sample { font-size: 12px; color: var(--heykup-muted); }
.mw .site-demo-route { display: grid; gap: 6px; margin: 16px 0; border-left: 2px solid var(--heykup-accent); padding-left: 16px; }
.mw .site-demo-route > span { color: var(--heykup-muted); font-size: 12px; }
.mw .site-demo-route > strong { font-size: 18px; margin-bottom: 10px; }
.mw .site-demo-ride-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 16px; }
.mw .site-demo-ride-action { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; border-radius: 12px; background: var(--heykup-feature); color: #fff; padding: 12px 16px; min-height: 48px; font: inherit; cursor: pointer; }
.mw .site-demo-ride-action svg { width: 18px; height: 18px; }
.mw .site-demo-rides > a { display: inline-flex; min-height: 44px; align-items: center; color: var(--heykup-ink); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.mw .site-demo-rides > p[role] { font-size: 13px; line-height: 1.6; }
.mw .site-page-card:is(.is-story, .is-product, .is-casestudy) { background: #fff; color: var(--heykup-ink); box-shadow: none; }
.mw .site-page-card.is-product :is(p, .site-page-detail) { color: var(--heykup-muted); }
.mw .site-page-card:hover { border-color: var(--heykup-accent); }
.mw .mw-legal-block p, .mw .mw-legal-block li { line-height: 1.75; }
.mw .mw-legal-block h3 { margin-top: 28px; }
.editorial .hero h1 { font-size: clamp(40px, 5.5vw, 72px); line-height: 1.05; letter-spacing: -.045em; }
.editorial .feature-grid article, .editorial .learning-grid article { background: #fff; border: 1px solid var(--heykup-line); box-shadow: none; }
.editorial .journey-examples { display: grid; gap: 24px; }
.editorial .product-example { min-width: 0; background: #fff; border: 1px solid var(--heykup-line); border-radius: 20px; padding: 28px; }
.editorial .product-example h3 { margin: 14px 0; }
.editorial .example-invitation { display: flex; gap: 16px; margin: 24px 0; padding-block: 20px; border-block: 1px solid var(--heykup-line); }
.editorial .example-date { display: flex; flex-direction: column; align-items: center; align-self: flex-start; padding: 8px 12px; border: 1px solid var(--heykup-line); border-radius: 12px; color: var(--heykup-feature); font-size: 11px; }
.editorial .example-date strong { font-size: 26px; }
.editorial .example-invitation p { margin: 8px 0; font-size: 14px; }
.editorial .example-invitation small { color: var(--heykup-muted); }
.editorial .example-route { display: grid; gap: 12px; margin: 24px 0; padding: 20px; background: var(--heykup-paper); border-radius: 14px; }
.editorial .example-route > span { font-size: 12px; color: var(--heykup-muted); }
.editorial .example-route strong { display: block; margin-top: 4px; font-size: 16px; color: var(--heykup-ink); }
.editorial .example-route p { font-size: 13px; border-top: 1px solid var(--heykup-line); padding-top: 12px; }
.editorial .product-example .supporting-note { font-size: 13px; line-height: 1.6; }
.editorial .product-example .supporting-note a { text-decoration: underline; text-underline-offset: 3px; }
.editorial #shared-commutes { scroll-margin-top: 120px; }
@media(min-width:760px) { .editorial .journey-examples { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:420px) { .editorial .product-example { padding: 20px; } }
@media (max-width: 359px) {
  .site-header .site-nav-links a { font-size: 11px; padding-inline: 3px; }
}

.site-header .site-nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--heykup-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
