:root {
  --landing-dark: #591c31;
  --landing-primary: #7c334c;
  --landing-secondary: #934761;
  --landing-medium: #a8617b;
  --landing-soft: #f0c1d1;
  --landing-light: #ffd9e7;

  --landing-white: #ffffff;
  --landing-surface: #fffafb;

  --landing-text: #591c31;
  --landing-text-muted: rgba(89, 28, 49, 0.58);

  --landing-border: rgba(89, 28, 49, 0.08);

  --landing-shadow: 0 18px 45px rgba(89, 28, 49, 0.09);

  --landing-button-shadow: 0 16px 30px rgba(89, 28, 49, 0.2);
}

/* ============================================================
   RESET
   ============================================================ */

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

html {
  width: 100%;
  min-height: 100%;
}

html,
body {
  margin: 0;

  overflow-x: hidden;
}

body {
  width: 100%;
  min-width: 0;

  min-height: 100vh;
  min-height: 100svh;

  font-family: "Poppins", sans-serif;

  color: var(--landing-text);
  background: var(--landing-light);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button {
  font: inherit;

  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;

  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

/* ============================================================
   CONTAINER
   ============================================================ */

.app-container {
  position: relative;

  width: min(100%, 480px);
  max-width: 100vw;
  min-width: 0;

  min-height: 100vh;
  min-height: 100svh;

  margin: 0 auto;

  padding: 5px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(168, 97, 123, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(124, 51, 76, 0.06),
      transparent 33%
    ),
    var(--landing-light);
}

.landing-main {
  position: relative;

  width: 100%;
  min-width: 0;

  min-height: calc(100vh - 10px);
  min-height: calc(100svh - 10px);

  padding: max(32px, env(safe-area-inset-top)) 30px
    max(25px, env(safe-area-inset-bottom));

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.78);

  border-radius: 38px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 253, 252, 0.99)
  );

  box-shadow: var(--landing-shadow);
}

/* ============================================================
   DECORAÇÃO
   ============================================================ */

.landing-decoration {
  position: absolute;

  display: block;

  pointer-events: none;
}

.landing-decoration--top {
  top: -87px;
  right: -80px;

  width: 210px;
  height: 175px;

  border-radius: 0 0 0 100%;

  background: rgba(255, 217, 231, 0.82);
}

.landing-decoration--top::after {
  content: "";

  position: absolute;

  right: -7px;
  bottom: -51px;

  width: 165px;
  height: 100px;

  border-radius: 0 0 0 100%;

  background: rgba(168, 97, 123, 0.12);
}

.landing-decoration--bottom {
  left: -75px;
  bottom: -95px;

  width: 180px;
  height: 180px;

  border-radius: 50%;

  background: rgba(240, 193, 209, 0.34);
}

/* ============================================================
   MARCA
   ============================================================ */

.landing-header {
  position: relative;
  z-index: 2;

  width: 100%;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.landing-logo {
  width: 132px;
  height: auto;

  display: block;

  object-fit: contain;

  transform-origin: left center;
}

/* ============================================================
   CONTEÚDO
   ============================================================ */

.landing-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 390px;

  margin-top: clamp(105px, 18vh, 150px);
}

.landing-eyebrow {
  display: block;

  margin-bottom: 15px;

  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.15em;

  text-transform: uppercase;

  color: var(--landing-medium);
}

.landing-title {
  max-width: 395px;

  margin: 0;

  font-family: "Poppins", sans-serif;

  font-size: clamp(39px, 10vw, 52px);

  font-weight: 600;
  line-height: 1.04;

  letter-spacing: -0.045em;

  color: var(--landing-dark);
}

.landing-title span {
  display: block;

  color: var(--landing-medium);
}

.landing-description {
  max-width: 365px;

  margin: 22px 0 0;

  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;

  color: var(--landing-text-muted);
}

/* ============================================================
   ACESSO
   ============================================================ */

.landing-access {
  position: relative;
  z-index: 2;

  width: 100%;

  margin-top: auto;
  padding-top: 42px;
}

.landing-button {
  width: 100%;
  min-height: 64px;

  padding: 0 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-radius: 19px;

  font-size: 12px;
  font-weight: 650;

  color: #ffffff;

  background: linear-gradient(
    135deg,
    var(--landing-dark),
    var(--landing-primary)
  );

  box-shadow: var(--landing-button-shadow);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.landing-button:hover,
.landing-button:focus-visible {
  transform: translateY(-1px);

  box-shadow: 0 19px 34px rgba(89, 28, 49, 0.22);
}

.landing-button:active {
  transform: scale(0.99);
}

.landing-button svg {
  width: 20px;
  height: 20px;

  flex: 0 0 20px;
}

.landing-signup {
  margin: 17px 0 0;

  text-align: center;

  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;

  color: var(--landing-text-muted);
}

.landing-signup a {
  margin-left: 3px;

  font-weight: 700;

  color: var(--landing-primary);

  transition: opacity 0.2s ease;
}

.landing-signup a:hover,
.landing-signup a:focus-visible {
  opacity: 0.72;
}

/* ============================================================
   RODAPÉ
   ============================================================ */

.landing-footer {
  position: relative;
  z-index: 2;

  width: 100%;

  margin-top: 25px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.03em;

  color: rgba(89, 28, 49, 0.42);
}

.landing-footer i {
  width: 4px;
  height: 4px;

  display: block;
  flex: 0 0 4px;

  border-radius: 50%;

  background: var(--landing-medium);
}

/* ============================================================
   TELAS MENORES
   ============================================================ */

@media (max-width: 380px) {
  .landing-main {
    padding-left: 25px;
    padding-right: 25px;

    border-radius: 32px;
  }

  .landing-logo {
    width: 122px;
  }

  .landing-content {
    margin-top: clamp(85px, 15vh, 125px);
  }

  .landing-title {
    font-size: clamp(40px, 11.3vw, 50px);
  }

  .landing-description {
    font-size: 11px;
  }

  .landing-button {
    min-height: 60px;

    border-radius: 17px;
  }
}

/* ============================================================
   TELAS BAIXAS
   ============================================================ */

@media (max-height: 730px) {
  .landing-main {
    padding-top: max(24px, env(safe-area-inset-top));

    padding-bottom: max(19px, env(safe-area-inset-bottom));
  }

  .landing-logo {
    width: 112px;
  }

  .landing-content {
    margin-top: 70px;
  }

  .landing-eyebrow {
    margin-bottom: 11px;
  }

  .landing-title {
    font-size: clamp(38px, 9.8vw, 48px);
  }

  .landing-description {
    margin-top: 15px;

    line-height: 1.6;
  }

  .landing-access {
    padding-top: 27px;
  }

  .landing-button {
    min-height: 57px;
  }

  .landing-signup {
    margin-top: 12px;
  }

  .landing-footer {
    margin-top: 17px;
  }
}

/* ============================================================
   ACESSIBILIDADE
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   AVISO DE INSTALAÇÃO PWA — IPHONE
   ============================================================ */

.ios-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));

  background: rgba(40, 12, 23, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ios-install-overlay[hidden] {
  display: none;
}

.ios-install-modal {
  position: relative;

  width: 100%;
  max-width: 390px;
  max-height: 100%;
  overflow-y: auto;

  padding: 32px 25px 25px;

  border: 1px solid var(--landing-border);
  border-radius: 24px;

  background: var(--landing-white);
  box-shadow: 0 24px 65px rgba(40, 12, 23, 0.22);

  color: var(--landing-dark);
  text-align: center;
}

.ios-install-close {
  position: absolute;
  top: 12px;
  right: 15px;

  width: 34px;
  height: 34px;

  border: none;
  border-radius: 50%;

  background: var(--landing-surface);
  color: var(--landing-dark);

  font-size: 24px;
  cursor: pointer;
}

.ios-install-icon {
  display: block;
  margin-bottom: 14px;
  font-size: 36px;
}

.ios-install-modal h2 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
}

.ios-install-modal > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--landing-text-muted);
}

.ios-install-steps {
  margin: 22px 0;
  padding: 18px 18px 18px 35px;

  border: 1px solid var(--landing-border);
  border-radius: 16px;

  background: var(--landing-surface);

  text-align: left;
  font-size: 12px;
  line-height: 1.7;
}

.ios-install-steps li + li {
  margin-top: 10px;
}

.ios-install-steps strong {
  color: var(--landing-primary);
}

.ios-install-confirm {
  width: 100%;
  min-height: 50px;

  border: none;
  border-radius: 14px;

  background: var(--landing-dark);
  color: var(--landing-white);

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
}

.ios-install-confirm:active {
  transform: scale(0.98);
}

.ios-install-close:focus-visible,
.ios-install-confirm:focus-visible {
  outline: 3px solid var(--landing-medium);
  outline-offset: 3px;
}

.ios-install-modal > small {
  display: block;
  margin-top: 15px;

  font-size: 11px;
  color: var(--landing-text-muted);
}

/* ============================================================
   SELEÇÃO DA EXPERIÊNCIA DEMONSTRATIVA
   ============================================================ */

.experience-chooser {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  padding-top: max(18px, env(safe-area-inset-top));
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  background: rgba(40, 12, 23, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.experience-chooser[hidden],
.experience-chooser [hidden] {
  display: none !important;
}

.experience-chooser-panel {
  position: relative;
  width: min(100%, 440px);
  max-height: 100%;
  overflow-y: auto;
  padding: 30px 24px 24px;
  border: 1px solid var(--landing-border);
  border-radius: 24px;
  color: var(--landing-dark);
  background: var(--landing-white);
  box-shadow: 0 24px 65px rgba(40, 12, 23, 0.22);
}

.experience-chooser-close {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--landing-dark);
  background: var(--landing-surface);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.experience-chooser-eyebrow {
  display: block;
  margin: 3px 42px 8px 0;
  color: var(--landing-medium);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience-chooser-panel h2 {
  margin: 0;
  font-size: clamp(20px, 5vw, 25px);
  line-height: 1.3;
}

.experience-chooser-copy {
  margin: 9px 0 20px;
  color: var(--landing-text-muted);
  font-size: 12px;
  line-height: 1.65;
}

.experience-chooser-step {
  display: grid;
  gap: 10px;
}

.experience-choice,
.experience-segment-choice {
  width: 100%;
  min-height: 64px;
  padding: 14px 15px;
  border: 1px solid var(--landing-border);
  border-radius: 15px;
  color: var(--landing-dark);
  background: var(--landing-surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.experience-choice:hover,
.experience-choice:focus-visible,
.experience-segment-choice:hover,
.experience-segment-choice:focus-visible {
  border-color: var(--landing-medium);
  background: #fff4f8;
}

.experience-choice:active,
.experience-segment-choice:active {
  transform: scale(0.99);
}

.experience-choice strong,
.experience-segment-choice strong,
.experience-choice span,
.experience-segment-choice span {
  display: block;
}

.experience-choice strong,
.experience-segment-choice strong {
  font-size: 13px;
  line-height: 1.4;
}

.experience-choice span,
.experience-segment-choice span {
  margin-top: 4px;
  color: var(--landing-text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.experience-chooser-back {
  padding: 0;
  border: 0;
  color: var(--landing-primary);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.experience-chooser-panel h3 {
  margin: 12px 0;
  font-size: 16px;
}

.experience-segment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.experience-segment-choice {
  min-height: 90px;
  padding: 12px;
}

.experience-segment-choice:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.experience-confirm-step {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(184, 107, 22, 0.22);
  border-radius: 15px;
  background: #fff8eb;
}

.experience-confirm-step p {
  margin: 0;
  color: var(--landing-text);
  font-size: 12px;
  line-height: 1.65;
}

.experience-confirm-actions {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.experience-confirm-actions button {
  min-height: 43px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.experience-confirm-cancel {
  border: 1px solid var(--landing-border);
  color: var(--landing-primary);
  background: var(--landing-white);
}

.experience-confirm-continue {
  border: 0;
  color: var(--landing-white);
  background: var(--landing-primary);
}

.experience-chooser-feedback {
  margin: 13px 0 0;
  color: #9b3150;
  font-size: 12px;
  line-height: 1.5;
}

.experience-active-label {
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--landing-border);
  color: var(--landing-text-muted);
  font-size: 10px;
}

.experience-chooser button:focus-visible {
  outline: 3px solid var(--landing-medium);
  outline-offset: 2px;
}

@media (max-width: 380px) {
  .ios-install-modal {
    padding: 28px 19px 22px;
  }

  .ios-install-modal h2 {
    font-size: 19px;
  }

  .experience-chooser-panel {
    padding: 27px 18px 20px;
  }

  .experience-segment-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .experience-segment-choice:last-child:nth-child(odd) {
    grid-column: auto;
  }
}
