*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Ensure HTML `hidden` always actually hides elements. */
[hidden] {
  display: none !important;
}

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  /* Page surfaces */
  --page-bg: #f0f0f0;
  --poke-sky: #f0f0f0;
  --poke-mist: #f5f5f5;
  --sky-deep: #f0f0f0;
  --poke-text: #1a1a1a;
  --poke-muted: #5c5c5c;
  --poke-btn: #1a1a1a;

  /* Series: warm dark interior */
  --series-amber: #c4956a;
  --series-warm: #3d2e24;
  --series-deep: #14100c;
  --series-text: #f8f6f3;

  --imessage: #34c759;
  --imessage-blue: #0a84ff;
  --radius-pill: 999px;
  --radius-card: 20px;
  --font-serif: "Geist", var(--font-sans);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", var(--font-sans);
  --font-rounded: "Geist", var(--font-sans);

  --header-bg: #2c2c2c;
  --header-height: calc(3.4rem + var(--safe-top));

  --bg-gradient: var(--page-bg);
  --bg-gradient-soft: var(--page-bg);
  --bg-gradient-muted: var(--page-bg);
  --bg-gradient-card: #e8e8e8;
  --landing-gradient: var(--page-bg);
}

html {
  font-size: 16px;
  min-height: 100%;
  min-height: 100dvh;
  height: 100%;
  overflow: hidden;
  background: var(--bg-gradient);
}

:root {
  --page-transition-ms: 850ms;
}

.page-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
  transition: opacity var(--page-transition-ms) ease;
}

html.page-pre-enter .page-content {
  opacity: 0;
}

.page-content--enter-start {
  opacity: 0;
}

.page-content--enter-active {
  opacity: 1;
}

body.page-transition-exit .page-content {
  opacity: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--poke-text);
  background: var(--bg-gradient);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.bg {
  display: none;
}

.bg-warm {
  display: none;
}

.header {
  --header-fs: 1.3;
  position: relative;
  flex-shrink: 0;
  z-index: 10;
  display: flex;
  padding: calc(0.9rem + var(--safe-top)) calc(clamp(1.25rem, 4vw, 3rem) + var(--safe-right)) 0.9rem calc(clamp(1.25rem, 4vw, 3rem) + var(--safe-left));
  background: transparent;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: calc(1.05rem * var(--header-fs));
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--poke-text);
  text-decoration: none;
}

.header .logo {
  color: #ffffff;
}

.header-nav {
  display: none;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: calc(0.82rem * var(--header-fs));
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: #ffffff;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero:not(.waitlist-main) {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero:not(.waitlist-main) .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1.25rem, 4vw, 2rem) clamp(1rem, 2vh, 1.5rem);
  text-align: center;
}

.hero:not(.waitlist-main) .hero-copy {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.hero:not(.waitlist-main) .hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: clamp(1.25rem, 3vh, 1.75rem) 0 0;
  padding: 0;
}

.hero-content {
  flex-shrink: 0;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(0.5rem, 3vh, 2rem) clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 4vh, 2.5rem);
  text-align: center;
}

.hero-copy {
  max-width: 100%;
}

.hero-sub {
  margin: 0.75rem auto 0;
  max-width: 520px;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--poke-muted);
  line-height: 1.6;
}

.hero:not(.waitlist-main) h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.25vw, 3.35rem);
}

h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--poke-text);
}

.hero-cta {
  margin-top: clamp(1.25rem, 3vh, 1.75rem);
  text-align: center;
}

.hero-phone-clip {
  display: none;
}

.hero-visual {
  width: 100%;
  max-width: min(1080px, 94vw);
  margin: 0 auto;
  padding: clamp(0.75rem, 2vh, 1.25rem) clamp(1rem, 3vw, 1.5rem) clamp(1rem, 2vh, 1.5rem);
}

.hero-visual-frame {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.08);
}

.hero-visual-frame .hero-phone {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.btn-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--imessage-blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-join--header {
  padding: 0.55rem 1.15rem;
  font-size: calc(0.875rem * var(--header-fs));
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn-join--header .imessage-icon {
  width: calc(1.1rem * var(--header-fs));
  height: calc(1.1rem * var(--header-fs));
}

.btn-join--hero {
  padding: 1.1rem 2.35rem;
  font-size: 1.125rem;
  gap: 0.65rem;
}

.btn-join--hero .imessage-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.btn-join:hover {
  background: #0077ed;
  transform: translateY(-2px);
  box-shadow: none;
}

.imessage-icon {
  width: 1.1rem;
  height: 1.1rem;
  color: #fff;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 0.75rem calc(clamp(1.25rem, 4vw, 3rem) + var(--safe-right)) calc(0.75rem + var(--safe-bottom)) calc(clamp(1.25rem, 4vw, 3rem) + var(--safe-left));
  font-size: 0.72rem;
  text-align: center;
  color: var(--poke-muted);
  pointer-events: none;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(92vh, 640px);
  overflow-y: auto;
  padding: 1.75rem;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  color: var(--poke-text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  animation: modal-in 0.28s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--poke-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.modal-panel h2 {
  margin: 0 2rem 0.35rem 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal-sub {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--poke-muted);
}

.text-kleo-consent-panel {
  display: flex;
  flex-direction: column;
}

.text-kleo-consent-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.text-kleo-consent-panel .field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--poke-text);
}

.text-kleo-consent-panel .field-checkbox input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--imessage-blue);
}

.text-kleo-consent-panel .field-checkbox a {
  color: var(--imessage-blue);
  font-weight: 500;
}

.text-kleo-consent-panel .field-checkbox a:hover {
  color: #0077ed;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.field span,
.field legend {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--poke-muted);
}

.field input[type="email"],
.field input[type="tel"],
.field input[type="text"],
.field input[type="date"],
.field select {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--poke-text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.25rem;
}

.field input:focus,
.field select:focus {
  border-color: var(--series-amber);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.25);
}

.job-field {
  margin: 0;
  padding: 0;
  border: none;
}

.job-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f5f5f5;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.chip:hover span {
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.18);
}

.chip input:checked+span {
  background: rgba(52, 168, 83, 0.12);
  border-color: #34a853;
  color: #1e7e34;
  font-weight: 600;
}

.chip input:focus-visible+span {
  outline: 2px solid #4a90d9;
  outline-offset: 2px;
}

.form-message {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.form-message[data-tone="error"] {
  color: #c44;
}

.form-message[data-tone="success"] {
  color: #1a7a3a;
}

.btn-submit {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: var(--radius-pill);
  background: #34a853;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.15s, transform 0.15s;
}

.btn-submit:hover:not(:disabled) {
  background: #2d9247;
  transform: translateY(-1px);
}

.btn-submit:disabled {
  background: var(--poke-btn);
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-submit.text-kleo-continue {
  background: var(--imessage-blue);
  box-shadow: none;
}

.btn-submit.text-kleo-continue:hover:not(:disabled) {
  background: #0077ed;
  box-shadow: none;
}

.btn-submit.text-kleo-continue:disabled {
  background: var(--imessage-blue);
  opacity: 0.45;
}

.waitlist-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.waitlist-subtitle {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--poke-muted);
  text-align: center;
}

.waitlist-back--inline {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--imessage-blue);
  text-align: left;
  cursor: pointer;
}

.waitlist-back--inline:hover {
  text-decoration: underline;
}

.btn-google,
.btn-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--poke-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-google:hover:not(:disabled),
.btn-email:hover:not(:disabled) {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-google:disabled,
.btn-email:disabled {
  opacity: 0.65;
  cursor: wait;
}

.google-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.signed-in-as {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--poke-muted);
}

.signed-in-as strong {
  color: var(--poke-text);
  font-weight: 600;
}

.signed-in-as .link-button {
  margin-left: 0.35rem;
}

.fine-print {
  margin: 0.85rem 0 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.4);
}

.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  margin: 0.5rem 0 0;
}

.auth-loading[hidden] {
  display: none !important;
}

.auth-loading-spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid rgba(10, 132, 255, 0.18);
  border-top-color: var(--imessage-blue);
  border-radius: 50%;
  animation: auth-loading-spin 0.7s linear infinite;
}

@keyframes auth-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Waitlist / Terms — document scrolls when content is taller than the viewport */
html:has(body.waitlist-page),
html:has(body.waitlist-success-page) {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  background: var(--sky-deep);
}

body.waitlist-page,
body.waitlist-success-page {
  --lp-scale: 0.81;
  --header-height: calc(4.75rem + var(--safe-top));
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--sky-deep);
}

body.waitlist-page .header,
body.waitlist-success-page .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: calc(1rem + var(--safe-top));
  padding-bottom: 1rem;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.waitlist-success-page .header {
  display: none;
}

body.waitlist-page .btn-join--header,
body.waitlist-success-page .btn-join--header {
  background: var(--header-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.btn-join--ghost {
  visibility: hidden;
  pointer-events: none;
}

body.waitlist-page .btn-join--header:hover,
body.waitlist-success-page .btn-join--header:hover {
  background: #3a3a3a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

body.waitlist-page .page-content,
body.waitlist-success-page .page-content {
  flex: 1 0 auto;
  min-height: 100dvh;
  overflow: visible;
  padding-top: var(--header-height);
  position: relative;
  isolation: isolate;
}

body.waitlist-page .page-content::before,
body.waitlist-success-page .page-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--landing-gradient);
  pointer-events: none;
}

body.waitlist-page .waitlist-main.hero,
body.waitlist-success-page .waitlist-main.hero {
  flex: 1 0 auto;
  min-height: auto;
  overflow: visible;
}

body.waitlist-page .waitlist-content,
body.waitlist-success-page .waitlist-content {
  display: flex;
  flex: none;
  min-height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding-top: clamp(0.5rem, 2vh, 1.25rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  width: 100%;
  max-width: min(920px, 92vw);
}

body.waitlist-page .footer,
body.waitlist-success-page .footer {
  position: static;
  flex-shrink: 0;
  pointer-events: auto;
}

body.waitlist-page .waitlist-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 1.75rem;
  color: var(--poke-text);
  text-align: left;
}

body.waitlist-page .waitlist-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--poke-text);
}

body.waitlist-page .waitlist-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--imessage-blue);
  text-decoration: none;
  text-align: left;
}

.waitlist-back:hover {
  text-decoration: underline;
}

body.waitlist-page .waitlist-title {
  text-align: center;
}

body.waitlist-success-page .waitlist-success-card {
  position: relative;
  max-width: 520px;
  min-height: 22rem;
  padding: 3.25rem 2.25rem 3rem;
  text-align: center;
}

.waitlist-success-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 16rem;
  padding: 0.5rem 0.75rem 0;
}

.waitlist-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.35rem;
  color: #1a9e4a;
}

.waitlist-success-icon svg {
  width: 100%;
  height: 100%;
}

.waitlist-success-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--poke-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.waitlist-success-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.waitlist-success-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 6.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #1a9e4a;
  white-space: nowrap;
  text-align: center;
}

.waitlist-success-message {
  margin: 0;
  max-width: 24rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.55;
  color: var(--poke-muted);
  text-align: center;
}

.link-button {
  padding: 0;
  border: none;
  background: none;
  color: var(--imessage-blue);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover {
  color: #0077ed;
}

.modal-panel--terms {
  display: flex;
  flex-direction: column;
  max-width: min(720px, 96vw);
  max-height: min(90vh, 800px);
  padding: 1.25rem 1.25rem 1rem;
}

.modal-panel--terms h2 {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.terms-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

.terms-modal-scroll h1 {
  display: none;
}

.terms-modal-scroll .terms-meta {
  color: var(--poke-muted);
  margin: 0 0 1rem;
}

.terms-modal-scroll h2 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.terms-modal-scroll p {
  margin: 0 0 0.65rem;
}

@media (max-width: 600px) {
  .hero-visual-frame {
    border-radius: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE  — lp- prefix
═══════════════════════════════════════════════════════════ */

html:has(body.landing-page) {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  height: auto;
  background: #f9f9f7;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

html:has(body.landing-page)::-webkit-scrollbar {
  display: none;
}

body.landing-page {
  --lp-scale: 0.81;
  --lp-content-max: min(1080px, 94vw);
  --lp-surface: #f9f9f7;
  --lp-surface-box: #f0efeb;
  --lp-surface-elevated: #ffffff;
  --lp-border: rgba(0, 0, 0, 0.08);
  --header-fs: 1.3;
  --header-height: calc(4.25rem + var(--safe-top));
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--lp-surface);
  scroll-padding-top: var(--header-height);
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

body.landing-page .page-content {
  flex: 1 0 auto;
  min-height: auto;
  overflow: visible;
  padding-top: var(--header-height);
  position: relative;
  isolation: isolate;
}

body.landing-page .page-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lp-surface);
  pointer-events: none;
}

/* ── Fixed header ── */

body.landing-page .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: calc(0.85rem + var(--safe-top));
  padding-bottom: 0.85rem;
  background: rgba(249, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
}

body.landing-page .header .logo {
  color: #1a1a1a;
}

body.landing-page .header-nav a {
  color: rgba(26, 26, 26, 0.62);
  letter-spacing: -0.01em;
}

body.landing-page .btn-join,
body.landing-page .btn-join:hover {
  box-shadow: none;
}

body.landing-page .lp-feat-card h3,
body.landing-page .lp-feat-card p,
body.landing-page .lp-demo-steps li,
body.landing-page .lp-cta-sub,
body.landing-page .header-nav a,
body.landing-page .lp-footer-copy,
body.landing-page .lp-footer-links a {
  letter-spacing: -0.02em;
}

body.landing-page .header-nav a:hover {
  color: #1a1a1a;
}

body.landing-page .header-inner,
body.waitlist-page .header-inner {
  max-width: var(--lp-content-max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

body.landing-page .header .logo,
body.waitlist-page .header .logo {
  font-size: calc(1.22rem * var(--lp-scale) * var(--header-fs));
}

body.landing-page .header-nav a,
body.waitlist-page .header-nav a {
  font-size: calc(0.94rem * var(--lp-scale) * var(--header-fs));
}

body.landing-page .btn-join--header,
body.waitlist-page .btn-join--header {
  box-sizing: border-box;
  padding: 0.68rem 1.45rem;
  font-size: calc(0.95rem * var(--lp-scale) * var(--header-fs));
  font-weight: 600;
  line-height: 1;
  gap: 0.45rem;
  white-space: nowrap;
  min-height: calc(0.68rem * 2 + 1.1rem * var(--header-fs));
}

body.landing-page .btn-join--header .imessage-icon,
body.waitlist-page .btn-join--header .imessage-icon {
  width: calc(1.1rem * var(--header-fs));
  height: calc(1.1rem * var(--header-fs));
  flex-shrink: 0;
}

body.landing-page .logo,
body.landing-page .btn-join--header,
body.waitlist-page .logo,
body.waitlist-page .btn-join--header {
  flex: 0 0 auto;
}

body.landing-page .header-nav,
body.waitlist-page .header-nav {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.35rem clamp(0.65rem, 1.8vw, 1.15rem);
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body.landing-page h1,
body.landing-page h2,
body.landing-page h3,
body.landing-page .logo,
body.landing-page .lp-demo-headline,
body.landing-page .lp-section-headline,
body.landing-page .lp-cta-line,
body.landing-page .lp-integrations-headline {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
}

body.landing-page h1 {
  color: var(--poke-text);
}

/* ── Hero ── */

body.landing-page .hero {
  flex: none;
  box-sizing: border-box;
  height: auto;
  min-height: auto;
  max-height: none;
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  overflow: visible;
  background: transparent;
}

body.landing-page .hero:not(.waitlist-main) {
  --hero-fs: 0.92;
  --hero-btn-fs: 1;
  align-items: stretch;
  width: 100%;
  max-width: var(--lp-content-max);
  margin: 0 auto;
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
  padding-right: clamp(1rem, 2.5vw, 1.75rem);
}

body.landing-page .hero:not(.waitlist-main) .hero-content {
  flex-shrink: 0;
  align-items: flex-start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(2.5rem, 6vh, 4rem) 0 0;
  text-align: left;
}

body.landing-page .hero-stack {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

body.landing-page .hero:not(.waitlist-main) .hero-copy {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

body.landing-page .hero:not(.waitlist-main) .hero-cta {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin: clamp(1.5rem, 3vh, 2rem) 0 0;
  padding: 0;
}

body.landing-page .hero:not(.waitlist-main) h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
  white-space: nowrap;
  text-align: left;
  max-width: 100%;
  overflow-wrap: normal;
}

body.landing-page .hero-visual {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  display: block;
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 0;
  padding: 0;
}

@media (max-width: 768px) {
  .header {
    --header-fs: 0.95;
  }

  body.landing-page {
    --header-fs: 0.95;
    --hero-fs: 0.88;
    --hero-btn-fs: 0.95;
  }

  body.landing-page .header,
  body.waitlist-page .header {
    padding-top: calc(0.75rem + var(--safe-top));
    padding-bottom: 0.75rem;
  }

  body.landing-page .header .logo,
  body.waitlist-page .header .logo {
    font-size: calc(1rem * var(--lp-scale) * var(--header-fs));
  }

  body.landing-page .header-nav a,
  body.waitlist-page .header-nav a {
    font-size: calc(0.72rem * var(--lp-scale) * var(--header-fs));
  }

  body.landing-page .btn-join--header,
  body.waitlist-page .btn-join--header {
    padding: 0.5rem 1rem;
    font-size: calc(0.78rem * var(--lp-scale) * var(--header-fs));
    min-height: calc(0.5rem * 2 + 0.95rem * var(--header-fs));
  }

  body.landing-page .btn-join--header .imessage-icon,
  body.waitlist-page .btn-join--header .imessage-icon {
    width: calc(0.95rem * var(--header-fs));
    height: calc(0.95rem * var(--header-fs));
  }

  body.landing-page .hero:not(.waitlist-main) .hero-content {
    padding-top: clamp(1.5rem, 6vh, 3rem);
  }

  body.landing-page .hero:not(.waitlist-main) .hero-cta {
    margin: clamp(1.25rem, 4vh, 2rem) 0 0;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body.landing-page .hero:not(.waitlist-main) h1 {
    white-space: normal;
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }
}

body.landing-page .hero-visual-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 auto;
  background: transparent;
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
  line-height: 0;
  padding: 0;
  display: block;
}

body.landing-page .hero-visual-frame .hero-phone {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* ── Shared eyebrow label (used in demo + cta sections) ── */

.lp-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--poke-muted);
}

.lp-eyebrow--dark {
  color: var(--poke-muted);
}

.lp-eyebrow--blue {
  color: var(--imessage-blue);
}

/* ── Shared section container ── */

.lp-container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 4rem);
}

.lp-section-headline {
  margin: 0 0 3.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--poke-text);
  text-align: center;
}

/* ── Demo section ── */

.lp-demo {
  background: transparent;
  padding: clamp(5rem, 12vh, 8rem) 0;
}

.lp-demo-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vh, 1.75rem);
}

.lp-demo-headline,
.lp-demo-copy h2,
.lp-integrations-headline {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--poke-text);
}

.lp-demo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.lp-demo-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vh, 1.5rem);
  min-width: 0;
}

.lp-demo-sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--poke-muted);
}

.lp-demo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lp-demo-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--poke-text);
  line-height: 1.65;
}

.lp-step-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.18);
  border: 1px solid rgba(10, 132, 255, 0.35);
  color: var(--imessage-blue);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}

/* Demo phone mockup */

.lp-demo-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.lp-demo-phone-img {
  display: block;
  width: 100%;
  max-width: min(400px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.12));
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* ── Features section ── */

.lp-features {
  background: transparent;
  padding: clamp(5rem, 12vh, 8rem) 0;
}

.lp-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vh, 2.25rem);
}

.lp-feat-card {
  padding: clamp(1.75rem, 3.5vh, 2.5rem) clamp(1.25rem, 2vw, 1.5rem);
  border-radius: 16px;
  background: var(--bg-gradient-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.lp-feat-card:hover {
  background: #e4e4e4;
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.lp-feat-icon {
  width: 1.65rem;
  height: 1.65rem;
  margin-bottom: 1rem;
  color: var(--imessage-blue);
}

.lp-feat-icon svg {
  width: 100%;
  height: 100%;
}

.lp-feat-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--poke-text);
}

.lp-feat-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--poke-muted);
}

/* ── Integrations section ── */

.lp-integrations {
  background: transparent;
}

.lp-integrations .lp-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.8vh, 1.65rem);
  flex: 1;
  min-height: 0;
  width: 100%;
}

.lp-integrations-headline {
  margin: 0;
  text-align: center;
}

.lp-integrations-lede {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(1.02rem, 2.2vh, 1.2rem);
  line-height: 1.55;
  color: var(--poke-muted);
  text-align: center;
}

.lp-integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: clamp(0.65rem, 1.8vh, 1.15rem);
  width: min(94vw, 54rem);
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: start;
}

.lp-integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.45rem, 1.1vh, 0.65rem);
}

.lp-integration-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(5rem, 11vh, 7.25rem);
  height: clamp(5rem, 11vh, 7.25rem);
  padding: clamp(0.85rem, 2vh, 1.25rem);
  border-radius: clamp(14px, 2vh, 20px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.lp-integration-item:hover .lp-integration-frame {
  transform: translateY(-3px);
  border-color: rgba(10, 132, 255, 0.22);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 14px 32px rgba(10, 132, 255, 0.08);
}

.lp-integration-frame img {
  width: 100%;
  height: 100%;
  max-width: clamp(2.5rem, 6.5vh, 3.75rem);
  max-height: clamp(2.5rem, 6.5vh, 3.75rem);
  object-fit: contain;
}

.lp-integration-name {
  font-size: clamp(0.78rem, 1.7vh, 0.95rem);
  font-weight: 600;
  color: var(--poke-text);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.lp-integrations-more {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vh, 2.1rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--poke-text);
  text-align: center;
}

@media (max-width: 960px) {
  .lp-integrations-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(92vw, 26rem);
    gap: clamp(0.6rem, 1.6vh, 1rem);
  }

  .lp-integration-frame {
    width: clamp(4.75rem, 11.5vh, 6.75rem);
    height: clamp(4.75rem, 11.5vh, 6.75rem);
  }
}

@media (max-width: 520px) {
  .lp-integrations-grid {
    width: min(92vw, 22.5rem);
  }
}

/* ── CTA section ── */

.lp-cta {
  box-sizing: border-box;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(4rem, 9vh, 7rem);
  padding-bottom: clamp(1.5rem, 3vh, 2.25rem);
}

.lp-cta .lp-container {
  max-width: var(--lp-content-max, min(1080px, 94vw));
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
  padding-right: clamp(1rem, 2.5vw, 1.75rem);
  width: 100%;
  text-align: left;
}

.lp-cta-line {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--poke-text);
  margin: 0 0 clamp(1.5rem, 3vh, 2.25rem);
}

.lp-cta-sub {
  font-size: clamp(calc(1.12rem * var(--lp-fs)), calc(2.1vh * var(--lp-fs)), calc(1.35rem * var(--lp-fs)));
  line-height: 1.65;
  color: var(--poke-muted);
  margin: 0 0 4rem;
}

.lp-cta .btn-join--header {
  margin: 0;
}

/* ── Landing footer ── */

.lp-footer {
  background: transparent;
  padding: clamp(2rem, 5vh, 3rem) clamp(1.5rem, 6vw, 4rem) clamp(2.25rem, 6vh, 3.5rem);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  position: static !important;
  pointer-events: auto !important;
}

.lp-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}

.lp-footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--poke-muted);
}

.lp-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1.15rem, 3vw, 2rem);
}

.lp-footer-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--poke-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.lp-footer-links a:hover {
  color: var(--imessage-blue);
}

/* ── Sections: each fills exactly one viewport when scrolled to ── */

body.landing-page .lp-demo,
body.landing-page .lp-features,
body.landing-page .lp-footer {
  --lp-fs: calc(1.4 * var(--lp-scale));
}

body.landing-page .lp-integrations {
  --lp-fs: calc(1.4 * var(--lp-scale));
}

body.landing-page .lp-demo,
body.landing-page .lp-features {
  box-sizing: border-box;
  height: auto;
  min-height: auto;
  padding-top: clamp(4rem, 9vh, 6rem);
  padding-bottom: clamp(4rem, 9vh, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  background: var(--lp-surface);
}

body.landing-page .lp-cta {
  background: var(--lp-surface);
  min-height: auto;
  padding-top: clamp(1.5rem, 3vh, 2.5rem);
  padding-bottom: clamp(4rem, 9vh, 6rem);
}

body.landing-page .lp-features {
  padding-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

body.landing-page .lp-feat-card {
  background: var(--lp-surface-box);
  border: none;
  border-radius: 8px;
  box-shadow: none;
  padding: clamp(1.5rem, 2.5vh, 2rem);
  transition: background 0.2s;
}

body.landing-page .lp-feat-card:hover {
  background: #eae9e5;
  border: none;
  transform: none;
  box-shadow: none;
}

body.landing-page .lp-feat-icon {
  color: var(--poke-text);
}

body.landing-page .lp-step-num {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--poke-text);
}

body.landing-page .lp-footer-links a:hover {
  color: var(--poke-muted);
}

body.landing-page .text-kleo-consent-panel .field-checkbox input {
  accent-color: #1a1a1a;
}

body.landing-page .text-kleo-consent-panel .field-checkbox a {
  color: var(--poke-text);
  text-decoration: underline;
  font-weight: 500;
}

body.landing-page .text-kleo-consent-panel .field-checkbox a:hover {
  color: var(--poke-muted);
}

body.landing-page .lp-feat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.625rem, 1.25vw, 0.875rem);
}

body.landing-page .lp-footer {
  border-top: none;
}

body.landing-page .lp-integrations {
  box-sizing: border-box;
  height: auto;
  min-height: calc(100dvh - var(--header-height));
  padding-top: clamp(4rem, 9vh, 7rem);
  padding-bottom: clamp(1.5rem, 3vh, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

body.landing-page .lp-demo .lp-container {
  max-width: var(--lp-content-max);
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
  padding-right: clamp(1rem, 2.5vw, 1.75rem);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

body.landing-page .lp-demo-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 0 1 auto;
  width: 100%;
  min-height: 0;
  max-height: none;
  gap: 0;
}

body.landing-page .lp-demo-headline,
body.landing-page .lp-section-headline,
body.landing-page .lp-integrations-headline,
body.landing-page .lp-cta-line {
  flex-shrink: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body.landing-page .lp-demo-headline,
body.landing-page .lp-integrations-headline,
body.landing-page .lp-section-headline {
  margin: 0 0 clamp(0.5rem, 1vh, 0.85rem);
}

body.landing-page .lp-features .lp-container {
  max-width: var(--lp-content-max);
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
  padding-right: clamp(1rem, 2.5vw, 1.75rem);
}

body.landing-page .lp-features .lp-section-headline {
  margin: 0 0 clamp(4.5rem, 9vh, 6.5rem);
}

body.landing-page .lp-demo-headline {
  text-align: left;
}

body.landing-page .lp-section-headline,
body.landing-page .lp-integrations-headline,
body.landing-page .lp-cta-line {
  text-align: left;
}

body.landing-page .lp-integrations .lp-container {
  gap: 0;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: var(--lp-content-max);
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
  padding-right: clamp(1rem, 2.5vw, 1.75rem);
}

body.landing-page .lp-integrations-lede {
  max-width: 38rem;
  font-size: clamp(calc(1.12rem * var(--lp-fs)), calc(2.1vh * var(--lp-fs)), calc(1.35rem * var(--lp-fs)));
  line-height: 1.65;
  text-align: left;
  margin-bottom: clamp(3.25rem, 7vh, 5.25rem);
}

body.landing-page .lp-integrations-grid {
  width: 100%;
  max-width: 100%;
  gap: clamp(1.15rem, 2.8vh, 1.85rem);
  grid-template-columns: repeat(auto-fit, minmax(clamp(7.5rem, 12vw, 11rem), 1fr));
  justify-content: start;
  padding-top: clamp(0.75rem, 2vh, 1.25rem);
  padding-bottom: clamp(1.25rem, 3vh, 2rem);
}

body.landing-page .lp-footer-bar {
  max-width: var(--lp-content-max);
}

body.landing-page .lp-integration-frame {
  width: clamp(7.5rem, 12vw, 11rem);
  height: clamp(7.5rem, 12vw, 11rem);
  padding: clamp(1.25rem, 2.8vh, 2rem);
  border-radius: clamp(16px, 2.4vh, 22px);
}

body.landing-page .lp-integration-item {
  gap: clamp(0.65rem, 1.5vh, 0.9rem);
}

body.landing-page .lp-integration-frame img {
  max-width: clamp(3.5rem, 6vw, 5.25rem);
  max-height: clamp(3.5rem, 6vw, 5.25rem);
}

body.landing-page .lp-integration-name {
  font-size: clamp(calc(0.92rem * var(--lp-fs)), calc(2vh * var(--lp-fs)), calc(1.12rem * var(--lp-fs)));
}

body.landing-page .lp-integrations-more {
  font-size: clamp(calc(1.65rem * var(--lp-fs)), calc(4vh * var(--lp-fs)), calc(2.5rem * var(--lp-fs)));
  margin-top: clamp(2rem, 5vh, 3.5rem);
  text-align: left;
}

body.landing-page .lp-integrations-cta {
  width: 100%;
  margin-top: clamp(4rem, 9vh, 6.5rem);
}

body.landing-page .lp-integrations-cta .lp-cta-line {
  margin: 0 0 clamp(1.5rem, 3vh, 2.25rem);
}

body.landing-page .lp-integrations-cta .lp-cta-sub {
  margin: 0 0 clamp(2.5rem, 5vh, 4rem);
}

body.landing-page .lp-integrations-cta .btn-join--hero {
  margin: 0;
}

body.landing-page .lp-demo-sub {
  flex-shrink: 0;
  margin: 0;
  max-width: none;
  font-size: clamp(calc(1.12rem * var(--lp-fs)), calc(2.1vh * var(--lp-fs)), calc(1.35rem * var(--lp-fs)));
  line-height: 1.65;
  text-align: left;
}

body.landing-page .lp-demo-row {
  --lp-phone-h: min(72vh, calc(100dvh - var(--header-height) - 7rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  width: 100%;
  padding: 0;
  margin: 0;
}

body.landing-page .lp-demo-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-width: min(36rem, 48vw);
  padding-right: clamp(0.5rem, 1.5vw, 1rem);
}

body.landing-page .lp-demo-steps {
  flex: 0 1 auto;
  align-self: stretch;
  min-width: 0;
  margin: 50px 0 0;
  padding: 0;
  gap: clamp(1.4rem, 3vh, 2.15rem);
}

body.landing-page .lp-demo-phone {
  flex: 0 0 auto;
  align-self: flex-start;
  display: flex;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
  align-items: flex-start;
}

body.landing-page .lp-demo-steps li {
  font-size: clamp(calc(1.08rem * var(--lp-fs)), calc(1.9vh * var(--lp-fs)), calc(1.22rem * var(--lp-fs)));
  line-height: 1.72;
  gap: 0.9rem;
}

body.landing-page .lp-step-num {
  width: 2rem;
  height: 2rem;
  font-size: calc(0.88rem * var(--lp-fs));
}

body.landing-page .lp-feat-card h3 {
  font-size: calc(0.95rem * var(--lp-fs));
}

body.landing-page .lp-feat-card p {
  font-size: calc(0.84rem * var(--lp-fs));
}

body.landing-page .lp-footer-copy {
  font-size: calc(0.78rem * var(--lp-fs));
}

body.landing-page .lp-footer-links a {
  font-size: calc(0.85rem * var(--lp-fs));
}

body.landing-page .lp-demo-phone-img {
  display: block;
  width: auto;
  height: var(--lp-phone-h, min(72vh, calc(100dvh - var(--header-height) - 7rem)));
  max-height: none;
  max-width: min(52vw, 540px);
  margin: 0;
  padding: 0;
  align-self: flex-start;
}

/* ── Responsive ── */

@media (max-width: 860px) {
  body.landing-page .header-nav {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent);
  }

  body.landing-page .header-nav::-webkit-scrollbar {
    display: none;
  }

  body.landing-page .header-nav a {
    font-size: calc(0.72rem * var(--lp-scale) * var(--header-fs));
  }

  .lp-demo-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .lp-demo-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .lp-demo-headline,
  .lp-demo-copy h2,
  .lp-demo-sub {
    text-align: center;
  }

  .lp-demo-steps {
    max-width: 420px;
    margin: 0 auto;
  }

  body.landing-page .lp-demo,
  body.landing-page .lp-features,
  body.landing-page .lp-integrations {
    --lp-fs: calc(1.08 * var(--lp-scale));
  }

  body.landing-page .lp-demo-row {
    --lp-phone-h: min(48vh, calc(100dvh - var(--header-height) - 9rem));
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(0.75rem, 2vw, 1.25rem);
  }

  body.landing-page .lp-demo-copy {
    max-width: none;
  }

  body.landing-page .lp-demo-headline,
  body.landing-page .lp-demo-sub {
    text-align: left;
  }

  body.landing-page .lp-demo-steps {
    max-width: none;
    margin-top: 50px;
  }

  .lp-feat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vh, 2.25rem);
  }

  body.landing-page .lp-feat-grid {
    gap: clamp(0.625rem, 1.25vw, 0.875rem);
  }

  body.landing-page .lp-demo,
  body.landing-page .lp-integrations,
  body.landing-page .lp-features {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  body.landing-page .lp-demo-headline,
  body.landing-page .lp-section-headline,
  body.landing-page .lp-integrations-headline,
  body.landing-page .lp-cta-line {
    font-size: clamp(1.25rem, 3vh, 1.65rem);
  }

  body.landing-page .lp-integrations-grid {
    width: 100%;
    max-width: 100%;
  }

  body.landing-page .lp-integration-frame {
    width: clamp(6.5rem, 18vw, 9rem);
    height: clamp(6.5rem, 18vw, 9rem);
  }

  body.landing-page .lp-demo-sub {
    font-size: clamp(calc(0.88rem * var(--lp-fs)), calc(1.6vh * var(--lp-fs)), calc(1rem * var(--lp-fs)));
  }

  body.landing-page .lp-demo-steps {
    gap: clamp(1.05rem, 2.2vh, 1.45rem);
    margin-top: clamp(1.25rem, 3vh, 2rem);
  }

  body.landing-page .lp-demo-steps li {
    font-size: clamp(calc(0.82rem * var(--lp-fs)), calc(1.45vh * var(--lp-fs)), calc(0.95rem * var(--lp-fs)));
  }

  body.landing-page .lp-step-num {
    width: 1.55rem;
    height: 1.55rem;
    font-size: calc(0.72rem * var(--lp-fs));
  }

  body.landing-page .lp-demo-phone-img {
    width: 100%;
    height: auto;
    max-height: var(--lp-phone-h);
    max-width: 100%;
    object-fit: contain;
  }
}

/* Mobile: no header tabs, just logo + join button */
@media (max-width: 600px) {
  body.landing-page .header-nav,
  body.waitlist-page .header-nav {
    display: none !important;
  }

  html:has(body.landing-page) {
    font-size: 16px;
  }

  body.landing-page,
  body.waitlist-page {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    --header-height: calc(4.5rem + var(--safe-top));
  }

  body.landing-page .header,
  body.waitlist-page .header {
    padding-top: calc(1.1rem + var(--safe-top));
    padding-bottom: 1.1rem;
  }

  body.landing-page .header .logo,
  body.waitlist-page .header .logo {
    font-size: 1.25rem;
  }

  body.landing-page .btn-join--header,
  body.waitlist-page .btn-join--header {
    padding: 0.65rem 1.25rem;
    font-size: 1rem;
    min-height: calc(0.65rem * 2 + 1.1rem * var(--header-fs));
  }

  body.landing-page .btn-join--header .imessage-icon,
  body.waitlist-page .btn-join--header .imessage-icon {
    width: calc(1.1rem * var(--header-fs));
    height: calc(1.1rem * var(--header-fs));
  }

  /* Keep header present while scrolling on mobile. */
  body.landing-page .header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
  }

  /* Mobile: demo copy stacked above phone image */
  body.landing-page .lp-demo-row {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  body.landing-page .lp-demo-copy {
    max-width: none;
    padding-right: 0;
  }

  body.landing-page .lp-demo-phone {
    justify-content: center;
    align-items: center;
  }

  body.landing-page .lp-demo-phone-img {
    width: min(360px, 92vw);
    height: auto;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  body.landing-page {
    --hero-fs: 0.92;
    --hero-btn-fs: 0.9;
  }

  body.landing-page .lp-demo,
  body.landing-page .lp-features,
  body.landing-page .lp-integrations {
    --lp-fs: calc(1.15 * var(--lp-scale));
  }

  body.landing-page .lp-demo-row {
    --lp-phone-h: min(42vh, calc(100dvh - var(--header-height) - 10rem));
  }

  body.landing-page .lp-demo-headline,
  body.landing-page .lp-section-headline,
  body.landing-page .lp-integrations-headline,
  body.landing-page .lp-cta-line {
    font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  }

  body.landing-page .lp-demo-sub {
    font-size: clamp(calc(0.95rem * var(--lp-fs)), calc(1.7vh * var(--lp-fs)), calc(1.08rem * var(--lp-fs)));
  }

  body.landing-page .lp-demo-steps li {
    font-size: clamp(calc(0.95rem * var(--lp-fs)), calc(1.8vh * var(--lp-fs)), calc(1.08rem * var(--lp-fs)));
  }

  body.landing-page .lp-integrations-lede {
    font-size: calc(1.12rem * var(--lp-fs));
  }

  .lp-feat-grid {
    grid-template-columns: 1fr;
  }

  body.landing-page .lp-feat-card h3 {
    font-size: 1rem;
  }

  body.landing-page .lp-feat-card p {
    font-size: calc(1.12rem * var(--lp-fs));
  }

  .lp-hero-phone-clip {
    width: min(320px, 86vw);
  }

  .lp-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}