/*
 * ultronai.app, every page, in the store set's look: the neural painting, the
 * painted orb, rounded black headlines with the icon's iridescent second line,
 * the app's own screens in phones. Dark only, like the store art and voice
 * mode. SF Pro Rounded on Apple devices; Nunito, served from here, elsewhere.
 *
 * The privacy policy and the terms open inside the app too, which marks the
 * page `in-app` and shows its own title bar: the site's bar and foot go.
 */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/nunito-900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/nunito-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  color-scheme: dark;

  --night: #05031A;
  --night-raised: #0D0930;
  --glass: rgba(22, 16, 58, 0.62);
  --glass-edge: rgba(190, 170, 255, 0.18);
  --ink: #F4F1FF;
  --muted: #B6AFDC;
  --faint: #8780B3;
  --violet: #8B7BFF;
  --pink: #FF8FD8;
  --sky: #9EE6FF;
  --iris: linear-gradient(90deg, #FF9AD5 0%, #C3A6FF 45%, #8FE3FF 100%);
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --reading: 70ch;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--night);
}

/* ---- the bar ---- */

/* frosted; with the script, clear over the top of the page until it scrolls */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.3s, border-color 0.3s;
  background: rgba(5, 3, 26, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.js .bar:not(.is-solid) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: transparent;
}

.bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.bar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.bar nav a {
  color: var(--muted);
  text-decoration: none;
}

.bar nav a:hover {
  color: var(--ink);
}

.bar .get {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--night);
  font-weight: 700;
}

.bar .get:hover {
  color: var(--night);
  background: #FFFFFF;
}

@media (max-width: 640px) {
  .bar nav .link {
    display: none;
  }
}

/* ---- the type ---- */

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .new {
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--iris);
  color: #1A0E3A;
  letter-spacing: 0.08em;
}

.title {
  margin: 14px 0 0;
  font-family: var(--rounded);
  font-weight: 900;
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.title .two,
.iris-text {
  background: var(--iris);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s ease-in-out infinite alternate;
}

.lead {
  margin: 20px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  text-wrap: pretty;
}

@keyframes shimmer {
  to { background-position: 100% 0; }
}

/* ---- the App Store badge ---- */

.store {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.store .badge img {
  width: 168px;
  height: auto;
}

.store .note {
  color: var(--faint);
  font-size: 14px;
}

/* ---- phones ---- */

.phone {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 600 / 1304;
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(150deg, #3A3A46, #101016 40%, #26262F);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 50px 90px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(139, 123, 255, 0.28);
}

.phone img {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  object-fit: cover;
}

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

section {
  position: relative;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.feature {
  padding: clamp(80px, 12vw, 150px) 0;
}

.feature .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

@media (min-width: 900px) {
  .feature .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }

  .feature.flip .copy {
    order: 2;
  }
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

/* things come up as they come into view, where the script runs: without it they are simply there */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-reveal="late"] {
  transition-delay: 0.15s;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.center {
  margin-left: auto;
  margin-right: auto;
}

.tint-teal { --a: #2CC7C9; --b: #0F86B1; }
.tint-orange { --a: #FF8A3D; --b: #F2546B; }
.tint-blue { --a: #3B82F6; --b: #5B5FE8; }
.tint-purple { --a: #C04FD8; --b: #5B5FE8; }
.tint-violet { --a: #8B7BFF; --b: #6A3DF0; }
.tint-sea { --a: #2CC7C9; --b: #3B82F6; }
.tint-sunset { --a: #FF8A3D; --b: #E8458C; }
.tint-rose { --a: #F2546B; --b: #C04FD8; }
.tint-indigo { --a: #5B5FE8; --b: #3B82F6; }
.tint-lagoon { --a: #0FA3B1; --b: #3B82F6; }
.tint-orchid { --a: #8B5CF6; --b: #C04FD8; }

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

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: clip;
}

.hero-ground {
  position: absolute;
  inset: 0;
  background: url("/img/neural.webp") center 60% / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
  opacity: 0.9;
}

@media (max-width: 700px) {
  .hero-ground {
    background-image: url("/img/neural-small.webp");
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, transparent 30%, rgba(5, 3, 26, 0.55) 80%),
    linear-gradient(180deg, rgba(5, 3, 26, 0.75) 0%, rgba(5, 3, 26, 0.2) 30%, rgba(5, 3, 26, 0.35) 75%, var(--night) 100%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  }
}

.hero .title {
  font-size: clamp(44px, 6vw, 82px);
}

@keyframes drift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.14) translate(-2%, 1.5%); }
}

.orb {
  position: absolute;
  width: min(620px, 120vw);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  mix-blend-mode: screen;
  pointer-events: none;
}

.orb img {
  width: 100%;
  height: 100%;
  animation: spin 90s linear infinite, breathe 7s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 70%);
  mask-image: radial-gradient(circle, #000 52%, transparent 70%);
}

@keyframes spin {
  to { rotate: 360deg; }
}

@keyframes breathe {
  0%, 100% { scale: 0.96; opacity: 0.85; }
  50% { scale: 1.04; opacity: 1; }
}

.hero .phone {
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

.tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  animation: bob 6s ease-in-out infinite;
}

.tag i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 14px;
  background: linear-gradient(140deg, var(--a), var(--b));
}

.tag:nth-child(1) { right: calc(50% + 72px); top: 15%; --a: #E8458C; --b: #EB6B14; }
.tag:nth-child(2) { left: calc(50% + 96px); top: 33%; --a: #8B7BFF; --b: #6A3DF0; animation-delay: -1.5s; }
.tag:nth-child(3) { right: calc(50% + 84px); bottom: 27%; --a: #F2546B; --b: #C04FD8; animation-delay: -3s; }
.tag:nth-child(4) { left: calc(50% + 72px); bottom: 12%; --a: #2CC7C9; --b: #0F86B1; animation-delay: -4.5s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 899px) {
  .hero .stage {
    min-height: 600px;
  }
}

/* On a phone the tags would cover the screen they point at: they stand in a row under it instead. */
.typed {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: min(100%, 400px);
  height: 52px;
  margin: 22px 0 0;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
}

.typed .words {
  overflow: hidden;
  text-overflow: ellipsis;
}

.typed i {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  background: linear-gradient(140deg, #8B7BFF, #6A3DF0);
}

.typed .caret {
  flex: none;
  width: 2px;
  height: 1.1em;
  background: var(--ink);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  to { opacity: 0; }
}

/* a wash of the section's colour behind its stage */
.feature::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  background: radial-gradient(ellipse 40% 50% at var(--glow-x, 70%) 50%, var(--glow, transparent), transparent 70%);
  pointer-events: none;
}

.feature.flip::before {
  --glow-x: 30%;
}

.glow-pink { --glow: rgba(255, 143, 216, 0.16); }
.glow-violet { --glow: rgba(139, 123, 255, 0.2); }
.glow-blue { --glow: rgba(99, 150, 255, 0.16); }
.glow-rose { --glow: rgba(242, 84, 107, 0.14); }
.glow-teal { --glow: rgba(44, 199, 201, 0.12); }

/* the actions, on a band that runs */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker .track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: run 46s linear infinite;
}

.ticker:hover .track {
  animation-play-state: paused;
}

.ticker span {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--night-raised);
  border: 1px solid var(--glass-edge);
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.ticker span.new {
  color: #1A0E3A;
  background: var(--iris);
  border-color: transparent;
}

@keyframes run {
  to { transform: translateX(-50%); }
}

@media (max-width: 599px) {
  .hero .stage {
    min-height: 0;
    padding-top: 30px;
  }

  .hero .tags {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
  }

  .hero .tag {
    position: static;
    animation: none;
    font-size: 13px;
  }
}

/* ---- pictures ---- */

/* The scene is the phone's size, so the kitten and the fan are placed against it. The kitten comes out of the picture
   on the screen: its paw stays on the glowing orb there (65.2% across, 19.3% down the phone; 96.5% across and 5.6%
   down the kitten's own picture), and at 1.8 times the picture's scale its body reaches out to the left and down. */

.scene {
  position: relative;
  width: min(300px, 70vw);
}

.pictures .phone {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* the picture on the screen without its kitten, so the one coming out is the only one */
.plate {
  position: absolute;
  z-index: 2;
  left: 6.4%;
  top: 13.95%;
  width: 87.2%;
  border-radius: 6px;
}

.kitten {
  position: absolute;
  z-index: 3;
  width: 112%;
  left: -42.9%;
  top: 16.4%;
  transform-origin: 96.5% 5.6%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(150, 120, 255, 0.4));
  animation: soar 7s ease-in-out infinite;
}

@keyframes soar {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2.5deg); }
}

/* centred on the phone, its cards' tops just under the kitten's feet */
.fan {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 9%;
  width: 0;
  height: 0;
}

.fan figure {
  position: absolute;
  margin: 0;
  width: 132px;
  aspect-ratio: 4 / 5;
  left: -66px;
  bottom: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transform-origin: 50% 380%;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fan figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fan figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(12, 9, 34, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 12px;
}

/* fanned out; with the script, stacked until it comes into view */
.fan figure:nth-child(1) { transform: rotate(-24deg); }
.fan figure:nth-child(2) { transform: rotate(-12deg); }
.fan figure:nth-child(3) { transform: rotate(0deg); z-index: 2; }
.fan figure:nth-child(4) { transform: rotate(12deg); }
.fan figure:nth-child(5) { transform: rotate(24deg); }
.js .fan:not(.is-in) figure { transform: rotate(0deg); }

.styles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.styles li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}

/* ---- voice ---- */

.voice .stage {
  min-height: 640px;
}

.voice .orb {
  width: min(520px, 110vw);
  top: 62%;
}

.captions {
  margin: 28px 0 0;
  max-width: 22em;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.3;
  color: var(--ink);
}

.captions .heard {
  margin-bottom: 10px;
  font-family: var(--text);
  font-weight: 600;
  font-size: 15px;
  color: var(--faint);
}

/* the script's words: dim until the voice reaches them */
.captions span {
  color: rgba(244, 241, 255, 0.3);
  transition: color 0.35s;
}

.captions span.lit {
  color: var(--ink);
}

/* ---- record ---- */

.wave {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 260px;
  width: min(640px, 100%);
  justify-content: center;
  opacity: 0.55;
}

.wave b {
  width: 6px;
  height: 30%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--pink), var(--violet));
  animation: wave 1.6s ease-in-out infinite;
}

.wave b:nth-child(7n+1) { animation-delay: -0.1s; }
.wave b:nth-child(7n+2) { animation-delay: -0.5s; }
.wave b:nth-child(7n+3) { animation-delay: -1.1s; }
.wave b:nth-child(7n+4) { animation-delay: -0.3s; }
.wave b:nth-child(7n+5) { animation-delay: -0.8s; }
.wave b:nth-child(7n+6) { animation-delay: -1.4s; }
.wave b:nth-child(7n) { animation-delay: -0.6s; }

@keyframes wave {
  0%, 100% { height: 14%; }
  50% { height: 92%; }
}

.cards {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 8%;
  width: min(330px, 86vw);
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(16, 12, 44, 0.88);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(139, 123, 255, 0.25);
  font-size: 14px;
  line-height: 1.45;
}

.cards h3 {
  margin: 0 0 10px;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 16px;
}

.cards ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.cards strong {
  color: var(--ink);
}

.cards time {
  color: var(--violet);
}

@media (max-width: 899px) {
  .cards {
    right: auto;
    left: 50%;
    translate: -50% 0;
    bottom: -4%;
  }
}

/* ---- more ---- */

.more {
  padding: clamp(80px, 10vw, 130px) 0;
}

.more-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}

.more-head .lead {
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  padding: 26px 0 0 26px;
  min-height: 300px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--a) 26%, transparent), transparent 60%),
    var(--night-raised);
  border: 1px solid var(--glass-edge);
  transition: transform 0.4s, border-color 0.4s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--a) 60%, transparent);
}

.card h3 {
  margin: 0;
  font-family: var(--rounded);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.1;
}

.card p {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 15px;
}

.card .shot {
  align-self: end;
  width: 150px;
  border-radius: 26px 26px 0 0;
  border: 6px solid #1A1A22;
  border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  aspect-ratio: 600 / 820;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 559px) {
  .card {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 24px 0;
    min-height: 0;
  }

  .card .shot {
    justify-self: center;
    width: 200px;
  }

  .card p {
    margin-bottom: 18px;
  }
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 22px;
  background: linear-gradient(140deg, var(--a), var(--b));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--a) 45%, transparent);
}

.small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 20px;
}

.small div {
  padding: 22px;
  border-radius: 24px;
  background: var(--night-raised);
  border: 1px solid var(--glass-edge);
}

.small h3 {
  margin: 12px 0 6px;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 18px;
}

.small p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.small .icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: linear-gradient(140deg, var(--a), var(--b));
}

/* ---- privacy ---- */

.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.promises li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--a) 30%, transparent), rgba(18, 14, 48, 0.9));
  border: 1px solid color-mix(in srgb, var(--a) 40%, transparent);
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
}

.promises i {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 20px;
  background: linear-gradient(135deg, var(--a), var(--b));
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--sky);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---- the last call ---- */

.cta {
  padding: clamp(110px, 16vw, 200px) 0 clamp(90px, 12vw, 150px);
  text-align: center;
  overflow: clip;
}

/* the orb with the app's icon at its heart, the line under it */
.mark {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  margin: 0 auto -30px;
  display: grid;
  place-items: center;
}

.mark-orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 70%);
  mask-image: radial-gradient(circle, #000 52%, transparent 70%);
  animation: spin 90s linear infinite, breathe 7s ease-in-out infinite;
}

.cta .icon-big {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(139, 123, 255, 0.45);
}

.cta .store {
  justify-content: center;
}

/* ---- the foot ---- */

.foot {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0px));
  color: var(--faint);
  font-size: 14px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
}

/* ---- the 404 ---- */

.lost {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
  overflow: clip;
}

.lost .wrap {
  position: relative;
  z-index: 1;
}

.lost-orb {
  width: 220px;
  margin: 0 auto 28px;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 70%);
  mask-image: radial-gradient(circle, #000 52%, transparent 70%);
  animation: spin 90s linear infinite, breathe 7s ease-in-out infinite;
}

.home-link {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}

.home-link:hover {
  background: #FFFFFF;
}

/* ---- still, when motion is reduced ---- */

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---- the "Make it night" comparison ---- */

.compare {
  position: relative;
  width: min(640px, 100%);
  aspect-ratio: 3 / 2;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 70px rgba(139, 123, 255, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  --cut: 50%;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare .night {
  clip-path: inset(0 0 0 var(--cut));
}

.compare .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--cut);
  width: 2px;
  margin-left: -1px;
  background: #FFFFFF;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.compare .handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  translate: -50% -50%;
  border-radius: 50%;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A0E3A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.compare input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

.compare .label {
  position: absolute;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 9, 34, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 13px;
  pointer-events: none;
}

.compare .label.day { left: 16px; }
.compare .label.at-night { right: 16px; }

.said {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 12px 20px 12px 12px;
  border-radius: 24px 24px 24px 8px;
  background: linear-gradient(135deg, #9C8CFF, #6A4CF0);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(140, 110, 255, 0.4);
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 17px;
}

.said i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  font-style: normal;
}

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

.ipad-block .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  border-radius: 36px;
  background: var(--night-raised);
  border: 1px solid var(--glass-edge);
  overflow: hidden;
}

@media (min-width: 900px) {
  .ipad-block .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    padding: 56px;
  }
}

.ipad {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(150deg, #3A3A46, #101016 40%, #26262F);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px rgba(0, 0, 0, 0.55);
}

.ipad img {
  width: 100%;
  border-radius: 22px;
}

.ipad-block .title {
  font-size: clamp(32px, 4.4vw, 54px);
}

/* ---- free and premium ---- */

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 720px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plan {
  padding: 30px;
  border-radius: 30px;
  background: var(--night-raised);
  border: 1px solid var(--glass-edge);
}

.plan.premium {
  background: linear-gradient(150deg, rgba(139, 123, 255, 0.22), rgba(255, 143, 216, 0.1) 50%, var(--night-raised) 100%), var(--night-raised);
  border-color: rgba(190, 170, 255, 0.4);
}

.plan h3 {
  margin: 0;
  font-family: var(--rounded);
  font-weight: 900;
  font-size: 28px;
}

.plan .sub {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.plan li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
}

.plan li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--iris) center / 12px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan li::before {
  background: var(--iris);
}

.plan .fine {
  margin: 22px 0 0;
  color: var(--faint);
  font-size: 13px;
}

/* ---- the documents: the privacy policy, the terms, support ---- */

.doc {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 150px var(--gutter) 90px;
}

.doc h1 {
  margin: 10px 0 0;
  font-family: var(--rounded);
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.doc .updated {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 14px;
}

.doc > .lead {
  margin-top: 26px;
  max-width: none;
}

.doc h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 56px 0 14px;
  font-family: var(--rounded);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.15;
  scroll-margin-top: 90px;
}

.doc .number {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--iris);
  color: #1A0E3A;
  font-size: 15px;
  font-weight: 900;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc strong {
  color: var(--ink);
}

.doc p {
  margin: 0 0 14px;
}

.doc ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc a {
  color: var(--sky);
  text-decoration: none;
}

.doc a:hover {
  text-decoration: underline;
}

.summary {
  margin: 30px 0 0;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.summary-title {
  margin: 0 0 10px !important;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink) !important;
}

.summary ul {
  margin: 0;
}

.summary li {
  color: var(--ink);
}

.doc .table {
  margin: 0 0 18px;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--glass-edge);
  background: var(--night-raised);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.doc th,
.doc td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.doc th {
  border-top: 0;
  color: var(--faint);
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc td {
  color: var(--muted);
}

.doc td:first-child {
  color: var(--ink);
}

.contact-card {
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--night-raised);
  border: 1px solid var(--glass-edge);
}

.contact-card p {
  margin: 0;
}

.contact-card p + p {
  margin-top: 6px;
}

/* inside the app: its own title bar, no site bar or foot, and the top of the page right under it */

.in-app .bar,
.in-app .foot {
  display: none;
}

.in-app .doc {
  padding-top: 28px;
}

.in-app .doc h2 {
  scroll-margin-top: 20px;
}

/* phones: the kitten smaller, the fan narrower, both after the rules they override */
@media (max-width: 599px) {
  .kitten {
    width: 78%;
    left: -10.1%;
    top: 17.3%;
  }

  .fan {
    left: 50%;
    bottom: 4%;
  }

  .fan figure {
    width: 110px;
    left: -55px;
    transform-origin: 50% 260%;
  }

  .fan figure:nth-child(1) { transform: rotate(-18deg); }
  .fan figure:nth-child(2) { transform: rotate(-9deg); }
  .fan figure:nth-child(4) { transform: rotate(9deg); }
  .fan figure:nth-child(5) { transform: rotate(18deg); }
}

/* ---- the guides: a page for one thing the app does, found from a search ---- */

.guide .lead {
  max-width: 34em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  margin-top: 48px;
  counter-reset: step;
}

.steps div {
  padding: 26px 24px 24px;
  border-radius: 26px;
  background: var(--night-raised);
  border: 1px solid var(--glass-edge);
}

.steps div::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--iris);
  color: #1A0E3A;
  font-family: var(--rounded);
  font-weight: 900;
  font-size: 16px;
}

.steps h3 {
  margin: 0 0 6px;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.15;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* a question and its answer, as the voice page shows a spoken one */
.asked {
  width: min(460px, 100%);
  padding: 26px 28px;
  border-radius: 28px;
  background: rgba(16, 12, 44, 0.88);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(139, 123, 255, 0.25);
}

.asked .captions {
  margin: 0;
  max-width: none;
  font-size: clamp(19px, 2vw, 24px);
}

.asked .captions span {
  color: var(--ink);
}

.faq {
  max-width: 820px;
  margin: 48px auto 0;
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 0 22px;
  border-radius: 22px;
  background: var(--night-raised);
  border: 1px solid var(--glass-edge);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--violet);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

.faq a {
  color: var(--sky);
  text-decoration: none;
}

.faq a:hover {
  text-decoration: underline;
}

.foot .guides {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
}

.foot .guides a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.foot .guides a:hover {
  color: var(--ink);
}
