@font-face {
  font-family: "SB Sans Display";
  src: url("assets/SBSansDisplay-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SB Sans Interface";
  src: url("assets/SBSansUI-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #151515;
  --muted: #636363;
  --line: #dbdbdb;
  --soft-shadow: 0 1px 2px rgb(0 0 0 / 7%), 0 4px 12px rgb(0 0 0 / 8%);
  --side: clamp(24px, 4.7vw, 64px);
  --font-ui: "SB Sans Interface", system-ui, sans-serif;
  --font-display: "SB Sans Display", var(--font-ui);
  --mascot-width: clamp(54px, 7vw, 96px);
  --mascot-cycle: 13.5s;
  /* A brief windup feeds into a sampled damped spring (damping ratio 0.77). */
  --mascot-flight-ease: linear(0, -0.007 4%, -0.016 8%, -0.011 12%, 0 15%,
    0.0894, 0.2773, 0.4822, 0.6627, 0.8028, 0.9011, 0.9639,
    0.9997, 1.0168, 1.0224, 1.0214, 1.0176, 1.0129, 1.0086, 1.0052,
    1.0028, 1.0011, 1.0002, 0.9997, 0.9995, 0.9995, 0.9996, 0.9997, 1);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
body { position: relative; margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--font-ui); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
h1, h2 { font-size: clamp(32px, 4vw, 42px); letter-spacing: -.036em; line-height: 1.04; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.frame { width: min(1160px, calc(100% - 2 * var(--side))); margin-inline: auto; }
#widget-tooltip-layer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; z-index: 50; }

.header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgb(255 255 255 / .94);
  backdrop-filter: blur(14px);
}
.header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.icon-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #606060;
  transition: color 140ms ease, background-color 140ms ease;
}
.brand-link { margin-left: -6px; }
.brand-link img { opacity: .64; }
.icon-link:hover { background-color: #e7e7e7; color: var(--ink); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  text-align: center;
  padding-top: 64px;
}
.hero__copy { display: flex; flex-direction: column; align-items: center; }
.app-icon {
  padding: 4px;
  border-radius: 25%;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  object-fit: contain;
}
.hero__icon { width: 72px; height: 72px; }
:is(.hero__icon, .download__icon):not([data-occupied]) img { visibility: hidden; }
.hero h1 { margin-top: 30px; }
.hero p { max-width: 430px; margin-top: 16px; color: var(--muted); text-wrap: pretty; }
.hero .pill { margin-top: 30px; }
.pill {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  transition: background-color 140ms ease;
}
.pill:not(:disabled):hover { background: #383838; }
button.pill { border: 0; font-family: inherit; }
.pill:disabled { opacity: .62; }

.hero__stage { margin-top: 50px; padding-bottom: 36px; }
.hero__window {
  position: relative;
  width: min(100%, 1018px);
  margin-inline: auto;
}
.mascot-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: clip;
  pointer-events: none;
}
.mascot {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--mascot-width);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}
.mascot[data-dock] { opacity: 1; }
.mascot[data-privacy-trap] { animation: none; }
.mascot[data-icon-transit] { animation: none; transform-origin: top left; }
.mascot[data-icon-transit] .mascot__eye { animation: none; }
.mascot[data-icon-docked] { visibility: hidden; }
.mascot__cloud, .mascot__shadow { opacity: var(--mascot-cloud-opacity, 1); }
.mascot > svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.mascot[data-privacy-trap] > svg { transform-box: border-box; }
.mascot__eye { clip-path: ellipse(85% 85% at 50% 42%) fill-box; }
.mascot__pupil { transform: translate(-5px, -4px); }
@media (prefers-reduced-motion: no-preference) {
  .mascot { animation: mascot-hover var(--mascot-cycle) ease-in-out infinite; }
  .mascot__eye { animation: mascot-blink 8s linear infinite; }
  .mascot:not([data-dock]), .mascot:not([data-dock]) .mascot__eye { animation-play-state: paused; }
}
@supports (offset-path: ellipse(50% 50% at 50% 50%)) {
  @media (prefers-reduced-motion: no-preference) {
    .mascot.hero__mascot {
      --orbit-inset: max(clamp(5px, 1.2vw, 16px), calc(var(--mascot-width) / 2 - var(--side) + 8px));
      inset: 0 auto auto 0;
      transform: none;
      offset-path: ellipse(calc(50% - var(--orbit-inset)) calc(50% - 26px) at 50% 50%);
      offset-rotate: 0deg;
    }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .mascot:is(.hero__mascot, [data-widget-orbit]) {
    animation:
      mascot-flight var(--mascot-cycle) linear infinite,
      mascot-hover var(--mascot-cycle) ease-in-out infinite;
    animation-timing-function: var(--mascot-flight-ease), ease-in-out;
  }
  .mascot:is(.hero__mascot, [data-widget-orbit]) .mascot__pupil {
    animation: mascot-gaze var(--mascot-cycle) ease-in-out infinite;
  }
}
.hero__mascot[data-peeking] .mascot__pupil {
  transform: translate(var(--peek-gaze-x), var(--peek-gaze-y)) !important;
}
/* Gaze leads the flight, then rests on the nearby content in the demo. */
@keyframes mascot-gaze {
  0%, 21.2444%, 89.3333%, 100% { transform: var(--mascot-look-right, translate(-5px, -4px)); }
  27.6444%, 54.2222% { transform: var(--mascot-look-left, translate(5px, -3px)); }
  61.6889%, 81.8667% { transform: var(--mascot-look-bottom, translate(1px, -8px)); }
}

/* The opening closes toward the lid line while the eye artwork stays fixed. */
@keyframes mascot-blink {
  0%, 20%, 63%, 67.125%, 100% {
    clip-path: ellipse(85% 85% at 50% 42%) fill-box;
    animation-timing-function: cubic-bezier(.4, 0, .72, .68);
  }
  21%, 21.375%, 64%, 64.375%, 68.125%, 68.5% {
    clip-path: ellipse(85% 0% at 50% 42%) fill-box;
    animation-timing-function: cubic-bezier(.24, .56, .4, 1);
  }
  22.75%, 65.75%, 69.875% { clip-path: ellipse(85% 85% at 50% 42%) fill-box; }
}
@keyframes mascot-flight {
  /* Fly over the top to the left, then stop once more below the window. */
  0%, 24.4444% {
    offset-distance: 0%;
    transform: translate(var(--peek-right-x, 0px), var(--peek-right-y, 0px));
  }
  34.8124%, 57.9556% {
    offset-distance: -50%;
    transform: translate(var(--peek-left-x, 0px), var(--peek-left-y, 0px));
  }
  65.1556%, 84% {
    offset-distance: -75%;
    transform: translate(var(--peek-bottom-x, 0px), var(--peek-bottom-y, 0px));
  }
  91.2%, 100% {
    offset-distance: -100%;
    transform: translate(var(--peek-right-x, 0px), var(--peek-right-y, 0px));
  }
}
@keyframes mascot-hover {
  /* The same 12px hover as on the first screen. */
  0%, 12.2222%, 24.4444%, 34.8124%, 46.384%, 57.9556%, 65.1556%, 74.5778%, 84%, 91.2%, 100% { translate: 0 0; }
  6.1111%, 18.3333%, 40.5982%, 52.1698%, 69.8667%, 79.2889%, 95.6% { translate: 0 -12px; }
}
.media {
  --stage-surface: #f7f7f7;
  --widget-shadow: 0 9px 28px rgb(0 0 0 / 6%);
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 529 / 371;
  padding: clamp(20px, 4vw, 54px) clamp(16px, 4vw, 54px);
  border-radius: 32px;
  background: var(--stage-surface);
}
.media__widget {
  display: block;
  width: min(100%, 420px);
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--widget-shadow);
}
.local-processing-demo {
  width: min(100%, 440px);
  margin: 0;
}
.local-processing-demo .media__widget { width: 100%; }
.local-processing-demo figcaption { margin: 12px 16px 0; font-size: 14px; line-height: 20px; }

@media (901px <= width <= 980px) {
  #privacy .media { padding-inline: 20px; }
}
.hero__stage .media__widget {
  width: 100%;
  border-radius: clamp(16px, 2vw, 24px);
  box-shadow: 0 1px 3px rgb(0 0 0 / 9%), 0 14px 36px rgb(0 0 0 / 12%);
}

.features { padding-top: 110px; }
.features > h2 { margin-bottom: 72px; text-align: center; }
.feature {
  display: grid;
  grid-template-columns: 41% 59%;
  align-items: center;
}
.feature + .feature { margin-top: 80px; }
.feature--reversed { grid-template-columns: 59% 41%; }
.feature--reversed .media { grid-column: 1; grid-row: 1; }
.feature--reversed .feature__copy { grid-column: 2; grid-row: 1; }
.feature__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-inline: clamp(28px, 4.7vw, 60px);
}
.feature__icon { opacity: .46; }
:is(#recording, #focus, #activity) .feature__copy > .pill { margin-top: 4px; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.feature p { max-width: 32ch; margin-top: 10px; }
.feature p, .local-processing-demo figcaption { color: var(--muted); text-wrap: pretty; }
#recording .feature__text p { max-width: 38ch; }

.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: 74px 94px;
  margin-top: 110px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.download h2 { margin-top: 4px; }
.download__icon { width: 88px; height: 88px; }

.footer {
  min-height: 86px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 22px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer nav { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 1220px) {
  .hero__stage { margin-top: calc(var(--mascot-width) * 1.22 + 30px); }
}
@media (901px <= width <= 1100px) {
  .feature__copy { padding-inline: 20px; }
}
@media (max-width: 900px) {
  :root { --mobile-section-gap: 68px; }
  .hero { padding-top: 76px; }
  .hero h1 { margin-top: 28px; }
  .hero p { max-width: 30ch; }
  .media { aspect-ratio: auto; padding-block: calc(var(--mascot-width) * 1.22 + 24px); }
  .features { padding-top: 84px; }
  .features > h2 { margin-bottom: 46px; }
  .feature, .feature--reversed { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .feature .media { order: -1; }
  .feature + .feature { margin-top: var(--mobile-section-gap); }
  .feature__copy { padding-inline: 0; gap: 20px; }
  .download { margin-top: 80px; padding-block: 62px 72px; }
}
@media (max-width: 700px) {
  :root { --side: 16px; --mascot-width: 64px; }
  .hero { padding-top: 40px; }
  h1, h2 { font-size: clamp(32px, 9vw, 38px); }
  .hero p, .feature p { font-size: 18px; line-height: 1.45; }
  .feature h3 { font-size: 30px; }
  .media {
    padding-block: calc((var(--mascot-width) * 1.22 + 24px) * .7);
    padding-inline: 24px;
  }
  /* Size the native iframe to the scaled content, with no second white skin. */
  .feature .media__widget {
    width: min(calc((100vw - 2 * var(--side) - 16px) * .88), 369.6px);
    max-width: 100%;
    border-radius: 19.36px;
    background: transparent;
  }
  .local-processing-demo { width: min(calc((100vw - 2 * var(--side) - 16px) * .88), 422.4px); max-width: 100%; }
  .local-processing-demo .media__widget { width: 100%; }
  .local-processing-demo figcaption { margin: 10.56px 14.08px 0; font-size: 12.32px; line-height: 17.6px; }
  .pill { min-height: 52px; font-size: 16px; }
  .footer nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; }
}
@media (pointer: coarse) and (max-width: 900px) {
  .local-processing-demo figcaption { font-size: 16px; line-height: 24px; }
}
@media (pointer: coarse) and (max-width: 700px) {
  .local-processing-demo figcaption { font-size: 14.08px; line-height: 21.12px; }
}
@media (max-width: 700px), (pointer: coarse) and (max-width: 900px) {
  html, body { overflow-x: clip; overscroll-behavior-x: none; }
  body { overflow-anchor: none; }
  .mascot[data-dock="hero"] { animation: none; translate: 0 0; }
  .hero { overflow: visible; }
  .hero__stage { width: calc(100% - 2 * var(--side)); }
  .hero__window { width: 100%; }
  .hero__stage { margin-top: calc(var(--mascot-width) * 1.22 + 10px); padding-bottom: 0; }
  .hero__stage .media__widget { background: transparent; border-radius: 24px; box-shadow: var(--soft-shadow); }
  .features { padding-top: var(--mobile-section-gap); }
}
@media (max-width: 700px) {
  .hero__stage .media__widget { border-radius: calc(24px * .88); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
