/* Chongwu AI */

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

:root {
  --bg: #FFFFFF;
  --wash: #FFF1EA;
  --peach: #FFE3D6;
  --tint: #FFF6F2;
  --ink: #1B1B1F;
  --ink-2: #4A4A55;
  --ink-3: #666671;
  --line: #EFE7E2;
  --line-2: #D9D2CD;
  --coral: #CC3D21;
  --coral-deep: #A8301A;
  --error: #B3261E;
  --on-coral: #FFFFFF;

  --sans: "Poppins", ui-rounded, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-control: .875rem;
  --r-pic: 1.25rem;
  --r-card: 1.75rem;
  --pad: clamp(1.25rem, 5.5vw, 5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --out: cubic-bezier(.16, 1, .3, 1);
  --shadow-card: 0 1px 2px rgb(27 27 31 / .04), 0 30px 70px -30px rgb(27 27 31 / .25);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  scrollbar-color: var(--line-2) var(--bg);
}
body {
  margin: 0;
  background: linear-gradient(var(--wash), var(--bg) 34rem) no-repeat, var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--peach); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: .375rem; }

h1, h2, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -200vw; width: 1px; height: 1px; opacity: 0; }
.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 30;
  padding: .625rem 1rem; border-radius: var(--r-control);
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: min(80rem, 100% - 2 * var(--pad)); margin-inline: auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--out), border-color .25s var(--out);
}
.is-scrolled .nav { background: var(--bg); border-bottom-color: var(--line); }
.nav-in { height: 5rem; display: flex; align-items: center; gap: 2.25rem; }
.brand { margin-right: auto; white-space: nowrap; font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; text-decoration: none; }
.nav-links { display: none; gap: 2.25rem; font-size: 1rem; font-weight: 500; }
.nav-links a { color: var(--ink-2); white-space: nowrap; text-decoration: none; transition: color .2s var(--out); }
.nav-links a:hover { color: var(--ink); text-decoration: underline; }
.pill {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.25rem;
  border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--out);
}
.pill:hover { background: var(--coral-deep); }

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 4vw, 3.5rem) 0 var(--section); }
.hero-in { display: grid; gap: 3rem; align-items: center; }
h1 {
  max-width: 13ch;
  font-weight: 700; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.125rem); line-height: 1.06;
  letter-spacing: -.03em; text-wrap: balance;
}
.hero-sub {
  margin-top: 1.5rem; max-width: 32.5rem;
  font-size: clamp(1.125rem, 1rem + .45vw, 1.25rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty;
}

/* ---------- waitlist form ---------- */
/* The form and its "you're in" state share one cell, so joining moves nothing below it. */
.join { display: grid; margin-top: 2rem; max-width: 30rem; }
.join > * { grid-area: 1 / 1; min-width: 0; }
.join > [hidden] { display: block !important; visibility: hidden; }
.done { align-self: center; }
.ask-row { display: grid; gap: .625rem; }
.field {
  min-width: 0; width: 100%; height: 3.625rem; padding: 0 1.125rem;
  border: 1px solid var(--line-2); border-radius: var(--r-control);
  background: var(--bg); color: var(--ink); caret-color: var(--coral);
  transition: border-color .2s var(--out), outline-color .2s var(--out);
  outline: 3px solid transparent; outline-offset: 0;
}
.field::placeholder { color: var(--ink-3); opacity: 1; }
.field:hover { border-color: var(--ink-3); }
.field:focus-visible { border-color: var(--coral); outline-color: var(--peach); border-radius: var(--r-control); }
.field[aria-invalid="true"] { border-color: var(--error); }
.btn {
  min-height: 3.625rem; padding: 0 1.5rem;
  border: 0; border-radius: var(--r-control);
  background: var(--coral); color: var(--on-coral);
  font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--out), transform .2s var(--out);
}
.btn:hover { background: var(--coral-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { border-radius: var(--r-control); }
.btn:disabled { background: var(--coral-deep); cursor: progress; }
.note { margin-top: .875rem; font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.oops { margin-top: .875rem; font-size: .875rem; line-height: 1.5; font-weight: 600; color: var(--error); }
.oops:empty { display: none; }
.oops:not(:empty) ~ .note { display: none; }
.nojs { display: none; margin-top: .5rem; font-size: .875rem; font-weight: 600; color: var(--error); }
html:not(.js) .nojs { display: block; }
.done p { font-size: 1.125rem; line-height: 1.5; }
.done b { font-weight: 600; overflow-wrap: anywhere; }
.done .note { margin-top: .25rem; }
.again {
  margin: .375rem 0 0 -.625rem; min-height: 2.75rem; padding: 0 .625rem; border: 0; background: none;
  font-size: .9375rem; font-weight: 600; color: var(--coral-deep);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; cursor: pointer;
}
.again:hover { color: var(--ink); }
.again:focus-visible { outline-offset: 0; border-radius: var(--r-control); }

/* ---------- the example ---------- */
.eg { min-width: 0; width: 100%; max-width: 38rem; margin-inline: auto; scroll-margin-top: 6rem; }
.eg-card {
  padding: clamp(1rem, 3.5vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--bg); box-shadow: var(--shadow-card);
}
.eg-pic { position: relative; border-radius: var(--r-pic); background: var(--peach); overflow: hidden; }
.scene svg { display: block; width: 100%; height: auto; }
.part { color: var(--ink); transition: color .3s var(--out); }
.part.is-on { color: var(--coral); }
.part-f { fill: currentColor; }
.part-s { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.part-j { fill: currentColor; stroke: currentColor; stroke-width: 8; stroke-linejoin: round; }
.w17 { stroke-width: 17; } .w22 { stroke-width: 22; } .w26 { stroke-width: 26; } .w27 { stroke-width: 27; }
.w28 { stroke-width: 28; } .w30 { stroke-width: 30; } .w52 { stroke-width: 52; } .w92 { stroke-width: 92; }
.wag { transform-origin: 494px 136px; }
.wag.is-wagging { animation: wag .32s ease-in-out 8 alternate; }
@keyframes wag { from { transform: rotate(-8deg); } to { transform: rotate(9deg); } }

.seg { display: flex; width: max-content; margin-bottom: 1rem; padding: .25rem; border-radius: 999px; background: var(--wash); }
html:not(.js) .seg { display: none; }
.seg-b {
  min-width: 4.5rem; min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: 999px;
  background: none; color: var(--ink-2); font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s var(--out), color .2s var(--out);
}
.seg-b:hover { color: var(--ink); }
.seg-b[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg-b:focus-visible { border-radius: 999px; outline-offset: 2px; }

/* Both animals' rows share one cell, so switching never changes the card's height. */
.reads-stack { display: grid; margin-top: 1rem; }
.reads-stack > * { grid-area: 1 / 1; min-width: 0; }
.reads-stack > [hidden] { display: grid !important; visibility: hidden; }
.reads { display: grid; gap: .75rem; align-content: start; }
.read {
  display: grid; gap: .125rem; width: 100%; padding: .875rem 1.125rem; text-align: left;
  border: 1px solid var(--line); border-radius: 1rem;
  background: var(--bg); font-size: 1rem; line-height: 1.45; cursor: pointer;
  transition: border-color .3s var(--out), background-color .3s var(--out);
}
.read:hover { border-color: var(--line-2); }
.read:focus-visible { border-radius: 1rem; }
.read[aria-pressed="true"] { border-color: var(--coral); background: var(--tint); }
.read b { font-weight: 600; }
.read span { color: var(--ink-2); }
.eg figcaption { margin: 1rem auto 0; max-width: 32rem; text-align: center; font-size: .875rem; line-height: 1.5; color: var(--ink-3); text-wrap: balance; }

/* ---------- sections ---------- */
.sec { padding-block: var(--section); }
h2 {
  font-weight: 700; font-size: clamp(2rem, 1.5rem + 2.1vw, 3rem); line-height: 1.1;
  letter-spacing: -.028em; text-wrap: balance;
}
.two { display: grid; gap: 2.5rem; }
.lead { margin-top: 1.25rem; max-width: 30rem; font-size: 1.125rem; color: var(--ink-2); text-wrap: pretty; }

.moments { border-bottom: 1px solid var(--line); }
.moments li {
  padding-block: 1.125rem; border-top: 1px solid var(--line);
  font-weight: 600; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem); line-height: 1.25; letter-spacing: -.015em;
}

.stand { padding: clamp(1.75rem, 5vw, 4rem); border-radius: var(--r-card); background: var(--wash); }
.facts { display: grid; gap: 1.75rem 3rem; margin-top: 2.25rem; }
.facts dt { font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.facts dd { margin-top: .25rem; font-size: 1.1875rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; }

.faq-wrap { width: min(48rem, 100% - 2 * var(--pad)); margin-inline: auto; }
.faq-wrap h2 { text-align: center; }
.faq { margin-top: 2.5rem; border-bottom: 1px solid var(--line); }
.q { border-top: 1px solid var(--line); }
.q summary {
  display: grid; grid-template-columns: 1fr 1.5rem; gap: 1rem; align-items: center;
  min-height: 4.25rem; padding: .875rem 0;
  list-style: none; cursor: pointer; font-size: 1.125rem; font-weight: 600; line-height: 1.35;
  transition: color .2s var(--out);
}
.q summary::-webkit-details-marker { display: none; }
.q summary:hover { color: var(--coral-deep); }
.ic { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.ic .v { transform-origin: 12px 12px; transition: transform .3s var(--out); }
.q[open] .ic .v { transform: scaleY(0); }
.q > p { padding: 0 2.5rem 1.375rem 0; max-width: 38rem; color: var(--ink-2); text-wrap: pretty; }

/* ---------- close ---------- */
.close { padding-bottom: var(--section); }
.panel {
  padding: clamp(2.75rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: var(--r-card); background: var(--coral); color: var(--on-coral); text-align: center;
}
.panel > p { margin: 1rem auto 0; max-width: 30rem; font-size: 1.125rem; color: var(--on-coral); text-wrap: balance; }
.panel .join { margin-inline: auto; text-align: center; }
.panel ::selection { background: var(--ink); color: var(--bg); }
.panel :focus-visible { outline-color: var(--bg); }
.panel .field { border-color: transparent; }
.panel .field:focus-visible { border-color: var(--ink); outline-color: var(--bg); }
.panel .field[aria-invalid="true"] { border-color: var(--ink); }
.panel .btn { background: var(--ink); }
.panel .btn:hover, .panel .btn:disabled { background: #000000; }
.panel .note { color: var(--on-coral); }
.panel .oops, .panel .nojs { color: var(--on-coral); }
.panel .again { margin-left: 0; color: var(--on-coral); }
.panel .again:hover { color: var(--ink); }

/* ---------- footer ---------- */
.foot { padding-block: 0 2.5rem; font-size: .9375rem; color: var(--ink-3); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* ---------- wider ---------- */
@media (min-width: 34rem) {
  .ask-row { grid-template-columns: 1fr auto; }
  .read { grid-template-columns: 12.5rem 1fr; gap: 1rem; align-items: center; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 48rem) {
  .two { grid-template-columns: 5fr 6fr; gap: 4rem; }
  .facts { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 56rem) {
  .nav-links { display: flex; }
}

@media (min-width: 64rem) {
  .eg { max-width: 36.25rem; margin-inline: 0; justify-self: end; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5.5vw, 5rem); }
}

/* Short laptop screens: keep the whole example card above the fold. */
@media (min-width: 64rem) and (max-height: 48rem) {
  .nav-in { height: 4.25rem; }
  .hero { padding-top: 1rem; }
  .eg-card { padding: 1.25rem; }
  .seg { margin-bottom: .75rem; }
  .reads-stack { margin-top: .75rem; }
  .reads { gap: .5rem; }
  .read { padding-block: .625rem; }
}

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