@font-face { font-family: 'Inter Tight'; src: url(inter-tight.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

/* Night, Surface, Moon and steel come from the Dusk palette. Rule for corners: controls are pills, pictures are 16px. */
:root {
  --night: #0B0B0D;
  --surface: #141417;
  --moon: #F4F1EC;
  --steel: #D6D2CC;
  --muted: #98948E;
  --line: rgba(244, 241, 236, .1);
  --rose: #FF6F7D;
  --sun: linear-gradient(180deg, #FFD6A5, #FF6F7D 52%, #C81E63);
  --r: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(88px, 13vw, 176px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: var(--ease);
  --snap: cubic-bezier(.3, 1.5, .5, 1);
}

/* Real springs where the browser has linear(). --spring settles, --snap overshoots by about 16%. */
@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .056, .186, .346, .508, .654, .776, .871, .94, .988, 1.017, 1.032, 1.038, 1.038, 1.033, 1.028, 1.021, 1.015, 1.01, 1.006, 1.003, 1.001, 1, .999, .999, .999, 1);
    --snap: linear(0, .09, .3, .549, .782, .965, 1.087, 1.149, 1.163, 1.144, 1.109, 1.068, 1.031, 1.002, .984, .975, .974, .977, .983, .99, .996, 1, 1.003, 1.004, 1.004, 1.004, 1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); color: var(--moon); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--night); font: 400 17px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2 { margin: 0; font-family: 'Inter Tight', Inter, sans-serif; font-weight: 600; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; }
main { overflow-x: clip; }

.cta { display: inline-flex; align-items: center; height: 54px; padding: 0 28px; border-radius: 999px; background: var(--moon); color: var(--night); font: 600 18px/1 'Inter Tight', Inter, sans-serif; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: transform .16s var(--ease), background-color .16s; }
.cta:hover { background: #fff; }
.cta:active { transform: scale(.97); }
.cta.small { height: 40px; padding: 0 18px; font-size: 15px; }

.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: block; }
.brand img { width: 93px; height: auto; }

.hero { padding-top: clamp(24px, 3.6vw, 44px); }
.hero-copy { display: grid; justify-items: center; gap: 20px; text-align: center; margin-bottom: clamp(40px, 4.4vw, 56px); }
h1 { font-size: clamp(3.4rem, 9vw, 6.5rem); letter-spacing: -.035em; line-height: 1; }
.hero-copy p { max-width: 34em; color: var(--steel); font-size: clamp(1.06rem, 1.6vw, 1.25rem); text-wrap: balance; }
.hero-copy .cta { margin-top: 8px; }
.hero-copy small { color: var(--muted); font-size: 13.5px; }

/* The hero: Dusk above the line, the old page below it. --y is how far the line has travelled. */
.stage { --y: 62%; position: relative; aspect-ratio: 16 / 9; border-radius: var(--r) var(--r) 0 0; box-shadow: 0 0 0 1px var(--line); touch-action: pan-x pinch-zoom; user-select: none; -webkit-user-select: none; }
.stage .after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: inherit; }
.before { position: absolute; inset: 0; overflow: hidden; clip-path: inset(var(--y) 0 0 0); background: #fff; border-radius: inherit; }
.before img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stage picture { display: contents; }
.glow { position: absolute; inset: 0; pointer-events: none; clip-path: inset(0 0 calc(100% - var(--y)) 0); background: linear-gradient(0deg, rgba(255, 111, 125, .26), rgba(255, 111, 125, 0) 34%); background-position: 0 var(--y); }
.horizon { position: absolute; top: var(--y); left: 50%; width: 100vw; height: 2px; margin: -1px 0 0 -50vw; background: var(--moon); pointer-events: none; }
.sun { position: absolute; top: var(--y); left: 50%; width: 148px; height: 74px; margin: -74px 0 0 -74px; padding: 0; border: 0; background: none; cursor: grab; overflow: visible; clip-path: inset(-140px -140px 0 -140px); touch-action: none; }
.sun:active { cursor: grabbing; }
.dome { position: absolute; inset: 0; border-radius: 148px 148px 0 0; background: var(--sun); background-size: 100% 200%; box-shadow: 0 -8px 70px 10px rgba(255, 111, 125, .45); transition: transform .2s var(--ease); transform-origin: 50% 100%; }
.sun:hover .dome, .sun:focus-visible .dome { transform: scale(1.05); }
.sun:focus-visible { outline: none; }
.sun:focus-visible .dome { outline: 2px solid var(--moon); outline-offset: 4px; }
.hint { position: absolute; top: var(--y); left: calc(50% + 92px); margin-top: -40px; padding: 3px 12px; border-radius: 999px; background: rgba(11, 11, 13, .78); color: var(--moon); font-size: 15px; font-style: italic; font-weight: 300; pointer-events: none; opacity: 0; transform: scale(.7); transform-origin: 0 50%; transition: opacity .2s, transform .6s var(--snap); }
.stage.ready .hint { opacity: 1; transform: none; }
.stage.moved .hint { opacity: 0; }
.js .stage.intro { --y: 6%; }

/* The opening, about 3 seconds in all. Every keyframe runs from its "from" to the element's resting style, so a page that loses its CSS animations just shows the finished hero. The old page's sink starts from site.js at 1.45 s. */
.hero { position: relative; isolation: isolate; overflow-x: clip; }
.hero::before { content: ''; position: absolute; z-index: -1; left: 50%; top: clamp(200px, 25vw, 320px); width: min(1500px, 150vw); height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 111, 125, .2), rgba(200, 30, 99, .08) 56%, transparent); pointer-events: none; animation: sky 1.5s var(--ease) .9s backwards; }
.nav .brand { animation: drop .7s var(--ease) backwards; }
.nav .cta { animation: drop .7s var(--ease) .08s backwards; }
.w { display: inline-block; overflow: clip; padding: .06em .03em; margin: -.06em -.03em; vertical-align: top; }
.w > span { display: inline-block; transform-origin: 0 100%; animation: word .95s var(--spring) .12s backwards; }
.w:nth-child(2) > span { animation-delay: .19s; }
.w:nth-child(3) > span { animation-delay: .26s; }
.hero-copy p { animation: lift .7s var(--ease) .42s backwards; }
.hero-copy .cta { animation: pop .7s var(--snap) .54s backwards; }
.hero-copy small { animation: lift .7s var(--ease) .66s backwards; }
.stage { transform-origin: 50% 0; animation: stage-in 1.15s var(--spring) .48s backwards; }
.horizon { animation: draw .8s var(--ease) 1s backwards; }
.dome { animation: sun-up .75s var(--spring) 1.15s backwards; }

@keyframes drop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes word { from { transform: translateY(112%) rotate(5deg); } }
@keyframes lift { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
@keyframes stage-in { from { opacity: 0; transform: perspective(1500px) translateY(96px) rotateX(16deg) scale(.95); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes sun-up { from { opacity: 0; transform: translateY(104%); } }
@keyframes sky { from { opacity: 0; transform: translateX(-50%) scale(.7); } }

.count { padding-top: var(--gap); }
.big { font-family: 'Inter Tight', Inter, sans-serif; font-weight: 600; font-size: clamp(2.2rem, 6.4vw, 4.75rem); letter-spacing: -.03em; line-height: 1.06; text-wrap: balance; }
.big.stagger > span { display: block; }
.dim { color: var(--muted); }
#clicks { display: inline-block; font-weight: inherit; font-variant-numeric: tabular-nums; text-align: right; }
.fine { margin-top: 24px; max-width: 44em; color: var(--muted); font-size: 14.5px; }

.film { position: relative; margin-top: clamp(48px, 7vw, 88px); }
.film video { width: 100%; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }

.play { position: absolute; left: 50%; top: 50%; height: 54px; padding: 0 26px; transform: translate(-50%, -50%); border: 0; border-radius: 999px; background: rgba(11, 11, 13, .86); box-shadow: 0 0 0 1px var(--line); color: var(--moon); font: 600 17px/1 'Inter Tight', Inter, sans-serif; cursor: pointer; transition: background-color .16s; }
.play:hover { background: var(--night); }
.film video:not([controls]) { cursor: pointer; }
.sound { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: rgba(11, 11, 13, .8); box-shadow: 0 0 0 1px var(--line); color: var(--moon); font: 600 15px/1 'Inter Tight', Inter, sans-serif; cursor: pointer; transition: background-color .16s, transform .16s var(--ease); }
.sound:hover { background: var(--night); }
.sound:active { transform: scale(.96); }

.shot { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 90px -50px rgba(255, 111, 125, .35); }
.shot img { width: 100%; }

.head { display: grid; gap: 16px; max-width: 42em; margin-bottom: clamp(32px, 4vw, 48px); }
.head p, .copy p, .private > p { color: var(--steel); font-size: clamp(1.06rem, 1.5vw, 1.19rem); }
.wide, .course, .also, .private, .faq { margin-top: var(--gap); }

/* A live demo. It holds its shape until it mounts, and the page's own glow sits behind it, as under the hero. */
.demo { position: relative; isolation: isolate; aspect-ratio: var(--ar); }
.demo.live { aspect-ratio: auto; }
.demo::before { content: ''; position: absolute; z-index: -1; inset: -6% -4%; background: radial-gradient(closest-side, rgba(255, 111, 125, .14), rgba(200, 30, 99, .05) 58%, transparent); pointer-events: none; }
.demo.plain::before, .tile .demo::before { display: none; }
.demo noscript img { width: 100%; border-radius: var(--r); }

.steps { list-style: none; display: grid; gap: 0; margin: 8px 0 0; padding: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px 1fr; padding: 16px 0; border-top: 1px solid var(--line); color: var(--steel); font-size: 17px; counter-increment: step; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; color: var(--rose); font-weight: 600; font-variant-numeric: tabular-nums; transition: transform .5s var(--snap); }
.steps b { display: block; color: var(--moon); font-weight: 600; }
/* The demo beside the list lights the step it has reached. */
.js .steps.in:has([data-on]) > li { opacity: .62; transition: opacity .4s ease; transition-delay: 0s; }
.js .steps.in > li[data-on] { opacity: 1; }
.steps li[data-on]::before { transform: scale(1.3); }

/* Picture runs off the far edge of the page, so the copy keeps the left or right gutter of the column. */
.split { --edge: max(var(--gutter), calc((100vw - 1120px) / 2)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: var(--gap); padding-left: var(--edge); overflow-x: clip; }
.split.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); padding-left: 0; padding-right: var(--edge); }
.copy { display: grid; gap: 16px; }

.also h2 { margin-bottom: clamp(24px, 3vw, 36px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.tile { grid-column: span 5; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.tile > p { padding: 22px 24px 14px; color: var(--muted); font-size: 17px; line-height: 1.4; }
.tile b { color: var(--moon); font-weight: 600; }
.tile .demo { margin-top: auto; }
.t-search { grid-column: span 7; grid-row: span 2; }
.t-classic { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
.t-classic .demo { margin-top: 0; }

.private .big { font-size: clamp(2rem, 5vw, 3.75rem); max-width: 16em; }
.private > p { margin-top: 20px; max-width: 38em; }
.private a { color: var(--moon); text-underline-offset: 3px; }
.private .demo { margin-top: clamp(24px, 4vw, 40px); }

.faq h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 20px; }
details { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
details:last-of-type { border-bottom: 1px solid var(--line); }
details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .42s var(--ease), opacity .3s ease, content-visibility .42s allow-discrete; }
details[open]::details-content { block-size: auto; opacity: 1; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; transition: color .16s; }
summary:hover { color: #fff; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--snap); }
details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details p { max-width: 44em; padding-bottom: 20px; color: var(--steel); font-size: 16px; }

/* The last thing on the page: the sun goes down as you reach the end. --set runs from 0 to 1. */
.last { --set: 0; position: relative; margin-top: var(--gap); padding: clamp(72px, 12vw, 144px) 0 clamp(220px, 26vw, 300px); overflow: hidden; text-align: center; background: linear-gradient(0deg, rgba(255, 111, 125, calc(.3 - var(--set) * .16)), rgba(255, 111, 125, 0) 74%); border-bottom: 2px solid var(--moon); }
.last .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 20px; }
.last img { width: 214px; height: auto; }
.last p { font-family: 'Inter Tight', Inter, sans-serif; font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.02em; }
.dusk-sun { position: absolute; left: 50%; bottom: 0; width: min(420px, 74vw); aspect-ratio: 2 / 1; margin-left: calc(min(420px, 74vw) / -2); border-radius: 420px 420px 0 0; background: var(--sun); box-shadow: 0 -10px 110px 24px rgba(255, 111, 125, .42); transform: translateY(calc(var(--set) * 84%)); will-change: transform; }

/* Stays in reach once the first button has scrolled away. */
.dock { position: fixed; z-index: 20; right: 20px; bottom: 20px; height: 46px; padding: 0 22px; font-size: 16px; box-shadow: 0 0 0 1px rgba(11, 11, 13, .3), 0 18px 40px -14px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(16px) scale(.92); pointer-events: none; transition: opacity .25s ease, transform .5s var(--snap), background-color .16s; }
.dock.on { opacity: 1; transform: none; pointer-events: auto; }

.foot p { max-width: 46em; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 24px; }
.foot a { display: inline-flex; align-items: center; min-height: 24px; text-underline-offset: 3px; }

/* Reveals only ever run with script on, so a page without it stays readable. */
.js .rise { opacity: 0; transform: translateY(32px) scale(.98); transition: opacity .6s var(--ease), transform .95s var(--spring); }
.js .demo.rise { transform-origin: 50% 0; transition: opacity .7s var(--ease), transform 1.15s var(--spring); }
.js .tilt.rise { transform: perspective(1500px) translateY(96px) rotateX(14deg) scale(.95); }
.js .bleed-right.rise { transform-origin: 100% 50%; transform: perspective(1600px) translateX(140px) rotateY(-12deg); }
.js .bleed-left.rise { transform-origin: 0 50%; transform: perspective(1600px) translateX(-140px) rotateY(12deg); }
/* Headings come up word by word, the way the hero's does. */
h2 .w > span { display: inline-block; transform-origin: 0 100%; }
.js h2.words.rise { opacity: 1; transform: none; }
.js h2.words .w > span { transform: translateY(112%) rotate(5deg); transition: transform .95s var(--spring) calc(var(--i, 0) * 55ms); }
.js h2.words.in .w > span { transform: none; }
.js .stagger.rise { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(28px) scale(.96); transition: opacity .5s var(--ease), transform .85s var(--spring); transition-delay: calc(var(--i, 0) * 80ms); }
.stagger > :nth-child(2) { --i: 1; }
.stagger > :nth-child(3) { --i: 2; }
.stagger > :nth-child(4) { --i: 3; }
.js .rise.in, .js .stagger.in > * { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 var(--gutter); }
  .split.flip { padding: 0 var(--gutter) 0 0; }
  .split.flip .copy { order: -1; padding-left: var(--gutter); }
  .split .copy { padding-right: var(--gutter); }
  .split.flip .copy { padding-right: 0; }
  .tile, .t-search, .t-classic { grid-column: span 12; }
  .t-classic { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* Phones get both pages in their phone layouts, so nothing is cropped from the side. */
  .stage { aspect-ratio: 39 / 62; }
  .demo { aspect-ratio: var(--ar-c); }
  .demo.live { aspect-ratio: auto; }
  .dock { right: 12px; bottom: 12px; height: 42px; padding: 0 18px; font-size: 15px; }
  .sound { left: 10px; bottom: 10px; gap: 6px; height: 32px; padding: 0 12px 0 10px; font-size: 13px; }
  .sound svg { width: 15px; height: 15px; }
  .sun { width: 112px; height: 56px; margin: -56px 0 0 -56px; }
  .hint { left: auto; right: 8px; margin-top: -36px; font-size: 14px; }
  .foot { flex-direction: column; }
}

@media (max-width: 359px) {
  .cta.small { padding: 0 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rise, .js .stagger > *, .js .tilt.rise, .js .bleed-right.rise, .js .bleed-left.rise, .js h2.words .w > span { opacity: 1; transform: none; }
}

/* The legal pages */
.doc { max-width: 42em; padding: 40px 0 88px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 8px; letter-spacing: -.015em; }
.doc p, .doc li { color: var(--steel); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 8px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc .date { color: var(--muted); font-size: 15px; }
