/* Yumi's site. Same identity as the app and the film: black, a light of blue, violet and
   pink used sparingly, the system's own type. Dark only, like the island. */

:root {
  --bg: #000;
  --surface: #0e0f15;
  --raise: #161821;
  --line: rgba(255, 255, 255, 0.09);
  --fg: #f4f5f8;
  --muted: #9aa0b6;
  --faint: #6b7088;
  --blue: #5b8cff;
  --violet: #8b6cff;
  --pink: #f58ad9;
  --green: #3ddc97;
  --light: linear-gradient(90deg, var(--blue), var(--violet) 50%, var(--pink));
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --radius: 22px;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 18px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: #a9c1ff;
  text-underline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--fg);
  color: #000;
  z-index: 10;
}
.skip:focus {
  top: 16px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* The top of the screen, its notch, and him hanging under it */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 96px;
  background: radial-gradient(120% 70% at 50% 0%, #1b1d2b 0%, #0b0c12 55%, #000 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.notch {
  width: 190px;
  height: 34px;
  background: #000;
  border-radius: 0 0 18px 18px;
}

.yumi {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  width: min(380px, 72vw);
  -webkit-tap-highlight-color: transparent;
}
.yumi-stage {
  display: block;
  width: 100%;
  aspect-ratio: 100 / 84;
}
.yumi-stage svg {
  overflow: visible;
}

.hero h1 {
  margin-top: 36px;
  font-size: clamp(34px, 6.2vw, 72px);
  font-weight: 700;
  max-width: 19ch;
  text-wrap: balance;
}

.lead {
  text-wrap: pretty;
  margin: 22px auto 0;
  max-width: 34rem;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: var(--fg);
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
}
.button:hover {
  background: #1f222e;
}
.button.primary {
  color: #000;
  background: var(--fg);
  box-shadow: 0 0 0 1px transparent, 0 10px 40px -10px rgba(139, 108, 255, 0.7);
}
.button.primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.meta > span {
  white-space: nowrap;
}
.meta {
  margin-top: 22px;
  font: 500 15px/1.4 var(--mono);
  color: var(--faint);
}

/* Sections */

main > section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 20px 0;
}

.kicker {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-lead {
  margin: 10px 0 28px;
  font-size: 20px;
  color: var(--muted);
}

video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px rgba(91, 140, 255, 0.35);
}

.features .kicker,
.trust .kicker,
.install .kicker,
.faq .kicker {
  margin-bottom: 36px;
}

.feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line);
}
.feature h3 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 12px;
}
.feature p {
  margin: 0;
  color: var(--muted);
}

.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.promises li {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.promises strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.promises span {
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.steps li {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.step-number {
  display: block;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 18px;
  background: var(--light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.steps p {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--muted);
}
code {
  font: 500 0.92em var(--mono);
  color: var(--fg);
  word-break: break-word;
}
.link {
  font-weight: 600;
  font-size: 16px;
}

.needs {
  margin-top: 18px;
  padding: 26px 28px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}
.needs h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.needs ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: 21px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 0 0 22px;
  max-width: 46rem;
  color: var(--muted);
}

.footer {
  max-width: 1120px;
  margin: 120px auto 0;
  padding: 36px 20px 60px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--faint);
}
.footer p {
  margin: 0 0 10px;
  max-width: 52rem;
}
.footer .quiet {
  margin-top: 18px;
}

/* Narrow screens */

@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .hero {
    padding-bottom: 72px;
  }
  .notch {
    width: 130px;
    height: 26px;
    border-radius: 0 0 14px 14px;
  }
  main > section {
    padding-top: 72px;
  }
  .promises,
  .steps {
    grid-template-columns: 1fr;
  }
  .button {
    width: 100%;
    justify-content: center;
  }
}

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