/* Landing page, age sheet and the setup wizard. Loaded after style.css (uses its tokens). */

/* =====================================================================
   Landing — one face, one line from her, one button.
   ===================================================================== */
.landing { position: relative; overflow-x: hidden; background: var(--bg); }

.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 18%;
  animation: kenburns 18s ease-out both;
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(13, 10, 16, 0.65) 0%, transparent 18%),
    linear-gradient(to top, var(--bg) 6%, rgba(13, 10, 16, 0.86) 34%, rgba(13, 10, 16, 0.2) 62%, transparent 80%);
}

.hero-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 20px 0;
}
.hero-top-side { display: flex; align-items: center; gap: 10px; }
.hero-signin {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.age-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

.hero-content {
  padding: 0 20px calc(30px + env(safe-area-inset-bottom));
  max-width: 560px;
  animation: rise 0.9s 0.15s ease both;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffc2d7;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 79, 139, 0.7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(255, 79, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 139, 0); } }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 8.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin: 0 0 22px; color: #d9cde0; font-size: 15.5px; line-height: 1.55; max-width: 470px; }

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  padding: 17px 26px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: pulse 2.6s 1.8s infinite;
}
.cta-arrow { transition: transform 0.2s; }
.cta:hover .cta-arrow { transform: translateX(4px); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 79, 139, 0.3), 0 0 0 0 rgba(255, 79, 139, 0.55); }
  50% { box-shadow: 0 8px 30px rgba(255, 79, 139, 0.45), 0 0 0 12px rgba(255, 79, 139, 0); }
}
.cta-fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }

.scroll-hint {
  position: absolute;
  bottom: calc(6px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  text-decoration: none;
  font-size: 20px;
  animation: bob 2s infinite;
  display: none;
}
@keyframes bob { 50% { transform: translate(-50%, 5px); } }

/* Her messages, appearing over the photo */
.hero-chat {
  position: absolute;
  top: calc(max(16px, env(safe-area-inset-top)) + 150px);
  right: 12px;
  width: min(210px, 54vw);
  display: grid;
  gap: 6px;
  justify-items: end;
  font-size: 14px;
}
.hc-bubble {
  background: rgba(27, 21, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 18px 18px 6px 18px;
  padding: 9px 13px;
  line-height: 1.38;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hc-bubble.on { opacity: 1; transform: none; }
.hc-bubble.gone { display: none; }
.hc-typing { padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
.hc-typing .dots { background: rgba(27, 21, 35, 0.82); }
.hc-name { display: block; font-size: 12px; color: var(--accent); margin-bottom: 1px; }
.hc-seen { display: block; text-align: right; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* below the fold */
.hooks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 20px 8px;
}
.hook {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
}
.hook-ico { font-size: 24px; }
.hook strong { font-size: 16px; }
.hook span:last-child { color: var(--muted); font-size: 14px; }

.next-girls { max-width: 1040px; margin: 0 auto; padding: 56px 0 8px; }
.ng-title { text-align: center; font-size: clamp(26px, 6vw, 36px); margin: 0 20px 6px; }
.ng-sub { text-align: center; color: var(--muted); margin: 0 20px 22px; }
.girl-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 14px;
  scrollbar-width: none;
}
.girl-strip::-webkit-scrollbar { display: none; }
.gs-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--panel);
}
.gs-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.gs-card:hover img { transform: scale(1.05); }
.gs-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 10, 16, 0.92) 0%, transparent 55%); }
.gs-info { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; display: grid; gap: 1px; }
.gs-info b { font-size: 17px; font-family: var(--serif); }
.gs-story { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.gs-info span { font-size: 12px; color: #d4c6dc; }
.gs-lock {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(13, 10, 16, 0.7);
  backdrop-filter: blur(6px);
}

.last-call { text-align: center; padding: 56px 20px calc(36px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 4px; }
.lc-quote { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 5vw, 26px); margin: 0 0 18px; max-width: 520px; }
.fine { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.audience-switch { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 700px) {
  .hooks { grid-template-columns: 1fr; padding-top: 36px; }
  .hook { grid-template-columns: auto 1fr; column-gap: 14px; padding: 16px; }
  .hook-ico { grid-row: span 2; font-size: 22px; }
}

/* Desktop: the photo takes the right side, the words the left. */
@media (min-width: 900px) {
  .hero { justify-content: center; min-height: 100vh; }
  .hero-art { left: auto; width: min(60vw, 900px); }
  .hero-art img { object-position: 50% 20%; }
  .hero-shade {
    background:
      linear-gradient(to right, var(--bg) 0%, rgba(13, 10, 16, 0.5) 22%, transparent 48%),
      linear-gradient(to top, var(--bg) 0%, transparent 22%),
      linear-gradient(to bottom, rgba(13, 10, 16, 0.5) 0%, transparent 16%);
  }
  .hero-top { padding: 24px 40px 0; }
  .hero-content {
    --edge: max(48px, calc((100vw - 1180px) / 2));
    padding: 0 0 0 var(--edge);
    max-width: calc(var(--edge) + 540px);
  }
  .hero-chat { top: 22%; right: 14px; width: 220px; }
  .scroll-hint { display: block; }
}

/* ---------- age sheet ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  background: rgba(5, 3, 8, 0.6);
  backdrop-filter: blur(6px);
  animation: appear 0.2s ease both;
}
.sheet-card {
  width: min(440px, 100%);
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px 26px 0 0;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  animation: rise 0.3s ease both;
}
.sheet-card h2 { margin: 10px 0 6px; font-size: 26px; }
.sheet-card p { margin: 0; }
/* account sheet (same card as the age check) */
.account-card { position: relative; }
.account-x { position: absolute; top: 14px; right: 14px; }
.account-form { display: grid; gap: 10px; margin-top: 18px; }
.account-form input { text-align: center; font-size: 16px; }
.code-input { font-size: 26px !important; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }
.account-links { display: flex; justify-content: center; gap: 18px; margin-top: 4px; }
.account-signed { margin-top: 14px; }
.account-plan { color: var(--text); }
.account-card .error { margin-top: 12px; }
.link-btn { font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.link-btn.danger { color: var(--danger); }
.gate-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(255, 79, 139, 0.18); }
@media (min-width: 560px) {
  .sheet { place-items: center; }
  .sheet-card { border-radius: 26px; }
}

/* =====================================================================
   Setup wizard — one question per screen, asked in her voice.
   ===================================================================== */
.setup { display: grid; justify-items: center; padding: 0 16px; }
.wizard {
  width: min(620px, 100%);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 0 calc(18px + env(safe-area-inset-bottom));
}
.wz-top { display: flex; align-items: center; gap: 14px; }
.wz-progress { flex: 1; height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.wz-progress i { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.4s ease; }
.wz-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; }

.wz-her { display: flex; align-items: flex-end; gap: 12px; margin: 28px 0 22px; }
.wz-face { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.wz-said {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px;
  padding: 9px 14px 10px;
}
.wz-said b { display: block; font-size: 12px; color: var(--accent); }
.wz-said p { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.wz-said p.type { animation: appear 0.35s ease both; }

.step { border: 0; padding: 0; margin: 0; min-width: 0; animation: appear 0.3s ease both; }
.step-q {
  display: block;
  padding: 0;
  margin: 18px 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.step legend.step-q { margin-top: 0; }

.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chips label, .heat label { position: relative; }
.chips input, .heat input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.chips span {
  display: block;
  text-align: center;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.chips label:active span, .heat label:active span { transform: scale(0.98); }
.chips input:checked + span { border-color: var(--accent); background: rgba(255, 79, 139, 0.14); }
.chips input:focus-visible + span, .heat input:focus-visible + span { outline: 2px solid rgba(255, 79, 139, 0.5); }

.big-input { font-family: var(--serif); font-size: 24px !important; padding: 14px 16px; }
.lang-field { margin-top: 18px; }

.heat { display: grid; gap: 10px; }
.heat span {
  display: grid;
  gap: 2px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.heat b { font-size: 16px; }
.heat small { color: var(--muted); font-size: 13.5px; }
.heat input:checked + span { border-color: var(--accent); background: rgba(255, 79, 139, 0.12); box-shadow: inset 0 0 0 1px var(--accent); }

.wizard .personas { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.version-details { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.version-details summary { cursor: pointer; margin-bottom: 10px; }

.wizard .error { margin: 14px 0 0; }
.wizard .cta { max-width: none; margin-top: auto; animation: none; }
.wizard #wz-next, .wizard #start { margin-top: 28px; }
/* Phones: the button sits at the bottom, under the thumb. */
@media (max-width: 700px) {
  .step { margin-bottom: 28px; }
  .wizard #wz-next, .wizard #start { margin-top: auto; position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); }
}
.wizard #start { animation: pulse 2.6s 0.6s infinite; }
.wizard #mock-note { text-align: center; }

body.embedded .wizard { padding-top: 10px; }
body.embedded .wz-her { margin: 14px 0 12px; }

/* ---------- legal links, feedback, bot check ---------- */
.sheet-card .legal-line { margin-top: 16px; font-size: 12px; line-height: 1.5; }
.legal-line a, .legal-links a { color: var(--muted); text-underline-offset: 3px; }
.legal-line a:hover, .legal-links a:hover { color: var(--text); }
.legal-line .link-btn, .legal-links .link-btn { font-size: 12px; padding: 0; }
.fb-form { display: grid; gap: 10px; margin-top: 18px; text-align: left; }
.fb-kinds { grid-template-columns: 1fr 1fr; }
.fb-kinds span { padding: 10px 8px; font-size: 14px; }
.fb-form textarea { resize: vertical; min-height: 110px; font: inherit; }
.fb-form .muted.small { margin-top: -4px; }
.fb-done { display: grid; gap: 16px; margin-top: 18px; }
.nb-feedback { margin-top: 24px !important; text-align: center; }
.human-box { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; pointer-events: none; }
.human-box.show { pointer-events: auto; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
