/* AIBLE Academy · teaser
   The full site's look, cut down to one page: flat near-black canvas, solid tiles, pink only where it means something,
   one professional sans (Plus Jakarta Sans). No gradients. Read top to bottom: the question and the waitlist in the
   middle of the first screen, what you get under it, then the free session and what AIBLE means. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
:root {
  --canvas: #0E0B14;
  --surface: #17131F;
  --ink: #FFFFFF;
  --soft: #E6E3F0;
  --mute: #A59DB8;
  --line: rgba(236, 235, 246, .14);
  --line-2: rgba(236, 235, 246, .26);
  --tile-line: rgba(236, 235, 246, .08);
  --pink: #FE7EB1;
  --plum: #993083;
  --lilac: #DB8CCA;
  --blue: #5A8BF2;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 48px);
  --gap: clamp(12px, 1.3vw, 18px);
  --tr: 24px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--canvas); color: var(--soft);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ol, ul { margin: 0; }
a { color: var(--pink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
[hidden] { display: none !important; }
.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; }

/* type, as on the full site */
h1 { font-weight: 800; color: var(--ink); font-size: clamp(3rem, 8vw, 6.6rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
h2 { font-weight: 800; color: var(--ink); font-size: clamp(1.4rem, 2.3vw, 2.05rem); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
h3 { font-weight: 700; color: var(--ink); font-size: 1.05rem; line-height: 1.25; letter-spacing: -0.01em; }
.label { display: block; font-weight: 700; font-size: .78rem; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.sub { max-width: 30ch; font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--soft); text-wrap: balance; }
.small { font-size: .8125rem; line-height: 1.5; color: var(--mute); }

/* page frame */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand__aible { font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--pink); letter-spacing: .01em; }
.brand__academy { font-weight: 800; font-size: .6875rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); }
.soon { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line-2);
  font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
main { flex: 1; padding-block: clamp(4px, 1vw, 12px) clamp(24px, 3vw, 40px); }
/* the base line, as on tianyuxu.com: copyright on the left, Privacy in the corner (still the corner when it wraps on a phone) */
.end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 18px; padding-block: 4px 24px; font-size: .875rem; line-height: 1.4; color: var(--mute); }
.end p:last-child { margin-left: auto; }
.end a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: none; }
.end a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* bento: solid rounded tiles on a 12-column grid */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.bento + .bento { margin-top: var(--gap); }
.tile { position: relative; grid-column: span 12; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 2.6vw, 36px);
  background: var(--surface); border: 1px solid var(--tile-line); border-radius: var(--tr); }
.c4 { grid-column: span 4; } .c12 { grid-column: span 12; }

/* the hero: the question and the waitlist, centred in the first screen */
.hero { align-items: center; justify-content: center; gap: 20px; padding: clamp(36px, 6vw, 80px) clamp(22px, 4vw, 60px); text-align: center; }
@media (min-width: 761px) { .hero { min-height: min(640px, calc(100svh - 72px - 150px)); } }
.hero .label { margin-bottom: 4px; }

/* the waitlist form */
.join { display: grid; gap: 10px; width: 100%; max-width: 580px; margin-top: 10px; }
.join__lead { color: var(--soft); max-width: 46ch; margin-inline: auto; text-wrap: balance; }
.join__row { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: var(--canvas); border: 1.5px solid var(--line-2); transition: border-color .18s ease; }
.join__row:focus-within { border-color: var(--pink); }
.join input[type="email"] { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink);
  font: 500 1.0625rem/1 var(--font); }
.join input[type="email"]::placeholder { color: var(--mute); opacity: 1; }
.join input[type="email"]:focus { outline: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none; min-height: 50px; padding: 0 24px; border-radius: 12px;
  font: 700 .9375rem/1 var(--font); white-space: nowrap; text-decoration: none; cursor: pointer; color: var(--canvas); background: var(--pink); border: 2px solid var(--pink);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { width: 18px; height: 18px; }
.join__check { display: flex; justify-content: center; }
.join__check:empty { display: none; }
.join__status { font-size: .9375rem; color: var(--soft); }
.join__status:empty { display: none; }
.hp { position: absolute; left: -9999px; }

/* after joining */
.done { display: grid; justify-items: center; gap: 6px; width: 100%; max-width: 580px; margin-top: 10px; padding: 24px 22px; border-radius: 18px;
  background: var(--canvas); border: 1.5px solid var(--pink); }
.done:focus { outline: none; }   /* focus moves here so screen readers announce it; no ring needed */
.done__tick { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 50%; background: var(--pink); color: var(--canvas); }
.done__tick svg { width: 22px; height: 22px; }
.done h2 { font-size: 1.3rem; }
.done p { color: var(--soft); }

/* the faculty, small: three faces and one line. Each face sits in the middle of its own colour. */
.faces { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; text-align: left; }
.faces__pics { display: flex; flex: none; }
.face { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid var(--surface); }
.face + .face { margin-left: -12px; }
.face--shamane { background: var(--plum); }
.face--cindi { background: var(--lilac); }
.face--tianyu { background: var(--blue); }
.face img { width: 100%; height: 100%; }
.faces p { font-size: .9375rem; line-height: 1.45; color: var(--soft); max-width: 44ch; text-wrap: pretty; }
.faces b { color: var(--ink); font-weight: 700; }

/* what you get: three short points under the hero */
.point { gap: 10px; }
.point__n { font-weight: 800; font-size: 1.05rem; line-height: 1; letter-spacing: .02em; color: var(--pink); }
.point h2 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
.point p { color: var(--soft); text-wrap: pretty; }

/* the free session */
.watch { align-items: center; text-align: center; gap: 22px; }
.watch__head { display: grid; justify-items: center; gap: 10px; }
.watch__head p { color: var(--soft); max-width: 52ch; }
.video { position: relative; width: 100%; max-width: 880px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--canvas); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--canvas); }
.video__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 80%; }
.video__play { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--pink); color: var(--canvas); transition: transform .18s ease, background-color .18s ease; }
.video__play svg { width: 28px; height: 28px; margin-left: 3px; }
.video__poster:hover .video__play { transform: scale(1.06); background: var(--ink); }

/* AIBLE: one skill for each letter, as on the full site */
.tile__head { display: grid; gap: 12px; max-width: 760px; }
.aible { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 6px clamp(14px, 2vw, 28px); list-style: none; margin: 8px 0 0; padding: 0; }
.aible li { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
.aible__l { font-weight: 800; font-size: clamp(4.2rem, 9vw, 8.4rem); line-height: .86; letter-spacing: -0.04em; color: var(--pink); }
.aible h3 { margin-top: 14px; }
.aible p { font-size: 1rem; color: var(--soft); }
.layer { margin-top: 6px; font-weight: 700; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }

/* plain pages: thank you, privacy */
.page { max-width: 820px; gap: 18px; padding: clamp(28px, 4vw, 60px); }
.page h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
.page h2 { margin-top: 10px; font-size: 1.15rem; }
.page p { max-width: 62ch; }
.page .btn { align-self: flex-start; margin-top: 6px; }

/* the privacy policy (PDPA), laid out like tianyuxu.com's: title and dates, then the contents beside the reading tile.
   On a phone the contents fold into one line; on a laptop they stay open and follow you down the page. */
.legal__head { gap: 14px; }
.legal__head h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
.legal__lead { max-width: 60ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--soft); text-wrap: pretty; }
.legal__dates { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 4px 0 0; font-size: .9375rem; }
.legal__dates div { display: flex; gap: 8px; }
.legal__dates dt { font-weight: 700; color: var(--ink); }
.legal__dates dd { margin: 0; color: var(--soft); }
.legal__toc { padding-block: clamp(10px, 1.4vw, 24px); }
.legal__toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.legal__toc summary::-webkit-details-marker { display: none; }
.legal__toc summary::after { content: ""; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft);
  transform: translateY(-3px) rotate(45deg); transition: transform .18s ease; }
.legal__toc details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.legal__toc ol { list-style: none; margin: 4px 0 6px; padding: 0; }
.legal__toc a { display: flex; gap: 12px; padding: 6px 0; line-height: 1.35; color: var(--soft); text-decoration: none; }
.legal__toc a span { flex: none; width: 2ch; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; }
.legal__toc a:hover { color: var(--ink); }
.legal__read { gap: 16px; }
.legal__read h2 { margin-top: 26px; font-size: clamp(1.25rem, 1.8vw, 1.5rem); scroll-margin-top: 20px; }
.legal__read h2:first-child { margin-top: 0; }
.legal__num { display: block; margin-bottom: 8px; font-weight: 700; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.legal__read p, .legal__read li { max-width: 68ch; color: var(--soft); }
.legal__read ul { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; }
.legal__read li::marker { color: var(--pink); }
.legal__read strong { font-weight: 700; color: var(--ink); }
.legal__read .btn { align-self: flex-start; margin-top: 14px; }
@media (min-width: 1000px) {
  .legal__toc { grid-column: span 4; position: sticky; top: 16px; align-self: start; max-height: calc(100svh - 32px); overflow: auto; }
  .legal__read { grid-column: span 8; }
  @supports selector(::details-content) {
    .legal__toc details::details-content { display: block; content-visibility: visible; }
    .legal__toc summary { min-height: 0; margin-bottom: 6px; pointer-events: none; }
    .legal__toc summary::after { display: none; }
  }
}

@media (max-width: 1080px) {
  .c4 { grid-column: span 12; }
}
@media (max-width: 760px) {
  .aible { grid-template-columns: 1fr; grid-template-rows: none; gap: 18px; }
  .aible li { grid-row: auto; grid-template-rows: none; grid-template-columns: 84px 1fr; align-items: center; gap: 2px 16px; }
  .aible__l { grid-row: 1 / span 3; font-size: 5.2rem; }
  .aible h3 { margin-top: 0; }
  .layer { margin-top: 2px; }
}
@media (max-width: 520px) {
  .join__row { flex-direction: column; }
  .join input[type="email"] { text-align: center; }
  .btn { width: 100%; }
  .soon { display: none; }
  .faces { flex-direction: column; text-align: center; gap: 10px; }
  .video__play { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: no-preference) {
  main .tile { animation: rise .7s cubic-bezier(.22, .61, .36, 1) both; }
  main .points .tile:nth-child(2) { animation-delay: .06s; }
  main .points .tile:nth-child(3) { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}
