/* Phase 130 · Marketing landing page — cinematic hero background */

html.marketing-page,
html.marketing-page body {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

/* Suppress vault.css ambient gradients on marketing page */
html.marketing-page body.marketing-page-body {
  background: #0c0b10;
  color: #f8f4ef;
}

html.marketing-page body.marketing-page-body.ambient-bg::before,
html.marketing-page body.marketing-page-body.ambient-bg::after {
  display: none;
}

.marketing-page {
  --mkt-brand: #C4A484;
  --mkt-brand-soft: rgba(232, 214, 195, 0.92);
  --mkt-text: #ffffff;
  --mkt-text-soft: rgba(255, 255, 255, 0.88);
  --mkt-text-muted: rgba(255, 255, 255, 0.68);
  --mkt-border: rgba(255, 255, 255, 0.2);
  --mkt-overlay: rgba(0, 0, 0, 0.4);
  --mkt-glass: rgba(255, 255, 255, 0.1);
  --mkt-glass-border: rgba(255, 255, 255, 0.22);
  --presence-line-ms: 2.5s;
  --presence-fade-ms: 0.5s;
  --content-scale: 1;
  --content-max-width: 56rem;
  --mkt-touch-min: 2.75rem;
}

html.marketing-page {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.marketing-page,
html.marketing-page body.marketing-page-body {
  overflow: hidden;
  max-width: 100vw;
  width: 100%;
  position: fixed;
  inset: 0;
}

/* ── Full-screen background (fixed · face anchored right) ─ */
.marketing-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: url('/img/landing-background.png') no-repeat 85% center fixed;
  background-size: cover;
}

.marketing-backdrop__media {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.marketing-backdrop__img {
  width: 1px;
  height: 1px;
}

.marketing-backdrop__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.18) 38%, rgba(0, 0, 0, 0.08) 62%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, var(--mkt-overlay) 50%, rgba(0, 0, 0, 0.45) 100%);
}

/* ── Page shell + scaled content wrapper ─────────────────── */
.marketing {
  position: relative;
  z-index: 1;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
}

.content-wrapper {
  width: 100%;
  max-width: var(--content-max-width);
  height: 100%;
  min-height: 0;
  max-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.marketing__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding:
    max(1rem, calc(env(safe-area-inset-top, 0px) + 0.5rem))
    max(1.25rem, calc(env(safe-area-inset-right, 0px) + 0.75rem))
    0.65rem
    max(1rem, env(safe-area-inset-left, 0px));
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.marketing__brand {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.55rem;
  min-width: 0;
}

.marketing__logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  overflow: visible;
}

.marketing__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.marketing__title {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--mkt-text);
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.marketing__lang {
  flex-shrink: 0;
  margin-right: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max(var(--mkt-touch-min), 44px);
  min-height: max(var(--mkt-touch-min), 44px);
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--mkt-glass-border);
  background: var(--mkt-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--mkt-text-soft);
  font-size: clamp(0.8125rem, 2.8vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.marketing__lang:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(196, 164, 132, 0.45);
  color: #fff;
}

.marketing__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1.25rem 2rem;
  width: 100%;
  text-align: left;
}

.marketing__content {
  width: 100%;
  max-width: 22rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Ami presence · floating dialogue bubble (relative anchor) */
.marketing__presence,
.ami-dialogue {
  position: relative;
  width: 100%;
  max-width: min(19rem, 82%);
  margin-bottom: 1rem;
  pointer-events: none;
}

.marketing__presence-bubble {
  position: relative;
  padding: 0.8rem 0.95rem;
  border-radius: 1.1rem 1.1rem 1.1rem 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: presence-breathe 3.5s ease-in-out infinite;
}

.marketing__presence-bubble::after {
  content: '';
  position: absolute;
  left: 1.1rem;
  bottom: -0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(45deg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.marketing__presence-text {
  margin: 0;
  min-height: auto;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity var(--presence-fade-ms) ease;
}

.marketing__presence-text.is-visible {
  opacity: 1;
}

@keyframes presence-breathe {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.marketing__cta {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  width: 100%;
  max-width: 20rem;
}

.marketing__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.marketing__btn--primary {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.45),
    0 4px 18px rgba(196, 164, 132, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  min-height: 2.9rem;
  font-size: 0.94rem;
}

/* Phase 137 · CTA ripple (Framer Motion–like, CSS keyframes) */
.marketing__btn--ripple {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.marketing__btn--ripple:active {
  transform: scale(0.985);
}

.marketing__ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(232, 214, 195, 0.42) 0%,
    rgba(196, 164, 132, 0.28) 45%,
    rgba(196, 164, 132, 0) 72%
  );
  transform: scale(0);
  opacity: 0.75;
  animation: marketing-ripple-spread 650ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  z-index: 0;
}

@keyframes marketing-ripple-spread {
  0% {
    transform: scale(0);
    opacity: 0.72;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Phase 137 · Privacy badge below CTA */
.marketing__privacy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.25rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.45;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
  text-align: center;
}

.marketing__privacy-badge:hover,
.marketing__privacy-badge:focus-visible {
  color: rgba(232, 214, 195, 0.88);
  outline: none;
}

.marketing__privacy-icon {
  width: 0.82rem;
  height: 0.82rem;
  flex-shrink: 0;
  opacity: 0.72;
}

.marketing__privacy-label {
  max-width: 16rem;
}

/* Phase 137 · Privacy modal */
.marketing-privacy-modal.hidden {
  display: none;
}

.marketing-privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

body.marketing-privacy-open {
  overflow: hidden;
}

.marketing-privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 12, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: marketing-privacy-fade-in 280ms ease;
}

.marketing-privacy-modal__card {
  position: relative;
  width: min(22rem, 100%);
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(22, 20, 28, 0.88);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  animation: marketing-privacy-rise 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.marketing-privacy-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.marketing-privacy-modal__close:hover,
.marketing-privacy-modal__close:focus-visible {
  color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.marketing-privacy-modal__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(196, 164, 132, 0.14);
  color: rgba(232, 214, 195, 0.92);
}

.marketing-privacy-modal__icon-wrap svg {
  width: 1.15rem;
  height: 1.15rem;
}

.marketing-privacy-modal__title {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.marketing-privacy-modal__lead {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.78);
}

.marketing-privacy-modal__quote {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(232, 214, 195, 0.92);
  font-style: italic;
}

.marketing-privacy-modal__ok {
  width: 100%;
  min-height: 2.65rem;
  border: 1px solid rgba(196, 164, 132, 0.42);
  border-radius: 0.75rem;
  background: rgba(196, 164, 132, 0.16);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.marketing-privacy-modal__ok:hover,
.marketing-privacy-modal__ok:focus-visible {
  background: rgba(196, 164, 132, 0.28);
  border-color: rgba(232, 214, 195, 0.55);
  outline: none;
}

@keyframes marketing-privacy-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes marketing-privacy-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.marketing__btn--primary:hover {
  background: rgba(196, 164, 132, 0.32);
  border-color: rgba(232, 214, 195, 0.65);
  transform: translateY(-2px);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 6px 24px rgba(196, 164, 132, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.marketing__stores {
  margin-top: 2rem;
  width: 100%;
  max-width: 22rem;
}

.marketing__stores-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mkt-text-muted);
  margin-bottom: 0.65rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.marketing__store-row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.marketing__store-badge {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.4rem;
  align-items: center;
  width: 100%;
  padding: 0.55rem 0.85rem 0.75rem;
  border-radius: 0.95rem;
  border: 1px solid var(--mkt-glass-border);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--mkt-text);
  text-align: left;
  cursor: not-allowed;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.marketing__store-badge svg {
  grid-column: 1;
  grid-row: 2;
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  align-self: center;
  color: #fff;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.marketing__store-copy {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  align-self: center;
}

.marketing__store-copy small {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mkt-text-muted);
  line-height: 1.3;
}

.marketing__store-copy strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mkt-text);
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.marketing__store-soon {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: end;
  position: relative;
  z-index: 2;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(196, 164, 132, 0.32);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.marketing__disclaimer {
  margin-top: 1.15rem;
  max-width: min(19rem, 88%);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--mkt-text-muted);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Pass-through on desktop · groups CTA + stores on mobile */
.buttons-group {
  display: contents;
}

.centered-interaction-container {
  display: contents;
}

.marketing__footer {
  flex-shrink: 0;
  padding: 1rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  text-align: center;
  width: 100%;
}

.marketing__footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.marketing__footer-links a {
  color: var(--mkt-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.marketing__footer-links a:hover {
  color: var(--mkt-brand-soft);
}

.marketing__footer-links span {
  color: rgba(255, 255, 255, 0.28);
}

.marketing__footer-copy {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
}

/* ── Laptop / desktop refinements (unchanged layout) ─────── */
@media (min-width: 1025px) {
  .marketing__main {
    justify-content: center;
  }

  .marketing__title {
    font-size: 1.65rem;
  }

  .marketing__content {
    max-width: 100%;
  }

  .marketing__presence,
  .ami-dialogue {
    align-self: flex-end;
    margin-left: auto;
    margin-right: clamp(0.5rem, 8vw, 4.5rem);
    margin-bottom: 1.35rem;
    max-width: 16.5rem;
  }

  .marketing__presence-text {
    font-size: 0.92rem;
    min-height: 3.4em;
  }

  .marketing__store-row {
    flex-direction: row;
    align-items: stretch;
  }

  .marketing__store-badge {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.7rem 0.7rem;
  }

  .marketing__store-soon {
    font-size: 0.54rem;
    padding: 0.15rem 0.42rem;
  }

  .marketing__store-copy small {
    font-size: 0.58rem;
  }

  .marketing__store-copy strong {
    font-size: 0.82rem;
  }
}

/* ── Tablet (768–1024px) · bubble right of face · CTA bottom-center */
@media (min-width: 768px) and (max-width: 1024px) {
  .marketing-backdrop {
    background-position: 82% center;
  }

  .marketing {
    align-items: stretch;
    justify-content: flex-start;
  }

  .content-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .marketing__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    padding:
      clamp(0.5rem, 2vh, 1rem)
      clamp(1.25rem, 4vw, 2.5rem)
      clamp(1rem, 3vh, 1.75rem)
      clamp(1.25rem, 4vw, 2.5rem);
  }

  .marketing__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 0;
    gap: 0;
  }

  /* Speech bubble · upper-right beside face */
  .marketing__presence,
  .ami-dialogue {
    align-self: flex-end;
    margin-left: auto;
    margin-right: clamp(0.75rem, 4vw, 2.75rem);
    margin-top: clamp(0.75rem, 7vh, 3.5rem);
    margin-bottom: 0;
    width: auto;
    max-width: min(16.5rem, 40vw);
    flex-shrink: 0;
  }

  /* Bubble on right · tail bottom-left points left toward face */
  .marketing__presence-bubble {
    border-radius: 1.1rem 1.1rem 0.35rem 1.1rem;
  }

  .marketing__presence-bubble::after {
    left: 1.1rem;
    right: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-left: none;
    border-top: none;
  }

  .marketing__presence-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* CTA + download + disclaimer · bottom center */
  .buttons-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    margin-top: auto;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: min(22rem, 78vw);
    flex-shrink: 0;
  }

  .centered-interaction-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    width: 100%;
  }

  .marketing__cta {
    width: 100%;
    max-width: min(20rem, 72vw);
    margin: 0 auto;
    align-items: stretch;
  }

  .marketing__stores {
    margin-top: 0;
    width: 100%;
    max-width: min(20rem, 72vw);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .marketing__stores-label {
    text-align: center;
    width: 100%;
  }

  .marketing__disclaimer {
    max-width: min(20rem, 85vw);
    margin-top: 0;
    text-align: center;
    align-self: center;
  }

  .marketing__store-row {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
  }

  .marketing__store-badge {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 0.35rem);
  }
}

/* ── Mobile (≤767px) · single viewport · no scroll ───────── */
@media (max-width: 767px) {
  html.marketing-page {
    font-size: clamp(14px, 3.1vw, 16px);
  }

  html.marketing-page,
  html.marketing-page body.marketing-page-body {
    overflow: hidden;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
  }

  .marketing-backdrop {
    background: url('/img/landing-background.png') no-repeat 62% center;
    background-size: cover;
    background-attachment: scroll;
  }

  .marketing-backdrop__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 1;
    pointer-events: none;
  }

  .marketing-backdrop__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
  }

  .marketing {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    align-items: stretch;
    justify-content: flex-start;
  }

  .content-wrapper {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100dvh;
    overflow: hidden;
    padding:
      max(0.25rem, env(safe-area-inset-top, 0px))
      max(0.75rem, env(safe-area-inset-right, 0px))
      max(0.35rem, env(safe-area-inset-bottom, 0px))
      max(0.75rem, env(safe-area-inset-left, 0px));
    justify-content: space-between;
  }

  .marketing__header {
    padding-top: max(0.35rem, calc(env(safe-area-inset-top, 0px) + 0.15rem));
    padding-bottom: 0.25rem;
  }

  .marketing__logo-wrap {
    width: 2.58rem;
    height: 2.58rem;
  }

  .marketing__title {
    font-size: 1.48rem;
  }

  .marketing__main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 0;
    overflow: hidden;
    padding: 0.15rem 0 0.1rem;
    width: 100%;
  }

  .marketing__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: 0;
    overflow: hidden;
    gap: 0;
  }

  .marketing__presence,
  .ami-dialogue {
    align-self: flex-end;
    margin-left: auto;
    margin-right: max(clamp(0.75rem, 8vw, 2rem), env(safe-area-inset-right, 0px));
    margin-top: 0;
    margin-bottom: 0.25rem;
    width: auto;
    max-width: min(13.5rem, 54vw);
    flex-shrink: 0;
  }

  /* Bubble on right · tail bottom-left points left toward face */
  .marketing__presence-bubble {
    padding: 0.72rem 0.85rem;
    height: auto;
    min-height: 0;
    border-radius: 1.1rem 1.1rem 0.35rem 1.1rem;
  }

  .marketing__presence-bubble::after {
    left: 1.1rem;
    right: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-left: none;
    border-top: none;
  }

  .marketing__presence-text {
    font-size: 0.86rem;
    line-height: 1.58;
  }

  .buttons-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    margin-bottom: 0.25rem;
    width: 100%;
    flex-shrink: 0;
  }

  .centered-interaction-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    max-width: min(18rem, 92%);
  }

  .marketing__cta {
    margin-top: 0;
    margin-bottom: 0.65rem;
    width: 88%;
    max-width: 18rem;
    align-items: center;
  }

  .marketing__btn--primary {
    width: 100%;
    min-height: max(2.75rem, 44px);
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    border-radius: 0.8rem;
  }

  .marketing__stores {
    margin-top: 0;
    width: 100%;
    max-width: min(16.5rem, 88%);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .marketing__stores-label {
    margin-bottom: 0.45rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-align: center;
    width: 100%;
  }

  .marketing__store-row {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
  }

  .marketing__store-badge {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(50% - 0.2rem);
    padding: 0.38rem 0.48rem 0.42rem;
    border-radius: 0.55rem;
  }

  .marketing__store-badge__row {
    gap: 0.3rem;
  }

  .marketing__store-badge svg {
    width: 1rem;
    height: 1rem;
  }

  .marketing__store-copy small {
    font-size: 0.56rem;
    letter-spacing: 0.04em;
  }

  .marketing__store-copy strong {
    font-size: 0.78rem;
  }

  .marketing__store-soon {
    font-size: 0.48rem;
    padding: 0.1rem 0.32rem;
    margin-bottom: 0.05rem;
  }

  .marketing__disclaimer {
    margin-top: 0.25rem;
    max-width: min(17rem, 92%);
    width: 100%;
    text-align: center;
    font-size: 0.58rem;
    line-height: 1.4;
    flex-shrink: 0;
  }

  .marketing__footer {
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 0.15rem;
    padding-bottom: max(0.15rem, env(safe-area-inset-bottom, 0px));
    padding-left: 0;
    padding-right: 0;
  }

  .marketing__footer-links {
    font-size: 0.66rem;
    row-gap: 0.2rem;
    column-gap: 0.4rem;
  }

  .marketing__footer-copy {
    font-size: 0.58rem;
    margin-top: 0.2rem;
  }
}

@media (max-width: 480px) {
  .marketing-backdrop {
    background-position: 58% center;
  }

  .marketing__presence,
  .ami-dialogue {
    margin-right: max(clamp(1.15rem, 9vw, 2.75rem), env(safe-area-inset-right, 0px));
    max-width: min(13.5rem, 60vw);
  }

  .buttons-group {
    margin-top: clamp(22vh, 36vh, 44vh);
  }

  .marketing__cta {
    width: 87%;
    margin-left: auto;
    margin-right: auto;
  }

  .marketing__stores {
    max-width: min(15.5rem, 90%);
  }

  .marketing__store-row {
    gap: 0.35rem;
  }

  .marketing__store-badge {
    max-width: calc(50% - 0.18rem);
  }
}

/* ── In-app browser overlay (Instagram / LINE / etc.) ─── */
.marketing-inapp {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(8, 7, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.marketing-inapp.hidden {
  display: none;
}

body.marketing-inapp-open {
  overflow: hidden;
}

.marketing-inapp__card {
  width: min(100%, 22rem);
  padding: 1.25rem 1.1rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(22, 20, 28, 0.94);
  color: #f8f4ef;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.marketing-inapp__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 164, 132, 0.92);
}

.marketing-inapp__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.marketing-inapp__lead {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.marketing-inapp__steps {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.marketing-inapp__steps li + li {
  margin-top: 0.35rem;
}

.marketing-inapp__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.45rem;
  border-radius: 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.marketing-inapp__btn--primary {
  background: linear-gradient(135deg, #d4b896 0%, #c4a77d 100%);
  color: #2a2218;
  border-color: rgba(196, 164, 132, 0.45);
}

.marketing-inapp__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.16);
}

/* ── Install guide overlay (browser · post age/auth) ─── */
.marketing-install {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(8, 7, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.marketing-install.hidden {
  display: none;
}

body.marketing-install-open {
  overflow: hidden;
}

.marketing-install__card {
  width: min(100%, 22rem);
  padding: 1.25rem 1.1rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(22, 20, 28, 0.94);
  color: #f8f4ef;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.marketing-install__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 164, 132, 0.92);
}

.marketing-install__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.marketing-install__lead {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.marketing-install__steps {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

.marketing-install__step {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.marketing-install__step strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f8f4ef;
}

.marketing-install__step p {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.marketing-install__resume {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(196, 164, 132, 0.12);
  border: 1px solid rgba(196, 164, 132, 0.22);
  font-size: 0.74rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.marketing-install__resume.hidden {
  display: none;
}

@media (max-height: 740px) and (max-width: 767px) {
  .marketing__logo-wrap {
    width: 2.2rem;
    height: 2.2rem;
  }

  .marketing__title {
    font-size: 1.25rem;
  }

  .marketing__presence-text {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .marketing__btn--primary {
    min-height: 2.55rem;
    font-size: 0.82rem;
  }

  .marketing__privacy-label {
    font-size: 0.62rem;
  }

  .marketing__stores-label {
    font-size: 0.6rem;
    margin-bottom: 0.25rem;
  }

  .marketing__store-badge {
    padding: 0.28rem 0.38rem 0.32rem;
  }

  .marketing__disclaimer {
    font-size: 0.54rem;
  }

  .marketing__footer-links {
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketing__btn--primary:hover {
    transform: none;
  }

  .marketing__btn--ripple:active {
    transform: none;
  }

  .marketing__ripple {
    animation: none;
    display: none;
  }

  .marketing-privacy-modal__backdrop,
  .marketing-privacy-modal__card {
    animation: none;
  }

  .marketing__presence-bubble {
    animation: none;
  }

  .marketing__presence-text {
    transition: none;
  }
}

/* Browser tab (non-PWA): avoid fixed viewport clipping on Android Chrome */
html.marketing-page[data-entry-mode="browser"],
html.marketing-page[data-entry-mode="browser"] body.marketing-page-body {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 100svh;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}

html.marketing-page[data-entry-mode="browser"] .marketing {
  height: auto;
  min-height: 100svh;
  max-height: none;
  overflow: visible;
}

html.marketing-page[data-entry-mode="browser"] .content-wrapper {
  height: auto;
  min-height: 100svh;
  max-height: none;
  overflow: visible;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

html.marketing-page[data-entry-mode="browser"] .marketing__main,
html.marketing-page[data-entry-mode="browser"] .marketing__content {
  overflow: visible;
  min-height: auto;
}
