/* Witcat landing. Dark only, like the app.
   --bg is the color the browser draws for Wit's videos, so the clips have no
   visible edge. Keep anything with its own fill (cards, glows) out from behind
   a .wit video, or the square shows. */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #181a17;
  --text: #f6f8f5;
  --soft: #d5dcd7;
  --muted: #9ba49e;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .14);
  --raise: rgba(255, 255, 255, .035);
  --pink: #ff8db9;
  --pink-edge: #ed72a1;
  --pink-glow: rgba(255, 141, 185, .3);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 1160px;
  --pad: clamp(20px, 5vw, 40px);
  --phone: clamp(196px, 23vw, 292px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 1.0625rem/1.6 "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 12px; }
::selection { background: var(--pink); color: #171916; }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 12px;
  background: var(--pink); color: #171916; font-weight: 800;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }
/* The side phones and the glow reach past the screen edge on phones. Clip them
   here, not on body: iOS Safari still pans sideways when only body clips. */
main { overflow-x: clip; }

/* Navigation */

.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(24, 26, 23, .74);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.32rem; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--soft); font-weight: 700; font-size: .95rem;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: var(--raise); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-weight: 800; font-size: .8rem; letter-spacing: .08em;
  transition: color .2s, border-color .2s;
}
.lang:hover { color: var(--text); border-color: var(--line-strong); }

/* Buttons: clones of the app's MichiCTAButton at its standard metrics.
   45pt face, 4pt depth, 12pt corners, 16pt bold rounded uppercase label.
   .btn-pink is the .start style, .btn-ghost the .login style. */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 45px; padding: 7px 16px; margin-bottom: 4px; border-radius: 12px;
  font: 700 16px/1.2 ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  text-transform: uppercase; white-space: nowrap;
  transition: transform .1s ease-out, box-shadow .1s ease-out;
}
.btn:active { transform: translateY(4px); box-shadow: none; }
.btn-pink { background: #ff8db9; color: #181a19; box-shadow: 0 4px 0 #ed72a1; }
.btn-ghost { background: #181a19; color: #ff8db9; border: 1.5px solid #595f60; box-shadow: 0 4px 0 #595f60; }

.store { display: inline-block; border-radius: 12px; transition: transform .25s var(--ease), filter .25s; }
.store img { height: 54px; width: auto; }
.store:hover { transform: translateY(-2px); filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .5)); }

/* Wit's clips. A thin feather at the edges hides any one-level color
   difference between browsers; the color match does the rest. */

.wit {
  width: 100%; height: auto; aspect-ratio: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

/* Hero */

.hero { text-align: center; padding-top: 20px; }
.hero-wit { width: clamp(184px, 21vw, 244px); margin: 0 auto 4px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 7px 15px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03);
  color: var(--soft); font-size: .9rem; font-weight: 800;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 141, 185, .18); }

h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1.3rem + 5.6vw, 5.7rem); line-height: .98; }
.line { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; }
.accent { color: var(--pink); }
.lead { max-width: 40rem; margin: 24px auto 0; color: var(--soft); font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); line-height: 1.55; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 34px; }
.meta { margin: 20px 0 0; color: var(--muted); font-size: .92rem; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .line > span { transform: translateY(105%); animation: rise 1.05s var(--ease) .1s forwards; }
  .line:nth-child(2) > span { animation-delay: .18s; }
  .line:nth-child(3) > span { animation-delay: .26s; }
  .hero .pill, .hero .lead, .hero .cta-row, .hero .meta { opacity: 0; animation: fade-up .9s var(--ease) forwards; }
  .hero .lead { animation-delay: .38s; }
  .hero .cta-row { animation-delay: .48s; }
  .hero .meta { animation-delay: .58s; }
  .lineup { opacity: 0; animation: fade-up 1.2s var(--ease) .55s forwards; }
}
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Phones: real screen recordings in a drawn frame, floating like the launch video. */

.lineup {
  position: relative; display: grid; place-items: end center;
  margin: 76px auto 0; padding-bottom: 12px; isolation: isolate;
}
.lineup::before {
  content: ""; position: absolute; left: 50%; top: 55%; z-index: -1;
  width: min(1040px, 130vw); height: 78%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 141, 185, .2), rgba(255, 141, 185, .07) 55%, transparent);
  filter: blur(12px); pointer-events: none;
}
.slot { grid-area: 1 / 1; }
.slot-center { z-index: 3; }
.slot-left { z-index: 2; transform: translateX(-64%) translateY(-4%) rotate(-7deg) scale(.86); }
.slot-right { z-index: 2; transform: translateX(64%) translateY(-4%) rotate(7deg) scale(.86); }

.phone {
  position: relative; width: var(--phone);
  padding: calc(var(--phone) * .034);
  border-radius: calc(var(--phone) * .168);
  background: linear-gradient(150deg, #4c504d 0%, #1c1e1d 16%, #0b0c0b 50%, #1c1e1d 84%, #3e423f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    inset 0 0 0 2px rgba(0, 0, 0, .65),
    0 50px 90px -40px rgba(0, 0, 0, .95),
    0 0 90px -34px var(--pink-glow);
}
.screen {
  position: relative; overflow: hidden; aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--phone) * .136); background: #121413;
}
.screen video { width: 100%; height: 100%; object-fit: cover; }
.phone::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .12) 47%, rgba(255, 255, 255, .02) 54%, transparent 60%) no-repeat;
  background-size: 320% 100%; background-position: 100% 0;
}

@media (prefers-reduced-motion: no-preference) {
  .phone { animation: float 7s ease-in-out infinite; }
  .slot-left .phone { animation-duration: 8s; animation-delay: -2.4s; }
  .slot-right .phone { animation-duration: 7.6s; animation-delay: -4.2s; }
  @supports (animation-timeline: view()) {
    .phone::after { animation: sheen linear both; animation-timeline: view(); animation-range: entry 30% cover 60%; }
  }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Sections */

.section { padding-top: clamp(96px, 11vw, 156px); }
.head { max-width: 47rem; margin: 0 auto; text-align: center; }
.eyebrow { margin: 0 0 14px; color: var(--pink); font-size: .8rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 1.25rem + 3.6vw, 3.9rem); line-height: 1.03; }
.head > p:not(.eyebrow) { margin: 20px auto 0; max-width: 38rem; color: var(--soft); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); text-wrap: pretty; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* How it works */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.card {
  border: 1px solid var(--line); border-radius: 30px; padding: 24px 24px 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .3s;
}
.card:hover { border-color: var(--line-strong); }
.visual { height: 280px; display: grid; place-items: center; margin-bottom: 20px; }
.visual > .wit { width: 248px; }
.num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 50%; background: rgba(255, 141, 185, .14); color: var(--pink); font-weight: 900; font-size: .95rem;
}
.card h3 { font-size: 1.45rem; letter-spacing: -.02em; }
.card p { margin: 10px 0 0; color: var(--soft); }
.tag {
  display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 141, 185, .12); color: var(--pink); font-size: .82rem; font-weight: 800;
}

/* Step 1: the app's + menu, satellite for satellite (CreateSourceRadialMenu):
   56pt chips, 3.5pt lip, 30pt icons, fanned on a 138pt radius at -55, -18.5,
   18.5 and 55 degrees from straight up. --u is one point, shrunk only when
   the card is narrower than the fan. */
.card { container-type: inline-size; }
.fan { --u: min(1px, 100cqw / 340); position: relative; width: calc(340 * var(--u)); height: calc(150 * var(--u)); }
.sat { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); }
.s1 { left: calc(57 * var(--u)); top: calc(56.8 * var(--u)); }
.s2 { left: calc(126.2 * var(--u)); top: calc(5.1 * var(--u)); }
.s3 { left: calc(213.8 * var(--u)); top: calc(5.1 * var(--u)); }
.s4 { left: calc(283 * var(--u)); top: calc(56.8 * var(--u)); }
.sat-face {
  display: grid; place-items: center; width: calc(56 * var(--u)); height: calc(56 * var(--u));
  border-radius: 50%; background: #232e35; box-shadow: 0 calc(3.5 * var(--u)) 0 #18222a;
}
.sat-face img { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
.sat-label {
  margin-top: calc(10.5 * var(--u)); padding: calc(4 * var(--u)) calc(9 * var(--u)); border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: #fff; white-space: nowrap;
  font: 700 calc(12 * var(--u))/1.2 ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
}

/* Step 3: a slice of the real path, drawn in the app's own units (points).
   The current lesson with its three-part ring, a locked gift, a locked
   lesson, and the unit's Wit opposite the swing (-1.18 x the 85pt rung,
   124pt x 1.25 in dark mode). --s converts points to pixels. */
.slice {
  --s: min(.84px, 100cqw / 318); position: relative;
  width: calc(280 * var(--s)); height: calc(316 * var(--s)); margin-left: calc(37.5 * var(--s));
}
.slice-path { display: block; width: 100%; height: 100%; overflow: visible; }
.slice .slice-wit { position: absolute; left: calc(-37.5 * var(--s)); top: calc(178.5 * var(--s)); width: calc(155 * var(--s)); }
.slice-path .float { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .slice-path .float { animation: node-float 1.8s ease-in-out .2s infinite alternate; }
  .slice-path .f2 { animation-duration: 1.7s; animation-delay: .75s; }
  .slice-path .f3 { animation-duration: 1.9s; animation-delay: .45s; }
}
/* SubjectMapNodeFloat: an 8pt rise with a 1.8% swell, eased both ways. */
@keyframes node-float { to { transform: translateY(-8px) scale(1.018); } }

/* Practice */

.reactions { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(4px, 1.6vw, 20px); max-width: 1000px; margin: 52px auto 0; }
.sub { margin-top: 84px; text-align: center; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); letter-spacing: -.02em; }
.powerups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.pu {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 24px;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
}
.pu img { width: 52px; height: 52px; flex: none; }
.pu h4 { margin: 2px 0 6px; font-size: 1.1rem; letter-spacing: -.01em; }
.pu p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* Progress */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split .head { margin: 0; text-align: left; }
.split .head > p:not(.eyebrow) { margin-left: 0; }
.split .wit { width: clamp(150px, 15vw, 200px); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-weight: 800; font-size: .98rem;
}
.chip img { width: 34px; height: 34px; }
.solo { display: grid; place-items: center; }
.solo .phone { --phone: clamp(220px, 25vw, 300px); }

/* Units */

.units { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 2vw, 26px); max-width: 920px; margin: 52px auto 0; }

/* Demo video: a poster until someone presses play, then YouTube's nocookie player. */

.film {
  position: relative; max-width: 1000px; margin: 52px auto 0; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 28px; border: 1px solid var(--line-strong); background: #101210;
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .95), 0 0 120px -50px var(--pink-glow);
}
.film a, .film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.film a:hover img { transform: scale(1.025); filter: brightness(1.06); }
.play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: var(--pink); color: #171916;
  box-shadow: 0 6px 0 var(--pink-edge), 0 22px 50px rgba(240, 96, 152, .45);
  transition: transform .25s var(--ease);
}
.play svg { width: 32px; height: 32px; margin-left: 5px; }
.film a:hover .play { transform: scale(1.07); }
.caption { margin: 18px auto 0; text-align: center; color: var(--muted); font-size: .92rem; font-weight: 700; }

/* Plus */

.plus {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  max-width: 1000px; margin: 52px auto 0; padding: clamp(28px, 5vw, 56px); border-radius: 36px;
  border: 1px solid rgba(255, 141, 185, .26);
  background: linear-gradient(160deg, rgba(255, 141, 185, .13), rgba(255, 141, 185, .025) 48%, rgba(255, 255, 255, .015));
}
.hearts { position: relative; display: grid; place-items: center; width: 184px; height: 184px; }
.hearts img { width: 124px; height: 124px; filter: drop-shadow(0 18px 30px rgba(220, 50, 80, .45)); }
.hearts span { position: absolute; right: 2px; bottom: 6px; color: var(--pink); font-size: 3.4rem; font-weight: 900; line-height: 1; }
.plus h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -.025em; }
.plus p { margin: 10px 0 22px; color: var(--soft); }
.perks { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); font-weight: 700; }
.perks svg { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--pink); }

/* Closing */

.final { text-align: center; }
.final .wit { width: clamp(210px, 23vw, 280px); margin: 0 auto 4px; }
.final .store { margin-top: 30px; }

.footer { margin-top: clamp(104px, 13vw, 160px); padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer nav a { color: var(--soft); font-weight: 700; }
.footer nav a:hover { color: var(--text); }
.legal { display: grid; gap: 6px; margin-top: 24px; font-size: .82rem; line-height: 1.5; }
.legal p { margin: 0; }

/* Narrow screens */

@media (max-width: 980px) {
  .steps, .powerups { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .split .head { margin: 0 auto; text-align: center; }
  .split .head > p:not(.eyebrow) { margin-inline: auto; }
  .split .wit { margin-inline: auto; }
  .chips { justify-content: center; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}

@media (max-width: 700px) {
  .slot-left { transform: translateX(-58%) translateY(-3%) rotate(-7deg) scale(.82); }
  .slot-right { transform: translateX(58%) translateY(-3%) rotate(7deg) scale(.82); }
  .reactions, .units {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad);
  }
  .reactions::-webkit-scrollbar, .units::-webkit-scrollbar { display: none; }
  .reactions > *, .units > * { scroll-snap-align: start; }
  .plus { grid-template-columns: 1fr; text-align: center; }
  .hearts { margin: 0 auto; }
  .perks { text-align: left; max-width: 24rem; margin-inline: auto; }
  .store img { height: 50px; }
}

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