/* Tomo-style single-page landing — one viewport hero, depth behind icons. */

body.landing-tomo-page {
  overflow: hidden;
  height: 100dvh;
}

body.landing-tomo-page main.me-life-main {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

body.landing-tomo-page nav.site-nav {
  display: none !important;
}

body.landing-tomo-page .cosmos-landing.landing-tomo {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1080px, calc(100vw - 28px));
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Ambient void + subtle signal glow (Cosmos flair on Tomo simplicity) */
.landing-tomo-ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 72% 18%, rgba(127, 237, 199, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 12% 82%, rgba(127, 237, 199, 0.05) 0%, transparent 50%),
    #000;
}

/* ── Top chrome ── */

.landing-tomo-chrome {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top, 0px)) 0 8px;
}

.landing-tomo-chrome .landing-tomo-home {
  display: none;
}

body.landing-tomo-page.landing-panel-open .landing-tomo-chrome .landing-tomo-home,
body.login-page .landing-tomo-chrome .landing-tomo-home {
  display: inline-flex;
}

.landing-tomo-brand-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.landing-tomo-brand {
  font-family: "Sohne", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.landing-tomo-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.55);
}

.landing-tomo-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  flex-shrink: 1;
  min-width: 0;
}

.landing-tomo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  border: none;
  background: none;
  font-family: "Sohne", -apple-system, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.landing-tomo-link:hover {
  color: rgba(255, 255, 255, 0.92);
}

.landing-tomo-link.is-signin {
  color: #7fedc7;
  font: inherit;
}

.landing-tomo-link.is-signin:hover {
  text-decoration: underline;
}

/* GPS accents on Tomo hero CTAs (headline stays SF Pro from landing-apple-wm) */
body.landing-tomo-page .hero-format-note {
  margin: 0;
  font-family: "Sohne", -apple-system, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.35);
  text-wrap: pretty;
}

body.landing-tomo-page .hero-install-secondary {
  display: block;
  align-self: center;
  width: fit-content;
  margin: 0;
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
}

body.landing-tomo-page .hero-install-secondary:hover {
  color: rgba(255, 255, 255, 0.72);
}

body.landing-tomo-page:not(.landing-panel-open) .hero-cta-stack {
  margin-top: 16px;
  width: 100%;
  max-width: 28rem;
  align-items: center;
  text-align: center;
  gap: 0;
}

body.landing-tomo-page .hero-cta-note {
  margin: 10px 0 0;
  font-family: "Sohne", -apple-system, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  text-wrap: pretty;
}

body.landing-tomo-page .hero-cta-stack .hero-cta-note {
  width: auto;
  max-width: 20rem;
}

body.landing-tomo-page:not(.landing-panel-open) .hero-cta-stack .hero-cta-pill {
  width: auto;
  min-width: min(100%, 280px);
  min-height: 48px;
  align-self: center;
}

body.landing-tomo-page .hero-beta-note {
  margin: 0;
  font-family: "Sohne", -apple-system, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.35);
  text-wrap: pretty;
}

body.landing-tomo-page .hero-channel-line {
  margin: 10px 0 0;
  max-width: 28rem;
  font-family: "Sohne", -apple-system, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.016em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  text-wrap: pretty;
}

body.landing-tomo-page .landing-thread-stage.is-imessage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
}

body.landing-tomo-page .landing-thread-stage.is-imessage .landing-phone-caption {
  margin-top: 10px;
  max-width: var(--phone-w, 280px);
}

body.landing-tomo-page .hero-cta-pill,
body.landing-tomo-page .hero-cta-link {
  font-family: "Sohne", -apple-system, system-ui, sans-serif;
}

button.hero-cta-pill {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

body.landing-tomo-page .hero-cta-link {
  color: rgba(255, 255, 255, 0.5);
}

body.landing-tomo-page .hero-cta-link:hover {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

/* ── Hero: true vertical center in viewport ── */

body.landing-tomo-page .cosmos-hero.landing-hero.landing-tomo-hero {
  display: flex !important;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 !important;
  margin: 0;
  text-align: initial;
  scroll-margin-top: 0;
}

.landing-tomo-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

body.landing-tomo-page.landing-panel-open .landing-tomo-hero {
  overflow: hidden;
}

body.landing-tomo-page .landing-tomo-hero .landing-hero-grid {
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  align-items: center;
}

body.landing-tomo-page .landing-hero-grid > * {
  min-width: 0;
}

body.landing-tomo-page .landing-hero-copy {
  position: relative;
  z-index: 2;
}

body.landing-tomo-page .landing-thread-stage {
  position: relative;
  z-index: 1;
  transition:
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.landing-tomo-page .landing-thread-stage.is-imessage .landing-thread-card {
  width: var(--phone-w, 280px);
  max-width: 100%;
  margin-inline: auto;
}

/* Stacked layout: center the full hero column (wordmark through CTA) */
@media (max-width: 899px) {
  body.landing-tomo-page .landing-hero-copy,
  body.landing-tomo-page.landing-panel-open .landing-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.landing-tomo-page:not(.landing-panel-open) .landing-wordmark {
    display: none;
  }

  body.landing-tomo-page.landing-panel-open .landing-tomo-home,
  body.login-page .landing-tomo-home {
    font-size: 11px;
  }

  body.landing-route-page.landing-tomo-page .hero-headline {
    max-width: none;
  }

  body.landing-tomo-page .landing-panel-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-inline: auto;
    width: 100%;
    max-width: 24rem;
  }

  body.landing-tomo-page .login-auth-stack,
  body.landing-tomo-page .hero-cta-stack {
    align-items: center;
    text-align: center;
    width: 100%;
    margin-inline: auto;
  }

  body.landing-tomo-page .hero-cta-stack .hero-cta-note {
    text-align: center;
    margin-inline: auto;
  }

  body.landing-tomo-page .hero-headline,
  body.landing-tomo-page .hero-headline-line,
  body.landing-tomo-page .hero-subhead,
  body.landing-tomo-page .hero-channel-line {
    text-align: center;
    width: 100%;
    max-width: none;
    margin-inline: auto;
  }

  body.landing-tomo-page .hero-cta-stack,
  body.landing-tomo-page .hero-cta-row {
    align-items: center;
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 900px) {
  body.landing-tomo-page .landing-tomo-hero .landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, max-content) auto;
    gap: clamp(32px, 4vw, 52px);
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    align-items: center;
    justify-content: center;
  }

  body.landing-tomo-page .landing-hero-copy {
    max-width: 28rem;
    align-items: flex-start;
    text-align: left;
  }

  body.landing-tomo-page .landing-wordmark {
    margin-bottom: 8px;
    text-align: left;
  }

  body.landing-tomo-page .hero-headline {
    margin-bottom: 10px;
    line-height: 1.1;
    text-align: left;
  }

  body.landing-tomo-page .hero-subhead {
    text-align: left;
  }

  body.landing-tomo-page:not(.landing-panel-open) .hero-cta-stack {
    margin-top: 18px;
    align-items: flex-start;
    text-align: left;
  }

  body.landing-tomo-page .hero-cta-stack .hero-cta-note {
    text-align: left;
    align-self: flex-start;
    margin-inline: 0;
  }

  body.landing-tomo-page:not(.landing-panel-open) .hero-cta-stack .hero-cta-pill {
    align-self: flex-start;
  }

  body.landing-tomo-page .landing-thread-stage.is-imessage {
    --phone-max-h: 480px;
    --phone-scale: 0.768;
    --phone-w: 299px;
    align-self: center;
  }
}

@media (min-width: 1200px) {
  body.landing-tomo-page .cosmos-landing.landing-tomo {
    width: min(1080px, calc(100vw - 48px));
  }
}

body.landing-tomo-page.landing-panel-open .landing-tomo-hero .landing-hero-grid {
  align-items: center;
  gap: clamp(16px, 3vh, 32px);
}

body.landing-tomo-page.landing-panel-open .landing-hero-copy {
  align-self: center;
}

body.landing-tomo-page.landing-panel-open .landing-thread-stage {
  transform: none;
}

/* Login-style pills (send code parity) */

.landing-auth-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 21px;
  border: none;
  border-radius: 980px;
  background: #f5f5f7;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: background 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.landing-auth-pill:hover {
  background: #fff;
  color: #1d1d1f;
}

.landing-auth-pill:active {
  transform: scale(0.98);
}

.landing-auth-pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.landing-auth-pill-muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 247, 0.88);
}

.landing-auth-pill-muted:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
}

.landing-panel-join-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.landing-panel-alt .landing-panel-join-stack {
  margin-top: 2px;
}

.landing-panel-alt .landing-waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.landing-panel-alt .landing-waitlist-input {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px;
  letter-spacing: -0.022em;
  color: #f5f5f7;
  text-transform: none;
}

.landing-panel-alt .landing-waitlist-input::placeholder {
  color: rgba(245, 245, 247, 0.35);
}

.landing-panel-alt .landing-waitlist-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(245, 245, 247, 0.55);
}

.landing-panel-alt .landing-waitlist-msg.is-ok {
  color: rgba(245, 245, 247, 0.72);
}

.landing-panel-alt .landing-waitlist-msg.is-err {
  color: rgba(255, 120, 120, 0.88);
}

/* Soften chrome brand — hero wordmark carries the identity */
body.landing-tomo-page .landing-tomo-brand,
body.landing-tomo-page .landing-tomo-pill,
body.landing-tomo-page .landing-tomo-brand-row {
  display: none;
}

@media (min-width: 900px) {
  body.landing-tomo-page .landing-wordmark {
    text-align: left;
  }
}

body.landing-tomo-page .landing-waitlist-hero {
  display: none;
}

/* ── Footer strip (Tomo minimal) ── */

.landing-tomo-foot {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding: 10px 0 max(12px, env(safe-area-inset-bottom, 0px));
  font-family: "Sohne", -apple-system, system-ui, sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
}

.landing-tomo-foot a,
.landing-tomo-foot button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  cursor: pointer;
}

.landing-tomo-foot a:hover,
.landing-tomo-foot button:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Off-screen content reservoirs ── */

.landing-sheets-source {
  display: none !important;
}

.landing-tomo-link.is-active {
  color: rgba(255, 255, 255, 0.92);
  position: relative;
}

.landing-tomo-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(127, 237, 199, 0.7);
  border-radius: 1px;
}

.landing-panel-cta {
  margin-top: 28px;
  display: flex !important;
  justify-content: center !important;
  width: 100%;
  text-align: center;
}

.landing-panel-alt .landing-section {
  text-align: center;
}

.landing-panel-alt .landing-section-title,
.landing-panel-alt .landing-section-lead {
  text-align: center;
}

.landing-panel-alt .landing-channels-grid,
.landing-panel-alt .landing-usecases-grid {
  text-align: left;
}

.landing-panel-cta .hero-cta-pill {
  min-height: 44px;
  padding: 0 24px;
}

/* ── In-hero panels (no modals) ── */

/* Stack under CRT wordmark — login pills + How/Why panels */
body.landing-tomo-page .landing-panel-stage,
body.login-page .login-stack {
  width: 100%;
  max-width: 22rem;
}

body.landing-tomo-page:not(.landing-panel-open) .landing-panel-stage {
  max-width: 24rem;
}

body.landing-tomo-page.landing-panel-open .landing-panel-stage {
  max-width: 24rem;
}

body.landing-tomo-page .landing-hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

body.landing-tomo-page:not(.landing-panel-open) .landing-hero-copy {
  justify-content: flex-start;
}

body.landing-tomo-page.landing-panel-open .landing-hero-copy {
  max-height: none;
  overflow: visible;
}

body.landing-tomo-page.landing-panel-open .landing-wordmark {
  display: none !important;
}

body.landing-tomo-page.landing-panel-open .landing-panel-stage {
  flex: 0 1 auto;
  min-height: 0;
  max-height: none;
  min-width: 0;
}

/* Cloned reservoirs carry .landing-section — kill scroll-page section padding */
body.landing-tomo-page .landing-panel-alt .landing-hero-panel-content,
body.landing-tomo-page .landing-panel-alt .landing-section {
  padding: 0 !important;
  margin: 0;
  border-top: none;
  text-align: left;
}

.landing-panel-stage {
  width: 100%;
}

.landing-panel[hidden] {
  display: none !important;
}

.landing-panel-alt .landing-hero-panel-content.is-entering {
  animation: landing-panel-content-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing-panel-alt .landing-hero-panel-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.landing-panel-alt .landing-usecases-grid,
.landing-panel-alt .landing-channels-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.landing-panel-alt .landing-morning-read {
  animation: none;
  padding: 18px 20px;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-wrap: pretty;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.landing-panel-alt .landing-morning-read:last-child {
  border-bottom: none;
}

.landing-panel-alt .landing-morning-read-action {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(245, 245, 247, 0.92);
}

.landing-panel-alt .landing-morning-read-drift,
.landing-panel-alt .landing-morning-read-alignment {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.016em;
  color: rgba(245, 245, 247, 0.58);
}

.landing-panel-alt .landing-morning-read-relief {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(245, 245, 247, 0.38);
}

@keyframes landing-panel-content-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-hero-panel-content.landing-section {
  padding: 0;
  text-align: left;
}

.landing-panel-alt .landing-section > .landing-section-title:first-child {
  display: none;
}

.landing-panel-alt .landing-section-lead {
  display: none;
}

body.landing-tomo-page.landing-panel-open .landing-panel-alt .landing-trust-list li {
  padding: 0 0 clamp(4px, 0.8vh, 7px);
  font-size: clamp(12px, 1.45vh, 13px);
  line-height: 1.32;
}

.landing-panel-alt .landing-trust-list {
  margin: 0;
  padding: 18px 20px;
  list-style: none;
  text-align: left;
  width: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.landing-panel-alt .landing-trust-list li {
  padding: 0 0 clamp(6px, 1vh, 10px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: clamp(13px, 1.7vh, 15px);
  line-height: 1.38;
  letter-spacing: -0.016em;
  color: rgba(245, 245, 247, 0.68);
}

.landing-panel-alt .landing-trust-list li:last-child {
  padding-bottom: 0;
}

@media (max-height: 720px) {
  body.landing-tomo-page:not(.landing-panel-open) .landing-wordmark {
    font-size: clamp(40px, 10vw, 72px);
    margin-bottom: 12px;
  }

  body.landing-tomo-page.landing-panel-open .landing-panel-alt .landing-morning-read-alignment {
    display: none;
  }
}

@media (min-width: 900px) {
  body.landing-tomo-page.landing-panel-open .landing-hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .landing-tomo-chrome {
    padding-top: max(20px, env(safe-area-inset-top, 0px));
  }

  .landing-tomo-link {
    font-size: 14px;
  }

  .landing-tomo-rail {
    gap: 4px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-panel,
  .landing-thread-stage,
  .landing-panel-alt.is-active .landing-hero-panel-content.is-entering {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 520px) {
  .landing-tomo-chrome {
    gap: 10px;
  }

  .landing-tomo-rail {
    gap: 2px 14px;
  }

  .landing-tomo-link {
    font-size: 11px;
    min-height: 40px;
  }
}

/* ── Mobile + tablet: scrollable stack (copy → demo) ── */

@media (max-width: 899px) {
  body.landing-tomo-page {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100dvh;
    -webkit-overflow-scrolling: touch;
  }

  body.landing-tomo-page.public-mobile-chrome {
    padding-bottom: 0;
  }

  body.landing-tomo-page main.me-life-main {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.landing-tomo-page .cosmos-landing.landing-tomo {
    width: min(
      100%,
      calc(100vw - max(32px, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)))
    );
    height: auto;
    min-height: 0;
    max-height: none;
  }

  body.landing-tomo-page .cosmos-hero.landing-hero.landing-tomo-hero {
    flex: 0 0 auto;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
    padding: clamp(4px, 1.5vh, 12px) 0 clamp(8px, 1.5vh, 16px) !important;
  }

  body.landing-tomo-page .landing-tomo-hero {
    overflow: visible;
  }

  body.landing-tomo-page .landing-tomo-hero .landing-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: clamp(14px, 3.5vw, 22px);
  }

  body.landing-tomo-page .landing-hero-copy {
    max-width: 20rem;
    width: 100%;
  }

  body.landing-tomo-page .landing-thread-stage.is-imessage {
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    margin-top: 0;
    padding: 0 max(4px, env(safe-area-inset-left, 0px)) 0 max(4px, env(safe-area-inset-right, 0px));
  }

  body.landing-route-page .landing-thread-stage {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 720px) {
  body.landing-tomo-page:not(.landing-panel-open) .landing-wordmark {
    font-size: clamp(44px, 12vw, 64px);
    margin-bottom: 4px;
  }

  body.landing-tomo-page .hero-headline {
    font-size: clamp(1.15rem, 4.8vw, 1.5rem);
    margin-bottom: 6px;
  }

  body.landing-tomo-page .hero-subhead {
    font-size: clamp(0.9rem, 3.7vw, 1rem);
    line-height: 1.4;
    max-width: 18rem;
  }

  body.landing-tomo-page:not(.landing-panel-open) .hero-cta-stack {
    margin-top: 18px;
    max-width: min(280px, 100%);
    margin-inline: auto;
    align-items: center;
    gap: 0;
  }

  body.landing-tomo-page .hero-cta-meta {
    margin-top: 10px;
    gap: 3px;
  }

  body.landing-tomo-page:not(.landing-panel-open) .hero-cta-stack .hero-cta-pill {
    width: 100%;
    align-self: stretch;
  }

  body.landing-tomo-page .hero-format-note,
  body.landing-tomo-page .hero-beta-note {
    font-size: 11px;
    line-height: 1.5;
    max-width: 17rem;
    margin: 0;
    text-align: center;
    margin-inline: auto;
  }

  body.landing-tomo-page .hero-install-secondary {
    align-self: center;
    margin-inline: auto;
    text-align: center;
  }

  body.landing-tomo-page .hero-cta-pill {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
  }

  body.landing-tomo-page .landing-thread-stage.is-imessage .landing-phone-caption {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.4;
    max-width: 17rem;
    padding: 0 12px;
  }

  body.landing-tomo-page .landing-tomo-chrome {
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    padding-bottom: 2px;
  }

  body.landing-tomo-page .landing-tomo-foot {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    padding: 12px max(16px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-bottom, 0px));
    font-size: 11px;
    white-space: nowrap;
  }

  body.landing-tomo-page .landing-tomo-foot span[aria-hidden="true"] {
    flex-shrink: 0;
  }
}

/* Narrow phones: smaller type tweaks */
@media (max-width: 720px) {
  body.landing-tomo-page:not(.landing-panel-open) .landing-wordmark {
    font-size: clamp(44px, 12vw, 64px);
    line-height: 0.95;
  }

  body.landing-tomo-page.landing-panel-open .landing-thread-stage {
    display: none;
  }

  body.landing-tomo-page.landing-panel-open .landing-tomo-hero .landing-hero-grid,
  body.landing-tomo-page.landing-panel-open .landing-panel-stage,
  body.landing-tomo-page.landing-panel-open .landing-thread-stage {
    transform: none;
  }

  body.landing-tomo-page.landing-panel-open .landing-tomo-hero .landing-hero-grid {
    gap: clamp(12px, 2.5vh, 20px);
  }
}

/* Short phones: keep morning-read demo above footer (iPhone SE) */
@media (max-width: 720px) and (max-height: 720px) {
  body.landing-tomo-page:not(.landing-panel-open) .landing-tomo-hero .landing-hero-grid {
    gap: clamp(14px, 2.8vh, 22px);
  }

  body.landing-tomo-page:not(.landing-panel-open) .hero-cta-stack {
    margin-top: 14px;
  }

  body.landing-tomo-page:not(.landing-panel-open) .landing-morning-read-alignment {
    display: none;
  }

  body.landing-tomo-page:not(.landing-panel-open) .landing-morning-read {
    padding: 14px 16px;
  }

  body.landing-tomo-page:not(.landing-panel-open) .landing-morning-read-drift {
    margin-top: 8px;
    font-size: 14px;
  }

  body.landing-tomo-page:not(.landing-panel-open) .landing-morning-read-relief {
    margin-top: 8px;
  }

  body.landing-tomo-page:not(.landing-panel-open) .landing-morning-read-excerpt {
    display: none;
  }
}

/* Mobile landing: beat flagship hero padding + apple-wm grid (must load after flagship) */
@media (max-width: 899px) {
  body.landing-tomo-page.landing-route-page .cosmos-hero.landing-hero.landing-tomo-hero {
    flex: 0 0 auto !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    padding: max(6px, env(safe-area-inset-top, 0px)) 0 12px !important;
  }

  body.landing-tomo-page.landing-route-page .landing-tomo-hero .landing-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 14px !important;
    margin: 0 !important;
  }

  body.landing-tomo-page.landing-route-page .landing-hero-copy {
    flex: 0 0 auto !important;
    max-height: none !important;
    align-items: center !important;
    text-align: center !important;
  }

  body.landing-tomo-page.landing-route-page .landing-wordmark {
    align-self: center;
    text-align: center;
    width: 100%;
  }

  body.landing-tomo-page.landing-route-page .landing-thread-stage.is-imessage {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    justify-content: flex-start !important;
  }
}
