/* The waitlist front page (joinjouvay.com). Loads after the website's /styles.css (site/styles.css),
   which sets the look; this file adds the sign-up card, the example screen and this page's layout.
   Simplified 28 October at Nicole's request: the logo and name as the title on the deep purple, one
   solid white sign-up card with a dark button, and the app beside it on a tilted phone. */

[hidden] { display: none !important; }

/* ---------- Hero: the logo and name on the deep purple (the website's .hero panel and grid) ---------- */
.w-copy { min-width: 0; }
.w-brand { display: flex; align-items: center; gap: 18px; }
.w-brand img { width: 72px; height: 72px; flex: none; border-radius: 18px; box-shadow: 0 0 0 1px rgba(251, 248, 253, 0.2), 0 14px 30px -12px rgba(0, 0, 0, 0.6); }
.w-hero h1 { font-size: clamp(60px, 7.4vw, 92px); line-height: 1; letter-spacing: -0.015em; }
.w-hero .hero-lead { max-width: 36ch; }

/* ---------- The sign-up card ---------- */
.join-card {
  max-width: 520px; margin-top: 30px; padding: 22px;
  border-radius: 24px; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.65);
  text-align: left; scroll-margin-top: 96px;
}
.join-title { margin: 0 0 14px; font-size: 18px; font-weight: 600; color: var(--ink); }
.join-row { display: grid; gap: 10px; }
.join-row input {
  width: 100%; min-height: 54px; padding: 0 20px; border: 0; border-radius: 999px;
  font: 400 17px/1 var(--sans); color: var(--ink); background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow 0.2s var(--ease);
}
.join-row input::placeholder { color: var(--ink-3); }
.join-row input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-2), 0 0 0 4px var(--accent-soft); }
.join-row input.bad { box-shadow: inset 0 0 0 2px #9b2730; }
.join-row .btn { width: 100%; min-height: 54px; border: 0; cursor: pointer; font-size: 17px; }
.join-row .btn[disabled] { opacity: 0.75; cursor: progress; }
@media (min-width: 560px) {
  .join-row { grid-template-columns: minmax(0, 1fr) auto; }
  .join-row .btn { width: auto; }
}

.hint { font-size: 14.5px; color: #9b2730; }
.hint:not(:empty) { margin: 10px 4px 0; }
.hint button, .join-card .link {
  font: inherit; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0 0 1px; cursor: pointer;
  border-bottom: 1px solid currentColor;
}

.detected { display: flex; align-items: center; gap: 8px; margin: 14px 4px 0; font-size: 15px; color: var(--ink-2); }
.detected svg { width: 18px; height: 18px; flex: none; color: var(--accent-2); }
.detected .link { margin-left: auto; }

.choices { display: grid; gap: 14px; margin-top: 18px; }
.choices fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background 0.2s, color 0.2s;
}
.pick input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.pick input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.consent { position: relative; display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.consent input { position: absolute; width: 22px; height: 22px; margin: 0; opacity: 0; }
.consent .box {
  flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background 0.2s;
}
.consent input:checked + .box { background: var(--ink); box-shadow: none; }
.consent input:checked + .box::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.consent input:focus-visible + .box { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.join-fine { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

/* After sign-up */
.done { padding: 10px 6px 4px; text-align: center; outline: none; }
.done-ic { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--sage-bg); color: var(--sage); }
.done-ic svg { width: 24px; height: 24px; }
.done h2 { font-size: 30px; line-height: 1.1; }
.done p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.done strong { color: var(--ink); font-weight: 600; }

/* ---------- The app on a tilted phone, with a check-in card floating over it ---------- */
.w-stage { position: relative; display: flex; flex-direction: column; align-items: center; perspective: 1600px; }
.tilt { transform: rotateY(-16deg) rotateX(7deg) rotateZ(2deg); transform-style: preserve-3d; transition: transform 0.9s var(--ease); }
.w-stage:hover .tilt { transform: rotateY(-7deg) rotateX(3deg) rotateZ(1deg); }
.w-stage .phone { width: 300px; height: 600px; }
.w-float { left: -64px; top: auto; bottom: 96px; width: 236px; padding: 12px; }
.w-float .p-check small { font-size: 11px; }
.w-float .p-check b { font-size: 14px; }
.w-float .p-answers span { padding: 7px 4px; font-size: 11px; }
.example { margin-top: 22px; font-size: 13px; color: var(--hero-faint); }
.s-title { margin: 0 2px 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.s-search { padding: 11px 14px; border-radius: 999px; background: var(--surface); color: var(--ink-3); font-size: 12px; box-shadow: var(--shadow-card); }
.s-seg { display: grid; grid-template-columns: 1fr 1fr; margin: 10px 0; padding: 3px; border-radius: 999px; background: var(--surface-2); text-align: center; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.s-seg span { padding: 7px 0; border-radius: 999px; }
.s-seg .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.s-chips { flex-wrap: nowrap; gap: 6px; overflow: hidden; }
.s-chips .chip { padding: 6px 10px; gap: 6px; font-size: 11.5px; }
.s-chips .dots i { width: 11px; height: 11px; }
.p-row em { margin-left: auto; font-style: normal; text-align: right; font-size: 15px; font-weight: 600; line-height: 1.1; color: var(--accent); }
.p-row em small { font-size: 9.5px; font-weight: 400; color: var(--ink-3); }

/* ---------- How it works: a small piece of the app on each step ---------- */
.w-h2 { text-align: center; }
.w-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  max-width: 1000px; margin: 40px auto 0; padding: 0; list-style: none;
}
.w-step { padding: 14px 14px 26px; }
.w-art {
  display: grid; place-items: center; height: 200px; margin-bottom: 22px; padding: 16px;
  border-radius: 18px; background: var(--bg); font-family: var(--app);
}
.w-step h3 { padding: 0 10px; font-size: 20px; line-height: 1.25; }
.w-step p { margin-top: 8px; padding: 0 10px; font-size: 16px; color: var(--ink-2); }

.mini-search {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 7px 7px 16px;
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card);
  font-size: 14px; color: var(--ink-3);
}
.mini-search > svg { width: 17px; height: 17px; flex: none; }
.mini-search span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-scan { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--cta); color: var(--on-cta); }
.mini-scan svg { width: 18px; height: 18px; }

.w-art .chips { justify-content: center; }
.w-art .chip { font-size: 13.5px; }

.mini-routine {
  display: grid; gap: 7px; width: 100%; max-width: 230px; padding: 12px 16px;
  border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); font-size: 14px;
}
.mini-routine b { font-size: 13px; font-weight: 600; color: var(--accent-2); }
.mini-routine span { display: flex; align-items: center; gap: 10px; }
.mini-routine i { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.mini-routine .ticked { color: var(--ink-3); }
.mini-routine .ticked i { background: var(--accent); box-shadow: none; }
.mini-routine .ticked i::after { content: ''; position: absolute; left: 5px; top: 5px; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }

/* ---------- Why Nicole is building it ---------- */
.w-founder {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 44px; align-items: center;
  max-width: 980px; margin: 0 auto; padding: 44px;
}
.founder-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.w-founder h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; }
.w-founder p { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.w-founder .sign { margin-top: 18px; font-family: var(--serif); font-size: 26px; color: var(--ink); }
.w-founder .w-role { margin-top: 2px; font-size: 14px; color: var(--ink-3); }

.last-call .btn { margin-top: 28px; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 900px) {
  .w-brand { justify-content: center; }
  .w-hero .hero-lead { margin: 0 auto; }
  .join-card { margin-left: auto; margin-right: auto; }
  .w-float { left: 50%; bottom: 110px; margin-left: -250px; }
  .w-steps { grid-template-columns: 1fr; max-width: 520px; }
  .w-founder { grid-template-columns: 1fr; justify-items: center; gap: 24px; padding: 32px 24px; text-align: center; }
  .founder-photo { width: 120px; height: 120px; }
}
@media (max-width: 560px) {
  .w-brand { gap: 14px; }
  .w-brand img { width: 54px; height: 54px; border-radius: 14px; }
  .w-hero h1 { font-size: 58px; }
  .w-hero .hero-lead { font-size: 16.5px; }
  .join-card { margin-top: 22px; padding: 16px; }
  .join-title { font-size: 17px; text-align: center; }
  .tilt { transform: rotateY(-10deg) rotateX(5deg) rotateZ(1.5deg); }
  .w-stage .phone { width: 272px; height: 548px; }
}
