/* CoGho pre-launch page: the showcase reel next to a short "almost ready" message and a "notify me" form.
   Same look as the web app's landing page (frontend/src/styles/LandingPage.css): white page, ink text, teal accents,
   mint panels - ink #111514, teal #159B82, teal-deep #0D5E50, mint #DDF3ED, line #e4eae7, muted #5f6e69. */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/poppins-latin-800-normal.woff2') format('woff2'); }

:root {
  --ink: #111514;
  --surface: #ffffff;
  --soft: #F7F9F8;
  --line: #e4eae7;
  --text: #111514;
  --muted: #5f6e69;
  --teal: #159B82;
  --teal-deep: #0D5E50;
  --teal-text: #0F7A66; /* teal for small text on white - #159B82 is too light for body sizes */
  --mint: #DDF3ED;
  --error: #C2412D;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1000px 600px at 10% -10%, rgba(221, 243, 237, 0.9), transparent 60%),
    #fff;
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: var(--teal-text); }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* ---- header ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.logo { width: 132px; height: auto; display: block; }
.pill {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  padding: 6px 14px; border-radius: 999px;
  color: var(--teal-deep); background: var(--mint); border: 1px solid #bfe8dc;
  text-decoration: none;
}
.pill:hover { color: #fff; background: var(--teal); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.ig {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--teal-deep); background: var(--mint); border: 1px solid #bfe8dc;
}
.ig:hover { color: #fff; background: var(--teal); }
.ig-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- layout: head / reel / body. Phone: stacked in that order. Wide: reel on the left, text on the right. ---- */
.hero {
  display: grid;
  grid-template-areas: "head" "reel" "body";
  gap: 28px;
  padding: 8px 0 56px;
}
.head { grid-area: head; }
.reel { grid-area: reel; }
.body { grid-area: body; }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "reel head" "reel body";
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 6vw, 88px);
    row-gap: 28px;
    padding-top: 24px;
  }
  .reel { align-self: start; position: sticky; top: 24px; }
}

/* ---- message ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--teal-text);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(21, 155, 130, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(21, 155, 130, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 155, 130, 0); } }

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.2vw, 48px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em;
}
h1 span { display: block; color: var(--teal); }
.lead { margin: 0; max-width: 58ch; font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); }
.lead strong { color: var(--text); font-weight: 600; }

/* ---- reel ---- */
.reel { margin: 0; justify-self: center; }
.reel-frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: #F7F9F8;
  box-shadow: 0 30px 70px -24px rgba(13, 94, 80, 0.35), 0 0 0 1px var(--line);
  /* Own compositing layer, painted in isolation: the reel's per-frame redraws don't repaint the page, and scrolling
     the page just moves the layer instead of repainting the reel. */
  isolation: isolate;
  contain: layout paint;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
@media (min-width: 960px) {
  .reel-frame { width: auto; height: min(calc(100vh - 140px), 760px); min-height: 520px; }
}
#stage { width: 100%; height: 100%; display: block; }
#stage .t { font-family: 'Poppins', Montserrat, 'Helvetica Neue', Arial, sans-serif; font-weight: 800; }
#avatar .sameColor { fill: var(--skin); }
#avatar .dressFill { fill: var(--dress); }
#avatar .dressBorder { fill: var(--border); }
#avatar .headShadow { fill: #2B3633; }
#avatar .pupilWhiteParts, #avatar .pupilSmallCircle { fill: #fff; }
#avatar .leftPupilTopHalf, #avatar .rightPupilTopHalf { fill: #111514; }
#avatar .leftPupilBottomHalf, #avatar .rightPupilBottomHalf { fill: #159B82; }
#avatar .leftPupilMiddle, #avatar .rightPupilMiddle { fill: #0B0F0E; }

.reel-toggle {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(17, 21, 20, 0.72); color: #fff; /* no backdrop blur: it would re-blur the animation every frame */
  transition: background 0.15s;
}
.reel-toggle:hover { background: rgba(17, 21, 20, 0.85); }
.reel-icon { width: 18px; height: 18px; fill: currentColor; }
.reel-icon-play, .reel-toggle.is-paused .reel-icon-pause { display: none; }
.reel-toggle.is-paused .reel-icon-play { display: block; }

/* ---- progress ---- */
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 2px; max-width: 520px; }
.steps li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500;
}
.steps li:last-child { border-bottom: 0; }
.mark { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); position: relative; }
.is-done .mark { background: var(--teal); border-color: var(--teal); }
.is-done .mark::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.is-now .mark { border-color: var(--teal); }
.is-now .mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--teal);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.state { font-size: 13px; color: var(--muted); font-weight: 500; }
.is-now .state { color: var(--teal-text); }
.is-done .state { color: var(--teal-deep); }
.why { margin: 0 0 28px; max-width: 58ch; color: var(--muted); }

/* ---- sign-up ---- */
.notify {
  max-width: 520px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.notify h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.notify-sub { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.notify-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; /* 16px stops iOS zooming into the field */
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21, 155, 130, 0.2); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.consent input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }

.btn {
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 16px;
  color: #fff; background: var(--teal);
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--teal-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.7; cursor: progress; }

.status { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--teal-deep); }
.status.is-error { color: var(--error); }
.status:empty { display: none; }
.privacy { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

.thanks:focus { outline: none; }
.thanks h2 { color: var(--teal-deep); }
.thanks p { margin: 0; color: var(--muted); }

/* ---- features ---- */
.features, .faq { padding: 64px 0 24px; border-top: 1px solid var(--line); }
.kicker { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--teal-text); text-transform: uppercase; letter-spacing: 0.08em; }
.features h2, .faq h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
.section-intro { margin: 0 0 32px; max-width: 70ch; color: var(--muted); font-size: clamp(16px, 1.4vw, 17px); }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature {
  padding: 22px; border-radius: 20px; border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 21, 20, 0.04);
}
.feature-icon {
  width: 44px; height: 44px; padding: 9px; border-radius: 12px; margin-bottom: 14px;
  background: var(--mint); fill: none; stroke: var(--teal-deep);
  stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; overflow: visible;
}
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.features-cta { margin: 28px 0 0; }
.btn-link { display: inline-flex; align-items: center; text-decoration: none; color: #fff; }
.btn-link:hover { color: #fff; }

/* ---- FAQ ---- */
.faq { padding-bottom: 56px; }
.faq details { max-width: 820px; border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* ---- footer ---- */
.footer {
  display: grid; gap: 20px;
  padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.footer p { margin: 0 0 4px; }
.footer-logo { width: 96px; height: auto; display: block; margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
@media (min-width: 760px) {
  /* Brand + contact on the left, registered entities on the right. */
  .footer { grid-template-columns: 1fr auto; align-items: end; column-gap: 48px; }
  .footer-legal { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse, .is-now .mark::after { animation: none; }
}

/* ---- 404 ---- */
.notfound { padding: 12vh 0 20vh; }
.notfound .lead { margin-bottom: 28px; }
