/*
 * Homework Noti — website styles.
 *
 * The app's "Midnight" palette and typeface (src/lib/theme.ts), so the site
 * and the product read as one thing. Dark only, like the app.
 *
 * Motion rules: transform and opacity only, every loop pauses off-screen, and
 * prefers-reduced-motion turns all of it off (bottom of this file).
 */

@font-face {
  font-family: 'Jakarta';
  src: url('/assets/fonts/PlusJakartaSans_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Jakarta';
  src: url('/assets/fonts/PlusJakartaSans_600SemiBold.ttf') format('truetype');
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: 'Jakarta';
  src: url('/assets/fonts/PlusJakartaSans_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  color-scheme: dark;
  --bg: #07070c;
  --surface: #13141c;
  --surface-hi: #1a1b25;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #f5f5fa;
  --body: #c3c4d3;
  --muted: #8f91a8;
  --faint: #5d5f75;
  --bone: #e8e3d9;
  --bone-hi: #fcfaf5;
  --bone-deep: #c9c2b4;
  --on-bone: #0b0b12;
  --warning: #ffb74d;
  --success: #3ddc97;
  --violet: #7c6cff;
  --teal: #46e0d0;
  --pink: #ff5c7a;
  --amber: #ffb74d;
  --sky: #38bdf8;
  --lilac: #a78bfa;
  --wrap: 1180px;
  --gutter: 20px;
  --font: 'Jakarta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--body);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--bone);
  text-decoration-color: rgba(232, 227, 217, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: rgba(124, 108, 255, 0.4);
  color: #fff;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  margin: 0;
  font-weight: 800;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  max-width: 820px;
}

/* ------------------------------------------------------------------ language */

/* Every page carries both languages; only one is ever shown. Without
   JavaScript the page stays in English. */
html:not([data-lang='es']) body [lang='es'],
html[data-lang='es'] body [lang='en'] {
  display: none !important;
}

/* ---------------------------------------------------------------- backdrop */

/* Slow-moving colour behind everything, plus film grain so the dark never
   bands into flat steps. Both fixed, both decorative. */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora i {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
}
.aurora i:nth-child(1) {
  top: -38vmax;
  left: -18vmax;
  background: radial-gradient(closest-side, rgba(124, 108, 255, 0.26), transparent);
  animation: drift-a 26s var(--ease-in-out) infinite alternate;
}
.aurora i:nth-child(2) {
  top: -30vmax;
  right: -28vmax;
  background: radial-gradient(closest-side, rgba(70, 224, 208, 0.16), transparent);
  animation: drift-b 32s var(--ease-in-out) infinite alternate;
}
.aurora i:nth-child(3) {
  top: 40vh;
  left: 20vw;
  background: radial-gradient(closest-side, rgba(255, 92, 122, 0.09), transparent);
  animation: drift-c 38s var(--ease-in-out) infinite alternate;
}
@keyframes drift-a {
  to {
    transform: translate3d(14vmax, 10vmax, 0) scale(1.1);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-12vmax, 16vmax, 0) scale(0.92);
  }
}
@keyframes drift-c {
  to {
    transform: translate3d(-18vmax, -12vmax, 0) scale(1.15);
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: url('/assets/img/grain.png');
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* ------------------------------------------------------------------- reveal */

/* Hidden only when JavaScript is there to reveal them again. */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
html.js [data-reveal='scale'] {
  transform: translate3d(0, 40px, 0) scale(0.94);
}

/* Headline words rise out of their own line. */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split .wi {
  display: inline-block;
}
html.js .split .wi {
  transform: translate3d(0, 105%, 0) rotate(4deg);
  opacity: 0;
  transition:
    transform 1.1s var(--ease-out),
    opacity 0.8s var(--ease-out);
  transition-delay: calc(120ms + var(--i, 0) * 70ms);
}
html.js .split.is-in .wi {
  transform: none;
  opacity: 1;
}

/* --------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: min(1140px, calc(100% - 24px));
  transform: translateX(-50%);
  view-transition-name: site-nav;
}
.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  background: rgba(14, 14, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition:
    background 0.4s,
    box-shadow 0.4s,
    border-color 0.4s;
}
.nav.scrolled .nav-bar {
  background: rgba(12, 12, 19, 0.82);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.nav-progress {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -1px;
  height: 1px;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--violet), var(--teal), var(--bone));
  opacity: 0.85;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  margin-right: auto;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 13px;
  border-radius: 999px;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-links .nav-cta-m {
  display: none;
}

.langs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  flex: none;
}
.langs button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: 700 12px/1 var(--font);
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 999px;
  transition:
    color 0.2s,
    background 0.25s;
}
.langs button:hover {
  color: var(--text);
}
.langs button[aria-pressed='true'] {
  background: rgba(232, 227, 217, 0.14);
  color: var(--bone);
}

.nav-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  flex: none;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text);
  transition:
    transform 0.35s var(--ease-out),
    top 0.35s var(--ease-out);
}
.nav-toggle span:first-child {
  top: 17px;
}
.nav-toggle span:last-child {
  top: 23px;
}
.nav.open .nav-toggle span:first-child {
  top: 20px;
  transform: rotate(45deg);
}
.nav.open .nav-toggle span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-bar {
    padding: 0 8px 0 14px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-cta {
    display: none;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(14, 14, 22, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity 0.3s var(--ease-out),
      transform 0.4s var(--ease-out),
      visibility 0s 0.4s;
  }
  .nav.open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition:
      opacity 0.3s var(--ease-out),
      transform 0.4s var(--ease-out);
  }
  .nav-links a {
    font-size: 17px;
    padding: 14px 16px;
    border-radius: 16px;
  }
  .nav-links .nav-cta-m {
    display: flex;
    margin-top: 6px;
  }
}
@media (max-width: 380px) {
  .brand span {
    display: none;
  }
}

/* ----------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: 700 15.5px/1 var(--font);
  letter-spacing: -0.1px;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.4s var(--spring),
    box-shadow 0.4s var(--ease-out),
    background 0.3s,
    color 0.3s;
}
.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}
.btn-primary {
  color: var(--on-bone);
  background: linear-gradient(180deg, var(--bone-hi), var(--bone) 55%, var(--bone-deep));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 12px 32px -10px rgba(232, 227, 217, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 40px -10px rgba(232, 227, 217, 0.6);
}
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px var(--border-strong) inset;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.btn-ghost .arrow {
  transition: transform 0.4s var(--spring);
}
.btn-ghost:hover .arrow {
  transform: translateY(3px);
}
/* "Coming soon": a real-looking button that is honest about not being one. */
.btn-soon {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 16px 40px -18px rgba(124, 108, 255, 0.7);
  cursor: default;
  padding-left: 20px;
}
.btn-soon .dot,
.pill-badge .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}
.btn-soon .dot::after,
.pill-badge .dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: ping 2s var(--ease-out) infinite;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* --------------------------------------------------------------- sections */

.section {
  position: relative;
  padding: 130px 0;
}
.section-head {
  max-width: 740px;
  margin: 0 auto 64px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--muted));
}
.eyebrow::after {
  background: linear-gradient(90deg, var(--muted), transparent);
}
.h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.section-head p {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

/* Text that shimmers through the brand's colours.
 *
 * The gradient starts and ends on the same colour and repeats every 200% of
 * the text's width, so sliding it by exactly one repeat (-200%) lands on a
 * frame identical to the first: the loop has no seam, no pause and no jump.
 * Linear timing keeps the speed constant across the join.
 *
 * It must stay one unbroken run of text. Clipping a background to text only
 * paints text the element owns; if the words were separately animated
 * layers, the gradient would stay invisible until their animation ended. */
.shine {
  display: inline-block;
  font-style: normal;
  background-image: linear-gradient(
    90deg,
    var(--bone) 0%,
    #c9c1ff 22%,
    var(--teal) 42%,
    #c9c1ff 62%,
    var(--bone) 82%,
    var(--bone) 100%
  );
  background-size: 200% 100%;
  background-repeat: repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: -200% 50%;
  }
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 168px 0 0;
  text-align: center;
  overflow: clip;
}
/* A beam of light from above, and a grid that fades into it. */
.hero::before {
  content: '';
  position: absolute;
  top: -260px;
  left: 50%;
  width: 1400px;
  height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(40% 50% at 50% 30%, rgba(236, 231, 220, 0.16), transparent 70%),
    radial-gradient(30% 40% at 38% 40%, rgba(124, 108, 255, 0.22), transparent 70%),
    radial-gradient(30% 40% at 64% 44%, rgba(70, 224, 208, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 50% at 50% 20%, #000 20%, transparent 75%);
}
.hero-inner {
  position: relative;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09) inset;
  transition: background 0.3s;
}
.pill-badge:hover {
  background: rgba(255, 255, 255, 0.08);
}
.pill-badge .sep {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
}
.pill-badge svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--spring);
}
.pill-badge:hover svg {
  transform: translateX(3px);
}

.display {
  margin: 28px auto 0;
  font-size: clamp(50px, 9.2vw, 118px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 12ch;
}
.hero-lead {
  margin: 30px auto 0;
  max-width: 610px;
  font-size: clamp(17.5px, 1.7vw, 20.5px);
  line-height: 1.55;
  color: var(--body);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}
.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-facts svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

/* The stage: a live phone, with glass chips floating at different depths. */
.hero-stage {
  position: relative;
  margin: 80px auto 0;
  width: min(1000px, 100%);
  display: flex;
  justify-content: center;
  perspective: 1600px;
}
.hero-stage::after {
  content: '';
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 0;
  height: 240px;
  background: linear-gradient(transparent, var(--bg) 85%);
  pointer-events: none;
  z-index: 3;
}
.hero-device {
  --w: clamp(270px, 29vw, 360px);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.9s var(--ease-out);
  margin-bottom: -170px;
}
html.js .hero-device-in {
  opacity: 0;
  translate: 0 120px;
  scale: 0.92;
  transition:
    opacity 1.2s var(--ease-out) 0.35s,
    translate 1.6s var(--ease-out) 0.35s,
    scale 1.6s var(--ease-out) 0.35s,
    transform 0.9s var(--ease-out);
}
html.js .hero-device-in.is-in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

.chip {
  position: absolute;
  z-index: 4;
  text-align: left;
  translate: var(--px, 0) var(--py, 0);
  transition: translate 1s var(--ease-out);
}
.chip-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: rgba(24, 24, 34, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09) inset,
    0 30px 60px -24px rgba(0, 0, 0, 0.9);
  font-size: 13.5px;
  line-height: 1.35;
  white-space: nowrap;
  animation: bob 7s var(--ease-in-out) infinite alternate;
}
.chip strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.chip .sub {
  color: var(--muted);
}
.chip .ico {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.chip .ico img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.chip .ico svg {
  width: 20px;
  height: 20px;
}
.chip-a {
  top: 6%;
  left: 0;
}
.chip-b {
  top: 22%;
  right: 0;
}
.chip-c {
  top: 46%;
  left: 5%;
}
.chip-d {
  top: 60%;
  right: 4%;
}
.chip-c .ico {
  background: rgba(61, 220, 151, 0.14);
  color: var(--success);
}
.chip-d .ico {
  background: rgba(70, 224, 208, 0.14);
  color: var(--teal);
}
.mini-ring {
  width: 38px;
  height: 38px;
  flex: none;
}
.mini-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.mini-ring circle {
  fill: none;
  stroke-width: 4;
}
.mini-ring .track {
  stroke: rgba(255, 255, 255, 0.1);
}
.mini-ring .bar {
  stroke: var(--bone);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 37;
}
.pro-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  line-height: 1;
  padding: 5px 8px 4px;
  border-radius: 999px;
  color: var(--on-bone);
  background: linear-gradient(180deg, var(--bone-hi), var(--bone-deep));
  vertical-align: middle;
}
@keyframes bob {
  from {
    transform: translate3d(0, -6px, 0);
  }
  to {
    transform: translate3d(0, 8px, 0);
  }
}
.chip-b .chip-inner {
  animation-delay: -2s;
}
.chip-c .chip-inner {
  animation-delay: -4s;
}
.chip-d .chip-inner {
  animation-delay: -1s;
}
html.js .chip {
  opacity: 0;
  scale: 0.9;
  transition:
    opacity 0.9s var(--ease-out),
    scale 1s var(--spring),
    translate 1s var(--ease-out);
}
html.js .chip.is-in {
  opacity: 1;
  scale: 1;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 128px;
  }
  .hero-stage {
    margin-top: 56px;
  }
  .hero-device {
    margin-bottom: -120px;
  }
  .chip-inner {
    font-size: 12px;
    padding: 9px 12px 9px 9px;
    gap: 9px;
    border-radius: 16px;
  }
  .chip strong {
    font-size: 12.5px;
  }
  .chip .ico,
  .chip .ico img,
  .mini-ring {
    width: 30px;
    height: 30px;
  }
  .chip-a {
    top: 4%;
    left: -2%;
  }
  .chip-b {
    top: 30%;
    right: -3%;
  }
  .chip-c,
  .chip-d {
    display: none;
  }
}

/* ------------------------------------------------------------------ devices */

/* An iPhone drawn in CSS. Sizes are in container units, so the whole device
   — bezel, corners, island — scales from one width. */
.device {
  --w: 320px;
  width: var(--w);
  max-width: 100%;
  container-type: inline-size;
  flex: none;
}
.device-body {
  position: relative;
  padding: 3.1cqw;
  border-radius: 16.2cqw;
  background: linear-gradient(145deg, #4a4b55 0%, #1c1c24 22%, #121218 50%, #26262e 78%, #3d3e48 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 0 0.5cqw #0a0a0f inset,
    0 50px 100px -30px rgba(0, 0, 0, 0.95),
    0 30px 80px -40px rgba(124, 108, 255, 0.55);
}
/* Side buttons. */
.device-body::before,
.device-body::after {
  content: '';
  position: absolute;
  width: 0.9cqw;
  border-radius: 1cqw;
  background: linear-gradient(90deg, #2a2a33, #4a4b55);
}
.device-body::before {
  left: -0.7cqw;
  top: 24%;
  height: 7%;
  box-shadow: 0 11cqw 0 #34353e;
}
.device-body::after {
  right: -0.7cqw;
  top: 30%;
  height: 11%;
}
.screen {
  position: relative;
  border-radius: 13.1cqw;
  overflow: hidden;
  aspect-ratio: 1320 / 2868;
  background: #0a0a11;
  container-type: inline-size;
  isolation: isolate;
}
.screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.island {
  position: absolute;
  z-index: 9;
  top: 5.2cqw;
  left: 50%;
  width: 29cqw;
  height: 8.4cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
}
/* Glass glare across the display. */
.glare {
  position: absolute;
  inset: 3.1cqw;
  border-radius: 13.1cqw;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 30%,
    transparent 45%
  );
}

/* An iPad, same idea. */
.tablet {
  width: 100%;
  container-type: inline-size;
}
.tablet .device-body {
  padding: 2.3cqw;
  border-radius: 5.4cqw;
}
.tablet .device-body::before,
.tablet .device-body::after {
  display: none;
}
.tablet .screen {
  border-radius: 3.2cqw;
  aspect-ratio: 2064 / 2752;
}
.tablet .cam {
  position: absolute;
  z-index: 5;
  top: 0.85cqw;
  left: 50%;
  width: 0.8cqw;
  height: 0.8cqw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #1d1d26;
  box-shadow: 0 0 0 0.15cqw #2c2c36;
}
.tablet .glare {
  inset: 2.3cqw;
  border-radius: 3.2cqw;
}

/* --------------------------------------------------------- the live app */

/* A working replica of the Upcoming screen, drawn in HTML so it can move.
   One unit (--u) is one iOS point on a 440-point-wide phone. */
.app {
  --u: calc(100cqw / 440);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  background:
    radial-gradient(120% 40% at 30% 0%, rgba(236, 231, 220, 0.14), transparent 60%),
    radial-gradient(80% 30% at 90% 5%, rgba(150, 140, 200, 0.12), transparent 60%),
    #0a0a11;
  overflow: hidden;
}
.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--u) * 22) calc(var(--u) * 36) 0 calc(var(--u) * 52);
  height: calc(var(--u) * 62);
  font-weight: 700;
  font-size: calc(var(--u) * 17);
  letter-spacing: -0.2px;
}
.app-status svg {
  height: calc(var(--u) * 13);
  width: auto;
}
.app-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(var(--u) * 24) calc(var(--u) * 24) 0;
}
.app-greet {
  color: var(--muted);
  font-size: calc(var(--u) * 14);
  font-weight: 500;
}
.app-title {
  margin-top: calc(var(--u) * 6);
  font-weight: 800;
  font-size: calc(var(--u) * 33);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.app-title .n {
  display: inline-block;
  transition:
    transform 0.5s var(--spring),
    opacity 0.3s;
}
.app-title .n.bump {
  transform: translateY(-40%);
  opacity: 0;
}
.app-ring {
  position: relative;
  width: calc(var(--u) * 64);
  height: calc(var(--u) * 64);
  flex: none;
}
.app-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.app-ring circle {
  fill: none;
  stroke-width: 3.4;
}
.app-ring .track {
  stroke: rgba(255, 255, 255, 0.09);
}
.app-ring .bar {
  stroke: var(--bone);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 75;
  transition: stroke-dashoffset 1s var(--ease-out);
}
.app-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: calc(var(--u) * 14);
}
.app-filters {
  display: flex;
  gap: calc(var(--u) * 8);
  padding: calc(var(--u) * 22) calc(var(--u) * 24) 0;
}
.app-filters span {
  padding: calc(var(--u) * 10) calc(var(--u) * 24);
  border-radius: 99px;
  font-size: calc(var(--u) * 15);
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.app-filters span.on {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1.5px rgba(245, 241, 232, 0.85) inset;
}
.app-list {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: calc(var(--u) * 4) calc(var(--u) * 24) 0;
  overflow: hidden;
}
.app-label {
  margin: calc(var(--u) * 22) 0 calc(var(--u) * 10);
  font-size: calc(var(--u) * 12);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.hw {
  --c: var(--violet);
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 14);
  padding: calc(var(--u) * 15) calc(var(--u) * 16);
  margin-bottom: calc(var(--u) * 12);
  border-radius: calc(var(--u) * 20);
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 30%, #15161f) 0%, #15161f 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  animation: hw-in 0.8s var(--ease-out) both;
  animation-delay: calc(0.3s + var(--i, 0) * 110ms);
}
@keyframes hw-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.97);
  }
}
.hw-check {
  position: relative;
  width: calc(var(--u) * 26);
  height: calc(var(--u) * 26);
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 calc(var(--u) * 2) var(--c) inset;
  transition:
    background 0.35s,
    transform 0.4s var(--spring);
}
.hw-check svg {
  position: absolute;
  inset: 22%;
  width: 56%;
  height: 56%;
  color: #0a0a11;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.4s var(--ease-out) 0.1s;
}
.hw.done .hw-check {
  background: var(--c);
  transform: scale(1.12);
}
.hw.done .hw-check svg {
  stroke-dashoffset: 0;
}
.hw-body {
  flex: 1;
  min-width: 0;
}
.hw-subj {
  font-size: calc(var(--u) * 11.5);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c);
}
.hw-title {
  display: inline-block;
  max-width: 100%;
  margin-top: calc(var(--u) * 3);
  font-size: calc(var(--u) * 17);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 0% 1.5px;
  transition:
    background-size 0.5s var(--ease-out),
    color 0.4s;
}
.hw.done .hw-title {
  background-size: 100% 1.5px;
  color: var(--muted);
}
.hw-meta {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 9);
  margin-top: calc(var(--u) * 7);
}
.hw-due {
  font-size: calc(var(--u) * 13);
  font-weight: 600;
  padding: calc(var(--u) * 4) calc(var(--u) * 10);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}
.hw-due.soon {
  color: var(--warning);
  background: rgba(255, 183, 77, 0.14);
}
.hw-bell {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 4);
  color: var(--faint);
  font-size: calc(var(--u) * 13);
  font-weight: 600;
}
.hw-bell svg {
  width: calc(var(--u) * 12);
  height: calc(var(--u) * 12);
}
.hw-chev {
  color: var(--faint);
  width: calc(var(--u) * 9);
  flex: none;
}
.app-fab {
  position: absolute;
  right: calc(var(--u) * 24);
  bottom: calc(var(--u) * 106);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 16) calc(var(--u) * 24);
  border-radius: 99px;
  color: var(--on-bone);
  font-weight: 700;
  font-size: calc(var(--u) * 16);
  background: linear-gradient(180deg, var(--bone-hi), var(--bone-deep));
  box-shadow: 0 calc(var(--u) * 10) calc(var(--u) * 40) rgba(232, 227, 217, 0.35);
}
.app-fab svg {
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
}
.app-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--u) * 92);
  padding-top: calc(var(--u) * 12);
  background: rgba(10, 10, 17, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.app-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 5);
  color: var(--faint);
  font-size: calc(var(--u) * 11.5);
  font-weight: 600;
}
.app-tabs span.on {
  color: var(--text);
}
.app-tabs svg {
  width: calc(var(--u) * 25);
  height: calc(var(--u) * 25);
}
/* The system notification that drops in over the app. */
.app-notif {
  position: absolute;
  z-index: 8;
  top: calc(var(--u) * 12);
  left: calc(var(--u) * 12);
  right: calc(var(--u) * 12);
  display: flex;
  gap: calc(var(--u) * 12);
  align-items: center;
  padding: calc(var(--u) * 14);
  border-radius: calc(var(--u) * 26);
  background: rgba(46, 46, 58, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 calc(var(--u) * 20) calc(var(--u) * 40) rgba(0, 0, 0, 0.5);
  transform: translate3d(0, -150%, 0) scale(0.94);
  opacity: 0;
  transition:
    transform 0.7s var(--spring),
    opacity 0.4s;
}
.app-notif.show {
  transform: none;
  opacity: 1;
}
.app-notif img {
  width: calc(var(--u) * 40);
  height: calc(var(--u) * 40);
  border-radius: calc(var(--u) * 10);
  flex: none;
}
.app-notif .t {
  flex: 1;
  min-width: 0;
  font-size: calc(var(--u) * 14);
  line-height: 1.3;
}
.app-notif .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.app-notif b {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-notif .when {
  color: rgba(255, 255, 255, 0.5);
  font-size: calc(var(--u) * 12.5);
  flex: none;
}
.app-notif .body {
  color: rgba(255, 255, 255, 0.82);
}

/* ------------------------------------------------------------- marquee */

.marquee-wrap {
  position: relative;
  z-index: 2;
  padding: 40px 0 0;
}
.marquee-label {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-track.rev {
  animation-direction: reverse;
  animation-duration: 72s;
  margin-top: 12px;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
.subj {
  --c: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
  white-space: nowrap;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 16%, #13141c), #13141c 80%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.subj::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}

/* Colour helpers, shared by chips, cards and the timetable. */
.c-violet {
  --c: var(--violet);
}
.c-teal {
  --c: var(--teal);
}
.c-pink {
  --c: var(--pink);
}
.c-amber {
  --c: var(--amber);
}
.c-sky {
  --c: var(--sky);
}
.c-lilac {
  --c: var(--lilac);
}
.c-green {
  --c: #34d399;
}
.c-lime {
  --c: #a3e635;
}
.c-orange {
  --c: #fb923c;
}
.c-rose {
  --c: #f472b6;
}

/* ---------------------------------------------------------------- story */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.story-stage {
  position: sticky;
  top: max(100px, calc(50vh - 320px));
  display: flex;
  justify-content: center;
  isolation: isolate;
}
.story-stage .device {
  --w: min(300px, 32vh);
}
.story-stage .screen > img {
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 0.7s var(--ease-out),
    transform 1s var(--ease-out);
}
.story-stage .screen > img.on {
  opacity: 1;
  transform: none;
}
.story-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  top: 12%;
  left: 50%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c, var(--violet)), transparent);
  opacity: 0.3;
  z-index: -1;
  transition: background 0.8s;
}
.story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* The rail on the left fills in as you scroll through the steps. */
.story-steps::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.07);
}
.story-rail {
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--sky), var(--violet), var(--teal), var(--pink));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.step {
  position: relative;
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 76px;
  opacity: 0.25;
  transition: opacity 0.6s var(--ease-out);
}
.step.on {
  opacity: 1;
}
.step-num {
  position: absolute;
  left: 0;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--border-strong) inset;
  transition:
    color 0.4s,
    box-shadow 0.4s,
    background 0.4s;
}
.step.on .step-num {
  color: var(--on-bone);
  background: var(--c, var(--bone));
  box-shadow: 0 0 30px -4px var(--c, var(--bone));
}
.step .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--c, var(--muted));
  margin-bottom: 14px;
}
.step h3 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.step p {
  margin-top: 16px;
  font-size: 18.5px;
  color: var(--muted);
  max-width: 30em;
}
.step .step-shot {
  display: none;
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .story-stage,
  .story-steps::before,
  .story-rail {
    display: none;
  }
  .step {
    min-height: 0;
    padding: 0 0 80px;
    opacity: 1;
    text-align: center;
    align-items: center;
  }
  .step:last-child {
    padding-bottom: 0;
  }
  .step-num {
    position: static;
    margin: 0 0 18px;
    color: var(--on-bone);
    background: var(--c, var(--bone));
  }
  .step .step-shot {
    display: block;
    margin-top: 40px;
  }
  .step .step-shot.device {
    --w: min(260px, 70vw);
  }
}

/* ----------------------------------------------------------------- bento */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 30px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
}
.tile-wide {
  grid-column: span 4;
}
/* A soft light that follows the pointer across each tile, and lights the
   edge nearest to it. */
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.06),
    transparent 60%
  );
  transition: opacity 0.4s;
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    300px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.3),
    transparent 60%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.tile:hover::before,
.tile:hover::after {
  opacity: 1;
}
.tile-head {
  position: relative;
  z-index: 2;
}
.tile h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.tile p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  max-width: 34em;
}
.tile-vis {
  position: relative;
  flex: 1;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Reminders tile: a stack of notifications. */
.nstack {
  position: relative;
  width: min(460px, 100%);
  height: 230px;
}
.nstack .n {
  --pos: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 22px;
  background: rgba(40, 40, 52, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 18px 40px -16px rgba(0, 0, 0, 0.8);
  font-size: 13.5px;
  line-height: 1.35;
  transform: translate3d(0, calc(var(--pos) * 76px), 0) scale(calc(1 - var(--pos) * 0.04));
  opacity: calc(1 - var(--pos) * 0.3);
  z-index: calc(10 - var(--pos));
  transition:
    transform 0.8s var(--spring),
    opacity 0.6s var(--ease-out);
}
.nstack .n.enter {
  transform: translate3d(0, -36px, 0) scale(0.9);
  opacity: 0;
}
.nstack .n.leave {
  transform: translate3d(0, 250px, 0) scale(0.84);
  opacity: 0;
}
.nstack .n img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex: none;
}
.nstack .n .t {
  flex: 1;
  min-width: 0;
}
.nstack .n .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.nstack .n b {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nstack .n .when {
  color: var(--faint);
  font-size: 12px;
  flex: none;
}
.nstack .n .body {
  color: var(--body);
}
.presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.preset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
  transition:
    color 0.4s,
    background 0.4s,
    box-shadow 0.4s;
}
.preset i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  box-shadow: 0 0 0 1.5px var(--faint) inset;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.preset.on {
  color: var(--text);
  background: rgba(232, 227, 217, 0.08);
  box-shadow: 0 0 0 1px rgba(232, 227, 217, 0.5) inset;
}
.preset.on i {
  background: var(--bone);
  box-shadow: none;
}

/* Timetable tile. */
.week {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding-bottom: 36px;
}
.week .d {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--faint);
  padding-bottom: 4px;
}
.week .d.today {
  color: var(--bone);
}
.week .col {
  position: relative;
  height: 190px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}
.week .col.today {
  background: rgba(232, 227, 217, 0.05);
  box-shadow: 0 0 0 1px rgba(232, 227, 217, 0.12) inset;
  overflow: visible;
}
.week .cls {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 7px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--c) 55%, #15161f),
    color-mix(in srgb, var(--c) 26%, #15161f)
  );
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent) inset;
}
.cls.s1 {
  top: 4%;
  height: 16%;
}
.cls.s2 {
  top: 24%;
  height: 20%;
}
.cls.s3 {
  top: 48%;
  height: 14%;
}
.cls.s4 {
  top: 66%;
  height: 18%;
}
.cls.s5 {
  top: 12%;
  height: 22%;
}
.cls.s6 {
  top: 40%;
  height: 16%;
}
.week .now {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 0;
  height: 2px;
  z-index: 2;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  animation: now-line 9s linear infinite;
}
.week .now::before {
  content: '';
  position: absolute;
  left: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
}
@keyframes now-line {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(178px);
  }
}
.class-alert {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border-radius: 16px;
  font-size: 13px;
  white-space: nowrap;
  background: rgba(40, 40, 52, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 16px 30px -12px rgba(0, 0, 0, 0.9);
  animation: alert-pop 9s var(--ease-out) infinite;
}
.class-alert img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.class-alert b {
  color: var(--text);
}
@keyframes alert-pop {
  0%,
  38% {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.94);
  }
  44%,
  84% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  92%,
  100% {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.97);
  }
}

/* Offline tile. */
.sync-card {
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
}
.sync-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sync-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--warning);
  box-shadow: 0 0 12px var(--warning);
  transition:
    background 0.5s,
    box-shadow 0.5s;
}
.sync-card.live .sync-dot {
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}
.sync-text {
  display: grid;
  flex: 1;
}
.sync-text > div {
  grid-area: 1 / 1;
  transition:
    opacity 0.5s,
    transform 0.6s var(--ease-out);
}
.sync-text b {
  color: var(--text);
  font-size: 15px;
}
.sync-text small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.sync-text .live {
  opacity: 0;
  transform: translateY(10px);
}
.sync-card.live .sync-text .off {
  opacity: 0;
  transform: translateY(-10px);
}
.sync-card.live .sync-text .live {
  opacity: 1;
  transform: none;
}
.sync-bar {
  margin-top: 16px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.sync-bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--warning), var(--success));
}
.sync-card.syncing .sync-bar i,
.sync-card.live .sync-bar i {
  transform: scaleX(1);
  transition: transform 1.2s var(--ease-in-out);
}
.pending {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.pending span {
  flex: 1;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 26%, #15161f), #15161f 80%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition:
    opacity 0.5s,
    transform 0.6s var(--spring);
}
.sync-card.live .pending span {
  opacity: 0.4;
  transform: translateY(-4px);
}

/* Language tile: words that flip between English and Spanish. */
.flip {
  display: grid;
  gap: 10px;
  width: 100%;
}
.flip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  perspective: 400px;
}
.flip-row .lbl {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.flip-word {
  display: grid;
  justify-items: end;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}
.flip-word span {
  grid-area: 1 / 1;
  white-space: nowrap;
  backface-visibility: hidden;
  transition:
    transform 0.7s var(--ease-out),
    opacity 0.5s;
}
.flip-word span:last-child {
  transform: rotateX(-90deg) translateY(10px);
  opacity: 0;
}
.flip.alt .flip-word span:first-child {
  transform: rotateX(90deg) translateY(-10px);
  opacity: 0;
}
.flip.alt .flip-word span:last-child {
  transform: none;
  opacity: 1;
}
.flip-row:nth-child(2) .flip-word span {
  transition-delay: 0.08s;
}
.flip-row:nth-child(3) .flip-word span {
  transition-delay: 0.16s;
}

/* Privacy tile: counters that roll down to zero. */
.zeros {
  width: 100%;
  display: grid;
  gap: 10px;
}
.zero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  color: var(--body);
  font-weight: 600;
  font-size: 15px;
}
.zero .num {
  font-weight: 800;
  font-size: 24px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  min-width: 2ch;
  text-align: right;
  transition: color 0.4s;
}
.zero .num.done {
  color: var(--success);
}

/* Sync tile: a change travelling from phone to iPad. */
.devices-vis {
  width: 100%;
  max-width: 330px;
}
.devices-vis .outline {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
}
.devices-vis .line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  animation: dash 1.2s linear infinite;
}
@keyframes dash {
  to {
    stroke-dashoffset: -20;
  }
}
.devices-vis .row-a {
  fill: color-mix(in srgb, var(--violet) 45%, #15161f);
}
.devices-vis .row-b {
  fill: color-mix(in srgb, var(--teal) 40%, #15161f);
}
.devices-vis .row-c {
  fill: rgba(255, 255, 255, 0.06);
}
.devices-vis .packet {
  fill: var(--bone);
}
.devices-vis .arrive {
  fill: color-mix(in srgb, var(--amber) 45%, #15161f);
  animation: arrive 3s var(--ease-out) infinite;
}
@keyframes arrive {
  0%,
  55% {
    opacity: 0;
  }
  70%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile,
  .tile-wide {
    grid-column: span 2;
  }
  .tile-half {
    grid-column: span 1;
  }
}
@media (max-width: 640px) {
  .tile-half {
    grid-column: span 2;
  }
  .tile {
    min-height: 0;
    padding: 26px 22px;
  }
  .tile-vis {
    min-height: 200px;
  }
}

/* ------------------------------------------------------------------- iPad */

.ipad-stage {
  perspective: 1800px;
  display: flex;
  justify-content: center;
}
.ipad-stage .tablet {
  max-width: 860px;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--scale, 1));
  transform-origin: center top;
  will-change: transform;
}

/* ---------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
}
.plan {
  position: relative;
  padding: 36px;
  border-radius: 30px;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
}
/* Pro gets a slow-turning border of light. */
.plan-pro {
  background: transparent;
  box-shadow: 0 40px 90px -40px rgba(124, 108, 255, 0.6);
}
.plan-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 30px;
  background: conic-gradient(
    from var(--angle),
    rgba(124, 108, 255, 0.95),
    rgba(70, 224, 208, 0.75),
    rgba(232, 227, 217, 0.95),
    rgba(255, 92, 122, 0.75),
    rgba(124, 108, 255, 0.95)
  );
  animation: turn 8s linear infinite;
}
.plan-pro::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  border-radius: 28.5px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(124, 108, 255, 0.16), transparent 70%),
    #13131c;
}
@keyframes turn {
  to {
    --angle: 360deg;
  }
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-price {
  margin-top: 18px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
}
.plan-price.word {
  font-size: 44px;
  line-height: 1.1;
}
.plan-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
}
.plan ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 14px;
}
.plan li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--body);
}
.plan li svg {
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  color: var(--success);
  background: rgba(61, 220, 151, 0.12);
}
.plan-pro li svg {
  color: var(--on-bone);
  background: var(--bone);
}
.plans-note {
  max-width: 640px;
  margin: 30px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
  .plan {
    padding: 30px 26px;
  }
}

/* -------------------------------------------------------------------- faq */

.faq {
  max-width: 820px;
  margin: 0 auto;
}
details.qa {
  border-bottom: 1px solid var(--border);
}
details.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  color: var(--text);
  font-weight: 700;
  font-size: 18.5px;
  letter-spacing: -0.2px;
}
details.qa summary::-webkit-details-marker {
  display: none;
}
.plus {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px var(--border) inset;
  transition:
    transform 0.5s var(--spring),
    background 0.3s;
}
.plus::before,
.plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.8px;
  margin: -0.9px 0 0 -6px;
  border-radius: 2px;
  background: var(--text);
}
.plus::after {
  transform: rotate(90deg);
  transition: transform 0.4s var(--ease-out);
}
details.qa[open] .plus {
  transform: rotate(180deg);
  background: rgba(232, 227, 217, 0.12);
}
details.qa[open] .plus::after {
  transform: rotate(0deg);
}
.answer {
  overflow: hidden;
}
.answer-inner {
  padding: 0 50px 26px 0;
  color: var(--body);
}
.answer-inner p + p,
.answer-inner p + ol,
.answer-inner p + ul,
.answer-inner ol + p,
.answer-inner ul + p {
  margin-top: 12px;
}
.answer-inner ol,
.answer-inner ul {
  margin: 0;
  padding-left: 22px;
}
.answer-inner li + li {
  margin-top: 7px;
}
.faq-more {
  text-align: center;
  margin-top: 40px;
}

/* ---------------------------------------------------------------- final */

.final {
  position: relative;
  text-align: center;
  padding: 110px 28px;
  border-radius: 40px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(124, 108, 255, 0.24), transparent 70%),
    radial-gradient(50% 60% at 50% 110%, rgba(70, 224, 208, 0.12), transparent 70%),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.final::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(50% 60% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(50% 60% at 50% 30%, #000, transparent);
}
.final-icon {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 38px;
}
.final-icon img {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 25px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 24px 60px -12px rgba(124, 108, 255, 0.7);
  animation: float 6s var(--ease-in-out) infinite alternate;
}
.final-icon i {
  position: absolute;
  inset: -18px;
  border-radius: 38px;
  box-shadow: 0 0 0 1px rgba(232, 227, 217, 0.2);
  animation: ring 3.6s var(--ease-out) infinite;
}
.final-icon i:nth-child(2) {
  animation-delay: 1.2s;
}
.final-icon i:nth-child(3) {
  animation-delay: 2.4s;
}
@keyframes ring {
  from {
    transform: scale(0.8);
    opacity: 0.9;
  }
  to {
    transform: scale(1.9);
    opacity: 0;
  }
}
@keyframes float {
  from {
    transform: translateY(-5px) rotate(-2deg);
  }
  to {
    transform: translateY(6px) rotate(2deg);
  }
}
.final h2 {
  max-width: 14ch;
  margin: 0 auto;
}
.final p {
  margin: 20px auto 0;
  max-width: 480px;
  color: var(--muted);
  font-size: 18px;
}
.final .hero-ctas {
  margin-top: 34px;
}

/* --------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 120px;
  padding: 72px 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  margin: 16px 0 22px;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--faint);
}
/* The name, huge and fading out, as the last thing on the page. */
.footer-mark {
  margin: 36px 0 -0.26em;
  text-align: center;
  font-weight: 800;
  font-size: clamp(56px, 15vw, 214px);
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

/* ----------------------------------------------------------- inner pages */

.page {
  padding: 150px 0 20px;
}
.page-head {
  position: relative;
  margin-bottom: 44px;
}
.page-head h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.page-head .lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
  max-width: 40em;
}
.page-head .updated {
  margin-top: 16px;
  color: var(--faint);
  font-size: 14.5px;
}

.card {
  position: relative;
  padding: 26px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
}
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  justify-content: space-between;
}
.contact h2 {
  font-size: 21px;
  letter-spacing: -0.3px;
}
.contact p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 34em;
}
.faq-group {
  margin-top: 56px;
}
.faq-group > h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--on-bone);
  background: var(--bone);
}
.block {
  margin-top: 52px;
}
.block h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.block p + p {
  margin-top: 12px;
}
.block ul {
  margin: 14px 0 0;
  padding-left: 22px;
}
.block li + li {
  margin-top: 8px;
}
.block .steps + p {
  margin-top: 20px;
}
.callout {
  margin-top: 40px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 183, 77, 0.07);
  box-shadow: 0 0 0 1px rgba(255, 183, 77, 0.26) inset;
  font-size: 16px;
}
.callout strong {
  color: var(--warning);
}
.small-print {
  color: var(--faint);
  font-size: 14.5px;
}
strong {
  color: var(--text);
  font-weight: 700;
}

/* Legal pages: contents on the left, text on the right. */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 110px;
  font-size: 14px;
}
.toc h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}
.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  color: var(--muted);
  text-decoration: none;
  border-left: 1px solid transparent;
  line-height: 1.4;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.toc a:hover {
  color: var(--text);
}
.toc a.on {
  color: var(--text);
  border-left-color: var(--bone);
}
.legal {
  font-size: 16.5px;
  line-height: 1.75;
}
.legal h1,
.legal .updated {
  display: none;
}
.legal h2 {
  font-size: 23px;
  letter-spacing: -0.4px;
  margin: 52px 0 12px;
  scroll-margin-top: 110px;
}
.legal section > h2:first-of-type {
  margin-top: 0;
}
.legal p {
  margin: 0 0 14px;
}
.legal ul {
  padding-left: 22px;
  margin: 0 0 14px;
}
.legal li + li {
  margin-top: 6px;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.legal th,
.legal td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal th {
  color: var(--text);
  white-space: nowrap;
}
.legal .note {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px var(--border) inset;
  border-left: 3px solid var(--bone);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 22px 0;
}
.legal .note p {
  margin: 0 0 8px;
}
.legal .note p:last-child {
  margin: 0;
}
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .toc {
    display: none;
  }
}

/* A detail from details.js that has not been filled in yet. Deliberately loud,
   so an unfinished page cannot go unnoticed. */
.fill {
  background: rgba(255, 183, 77, 0.12);
  border: 1px dashed rgba(255, 183, 77, 0.5);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--warning);
  font-weight: 700;
  font-size: 0.92em;
}

/* ---------------------------------------------------- page transitions */

@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: vt-out 0.28s var(--ease-out) both;
}
::view-transition-new(root) {
  animation: vt-in 0.55s var(--ease-out) both;
}
@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .section {
    padding: 96px 0;
  }
  .section-head {
    margin-bottom: 44px;
  }
  .site-footer {
    margin-top: 80px;
  }
}
@media (max-width: 560px) {
  .section {
    padding: 80px 0;
  }
  .btn {
    min-height: 50px;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .final {
    padding: 80px 22px;
    border-radius: 30px;
  }
  .answer-inner {
    padding-right: 0;
  }
  .page {
    padding-top: 124px;
  }
}

/* ----------------------------------------------------------- less motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  html.js [data-reveal],
  html.js .split .wi,
  html.js .chip,
  html.js .hero-device-in {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    filter: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* Once the live replica is running, the screenshot underneath steps aside. */
.screen.live > img {
  display: none;
}
.app.static .hw {
  animation: none;
}
.page .hero-ctas {
  justify-content: flex-start;
}

/* Specificity fixes: these must beat the generic .device and .btn rules. */
.device.hero-device {
  --w: clamp(270px, 29vw, 360px);
}
@media (max-width: 900px) {
  .nav .nav-cta {
    display: none;
  }
}

/* iOS drops banners in below the Dynamic Island, not over it. */
.app-notif {
  top: calc(var(--u) * 60);
}
@media (max-width: 900px) {
  .chip-a {
    left: 3%;
  }
  .chip-b {
    right: 3%;
  }
}
@media (max-width: 560px) {
  .chip-a {
    top: 7%;
    left: 1%;
  }
  .chip-b {
    top: 40%;
    right: 1%;
  }
}
/* On a phone the chips would sit on top of the demo; the demo says it all. */
@media (max-width: 560px) {
  .chip {
    display: none;
  }
  .footer-mark {
    font-size: 13.5vw;
  }
}
@media (max-width: 900px) {
  /* Solid: a blur nested inside the bar's own blur does not render. */
  .nav-links {
    background: #0e0e16;
  }
}
.nav-links a.nav-cta-m,
.nav-links a.nav-cta-m:hover {
  color: var(--on-bone);
  background: linear-gradient(180deg, var(--bone-hi), var(--bone) 55%, var(--bone-deep));
  justify-content: center;
}

/* The language card's EN ⇄ ES marker, lit on whichever side is showing. */
.flip-langs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--faint);
}
.flip-langs .l-en,
.flip-langs .l-es {
  padding: 5px 10px;
  border-radius: 999px;
  transition:
    background 0.5s,
    color 0.5s;
}
.flip:not(.alt) .flip-langs .l-en,
.flip.alt .flip-langs .l-es {
  color: var(--bone);
  background: rgba(232, 227, 217, 0.14);
}
