/* ---------------------------------------------------------
   Approve — waitlist landing page styles
--------------------------------------------------------- */

:root {
  --bg-deep: #0A120D;
  --bg-panel: #0F1B14;
  --bg-panel-raised: #142720;
  --gold: #E8B34C;
  --gold-dim: rgba(232, 179, 76, 0.45);
  --mint: #4ADE80;
  --cream: #F4EFE4;
  --cream-dim: rgba(244, 239, 228, 0.66);
  --cream-faint: rgba(244, 239, 228, 0.38);
  --hairline: rgba(244, 239, 228, 0.12);
  --danger: #E8734C;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
}

/* Ambient background texture: a couple of soft glows, no gradient mesh */
body {
  background-image:
    radial-gradient(600px 420px at 82% -6%, rgba(232, 179, 76, 0.10), transparent 60%),
    radial-gradient(520px 420px at 8% 18%, rgba(74, 222, 128, 0.06), transparent 60%);
  background-repeat: no-repeat;
}

/* ---------------------------------------------------------
   Logo mark
--------------------------------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.logo-stamp {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--gold);
  border-radius: 7px;
  transform: rotate(-7deg);
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------
   Nav
--------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(10, 18, 13, 0.72);
  border-bottom: 1px solid var(--hairline);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg-deep);
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover { background: #f0c069; }
.nav-cta:active { transform: scale(0.97); }

/* ---------------------------------------------------------
   Buttons (shared)
--------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn-primary:hover { background: #f0c069; }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--hairline);
}

.btn-ghost:hover { border-color: var(--cream-faint); }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */

.hero {
  padding: 88px 0 70px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.proof-counter {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream-dim);
  margin: 0 0 20px;
}

.proof-counter::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 9px;
  flex: none;
}

.proof-counter strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--mint);
  margin: 0 4px;
}

h1.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--cream);
}

.sub {
  font-size: 1.13rem;
  color: var(--cream-dim);
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ---------------------------------------------------------
   Phone mockup — signature element
--------------------------------------------------------- */

.phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}

.phone-stage::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 179, 76, 0.16), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}

.phone-caption {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cream-faint);
  text-align: center;
  margin: 0;
}

.device-frame {
  position: relative;
  z-index: 1;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: 30px;
  padding: 14px 14px 26px;
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.3);
}

.device-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px 16px;
}

.chrome-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--hairline);
}

.chrome-url {
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cream-faint);
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 16px;
}

.phone {
  position: relative;
  width: 290px;
  height: 592px;
  border-radius: 40px;
  background: #060a08;
  border: 1px solid rgba(244, 239, 228, 0.08);
  padding: 14px;
  margin: 0 auto;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(420px 300px at 50% 0%, #17281f 0%, var(--bg-panel) 55%, #081008 100%);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #050705;
  border-radius: 14px;
  z-index: 3;
}

.phone-time {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(244, 239, 228, 0.5);
  letter-spacing: 0.02em;
}

.phone-date {
  position: absolute;
  top: 116px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(244, 239, 228, 0.32);
  letter-spacing: 0.04em;
}

/* the animated notification card */
.notif {
  position: absolute;
  top: 168px;
  left: 16px;
  right: 16px;
  background: rgba(20, 39, 32, 0.92);
  border: 1px solid rgba(244, 239, 228, 0.1);
  border-radius: 18px;
  padding: 15px 16px 16px;
  backdrop-filter: blur(6px);
  animation: notifCycle 7s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.notif-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.notif-mark {
  width: 18px;
  height: 18px;
  flex: none;
  border: 1.2px dashed var(--gold);
  border-radius: 5px;
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.62rem;
  color: var(--gold);
}

.notif-app {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cream-dim);
  letter-spacing: 0.02em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-when {
  font-size: 0.68rem;
  color: var(--cream-faint);
  flex: none;
}

.notif-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--cream);
  margin: 0 0 6px;
}

.notif-body {
  font-size: 0.86rem;
  color: var(--cream);
  line-height: 1.4;
  margin: 0 0 14px;
}

.notif-body b { color: var(--gold); font-weight: 700; }

.notif-actions {
  display: flex;
  gap: 10px;
  animation: actionsFade 7s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.notif-actions button {
  flex: 1;
  border: none;
  border-radius: 11px;
  padding: 10px 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: default;
}

.notif-decline {
  background: rgba(244, 239, 228, 0.08);
  color: var(--cream-dim);
}

.notif-approve {
  background: var(--gold);
  color: var(--bg-deep);
  animation: approvePress 7s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.notif-approved {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  opacity: 0;
  transform: scale(0.85);
  animation: approvedReveal 7s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.notif-approved .tick {
  width: 15px;
  height: 8px;
  border-left: 2.5px solid var(--bg-deep);
  border-bottom: 2.5px solid var(--bg-deep);
  transform: rotate(-45deg);
  background: var(--mint);
  border-radius: 1px;
  padding: 3px;
  box-sizing: content-box;
}

.notif-approved span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mint);
}

@keyframes notifCycle {
  0%             { transform: translateY(-130%); opacity: 0; }
  9%, 86%        { transform: translateY(0);      opacity: 1; }
  96%, 100%      { transform: translateY(-130%); opacity: 0; }
}

@keyframes actionsFade {
  0%, 54%   { opacity: 1; transform: scale(1); }
  62%, 100% { opacity: 0; transform: scale(0.94); }
}

@keyframes approvePress {
  0%, 50%   { transform: scale(1); background: var(--gold); }
  55%       { transform: scale(0.9); background: var(--gold); }
  60%, 100% { transform: scale(1); background: var(--mint); }
}

@keyframes approvedReveal {
  0%, 58%   { opacity: 0; transform: scale(0.85); }
  68%, 90%  { opacity: 1; transform: scale(1); }
  100%      { opacity: 0; transform: scale(0.85); }
}

/* ---------------------------------------------------------
   Problem section
--------------------------------------------------------- */

.section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
  color: var(--cream);
}

.section-sub {
  color: var(--cream-dim);
  font-size: 1.02rem;
  max-width: 62ch;
  margin: 14px 0 0;
}

.problem-blocks {
  display: grid;
  gap: 20px;
}

.problem-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 44px;
}

.problem-block:nth-child(even) {
  background: var(--bg-panel-raised);
}

.problem-block.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.problem-block.reverse .problem-copy { order: 2; }
.problem-block.reverse .problem-visual { order: 1; }

.problem-tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 18px;
}

.problem-copy h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--gold);
  margin: 0 0 14px;
}

.problem-copy p {
  color: var(--cream-dim);
  font-size: 0.98rem;
  margin: 0;
  max-width: 48ch;
}

.problem-visual {
  position: relative;
  height: 160px;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1.5px dashed var(--gold-dim);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cream-dim);
  background: var(--bg-deep);
  white-space: nowrap;
}

.chip-1 { top: 8%;  left: 4%;  transform: rotate(-6deg); }
.chip-2 { top: 34%; left: 32%; transform: rotate(4deg); z-index: 2; border-color: var(--gold); border-style: solid; color: var(--cream); }
.chip-3 { top: 60%; left: 8%;  transform: rotate(-3deg); }
.chip-4 { top: 44%; left: 60%; transform: rotate(8deg); }

/* ---------------------------------------------------------
   How it works — ghost numerals
--------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.step {
  position: relative;
  padding: 0 28px 0 0;
  border-left: 1px solid var(--hairline);
  padding-left: 28px;
}

.step:first-child { border-left: none; padding-left: 0; }

.step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 6.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--gold-dim);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.28rem;
  margin: 0 0 10px;
  color: var(--cream);
}

.step p {
  color: var(--cream-dim);
  font-size: 0.94rem;
  margin: 0;
  max-width: 30ch;
}

/* ---------------------------------------------------------
   Waitlist form
--------------------------------------------------------- */

.waitlist {
  background: var(--bg-panel);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.waitlist-card {
  max-width: 620px;
  margin: 0 auto;
}

.waitlist .section-head { margin-left: auto; margin-right: auto; text-align: center; }

.toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-panel-raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  margin: 0 auto 34px;
}

.toggle-row { display: flex; justify-content: center; }

.toggle button {
  border: none;
  background: transparent;
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.toggle button.active {
  background: var(--gold);
  color: var(--bg-deep);
}

form#waitlist-form {
  display: grid;
  gap: 16px;
}

.field { display: grid; gap: 7px; }

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cream-dim);
}

.field input,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--cream);
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

.field input::placeholder { color: var(--cream-faint); }

.field input:focus,
.field select:focus {
  border-color: var(--gold-dim);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.platform-fields {
  display: grid;
  gap: 16px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.platform-fields.open {
  max-height: 260px;
  opacity: 1;
  margin-top: 2px;
}

.form-submit {
  width: 100%;
  margin-top: 6px;
  padding: 16px 0;
  font-size: 1rem;
}

.form-msg {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
}

.form-msg.show { display: block; }

.form-msg.ok {
  color: var(--mint);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.form-msg.err {
  color: var(--danger);
  background: rgba(232, 115, 76, 0.1);
  border: 1px solid rgba(232, 115, 76, 0.25);
}

.referral-panel {
  display: none;
  gap: 18px;
  margin-top: 8px;
}

.referral-panel.show { display: grid; }

.referral-position {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  margin: 0;
  text-align: center;
}

.referral-progress {
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.95rem;
  margin: 0;
}

.referral-share {
  display: flex;
  gap: 10px;
}

.referral-share input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--cream-dim);
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 13px 16px;
}

.referral-copy {
  flex: none;
  white-space: nowrap;
  padding: 13px 22px;
}

/* ---------------------------------------------------------
   Congratulatory overlay
--------------------------------------------------------- */

.congrats-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 10, 8, 0.78);
  backdrop-filter: blur(6px);
}

.congrats-overlay.show {
  display: flex;
  animation: overlayFade 0.25s ease;
}

.congrats-card {
  position: relative;
  max-width: 380px;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 44px 32px 34px;
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  animation: cardRise 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.congrats-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--cream-faint);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.congrats-close:hover { color: var(--cream); border-color: var(--cream-faint); }

.congrats-stamp {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px dashed var(--mint);
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  transform: rotate(-6deg);
  animation: stampPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.congrats-stamp .check {
  width: 30px;
  height: 16px;
  border-left: 4px solid var(--mint);
  border-bottom: 4px solid var(--mint);
  transform: rotate(-45deg) translateY(-2px);
}

.congrats-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 10px;
}

.congrats-eyebrow em { color: var(--mint); }

.congrats-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--cream);
  margin: 0 0 14px;
}

.congrats-position {
  font-size: 0.98rem;
  color: var(--cream-dim);
  margin: 0 0 26px;
}

.congrats-continue {
  width: 100%;
}

@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cardRise {
  from { transform: translateY(16px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes stampPop {
  0%   { transform: rotate(-6deg) scale(0.4); opacity: 0; }
  60%  { transform: rotate(-6deg) scale(1.08); opacity: 1; }
  100% { transform: rotate(-6deg) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .congrats-overlay.show,
  .congrats-card,
  .congrats-stamp {
    animation: none !important;
  }
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */

.footer {
  padding: 56px 0 40px;
}

.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-meta {
  color: var(--cream-faint);
  font-size: 0.82rem;
  text-align: right;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .phone-stage { order: -1; margin-bottom: 12px; }
  .phone { width: 240px; height: 490px; }
  .phone-time { font-size: 2.3rem; top: 44px; }
  .phone-date { top: 92px; }
  .notif { top: 138px; }

  .problem-block,
  .problem-block.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }

  .problem-block.reverse .problem-copy,
  .problem-block.reverse .problem-visual {
    order: initial;
  }

  .problem-visual { height: 120px; }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .step { border-left: none; padding-left: 0; }

  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .footer .wrap { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .notif,
  .notif-actions,
  .notif-approve,
  .notif-approved {
    animation: none !important;
  }
}
