/* CanB Apps — site styles. No framework, no build step for CSS. */

/* ---------------------------------------------------------------- tokens */

:root {
  --bg: #fbfbfd;
  --bg-2: #f3f3f7;
  --surface: #ffffff;
  --surface-2: #f5f5f8;
  --text: #0b0b0f;
  --text-2: #3a3a42;
  --muted: #6b6b76;
  --line: rgb(10 10 20 / 0.08);
  --line-2: rgb(10 10 20 / 0.14);
  --glass: rgb(251 251 253 / 0.72);
  --shadow-sm: 0 1px 2px rgb(16 16 32 / 0.04), 0 4px 14px rgb(16 16 32 / 0.05);
  --shadow-md: 0 10px 30px -10px rgb(16 16 40 / 0.18), 0 2px 8px rgb(16 16 40 / 0.06);
  --shadow-lg: 0 40px 80px -30px rgb(16 16 48 / 0.35), 0 12px 30px -12px rgb(16 16 48 / 0.18);
  --blob-opacity: 0.55;

  --rose: #ff2d78;
  --violet: #7c4dff;
  --blue: #2f6bff;
  --teal: #14b8c4;
  --grad: linear-gradient(100deg, var(--rose), var(--violet) 36%, var(--blue) 68%, var(--teal));
  --accent: var(--violet);

  --radius-lg: 32px;
  --radius: 24px;
  --radius-sm: 14px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", var(--font-display);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08080b;
    --bg-2: #0e0e13;
    --surface: #131318;
    --surface-2: #1a1a20;
    --text: #f5f5f7;
    --text-2: #d2d2d8;
    --muted: #9b9ba6;
    --line: rgb(255 255 255 / 0.08);
    --line-2: rgb(255 255 255 / 0.15);
    --glass: rgb(8 8 11 / 0.66);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 14px rgb(0 0 0 / 0.25);
    --shadow-md: 0 10px 30px -10px rgb(0 0 0 / 0.6), 0 2px 8px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 40px 80px -30px rgb(0 0 0 / 0.8), 0 12px 30px -12px rgb(0 0 0 / 0.5);
    --blob-opacity: 0.38;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #08080b;
  --bg-2: #0e0e13;
  --surface: #131318;
  --surface-2: #1a1a20;
  --text: #f5f5f7;
  --text-2: #d2d2d8;
  --muted: #9b9ba6;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.15);
  --glass: rgb(8 8 11 / 0.66);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 14px rgb(0 0 0 / 0.25);
  --shadow-md: 0 10px 30px -10px rgb(0 0 0 / 0.6), 0 2px 8px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 40px 80px -30px rgb(0 0 0 / 0.8), 0 12px 30px -12px rgb(0 0 0 / 0.5);
  --blob-opacity: 0.38;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  text-wrap: balance;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 12px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: calc(760px + var(--gutter) * 2);
}

.section {
  padding-block: clamp(72px, 10vw, 136px);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.display {
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.h3 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.025em;
  margin: 64px 0 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.h3 small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 600px;
}

.sub {
  margin-top: 18px;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--muted);
  max-width: 640px;
}

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

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

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 28px;
}

.text-link .icon {
  transition: transform 0.25s var(--ease);
}

.text-link:hover .icon {
  transform: translateX(4px);
}

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

.btn {
  --bh: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--bh);
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  --bh: 36px;
  padding: 0 16px;
  font-size: 15px;
}

.btn-lg {
  --bh: 54px;
  padding: 0 26px;
  font-size: 17px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary .icon {
  transition: transform 0.25s var(--ease);
}

.btn-primary:hover .icon {
  transform: translateX(3px);
}

.btn-ghost {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--text) 10%, transparent);
}

.btn-light {
  background: #fff;
  color: #0b0b0f;
}

.btn-outline-light {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.5);
}

.btn-outline-light:hover {
  background: rgb(255 255 255 / 0.1);
}

.store-btn.soon {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: color-mix(in srgb, var(--accent) 80%, var(--text));
  cursor: default;
}

.store-btn.soon:active {
  transform: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.icon-btn .icon {
  width: 22px;
  height: 22px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: color-mix(in srgb, var(--accent) 75%, var(--text));
}

.chips .icon {
  width: 15px;
  height: 15px;
}

/* -------------------------------------------------------------- app icon */

.app-icon {
  --size: 56px;
  display: inline-block;
  width: var(--size);
  height: var(--size);
  flex: none;
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--accent, #000) 28%, transparent));
}

.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.app-icon.xs {
  --size: 26px;
  filter: none;
}

.app-icon.sm {
  --size: 40px;
  filter: none;
}

.app-icon.lg {
  --size: 96px;
}

.app-icon.xl {
  --size: clamp(88px, 10vw, 120px);
  filter: drop-shadow(0 18px 36px color-mix(in srgb, var(--accent) 40%, transparent));
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  view-transition-name: site-header;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-mark {
  height: 26px;
  width: auto;
}

.brand-word {
  height: 17px;
  width: auto;
  margin-top: 4px;
}

.nav-main {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
}

.nav-caret {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
  transition: transform 0.25s var(--ease);
}

.nav-apps {
  position: relative;
}

.apps-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 420px;
  padding: 10px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}

.apps-menu::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}

.nav-apps:hover .apps-menu,
.nav-apps:focus-within .apps-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.nav-apps:hover .nav-caret,
.nav-apps:focus-within .nav-caret {
  transform: rotate(-90deg);
}

.apps-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background-color 0.2s;
}

.apps-menu-item:hover,
.apps-menu-item:focus-visible {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.apps-menu-item b {
  display: block;
  font-size: 15px;
}

.apps-menu-item small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle .i-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .i-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .i-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .i-moon {
    display: block;
  }
}

.menu-btn {
  display: none;
}

.mobile-menu {
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0 var(--gutter) 32px;
  background: var(--bg);
  color: var(--text);
  overflow-y: auto;
}

.mobile-menu:popover-open {
  animation: menu-in 0.3s var(--ease);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.mobile-menu nav {
  display: grid;
  gap: 2px;
}

.mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}

.mobile-label {
  margin: 28px 0 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (max-width: 860px) {
  .nav-main,
  .header-cta {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
  }

  .header-actions {
    margin-left: auto;
  }
}

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

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px);
  overflow: clip;
}

.hero-bg,
.app-hero-bg,
.page-head-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--blob-opacity);
  animation: drift 22s ease-in-out infinite alternate;
}

.b1 {
  width: 520px;
  height: 520px;
  background: var(--rose);
  top: -160px;
  right: 8%;
}

.b2 {
  width: 460px;
  height: 460px;
  background: var(--blue);
  top: 180px;
  right: -140px;
  animation-delay: -6s;
}

.b3 {
  width: 380px;
  height: 380px;
  background: var(--teal);
  bottom: -160px;
  left: 18%;
  opacity: calc(var(--blob-opacity) * 0.6);
  animation-delay: -12s;
}

@keyframes drift {
  50% {
    transform: translate(40px, 30px) scale(1.08);
  }
  to {
    transform: translate(-30px, 50px) scale(0.95);
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
}

.hero-mark {
  position: absolute;
  left: -6%;
  bottom: -14%;
  width: min(72vw, 900px);
  color: color-mix(in srgb, var(--text) 5%, transparent);
}

.draw-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.4s var(--ease) 0.2s forwards;
}

.draw-mark .stroke-1 {
  animation-delay: 1.1s;
  animation-duration: 1.4s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.hero .display {
  font-size: clamp(44px, 6.3vw, 84px);
}

.hero-copy .lead {
  margin-top: 28px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.proof li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.proof .icon {
  color: #22b357;
  width: 18px;
  height: 18px;
}

.hero-visual {
  position: relative;
  height: clamp(460px, 52vw, 640px);
  perspective: 1600px;
}

.fan {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
}

.fan .phone {
  position: absolute;
  top: 50%;
  left: 50%;
  --w: clamp(200px, 21vw, 280px);
}

.fan-c {
  transform: translate(-50%, -50%);
  z-index: 3;
  animation: float-c 7s ease-in-out infinite;
}

.fan-l {
  transform: translate(-112%, -46%) rotate(-9deg) scale(0.86);
  z-index: 1;
  opacity: 0.96;
  animation: float-l 8s ease-in-out infinite;
}

.fan-r {
  transform: translate(12%, -46%) rotate(9deg) scale(0.86);
  z-index: 2;
  opacity: 0.96;
  animation: float-r 9s ease-in-out infinite;
}

@keyframes float-c {
  50% {
    transform: translate(-50%, -52%);
  }
}

@keyframes float-l {
  50% {
    transform: translate(-112%, -44%) rotate(-8deg) scale(0.86);
  }
}

@keyframes float-r {
  50% {
    transform: translate(12%, -48%) rotate(10deg) scale(0.86);
  }
}

.float-icon {
  position: absolute;
  z-index: 4;
  animation: bob 6s ease-in-out infinite;
}

.float-icon .app-icon {
  --size: clamp(44px, 4.6vw, 62px);
}

.f1 {
  top: 4%;
  left: 18%;
}
.f2 {
  top: 14%;
  right: 2%;
  animation-delay: -1.5s;
}
.f3 {
  bottom: 10%;
  left: 2%;
  animation-delay: -3s;
}
.f4 {
  bottom: 2%;
  right: 16%;
  animation-delay: -4.5s;
}
.f5 {
  top: 44%;
  right: -3%;
  animation-delay: -2.2s;
}

@keyframes bob {
  50% {
    transform: translateY(-14px) rotate(-3deg);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: clamp(420px, 110vw, 560px);
  }

  .fan .phone {
    --w: clamp(170px, 42vw, 250px);
  }
}

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

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.bento-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 55%);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.bento-big {
  grid-column: span 4;
  flex-direction: row;
}

.bento-card:nth-child(2) {
  grid-column: span 2;
}

.bento-copy {
  position: relative;
  z-index: 1;
  padding: 32px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-big .bento-copy {
  flex: 1;
  padding: 40px;
  justify-content: center;
}

.bento-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bento-head h3 {
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.bento-big .bento-head h3 {
  font-size: 34px;
}

.bento-cat {
  font-size: 14px;
  color: var(--muted);
}

.bento-tag {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.bento-big .bento-tag {
  font-size: 26px;
  letter-spacing: -0.025em;
}

.bento-sum {
  color: var(--muted);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: color-mix(in srgb, var(--accent) 85%, var(--text));
}

.more .icon {
  transition: transform 0.25s var(--ease);
}

.bento-card:hover .more .icon {
  transform: translateX(4px);
}

/* The phone runs past the bottom and the card's edge cuts it off. */
.bento-phone {
  margin-top: auto;
  display: flex;
  justify-content: center;
  height: 260px;
  padding-top: 28px;
}

.bento-phone .phone {
  --w: 230px;
  transform: translateY(0) rotate(-3deg);
  transition: transform 0.6s var(--ease);
}

.bento-card:hover .bento-phone .phone {
  transform: translateY(-14px) rotate(0deg);
}

.bento-big .bento-phone {
  flex: 0 0 44%;
  height: auto;
  padding: 40px 0 0;
  align-items: flex-start;
}

.bento-big .bento-phone .phone {
  --w: 270px;
  transform: rotate(4deg) translateY(20px);
}

.bento-big:hover .bento-phone .phone {
  transform: rotate(0deg) translateY(4px);
}

@media (max-width: 1060px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card,
  .bento-card:nth-child(2) {
    grid-column: span 1;
  }

  .bento-big {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-big,
  .bento-card:nth-child(2) {
    grid-column: auto;
    min-height: 0;
  }

  .bento-big {
    flex-direction: column;
  }

  .bento-big .bento-copy {
    padding: 28px 28px 0;
  }

  .bento-copy {
    padding: 28px 28px 0;
  }

  .bento-big .bento-phone {
    height: 300px;
    flex: none;
    padding-top: 28px;
  }

  .bento-big .bento-phone .phone {
    --w: 240px;
    transform: rotate(-3deg);
  }
}

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

.marquee-section {
  overflow: clip;
}

.marquee {
  --gap: 28px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding: 20px 0 40px;
}

.marquee.running .marquee-track {
  animation: marquee var(--duration, 60s) linear infinite;
}

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

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - var(--gap) / 2));
  }
}

.marquee li a {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.marquee .phone {
  --w: 220px;
  transition: transform 0.4s var(--ease);
}

.marquee li a:hover .phone {
  transform: translateY(-8px);
}

.marquee-cap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ------------------------------------------------------------ principles */

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.principle,
.feature {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%),
    var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.principle:hover,
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.principle:nth-child(1) {
  --accent: var(--rose);
}
.principle:nth-child(2) {
  --accent: var(--violet);
}
.principle:nth-child(3) {
  --accent: var(--blue);
}
.principle:nth-child(4) {
  --accent: var(--teal);
}

.principle-icon,
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  margin-bottom: 22px;
}

.principle-icon .icon,
.feature-icon .icon {
  width: 24px;
  height: 24px;
}

.principle h3,
.feature h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.principle p,
.feature p {
  color: var(--muted);
  font-size: 16px;
}

.stats {
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.stats div {
  padding: 28px;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  border-left: 1px solid var(--line);
}

.stats div:first-child {
  border-left: 0;
}

.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats dt {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 1060px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .principles {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats div:nth-child(3) {
    border-left: 0;
  }

  .stats div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------------------------------------------------------------- studio */

.studio {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.studio-copy > p:not(.eyebrow) {
  color: var(--text-2);
  font-size: 18px;
  margin-top: 20px;
}

.studio-copy .h2 {
  margin-bottom: 8px;
}

.checks {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.checks .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--violet);
}

.checks span {
  color: var(--muted);
}

.checks b {
  color: var(--text);
}

.studio-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  width: 100%;
  justify-self: center;
  display: grid;
  place-items: center;
}

.tile-logo {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 23%;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--violet) 60%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.3);
  transform: rotate(-6deg);
}

.tile-mark {
  width: 64%;
}

.studio-icons {
  position: absolute;
  inset: 0;
  animation: orbit 60s linear infinite;
}

.studio-icons .app-icon {
  --size: clamp(52px, 6vw, 72px);
  position: absolute;
  top: 50%;
  left: 50%;
  margin: calc(var(--size) / -2);
  transform: rotate(calc(var(--i) * 72deg)) translateY(min(-200px, -21vw)) rotate(calc(var(--i) * -72deg));
}

.studio-icons .app-icon:nth-child(1) {
  --i: 0;
}
.studio-icons .app-icon:nth-child(2) {
  --i: 1;
}
.studio-icons .app-icon:nth-child(3) {
  --i: 2;
}
.studio-icons .app-icon:nth-child(4) {
  --i: 3;
}
.studio-icons .app-icon:nth-child(5) {
  --i: 4;
}

.studio-icons .app-icon img {
  animation: orbit 60s linear infinite reverse;
}

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

@media (max-width: 860px) {
  .studio {
    grid-template-columns: 1fr;
  }

  .studio-icons .app-icon {
    transform: rotate(calc(var(--i) * 72deg)) translateY(-38vw) rotate(calc(var(--i) * -72deg));
  }

  .studio-visual {
    max-width: 92vw;
  }
}

/* ------------------------------------------------------------- CTA panel */

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 72px);
  color: #fff;
  background: radial-gradient(circle at 85% 0%, rgb(255 255 255 / 0.18), transparent 40%), var(--grad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  isolation: isolate;
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000);
}

.cta-panel p {
  margin-top: 12px;
  font-size: 19px;
  opacity: 0.9;
}

.cta-panel .cta-row {
  margin: 0;
}

/* -------------------------------------------------------------- app page */

.app-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 104px);
}

.a1 {
  width: 620px;
  height: 620px;
  background: var(--accent);
  top: -260px;
  right: -120px;
  opacity: calc(var(--blob-opacity) * 0.9);
}

.a2 {
  width: 420px;
  height: 420px;
  background: color-mix(in srgb, var(--accent) 50%, var(--violet));
  bottom: -200px;
  left: -120px;
  opacity: calc(var(--blob-opacity) * 0.5);
  animation-delay: -8s;
}

.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.crumb {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
  transition: color 0.2s;
}

.crumb:hover {
  color: var(--text);
}

.crumb .icon {
  width: 16px;
  height: 16px;
}

.m-flip {
  transform: scaleX(-1);
}

.app-hero-copy .app-icon {
  display: block;
}

.app-name {
  margin-top: 24px;
}

.app-headline {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: color-mix(in srgb, var(--accent) 80%, var(--text));
}

.app-hero-copy .lead {
  margin-top: 20px;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--muted);
}

.meta-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.meta-chips .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.app-hero-visual {
  position: relative;
  height: clamp(480px, 50vw, 660px);
  perspective: 1600px;
}

.duo {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
}

.duo .phone {
  position: absolute;
  top: 50%;
  left: 50%;
  --w: clamp(220px, 22vw, 300px);
}

.duo-front {
  transform: translate(-72%, -50%) rotate(-4deg);
  z-index: 2;
  animation: duo-front 8s ease-in-out infinite;
}

.duo-back {
  transform: translate(-18%, -46%) rotate(6deg) scale(0.9);
  z-index: 1;
  animation: duo-back 9s ease-in-out infinite;
}

@keyframes duo-front {
  50% {
    transform: translate(-72%, -52%) rotate(-3deg);
  }
}

@keyframes duo-back {
  50% {
    transform: translate(-18%, -44%) rotate(7deg) scale(0.9);
  }
}

@media (max-width: 960px) {
  .app-hero-grid {
    grid-template-columns: 1fr;
  }

  .app-hero-visual {
    height: clamp(440px, 118vw, 600px);
  }

  .duo .phone {
    --w: clamp(190px, 48vw, 270px);
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-wide,
.features > .feature:nth-child(4),
.features > .feature:nth-child(5) {
  grid-column: span 2;
}

.feature-wide {
  background:
    radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 14%, transparent), transparent 45%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface) 70%);
}

.feature-wide h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.025em;
}

.feature-wide p {
  font-size: 18px;
  max-width: 560px;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .features > .feature:nth-child(4),
  .features > .feature:nth-child(5) {
    grid-column: auto;
  }

  .features > .feature:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }

  .feature-wide,
  .features > .feature:last-child {
    grid-column: auto;
  }
}

.gallery-section {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 6%, var(--bg-2)) 30%, color-mix(in srgb, var(--accent) 6%, var(--bg-2)) 70%, transparent);
}

.gallery-nav {
  display: flex;
  gap: 8px;
}

.gallery-nav.hidden {
  visibility: hidden;
}

.gallery-nav .icon-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  width: 48px;
  height: 48px;
}

.gallery {
  display: flex;
  justify-content: safe center;
  gap: clamp(20px, 3vw, 40px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2);
  padding: 12px max(var(--gutter), (100vw - var(--wrap)) / 2) 32px;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.slide {
  --slide-w: clamp(240px, 26vw, 320px);
  flex: none;
  scroll-snap-align: start;
  display: grid;
  gap: 18px;
  justify-items: center;
  width: var(--slide-w);
}

/* A length, not 100%: percentage radii follow each axis and turn the corners oval. */
.slide .phone {
  --w: var(--slide-w);
}

.slide p {
  text-align: center;
  font-weight: 600;
  font-size: 17px;
  max-width: 260px;
}

.integrations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.integrations.solo {
  grid-template-columns: 1fr;
}

.integration-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.integrations.solo .integration-chips {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.integration-chips li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 16px;
}

.integration-chips .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.siri {
  position: relative;
  border-radius: var(--radius);
  padding: 30px;
  color: #fff;
  background: radial-gradient(circle at 0% 0%, rgb(124 77 255 / 0.55), transparent 50%), radial-gradient(circle at 100% 100%, rgb(255 45 120 / 0.45), transparent 55%), #0f0f16;
  overflow: hidden;
}

.siri-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.siri-head h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.siri-head p {
  opacity: 0.72;
  font-size: 15px;
}

.siri-orb {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff2d78, #ffb44d, #34e6c0, #3d8bff, #b04dff, #ff2d78);
  filter: blur(0.5px);
  box-shadow: 0 0 30px rgb(176 77 255 / 0.6);
  animation: orb 6s linear infinite;
  mask-image: radial-gradient(circle, #000 55%, transparent 72%);
}

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

.siri-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.siri-actions li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.14);
  font-size: 14.5px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .integrations {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .integration-chips {
    grid-template-columns: 1fr;
  }
}

.privacy-split,
.faq-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.faq-split {
  grid-template-columns: 1fr 1.3fr;
  align-items: start;
}

.faq-split .btn {
  margin-top: 28px;
}

.privacy-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.privacy-list li {
  display: flex;
  gap: 14px;
  color: var(--text-2);
}

.privacy-list .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 2px;
}

.privacy-label {
  text-align: center;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.pl-title {
  font-weight: 700;
  font-size: 20px;
  text-align: left;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.pl-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.pl-icon .icon {
  width: 30px;
  height: 30px;
}

.pl-head {
  font-weight: 700;
  font-size: 22px;
  margin-top: 16px;
}

.pl-text {
  color: var(--muted);
  margin-top: 8px;
  font-size: 15.5px;
}

@media (max-width: 860px) {
  .privacy-split,
  .faq-split {
    grid-template-columns: 1fr;
  }
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

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

.faq-plus {
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

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

.faq details p {
  padding: 0 24px 22px;
  color: var(--muted);
}

.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
}

.faq-page {
  margin: 64px auto 0;
  max-width: 760px;
}

.more-apps,
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.support-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}

.mini-card {
  --mx: 50%;
  --my: 50%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 22px;
  background:
    radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%),
    var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.mini-card b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.mini-card small {
  display: block;
  color: var(--muted);
  font-size: 14.5px;
}

.mini-card > .icon:last-child {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.25s;
}

.mini-card:hover > .icon:last-child {
  transform: translateX(4px);
  color: var(--accent);
}

.contact-card {
  --accent: var(--violet);
}

.contact-icon {
  width: 56px;
  height: 56px;
  padding: 14px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
}

@media (max-width: 960px) {
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .more-apps,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .section-head-row {
    flex-direction: column;
    align-items: start;
  }
}

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

.page-head {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
}

.page-head-bg {
  background: radial-gradient(60% 80% at 80% 0%, color-mix(in srgb, var(--violet) 18%, transparent), transparent), radial-gradient(50% 70% at 0% 20%, color-mix(in srgb, var(--rose) 12%, transparent), transparent);
}

.page-head .lead {
  margin-top: 22px;
}

.page-head .display {
  font-size: clamp(42px, 6vw, 72px);
}

.page .site-footer {
  margin-top: clamp(72px, 10vw, 120px);
}

.prose {
  font-size: 17.5px;
  color: var(--text-2);
}

.prose h2 {
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 56px 0 14px;
  color: var(--text);
}

.prose h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 32px 0 10px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.prose p + p {
  margin-top: 14px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.updated {
  color: var(--muted);
  font-size: 15px;
}

.callout {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--violet) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--violet) 22%, var(--line));
}

.callout .icon {
  width: 26px;
  height: 26px;
  color: var(--violet);
  margin-top: 2px;
}

.policy-app {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  margin: 20px 0;
}

.policy-app h3 {
  margin: 0 0 8px;
}

.policy-app ul {
  list-style: disc;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 16.5px;
}

.todo {
  background: #fff3b0;
  color: #5c4a00;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* brand page */

.brand-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.brand-hero-mark {
  color: var(--text);
  padding: 8%;
}

.brand-hero p {
  margin-top: 16px;
  color: var(--text-2);
}

.assets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.asset {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.asset-img {
  height: 200px;
  padding: 32px;
  background: #fff;
}

.asset-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset-dark .asset-img {
  background: #0b0b0f;
}

.asset-tile .asset-img {
  background: repeating-conic-gradient(color-mix(in srgb, var(--text) 5%, transparent) 0 25%, transparent 0 50%) 0 0 / 20px 20px;
}

.asset figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.asset figcaption span {
  display: flex;
  gap: 6px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  transition: background-color 0.2s;
}

.chip-link:hover {
  background: color-mix(in srgb, var(--text) 12%, transparent);
}

.chip-link .icon {
  width: 14px;
  height: 14px;
}

.assets-icons {
  grid-template-columns: repeat(5, 1fr);
}

.asset-icon {
  display: grid;
  justify-items: center;
  padding-top: 28px;
}

.asset-icon figcaption {
  width: 100%;
  margin-top: 22px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.swatch {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 10px 10px 14px;
  cursor: copy;
  transition: transform 0.2s var(--ease);
}

.swatch:hover {
  transform: translateY(-2px);
}

.swatch span {
  display: block;
  height: 72px;
  border-radius: 12px;
  background: var(--c);
  margin-bottom: 12px;
}

.swatch b {
  display: block;
  font-size: 15px;
  padding-inline: 4px;
}

.swatch code {
  font-size: 13px;
  color: var(--muted);
  padding-inline: 4px;
}

.swatch.copied code::after {
  content: " · copied";
  color: #22b357;
}

@media (max-width: 960px) {
  .assets {
    grid-template-columns: repeat(2, 1fr);
  }

  .assets-icons,
  .swatches {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .assets,
  .assets-icons,
  .swatches {
    grid-template-columns: repeat(2, 1fr);
  }

  .asset figcaption {
    flex-direction: column;
    align-items: start;
  }
}

/* 404 */

.not-found {
  text-align: center;
  padding: clamp(56px, 10vw, 120px) 0;
}

.not-found .wrap {
  display: grid;
  justify-items: center;
}

.not-found .lead {
  margin-top: 20px;
}

.not-found .cta-row {
  justify-content: center;
}

.nf-mark {
  width: min(320px, 70vw);
  margin-bottom: 40px;
  color: var(--text);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: var(--bg-2);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 16px;
  max-width: 320px;
}

.footer-brand .footer-note {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
}

.footer-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.site-footer h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer nav a {
  color: var(--text-2);
  transition: color 0.2s;
}

.site-footer nav a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------- reveals */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    }

    .js .reveal.in {
      opacity: 1;
      transform: none;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.985);
  }
}

/* ------------------------------------------------------ view transitions */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
}

::view-transition-group(*) {
  animation-duration: 0.5s;
  animation-timing-function: var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .draw-mark path {
    stroke-dashoffset: 0;
  }

  @view-transition {
    navigation: none;
  }
}

/* =========================================================== phone frame */

.phone {
  --w: 280px;
  position: relative;
  width: var(--w);
  /* Never stretched by a flex or grid parent: the frame must hug its screen. */
  align-self: start;
  margin: 0;
  padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.15) / calc(var(--w) * 0.15);
  background: linear-gradient(145deg, #4a4a52, #1d1d22 30%, #2c2c33 70%, #18181c);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.16),
    inset 0 0 0 calc(var(--w) * 0.009) #0c0c0f,
    0 0 0 1px rgb(0 0 0 / 0.35),
    var(--shadow-lg);
  flex: none;
}

.phone::before {
  content: "";
  position: absolute;
  right: calc(var(--w) * -0.008);
  top: 26%;
  width: calc(var(--w) * 0.012);
  height: 11%;
  border-radius: 2px;
  background: #2a2a30;
}

.phone-screen {
  position: relative;
  aspect-ratio: 440 / 956;
  border-radius: calc(var(--w) * 0.125);
  overflow: hidden;
  container-type: inline-size;
  background: #000;
  transform: translateZ(0);
}

.phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The scanner's frame and moving line, over the label in a screenshot. */
.shot-scan {
  position: absolute;
  font-size: calc(100cqw * 17 / 440);
}

/* Simulator screenshots have no Dynamic Island, so the frame draws one. */
.phone-screen.shot::after {
  content: "";
  position: absolute;
  top: 2.55cqw;
  left: 50%;
  width: 28.6cqw;
  height: 8.3cqw;
  border-radius: 99px;
  background: #000;
  transform: translateX(-50%);
}

/* ======================================================= mock-up screens */

.m-ui {
  --m-bg: #fff;
  --m-card: #f2f2f7;
  --m-text: #000;
  --m-muted: #8a8a8e;
  --m-fill: #e3e3e8;
  --m-line: rgb(0 0 0 / 0.07);
  --m-grid: #d6d6dc;
  --m-body: #fff;
  --m-bodyline: #a5a5ad;
  --m-tabs: rgb(255 255 255 / 0.86);
  --m-glass: rgb(255 255 255 / 0.85);
  position: absolute;
  inset: 0;
  padding: 0 1.18em;
  overflow: hidden;
  background: var(--m-bg);
  color: var(--m-text);
  font: 400 calc(100cqw * 17 / 440) / 1.25 var(--font);
  letter-spacing: -0.012em;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
}

.m-ui p {
  margin: 0;
}

.m-ui .icon {
  width: 1em;
  height: 1em;
}

.m-ui::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.45em;
  width: 8em;
  height: 0.3em;
  border-radius: 1em;
  background: var(--m-text);
  transform: translateX(-50%);
  z-index: 9;
}

.m-dark {
  --m-bg: #000;
  --m-card: #1c1c1e;
  --m-text: #fff;
  --m-muted: #8e8e93;
  --m-fill: #2c2c2e;
  --m-line: rgb(255 255 255 / 0.09);
  --m-tabs: rgb(44 44 48 / 0.86);
  --m-glass: rgb(58 58 62 / 0.8);
}

.m-grouped {
  --m-bg: #f2f2f7;
  --m-card: #fff;
}

.m-sepia {
  --m-bg: #f6eedb;
  --m-text: #3f3222;
  --m-muted: #8c7a5f;
  --m-glass: rgb(255 255 255 / 0.55);
}

.m-lock,
.m-camera,
.m-player {
  --m-text: #fff;
  --m-muted: rgb(255 255 255 / 0.62);
  --m-glass: rgb(255 255 255 / 0.16);
}

.m-sb {
  position: relative;
  height: 3.2em;
  margin: 0 -1.18em;
  padding: 0.55em 1.75em 0 2.2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.m-time {
  font-size: 1.02em;
}

.m-island {
  position: absolute;
  top: 0.66em;
  left: 50%;
  width: 7.4em;
  height: 2.15em;
  border-radius: 2em;
  background: #000;
  transform: translateX(-50%);
}

.m-sbi {
  width: 4.5em;
  height: 0.86em;
}

.m-large {
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 2.4em 0 0.3em;
  line-height: 1.1;
}

.m-toolbar {
  height: 2.6em;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.3em;
}

.m-toolbar + .m-large {
  margin-top: 0.45em;
}

.m-glass {
  min-width: 2.6em;
  height: 2.6em;
  border-radius: 2em;
  background: var(--m-glass);
  box-shadow: 0 0.2em 0.8em rgb(0 0 0 / 0.1), inset 0 0 0 0.5px rgb(255 255 255 / 0.4);
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  font-weight: 600;
}

.m-glass .icon {
  width: 1.3em;
  height: 1.3em;
}

.m-glass-group {
  display: flex;
  gap: 1.2em;
  padding: 0 0.9em;
  color: var(--m-text);
}

.m-pill {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.45em 1.1em;
  border-radius: 2em;
}

.m-accent {
  color: var(--accent);
}

.m-datenav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.08em;
  margin: 0.7em 0 0.7em;
}

.m-datenav .icon {
  width: 1.15em;
  height: 1.15em;
}

.m-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.42em;
  margin-bottom: 0.95em;
}

.m-day {
  position: relative;
  text-align: center;
  background: var(--m-card);
  border-radius: 0.75em;
  padding: 0.45em 0 0.7em;
  box-shadow: 0 0.1em 0.35em rgb(0 0 0 / 0.05);
}

.m-day i {
  display: block;
  font-style: normal;
  font-size: 0.8em;
}

.m-day b {
  display: block;
  font-size: 1.3em;
  font-weight: 500;
  line-height: 1.2;
}

.m-day em {
  position: absolute;
  left: 50%;
  bottom: 0.3em;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.m-day.on {
  background: var(--accent);
  color: #fff;
}

.m-day.on em {
  background: #fff;
}

.m-card {
  position: relative;
  background: var(--m-card);
  border-radius: 1em;
  padding: 0.95em 1.05em;
  margin-bottom: 0.9em;
  box-shadow: inset 0 0 0 0.5px var(--m-line);
}

.m-grouped .m-card {
  box-shadow: none;
}

.m-ch {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 1.2em;
  margin-bottom: 0.25em;
}

.m-ch b {
  font-weight: 600;
}

.m-ch .icon {
  width: 1.05em;
  height: 1.05em;
  stroke-width: 2.2;
}

.m-sub {
  color: var(--m-muted);
  margin: 0.25em 0;
}

.m-big {
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0.15em 0;
}

.m-big small {
  font-size: 0.48em;
  font-weight: 500;
  color: var(--m-muted);
  letter-spacing: 0;
}

.m-bar {
  position: relative;
  height: 1.05em;
  border-radius: 1em;
  background: var(--m-fill);
  overflow: hidden;
  margin: 0.35em 0 0.55em;
}

.m-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.m-bar i {
  position: absolute;
  right: 0.65em;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-weight: 600;
  font-size: 0.72em;
}

.m-goal {
  display: flex;
  justify-content: space-between;
  color: var(--m-muted);
  font-size: 0.85em;
  margin-top: 0.55em;
}

.m-nut {
  color: var(--m-muted);
  font-size: 0.95em;
}

.m-nut b {
  color: var(--m-text);
  font-weight: 600;
}

.m-tabbar {
  position: absolute;
  left: 1.15em;
  right: 1.15em;
  bottom: 1.25em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  z-index: 5;
}

.m-tabs {
  flex: 1;
  display: flex;
  padding: 0.28em;
  border-radius: 2.2em;
  background: var(--m-tabs);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 0.3em 1.4em rgb(0 0 0 / 0.14), inset 0 0 0 0.5px rgb(0 0 0 / 0.06);
}

.m-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  padding: 0.45em 0 0.4em;
  border-radius: 1.8em;
  font-size: 0.6em;
}

.m-tab b {
  font-weight: 600;
  white-space: nowrap;
}

.m-ui .m-ti {
  width: 2.25em;
  height: 2.25em;
  stroke-width: 2;
}

.m-tab.on {
  color: var(--accent);
  background: rgb(120 120 128 / 0.14);
}

.m-tab-search {
  width: 3.35em;
  height: 3.35em;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--m-tabs);
  box-shadow: 0 0.3em 1.4em rgb(0 0 0 / 0.14);
}

.m-ui .m-tab-search .icon {
  width: 1.45em;
  height: 1.45em;
}

.m-fab {
  position: absolute;
  right: 1.25em;
  bottom: 5.5em;
  width: 3.4em;
  height: 3.4em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0.4em 1em color-mix(in srgb, var(--accent) 45%, transparent), inset 0 0 0 0.5px rgb(255 255 255 / 0.4);
  z-index: 6;
}

.m-ui .m-fab .icon {
  width: 1.6em;
  height: 1.6em;
  stroke-width: 2.4;
}

/* OpenLift */

.m-seg {
  display: flex;
  padding: 0.16em;
  border-radius: 2em;
  background: var(--m-fill);
  margin: 0.6em 0;
}

.m-seg span {
  flex: 1;
  text-align: center;
  padding: 0.38em 0;
  border-radius: 2em;
  font-size: 0.92em;
  font-weight: 500;
}

.m-seg .on {
  background: #fff;
  box-shadow: 0 0.1em 0.4em rgb(0 0 0 / 0.12);
}

.m-figures {
  position: relative;
  height: 16em;
  display: flex;
  justify-content: center;
}

.m-figure {
  height: 100%;
  width: auto;
}

.m-thumb {
  position: absolute;
  right: 0;
  top: 0.4em;
  text-align: center;
  color: var(--m-muted);
  font-size: 0.85em;
}

.m-thumb i {
  font-style: normal;
}

.m-figure.m-small {
  height: 6.5em;
  opacity: 0.85;
}

.m-legend {
  display: flex;
  gap: 0.3em;
  margin-top: 0.5em;
}

.m-legend span {
  flex: 1;
  text-align: center;
  font-size: 0.62em;
  padding: 0.35em 0;
  border-radius: 0.6em;
  background: color-mix(in srgb, var(--accent) calc(var(--o, 0) * 100%), var(--m-fill));
  color: var(--m-muted);
}

.m-legend span[style] {
  color: #fff;
}

.m-row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-row-card .m-ch {
  margin: 0;
}

.m-mono {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.35em;
}

.m-heading {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 1.12em;
  margin: 1.1em 0 0.6em;
}

.m-heading .icon {
  color: var(--accent);
  stroke-width: 2.2;
}

.m-ex-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.m-ex-head b {
  font-size: 1.08em;
  font-weight: 600;
}

.m-ex-head p {
  color: var(--m-muted);
  font-size: 0.8em;
  margin-top: 0.1em;
}

.m-chip {
  font-size: 0.72em;
  font-weight: 600;
  padding: 0.3em 0.7em;
  border-radius: 1em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.m-sets {
  display: grid;
  grid-template-columns: 2em 1fr 1fr 2em;
  gap: 0.35em 0.5em;
  margin-top: 0.75em;
  align-items: center;
  text-align: center;
}

.m-sets > span {
  font-size: 0.68em;
  color: var(--m-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.m-sets > i {
  font-style: normal;
  font-weight: 600;
  padding: 0.38em 0;
  border-radius: 0.55em;
  background: var(--m-bg);
}

.m-sets > i.done {
  color: var(--m-muted);
}

.m-sets > i.now {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.m-sets > i.m-tick {
  width: 1.5em;
  height: 1.5em;
  padding: 0;
  margin: 0 auto;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--m-fill);
  display: grid;
  place-items: center;
}

.m-sets > i.m-tick.done {
  background: var(--accent);
  box-shadow: none;
  color: #fff;
}

.m-sets > i.m-tick .icon {
  width: 0.95em;
  height: 0.95em;
  stroke-width: 3;
}

.m-rest {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.9em;
  padding: 0.55em 0.75em;
  border-radius: 0.85em;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.m-rest .m-mono {
  font-size: 1.05em;
  color: var(--accent);
}

.m-ring {
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 360deg), rgb(0 0 0 / 0.1) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent 58%, #000 62%);
  mask: radial-gradient(farthest-side, transparent 58%, #000 62%);
}

.m-skip {
  margin-left: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9em;
}

.m-dim {
  opacity: 0.7;
}

.m-lock {
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--accent) 70%, #fff) 0, transparent 40%),
    radial-gradient(circle at 90% 60%, #6a2bd9, transparent 45%),
    linear-gradient(170deg, color-mix(in srgb, var(--accent) 80%, #200), #1a0d2e 75%);
}

.m-lock-date {
  text-align: center;
  margin-top: 2.5em;
  font-weight: 600;
  font-size: 1.1em;
  opacity: 0.92;
}

.m-lock-time {
  text-align: center;
  font-family: var(--font-round);
  font-size: 6em;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0.95;
}

.m-island-live {
  position: absolute;
  top: 0.66em;
  left: 50%;
  width: 11.5em;
  height: 2.15em;
  border-radius: 2em;
  background: #000;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.85em;
  color: var(--accent);
  z-index: 3;
}

.m-island-live .m-mono {
  font-size: 0.95em;
}

.m-il-ic .icon {
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2.4;
}

.m-live {
  position: absolute;
  left: 0.9em;
  right: 0.9em;
  bottom: 7.4em;
  padding: 0.95em 1.05em;
  border-radius: 1.5em;
  background: rgb(22 22 26 / 0.68);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.m-live-top {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.m-live-app {
  width: 1.65em;
  height: 1.65em;
  border-radius: 0.45em;
  display: grid;
  place-items: center;
  background: var(--accent);
}

.m-live-app .icon {
  width: 1.05em;
  height: 1.05em;
  stroke-width: 2.4;
}

.m-live-sub {
  margin-left: auto;
  font-size: 0.72em;
  opacity: 0.7;
}

.m-live-time {
  font-size: 2.7em;
  font-weight: 700;
  color: var(--accent);
  margin: 0.1em 0 0;
}

.m-live .m-bar {
  height: 0.45em;
  background: rgb(255 255 255 / 0.16);
}

.m-live-next {
  font-size: 0.75em;
  opacity: 0.7;
}

.m-lock-btns {
  position: absolute;
  left: 2.6em;
  right: 2.6em;
  bottom: 2.4em;
  display: flex;
  justify-content: space-between;
}

.m-lock-btns span {
  width: 2.9em;
  height: 2.9em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.m-ui .m-lock-btns .icon {
  width: 1.3em;
  height: 1.3em;
}

/* OpenMeal */

.m-camera {
  background:
    radial-gradient(circle at 20% 30%, #5b4632, transparent 45%),
    radial-gradient(circle at 85% 75%, #2e4033, transparent 45%),
    radial-gradient(circle at 70% 20%, #3a3a46, transparent 40%),
    #141414;
}

.m-cam-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4em;
}

.m-cam-top .m-glass {
  color: #fff;
}

.m-cam-top b {
  font-weight: 600;
}

.m-label {
  position: relative;
  margin: 1.7em 0.7em 0;
  padding: 0.9em 1em;
  background: #fbfaf4;
  color: #111;
  border-radius: 0.25em;
  font-size: 0.78em;
  transform: rotate(-2.5deg);
  box-shadow: 0 1.2em 2.4em rgb(0 0 0 / 0.55);
}

.m-label > b {
  display: block;
  font-size: 1.25em;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding-bottom: 0.2em;
  border-bottom: 0.3em solid #111;
}

.m-label > p {
  margin: 0.35em 0;
  font-size: 0.85em;
}

.m-label > div {
  display: flex;
  justify-content: space-between;
  padding: 0.33em 0;
  border-top: 1px solid #333;
}

.m-label > div.m-subrow span:first-child {
  padding-left: 0.9em;
  color: #444;
}

.m-corners {
  position: absolute;
  inset: -0.9em;
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 1.8em 0.28em no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 0.28em 1.8em no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1.8em 0.28em no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 0.28em 1.8em no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1.8em 0.28em no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 0.28em 1.8em no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1.8em 0.28em no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 0.28em 1.8em no-repeat;
  border-radius: 0.4em;
}

.m-scanline {
  position: absolute;
  left: -0.4em;
  right: -0.4em;
  top: 40%;
  height: 0.16em;
  background: var(--accent);
  box-shadow: 0 0 1.2em 0.2em var(--accent);
  opacity: 0.85;
  animation: scan 2.6s ease-in-out infinite alternate;
}

@keyframes scan {
  from {
    top: 6%;
  }
  to {
    top: 94%;
  }
}

.m-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2em 1.2em 2.3em;
  border-radius: 1.9em 1.9em 0 0;
  background: #1c1c1e;
}

.m-sheet-head {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.m-sheet-head b {
  font-size: 1.1em;
}

.m-sheet-head p {
  color: var(--m-muted);
  font-size: 0.82em;
}

.m-ok {
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
}

.m-ok .icon {
  stroke-width: 3;
}

.m-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 0.9em 0;
}

.m-chips span {
  padding: 0.38em 0.7em;
  border-radius: 1em;
  background: rgb(255 255 255 / 0.1);
  font-size: 0.8em;
}

.m-btn {
  display: block;
  text-align: center;
  padding: 0.8em;
  border-radius: 1.7em;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.m-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0.1em 0 0.9em;
}

.m-total b {
  font-size: 1.35em;
}

.m-total span {
  color: var(--m-muted);
  font-size: 0.8em;
}

.m-group {
  margin-bottom: 0.75em;
}

.m-group-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--m-muted);
  font-size: 0.85em;
  margin: 0 0.25em 0.4em;
}

.m-group-h b {
  color: var(--m-text);
  font-size: 1.2em;
}

.m-entry {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.55em 0.75em;
  margin-bottom: 0.4em;
  border-radius: 0.95em;
  background: var(--m-card);
}

.m-food {
  width: 2.5em;
  height: 2.5em;
  flex: none;
  border-radius: 0.7em;
  background: radial-gradient(circle at 30% 30%, var(--a), var(--b));
}

.m-entry b {
  font-weight: 600;
  font-size: 0.95em;
}

.m-entry p {
  color: var(--m-muted);
  font-size: 0.75em;
}

.m-kcal {
  margin-left: auto;
  font-weight: 600;
  font-size: 0.85em;
  white-space: nowrap;
}

/* OpenRead */

.m-sec {
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.85em 0 0.5em;
}

.m-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6em;
}

.m-tile {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 0.85em;
  border-radius: 1em;
  background: var(--m-card);
  box-shadow: inset 0 0 0 0.5px var(--m-line);
}

.m-tile i {
  font-style: normal;
}

.m-tile .icon {
  width: 1.3em;
  height: 1.3em;
  stroke-width: 2.2;
}

.m-tile b {
  font-size: 1.3em;
  font-weight: 600;
  margin-top: 0.35em;
  white-space: nowrap;
}

.m-tile small {
  color: var(--m-muted);
  font-size: 0.8em;
}

.m-shelf {
  display: flex;
  gap: 0.9em;
  align-items: flex-end;
}

.m-shelf > div {
  flex: none;
  width: 7.3em;
}

.m-shelf > div > b {
  display: block;
  margin-top: 0.45em;
  font-weight: 600;
  font-size: 0.95em;
  line-height: 1.15;
}

.m-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  padding: 2.3em 0.6em 0.6em;
  border-radius: 0.3em;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  text-align: center;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  box-shadow:
    inset 0 0 0 0.35em var(--bg),
    inset 0 0 0 0.42em color-mix(in srgb, var(--fg) 45%, transparent),
    inset 0.25em 0 0.2em rgb(255 255 255 / 0.08),
    0 0.35em 1em rgb(0 0 0 / 0.4);
}

.m-cover b {
  display: block;
  margin-top: 0.7em;
  font-size: 0.9em;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.m-cv-rule {
  display: block;
  width: 36%;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  opacity: 0.7;
}

.m-cv-a {
  display: block;
  margin-top: 0.6em;
  font-style: italic;
  font-size: 0.58em;
  opacity: 0.85;
}

.m-badges {
  position: absolute;
  top: 0.55em;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.25em;
}

.m-badges em,
.m-pct {
  font-family: var(--font);
  font-style: normal;
  font-size: 0.55em;
  font-weight: 700;
  padding: 0.25em 0.5em;
  border-radius: 1em;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
}

.m-pct {
  position: absolute;
  right: 0.45em;
  bottom: 0.45em;
}

.m-shelf-low > div {
  width: 7.3em;
}

.m-reader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4em;
}

.m-chapter {
  color: var(--m-muted);
  font-size: 0.8em;
  font-weight: 500;
}

.m-prose {
  margin-top: 1.5em;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.08em;
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  padding: 0 0.3em;
}

.m-prose p {
  margin-bottom: 0.7em;
  text-indent: 1.2em;
}

.m-prose p:first-child {
  text-indent: 0;
}

.m-prose mark {
  background: rgb(255 204 0 / 0.5);
  color: inherit;
  border-radius: 0.15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.m-reader-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.7em;
  text-align: center;
  font-size: 0.72em;
  color: var(--m-muted);
}

.m-reader-foot b {
  display: block;
  font-weight: 600;
}

.m-player {
  background: linear-gradient(180deg, #24467a, #12233f 55%, #0b1426);
}

.m-grabber {
  width: 2.6em;
  height: 0.3em;
  margin: 0.4em auto 1.4em;
  border-radius: 1em;
  background: rgb(255 255 255 / 0.35);
}

.m-art {
  width: 74%;
  margin: 0 auto;
  font-size: 2em;
}

.m-art .m-cover {
  border-radius: 0.15em;
  box-shadow:
    inset 0 0 0 0.35em var(--bg),
    inset 0 0 0 0.42em color-mix(in srgb, var(--fg) 45%, transparent),
    0 0.6em 1.6em rgb(0 0 0 / 0.5);
}

.m-np {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.4em 0 1.1em;
}

.m-np b {
  font-size: 1.25em;
}

.m-np p {
  opacity: 0.65;
}

.m-np .m-glass {
  color: #fff;
}

.m-scrub {
  height: 0.4em;
  border-radius: 1em;
  background: rgb(255 255 255 / 0.2);
}

.m-scrub span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.m-times {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5em;
  font-size: 0.66em;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.m-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.4em;
  margin: 2.6em 0 2.6em;
}

.m-controls > span {
  position: relative;
  display: grid;
  place-items: center;
}

.m-ui .m-controls .icon {
  width: 2.3em;
  height: 2.3em;
  stroke-width: 1.8;
}

.m-controls i {
  position: absolute;
  font-style: normal;
  font-size: 0.55em;
  font-weight: 700;
  padding-top: 0.3em;
}

.m-ui .m-play .icon {
  width: 3.3em;
  height: 3.3em;
  stroke-width: 3;
}

.m-player-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 0.85em;
  opacity: 0.75;
}

.m-player-row span {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.m-ui .m-player-row .icon {
  width: 1.25em;
  height: 1.25em;
}

/* OpenScale */

.m-gauge-card {
  text-align: center;
}

.m-gauge {
  width: 84%;
  margin: 0.2em auto 0;
}

.m-gauge-val {
  margin-top: -3.6em;
}

.m-gauge-val b {
  display: block;
  font-size: 2.7em;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.m-gauge-val span {
  color: var(--m-muted);
}

.m-gauge-ends {
  display: flex;
  justify-content: space-between;
  padding: 0 1.6em;
  margin-top: 0.4em;
  color: var(--m-muted);
  font-size: 0.82em;
}

.m-gauge-pct {
  margin-top: 0.5em;
  color: var(--m-muted);
  font-weight: 600;
}

.m-ranges {
  display: flex;
  gap: 0.28em;
}

.m-ranges span {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0.42em 0;
  border-radius: 1.2em;
  background: var(--m-bg);
  font-size: 0.78em;
  font-weight: 500;
  box-shadow: 0 0.1em 0.3em rgb(0 0 0 / 0.06);
}

.m-ranges .on {
  background: color-mix(in srgb, var(--accent) 22%, #fff);
}

.m-caps {
  margin-top: 0.9em !important;
  color: var(--m-muted);
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.m-range-d {
  font-weight: 600;
}

.m-caps-sub {
  margin-top: 0.5em !important;
  color: var(--m-muted);
  font-size: 0.78em;
}

.m-range-v {
  font-size: 1.2em;
  font-weight: 700;
}

.m-chart {
  width: 100%;
  margin-top: 0.4em;
}

.m-chart text {
  font-size: 11px;
  fill: var(--m-muted);
}

.m-kv {
  display: flex;
  justify-content: space-between;
  padding: 0.5em 0;
  border-top: 0.5px solid var(--m-line);
}

.m-ch + .m-kv {
  border-top: 0;
}

.m-good {
  color: #22a447;
}

.m-bars {
  display: flex;
  gap: 0.55em;
  height: 7em;
  margin-top: 1.3em;
}

.m-bars > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.m-bars em {
  position: relative;
  width: 100%;
  border-radius: 0.5em 0.5em 0.2em 0.2em;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 60%, #fff));
}

.m-bars i {
  position: absolute;
  top: -1.5em;
  left: -0.3em;
  right: -0.3em;
  text-align: center;
  font-style: normal;
  font-weight: 600;
  font-size: 0.62em;
}

.m-bars small {
  margin-top: 0.35em;
  color: var(--m-muted);
  font-size: 0.56em;
  white-space: nowrap;
}

.m-bmi {
  position: relative;
  display: flex;
  height: 0.6em;
  margin-top: 0.7em;
}

.m-bmi span:nth-child(1) {
  flex: 25;
  background: #5aa9f7;
  border-radius: 1em 0 0 1em;
}
.m-bmi span:nth-child(2) {
  flex: 30;
  background: #34c759;
}
.m-bmi span:nth-child(3) {
  flex: 20;
  background: #ffc531;
}
.m-bmi span:nth-child(4) {
  flex: 25;
  background: #ff6a3d;
  border-radius: 0 1em 1em 0;
}

.m-bmi i {
  position: absolute;
  top: 50%;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1em 0.4em rgb(0 0 0 / 0.3), inset 0 0 0 0.25em #34c759;
  transform: translate(-50%, -50%);
}

.m-bmi-l {
  display: flex;
  justify-content: space-around;
  margin-top: 0.35em;
  color: var(--m-muted);
  font-size: 0.6em;
}

/* WebsiteBlock */

.m-gh {
  margin: 1em 0.9em 0.45em;
  color: var(--m-muted);
  font-size: 1.02em;
  font-weight: 600;
}

.m-group-card {
  padding: 0 1em;
  border-radius: 1.4em;
  background: var(--m-card);
}

.m-site {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.8em 0;
  border-bottom: 0.5px solid var(--m-line);
}

.m-site.last {
  border: 0;
}

.m-letter {
  width: 2.2em;
  height: 2.2em;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 0.6em;
  color: #fff;
  font-weight: 600;
}

.m-site b {
  font-weight: 500;
  font-size: 1.05em;
}

.m-site p {
  color: var(--m-muted);
  font-size: 0.82em;
}

.m-ui .m-chev {
  width: 1.05em;
  height: 1.05em;
  margin-left: auto;
  color: #c4c4c8;
  flex: none;
  stroke-width: 2.4;
}

.m-searchbar {
  position: absolute;
  left: 1.4em;
  right: 1.4em;
  bottom: 1.7em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.8em 1em;
  border-radius: 2em;
  background: rgb(255 255 255 / 0.92);
  color: var(--m-muted);
  box-shadow: 0 0.3em 1.4em rgb(0 0 0 / 0.1);
}

.m-ui .m-searchbar .icon {
  width: 1.2em;
  height: 1.2em;
  color: var(--m-text);
  stroke-width: 2.2;
}

.m-navbar {
  display: flex;
  align-items: center;
  gap: 0.15em;
  margin-top: 0.6em;
  color: var(--accent);
}

.m-ui .m-navbar .icon {
  width: 1.25em;
  height: 1.25em;
  stroke-width: 2.4;
}

.m-navbar b {
  margin-left: auto;
  font-weight: 600;
}

.m-large-sm {
  font-size: 1.75em;
  margin: 0.55em 0 0.6em;
}

.m-frow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75em 0;
  border-bottom: 0.5px solid var(--m-line);
}

.m-frow.last {
  border: 0;
}

.m-frow b {
  font-weight: 400;
  color: var(--m-muted);
}

.m-switch {
  position: relative;
  width: 2.95em;
  height: 1.8em;
  border-radius: 1em;
  background: #34c759;
}

.m-switch::after {
  content: "";
  position: absolute;
  top: 0.17em;
  right: 0.17em;
  width: 1.46em;
  height: 1.46em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1em 0.3em rgb(0 0 0 / 0.2);
}

.m-seg-form {
  margin: 0;
  background: #e3e3e8;
}

.m-days {
  display: flex;
  justify-content: space-between;
  padding: 0.8em 0;
  border-bottom: 0.5px solid var(--m-line);
}

.m-days span {
  width: 2.1em;
  height: 2.1em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--m-fill);
  font-size: 0.85em;
  font-weight: 600;
}

.m-days .on {
  background: var(--accent);
  color: #fff;
}

.m-frow b.m-time-chip {
  padding: 0.3em 0.65em;
  border-radius: 0.5em;
  background: var(--m-fill);
  color: var(--m-text);
  font-weight: 500;
}

.m-muted {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.m-foot {
  margin: 0.6em 0.9em 0;
  color: var(--m-muted);
  font-size: 0.75em;
}
