/* CloudPeek website (cloudpeek.app).
   No build step and no third-party requests: deploy www/ as-is. */

/* ------------------------------------------------------------------ Tokens */

:root {
  color-scheme: dark;

  /* CloudPeek's navy and orange (see the logo kit). */
  --bg: #070b14;
  --bg-1: #0b1b2b;
  --bg-2: #101a2e;
  --bg-3: #1b2a45;
  --line: rgba(148, 170, 210, 0.13);
  --ink: #f4f6fb;
  --ink-2: #aab5c8;
  --ink-3: #6f7c93;
  --orange: #ff9900;
  --orange-2: #ffb547;
  --orange-3: #ffc861;
  --accent: #ec8c00;

  /* CloudWatch's default series colours (Palette.cloudWatch in the app). */
  --c1: #1f77b4;
  --c2: #ff7f0e;
  --c3: #2ca02c;
  --c4: #d62728;
  --c5: #9467bd;
  --c8: #7f7f7f;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-pad: clamp(88px, 12vw, 168px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ------------------------------------------------------------------ Base */

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

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

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

p {
  margin: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.08em 0.38em;
  border-radius: 6px;
}

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

::selection {
  background: rgba(255, 153, 0, 0.35);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--orange);
  color: #111;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip:focus {
  top: 12px;
}

/* Icons from the sprite. Filled glyphs carry their own fill. */
.ico,
.w__glyph,
.w__refresh,
.w__warn,
.st,
.statusbar__icons {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.container--narrow {
  --container: 820px;
}

section {
  position: relative;
  overflow: clip;
}

/* ------------------------------------------------------------------ Shared pieces */

.eyebrow {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-2);
  margin-bottom: 18px;
}

.eyebrow--pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255, 181, 71, 0.28);
  background: rgba(255, 153, 0, 0.08);
  border-radius: 999px;
  letter-spacing: 0.1em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(255, 153, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0); }
}

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38em;
}

/* Links inside running text. */
.lead a:not([class]),
.faq__list a:not([class]),
.prose a:not([class]) {
  color: var(--orange-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 181, 71, 0.45);
  text-underline-offset: 3px;
}

.lead a:not([class]):hover,
.faq__list a:not([class]):hover,
.prose a:not([class]):hover {
  text-decoration-color: currentColor;
}

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

.text-link .ico {
  transition: transform 0.2s var(--ease-out);
}

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

.grad {
  background: linear-gradient(95deg, var(--orange-3) 0%, var(--orange) 45%, #ff6a1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head .lead {
  margin-top: 20px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lead {
  margin-inline: auto;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #1a1203;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  box-shadow: 0 10px 30px -10px rgba(255, 153, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(255, 153, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 999px;
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

/* "Download on the App Store" button. Swap for Apple's official badge artwork if you prefer:
   https://developer.apple.com/app-store/marketing/guidelines/ */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 11px;
  border-radius: 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 40px -18px rgba(255, 153, 0, 0.75);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}

.store-btn img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.store-btn small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.store-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 181, 71, 0.7);
  box-shadow: 0 24px 50px -16px rgba(255, 153, 0, 0.9);
}

.store-btn--large {
  padding: 13px 28px 13px 13px;
  border-radius: 18px;
}

.store-btn--large img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.store-btn--large span {
  font-size: 1.5rem;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.checks li {
  display: flex;
  gap: 12px;
  color: var(--ink-2);
}

.checks .ico {
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 2px;
  border-radius: 50%;
  color: var(--orange-2);
  background: rgba(255, 153, 0, 0.13);
  stroke-width: 3;
}

.checks b {
  color: var(--ink);
  font-weight: 600;
}

.badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 18px;
  color: var(--orange-2);
  background: linear-gradient(180deg, rgba(255, 153, 0, 0.2), rgba(255, 153, 0, 0.08));
  border: 1px solid rgba(255, 181, 71, 0.2);
}

.badge .ico {
  width: 22px;
  height: 22px;
}

/* Background decoration */
.glow {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  pointer-events: none;
}

.glow--orange {
  background: radial-gradient(circle, rgba(255, 140, 0, 0.26) 0%, rgba(255, 140, 0, 0.08) 35%, transparent 65%);
  top: -30vmax;
  right: -25vmax;
}

.glow--blue {
  background: radial-gradient(circle, rgba(56, 120, 255, 0.24) 0%, rgba(56, 120, 255, 0.06) 40%, transparent 65%);
  top: 10vmax;
  left: -35vmax;
}

.glow--violet {
  background: radial-gradient(circle, rgba(130, 90, 255, 0.18) 0%, transparent 60%);
  top: 10%;
  left: -30vmax;
}

.glow--low {
  top: auto;
  bottom: -40vmax;
  right: -20vmax;
}

.glow--center {
  top: 20%;
  left: 50%;
  right: auto;
  margin-left: -35vmax;
}

.gridlines {
  position: absolute;
  inset: -20% 0 0;
  background: repeating-linear-gradient(180deg, transparent 0 111px, rgba(148, 170, 210, 0.075) 111px 112px);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}

/* The logo's cloud, enormous and faint. Far clouds drift slowly, near ones rush past. */
.cloud {
  position: absolute;
  height: auto;
  aspect-ratio: 59 / 46;
  fill: var(--orange);
  overflow: visible;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 15%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 15%, transparent 92%);
}

.cloud--far { opacity: 0.04; }
.cloud--mid { opacity: 0.06; }
.cloud--near { opacity: 0.085; }

.cloud--h1 { width: clamp(320px, 42vw, 640px); top: 4%; left: -10%; }
.cloud--h2 { width: clamp(220px, 26vw, 400px); top: 0; right: 14%; }
.cloud--h3 { width: clamp(380px, 46vw, 720px); bottom: 2%; right: -14%; }
.cloud--h4 { width: clamp(240px, 28vw, 440px); top: 76%; left: 2%; }
.cloud--h5 { width: clamp(300px, 34vw, 540px); top: 96%; left: 36%; }

.cloud--f1 { width: clamp(320px, 40vw, 620px); top: -6%; left: -10%; }
.cloud--f2 { width: clamp(280px, 32vw, 500px); bottom: 2%; right: -8%; }
.cloud--f3 { width: clamp(240px, 26vw, 400px); bottom: -14%; left: 18%; }
.cloud--f4 { width: clamp(160px, 18vw, 280px); top: 16%; right: 12%; }

/* ------------------------------------------------------------------ Progress + nav */

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}

.progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange-3), var(--orange), #ff6a1a);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 16, 29, 0.72);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.93rem;
}

.nav__links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

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

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
}

/* ------------------------------------------------------------------ Widget mockups
   Sized in iOS points: --u is one point, so a widget scales as a whole. */

.w {
  --u: calc(var(--s, 1) * 1px);
  --w-bg: #1c1d22;
  --knock: var(--w-bg);
  --w-ink: #fff;
  --w-ink-2: rgba(235, 235, 245, 0.6);
  --w-ink-3: rgba(235, 235, 245, 0.32);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(7 * var(--u));
  width: calc(338 * var(--u));
  height: calc(158 * var(--u));
  padding: calc(15 * var(--u)) calc(16 * var(--u)) calc(13 * var(--u));
  border-radius: calc(22 * var(--u));
  background: var(--w-bg);
  color: var(--w-ink);
  font-family: var(--font);
  font-size: calc(12 * var(--u));
  line-height: 1.2;
  text-align: left;
  letter-spacing: 0;
  overflow: hidden;
  box-shadow:
    0 calc(24 * var(--u)) calc(60 * var(--u)) calc(-10 * var(--u)) rgba(0, 0, 0, 0.55),
    0 calc(30 * var(--u)) calc(60 * var(--u)) rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.w p {
  margin: 0;
}

.w--s {
  width: calc(158 * var(--u));
}

.w--l {
  height: calc(354 * var(--u));
}

.w__head {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--u));
  min-height: calc(15 * var(--u));
  font-size: calc(12 * var(--u));
  font-weight: 600;
}

.w__glyph {
  width: calc(11 * var(--u));
  height: calc(11 * var(--u));
  color: var(--w-ink-2);
  stroke-width: 2.4;
}

.w__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.w__refresh,
.w__warn {
  width: calc(13 * var(--u));
  height: calc(13 * var(--u));
  color: var(--w-ink-2);
}

.w__warn {
  color: #ff9f0a;
}

.w__body {
  position: relative;
  flex: 1;
  min-height: 0;
}

.w__foot {
  font-size: calc(9 * var(--u));
  color: var(--w-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w__foot--warn {
  color: #ff9f0a;
  font-weight: 500;
}

.w__label {
  font-size: calc(11 * var(--u));
  color: var(--w-ink-2);
}

/* Series colours */
.c1 { --c: var(--c1); }
.c2 { --c: var(--c2); }
.c3 { --c: var(--c3); }
.c4 { --c: var(--c4); }
.c5 { --c: var(--c5); }
.c8 { --c: var(--c8); }

/* Bars */
.bars {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--u));
}

.bars--roomy {
  gap: calc(16 * var(--u));
}

.bars--roomy .bar p {
  font-size: calc(12.5 * var(--u));
  margin-bottom: calc(5 * var(--u));
}

.bars__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: calc(11 * var(--u));
  color: var(--w-ink-2);
}

.bars__total b {
  font-size: calc(15 * var(--u));
  font-weight: 600;
  color: var(--w-ink);
  font-variant-numeric: tabular-nums;
}

.bars--roomy .bars__total b {
  font-size: calc(20 * var(--u));
}

.bar p {
  display: flex;
  justify-content: space-between;
  gap: calc(4 * var(--u));
  font-size: calc(11 * var(--u));
  margin-bottom: calc(2 * var(--u));
}

.bar span {
  color: var(--w-ink-2);
}

.bar b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bar i {
  display: block;
  height: calc(5 * var(--u));
  width: calc(var(--v) * 100%);
  min-width: calc(3 * var(--u));
  border-radius: 99px;
  background: var(--c) linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.12));
  transform-origin: 0 50%;
  transition: transform 1.2s var(--ease-out);
}

.bars--roomy .bar i {
  height: calc(7 * var(--u));
}

.bar:nth-child(3) i { transition-delay: 0.08s; }
.bar:nth-child(4) i { transition-delay: 0.16s; }
.bar:nth-child(5) i { transition-delay: 0.24s; }
.bar:nth-child(6) i { transition-delay: 0.32s; }

/* Line and area charts */
.ch {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  column-gap: calc(5 * var(--u));
  row-gap: calc(3 * var(--u));
  font-size: calc(8 * var(--u));
  color: var(--w-ink-2);
  font-variant-numeric: tabular-nums;
}

.ch__y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  line-height: 1;
  margin: -0.5em 0;
}

.ch__plot {
  position: relative;
  min-height: 0;
}

.ch__plot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ch__grid {
  fill: none;
  stroke: rgba(235, 235, 245, 0.13);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.ch__rule {
  fill: none;
  stroke: var(--c4);
  stroke-width: 1;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}

.ch__rule-label {
  position: absolute;
  right: 0;
  top: 6.25%;
  transform: translateY(-115%);
  color: #ff6b5f;
  font-size: calc(8 * var(--u));
  font-weight: 600;
}

.ch__x {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
}

.ch__data {
  clip-path: inset(-10% -2% -10% 0);
  transition: clip-path 1.8s var(--ease-out);
}

.ln {
  fill: none;
  stroke: var(--c);
  stroke-width: calc(2 * var(--u));
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ar {
  fill: var(--c);
  fill-opacity: 0.88;
  stroke: none;
}

/* Number */
.single {
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--u));
}

.single__value {
  font-family: var(--font-rounded);
  font-size: calc(40 * var(--u));
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.single__value--s {
  font-size: calc(25 * var(--u));
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: calc(3 * var(--u));
  font-size: calc(11 * var(--u));
  font-weight: 500;
  color: var(--w-ink-2);
}

.trend .ico {
  width: calc(10 * var(--u));
  height: calc(10 * var(--u));
  stroke-width: 2.6;
}

.spark {
  flex: 1;
  width: 100%;
  min-height: calc(16 * var(--u));
  overflow: visible;
}

.spark .ln {
  stroke-width: calc(1.5 * var(--u));
}

.spark__area {
  fill: var(--c);
  fill-opacity: 0.18;
  stroke: none;
}

/* Gauge: a 270° arc open at the bottom, like the app's ArcGauge */
.gauge {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: calc(4 * var(--u));
}

.gauge__arc {
  grid-area: 1 / 1;
  height: 100%;
  aspect-ratio: 1;
  transform: rotate(135deg);
  overflow: visible;
}

.gauge__num {
  grid-area: 1 / 1;
  align-self: center;
  font-family: var(--font-rounded);
  font-size: calc(20 * var(--u));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gauge .w__label {
  grid-row: 2;
}

.gauge__track,
.gauge__value {
  fill: none;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 75 100;
}

.gauge__track {
  stroke: rgba(235, 235, 245, 0.16);
}

.gauge__value {
  stroke: var(--c1);
  stroke-dashoffset: calc((1 - var(--v)) * 75px);
  transition: stroke-dashoffset 1.6s var(--ease-out);
}

/* Pie, drawn as a donut */
.donut {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
}

.donut__chart,
.donut--solo {
  position: relative;
  display: grid;
  place-items: center;
}

.donut__chart {
  height: 100%;
  aspect-ratio: 1;
}

.donut__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  transition: transform 1.4s var(--ease-out), opacity 0.8s;
}

.donut--solo .donut__svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  aspect-ratio: 1;
}

.slice {
  fill: none;
  stroke: var(--c);
  stroke-width: 7.9;
}

.donut__total {
  position: absolute;
  font-size: calc(13 * var(--u));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--u));
  font-size: calc(11 * var(--u));
  color: var(--w-ink-2);
}

.legend li {
  display: flex;
  align-items: center;
  gap: calc(5 * var(--u));
}

.legend i,
.table i {
  display: inline-block;
  width: calc(7 * var(--u));
  height: calc(7 * var(--u));
  border-radius: 50%;
  background: var(--c);
  flex: none;
}

.legend b {
  margin-left: auto;
  color: var(--w-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Alarm status */
.alarms {
  display: flex;
  flex-direction: column;
  gap: calc(7 * var(--u));
  font-size: calc(12 * var(--u));
}

.alarms--compact {
  gap: calc(4 * var(--u));
}

.alarms__summary {
  font-size: calc(20 * var(--u));
  font-weight: 600;
  color: #ff453a;
  margin-bottom: calc(2 * var(--u)) !important;
}

.alarm {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--u));
  white-space: nowrap;
}

.alarm span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alarm time {
  color: var(--w-ink-2);
  font-variant-numeric: tabular-nums;
}

.st {
  width: calc(13 * var(--u));
  height: calc(13 * var(--u));
  stroke-width: 2.2;
}

.st--alarm { color: #ff453a; }
.st--ok { color: #30d158; }
.st--unknown { color: #8e8e93; }

/* Table */
.table {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--u));
  font-size: calc(11 * var(--u));
  font-variant-numeric: tabular-nums;
}

.table__row {
  display: grid;
  grid-template-columns: 1fr repeat(3, calc(42 * var(--u)));
  gap: calc(8 * var(--u));
  align-items: center;
}

.table__row span:not(:first-child) {
  text-align: right;
}

.table__row span:first-child {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--u));
  overflow: hidden;
  white-space: nowrap;
}

.table__row--head {
  font-weight: 600;
  color: var(--w-ink-2);
  padding-bottom: calc(4 * var(--u));
  border-bottom: 1px solid rgba(84, 84, 88, 0.65);
}

/* Markdown text */
.md {
  font-size: calc(12 * var(--u));
  line-height: 1.35;
}

.md__h {
  font-size: calc(15 * var(--u));
  font-weight: 700;
  margin-bottom: calc(4 * var(--u)) !important;
}

/* A refresh failed: keep the data, fade it, say why */
.w--stale .w__body {
  opacity: 0.45;
}

/* Chart entrance animations, played when a widget scrolls into view (JS adds .is-in). */
.js .w:not(.is-in) .bar i {
  transform: scaleX(0);
}

.js .w:not(.is-in) .ch__data {
  clip-path: inset(-10% 100% -10% 0);
}

.js .w:not(.is-in) .gauge__value {
  stroke-dashoffset: 75px;
}

.js .w:not(.is-in) .donut__svg {
  transform: rotate(-200deg) scale(0.7);
  opacity: 0;
}

/* ------------------------------------------------------------------ Phone mockup */

.phone {
  --u: calc(var(--s, 0.72) * 1px);
  --bezel: calc(13 * var(--u));
  position: relative;
  width: calc(393 * var(--u) + 2 * var(--bezel));
  padding: var(--bezel);
  border-radius: calc(68 * var(--u));
  background: linear-gradient(150deg, #4b515e 0%, #1a1c22 22%, #0d0e12 60%, #2f333c 100%);
  box-shadow:
    inset 0 0 0 calc(1.5 * var(--u)) rgba(255, 255, 255, 0.16),
    inset 0 0 0 calc(4 * var(--u)) #08090c,
    0 60px 120px -30px rgba(0, 0, 0, 0.85),
    0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.phone .w {
  --s: inherit;
  --u: inherit;
  box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, 0.25);
}

.phone__screen {
  position: relative;
  width: calc(393 * var(--u));
  height: calc(852 * var(--u));
  border-radius: calc(55 * var(--u));
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.island {
  position: absolute;
  top: calc(11 * var(--u));
  left: 50%;
  width: calc(124 * var(--u));
  height: calc(36 * var(--u));
  margin-left: calc(-62 * var(--u));
  border-radius: calc(20 * var(--u));
  background: #000;
  z-index: 10;
}

.statusbar {
  position: absolute;
  inset: 0 0 auto;
  height: calc(54 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(4 * var(--u)) calc(30 * var(--u)) 0 calc(48 * var(--u));
  font-size: calc(16.5 * var(--u));
  font-weight: 600;
  color: #fff;
  z-index: 9;
}

.statusbar__icons {
  width: calc(66 * var(--u));
  height: calc(12 * var(--u));
  color: #fff;
}

.wallpaper {
  background:
    radial-gradient(90% 55% at 15% 8%, rgba(54, 98, 196, 0.85), transparent 60%),
    radial-gradient(80% 50% at 95% 100%, rgba(236, 120, 0, 0.75), transparent 62%),
    radial-gradient(60% 40% at 80% 45%, rgba(120, 60, 170, 0.45), transparent 70%),
    linear-gradient(170deg, #0f1d3d, #161233 55%, #2b1306);
}

.wallpaper--alt {
  background:
    radial-gradient(90% 55% at 85% 5%, rgba(236, 120, 0, 0.7), transparent 60%),
    radial-gradient(80% 60% at 10% 95%, rgba(54, 98, 196, 0.8), transparent 62%),
    linear-gradient(200deg, #2b1306, #161233 50%, #0f1d3d);
}

.homescreen {
  position: absolute;
  top: calc(66 * var(--u));
  inset-inline: 0;
  display: grid;
  grid-template-columns: repeat(2, calc(158 * var(--u)));
  justify-content: center;
  gap: calc(22 * var(--u));
}

.homescreen .w--m {
  grid-column: span 2;
}

.apps,
.dock {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apps {
  grid-column: 1 / -1;
  padding: calc(2 * var(--u)) calc(6 * var(--u)) 0;
}

.dock {
  position: absolute;
  left: calc(12 * var(--u));
  right: calc(12 * var(--u));
  bottom: calc(14 * var(--u));
  height: calc(92 * var(--u));
  padding: 0 calc(16 * var(--u));
  border-radius: calc(34 * var(--u));
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app {
  position: relative;
  width: calc(62 * var(--u));
  height: calc(62 * var(--u));
  border-radius: calc(14 * var(--u));
  overflow: hidden;
  box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.25);
}

.app::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 30%;
  background: rgba(255, 255, 255, 0.85);
}

.app--cw::after {
  display: none;
}

.app--cw img {
  width: 100%;
  height: 100%;
}

.app--1 { background: linear-gradient(160deg, #5eead4, #0d9488); }
.app--2 { background: linear-gradient(160deg, #fda4af, #e11d48); }
.app--2::after { border-radius: 50%; }
.app--3 { background: linear-gradient(160deg, #fde68a, #f59e0b); }
.app--3::after { inset: 28% 22%; border-radius: 12%; }
.app--5 { background: linear-gradient(160deg, #86efac, #16a34a); }
.app--5::after { border-radius: 50%; inset: 26%; }
.app--6 { background: linear-gradient(160deg, #93c5fd, #2563eb); }
.app--7 { background: linear-gradient(160deg, #f3f4f6, #9ca3af); }
.app--7::after { background: rgba(31, 41, 55, 0.7); border-radius: 50%; }
.app--8 { background: linear-gradient(160deg, #c4b5fd, #7c3aed); }
.app--8::after { inset: 34% 24%; border-radius: 40%; }

/* In-app screens (dark mode iOS) */
.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}

.screen.is-active {
  opacity: 1;
  transform: none;
}

.screen--app {
  background: #000;
}

.app-ui {
  --accent-ios: #f2a12e;
  position: absolute;
  inset: calc(54 * var(--u)) 0 0;
  padding: calc(6 * var(--u)) calc(16 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
  color: #fff;
  font-size: calc(15 * var(--u));
  line-height: 1.25;
  overflow: hidden;
}

.app-ui p {
  margin: 0;
}

.app-ui .ico {
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
}

.app-ui__large {
  font-size: calc(32 * var(--u));
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: calc(4 * var(--u)) calc(4 * var(--u)) 0;
}

.app-ui__back {
  display: flex;
  align-items: center;
  gap: calc(2 * var(--u));
  color: var(--accent-ios);
  font-size: calc(17 * var(--u));
  margin-top: calc(4 * var(--u));
}

.app-ui__back .ico {
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  stroke-width: 2.6;
}

.app-ui__note {
  font-size: calc(12.5 * var(--u));
  color: rgba(235, 235, 245, 0.6);
  padding: 0 calc(4 * var(--u));
}

.app-ui__note--banner {
  color: #ffd59a;
  background: rgba(236, 140, 0, 0.14);
  padding: calc(10 * var(--u)) calc(12 * var(--u));
  border-radius: calc(12 * var(--u));
}

.signin-hero {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  background: #1c1c1e;
  border-radius: calc(14 * var(--u));
  padding: calc(12 * var(--u));
  font-size: calc(14 * var(--u));
}

.signin-hero img {
  width: calc(46 * var(--u));
  height: calc(46 * var(--u));
  border-radius: calc(11 * var(--u));
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: calc(2 * var(--u));
  border-radius: calc(9 * var(--u));
  background: rgba(118, 118, 128, 0.24);
  font-size: calc(13 * var(--u));
  font-weight: 500;
}

.segmented span {
  text-align: center;
  padding: calc(6 * var(--u));
  border-radius: calc(7 * var(--u));
}

.segmented .is-on {
  background: #636366;
}

.form-group {
  background: #1c1c1e;
  border-radius: calc(12 * var(--u));
  overflow: hidden;
}

.field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(8 * var(--u));
  padding: calc(11 * var(--u)) calc(14 * var(--u));
  border-bottom: 1px solid rgba(84, 84, 88, 0.5);
}

.field:last-child {
  border-bottom: 0;
}

.field b {
  display: inline-flex;
  align-items: center;
  font-weight: 400;
  color: rgba(235, 235, 245, 0.6);
}

.field--link {
  justify-content: flex-start;
  color: var(--accent-ios);
}

.field--mono {
  font-family: var(--font-mono);
  font-size: calc(12 * var(--u));
  color: rgba(235, 235, 245, 0.75);
}

.app-ui__section {
  margin: calc(4 * var(--u)) calc(4 * var(--u)) calc(-6 * var(--u)) !important;
  font-size: calc(12.5 * var(--u));
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.6);
}

.app-btn--primary {
  text-align: center;
  padding: calc(13 * var(--u));
  border-radius: calc(12 * var(--u));
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: calc(16 * var(--u));
}

.card {
  background: #1c1c1e;
  border-radius: calc(14 * var(--u));
  padding: calc(12 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--u));
}

.card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: calc(14 * var(--u));
  font-weight: 600;
}

.pin-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(4 * var(--u));
  padding: calc(4 * var(--u)) calc(10 * var(--u));
  border-radius: 99px;
  font-size: calc(12 * var(--u));
  font-weight: 600;
  color: var(--accent-ios);
  background: rgba(236, 140, 0, 0.16);
}

.pin-btn .ico {
  width: calc(12 * var(--u));
  height: calc(12 * var(--u));
}

.pin-btn.is-pinned {
  color: #ff9f0a;
  background: rgba(255, 159, 10, 0.2);
}

.pin-btn.is-pinned .ico {
  fill: currentColor;
}

.screen.is-active .pin-btn.is-pinned::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--accent);
  animation: ping 1.6s 0.6s var(--ease-out) 2;
}

@keyframes ping {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.8, 2.2); opacity: 0; }
}

.w--card {
  width: auto;
  height: calc(112 * var(--u));
  padding: 0;
  background: transparent;
  box-shadow: none !important;
  border-radius: 0;
}

.card .alarms {
  height: auto;
}

.card:has(.alarms) .w--card {
  height: auto;
}

.screen.is-active .is-new {
  animation: added 1.1s 0.3s var(--ease-out) both;
}

@keyframes added {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.03); opacity: 1; }
  100% { transform: none; }
}

/* ------------------------------------------------------------------ Hero */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 0;
  background: radial-gradient(120% 80% at 50% -10%, var(--bg-3) 0%, var(--bg-1) 55%);
  display: flex;
  align-items: center;
}

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

.hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.hero__title {
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 26px;
}

.hero__copy .lead {
  margin-bottom: 34px;
}

.trust {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

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

.trust .ico {
  color: var(--orange-2);
  stroke-width: 3;
}

.hero__stage {
  position: relative;
  height: 700px;
  display: grid;
  place-items: center;
}

.hero__phone {
  position: relative;
  z-index: 2;
}

.phone--hero {
  --s: 0.76;
}

.float {
  position: absolute;
  z-index: 3;
}

.float .w {
  --s: 0.92;
}

.float--a { top: 70px; left: -40px; z-index: 1; }
.float--b { bottom: 70px; left: -10px; }
.float--c { top: 130px; right: -50px; z-index: 1; }
.float--d { bottom: 150px; right: -20px; }

.tilt--l { transform: rotate(-9deg); }
.tilt--l2 { transform: rotate(5deg); }
.tilt--r { transform: rotate(8deg); }
.tilt--r2 { transform: rotate(-5deg); }

/* Floats behind the phone read as further away. */
.float--a .w,
.float--c .w {
  --s: 0.8;
  filter: saturate(0.85) brightness(0.85);
}

@media (max-width: 1080px) {
  .hero {
    padding-top: 110px;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy .lead {
    margin-inline: auto;
  }

  .hero__copy .cta-row,
  .trust {
    justify-content: center;
  }

  .hero__stage {
    width: min(620px, 100%);
    margin: 10px auto 0;
  }
}

@media (max-width: 600px) {
  .hero__stage {
    height: 560px;
  }

  .phone--hero {
    --s: 0.62;
  }

  .float .w {
    --s: 0.7;
  }

  .float--a .w,
  .float--c .w {
    --s: 0.62;
  }

  .float--a { top: 40px; left: -24px; }
  .float--c { top: 90px; right: -30px; }

  /* No room beside the phone: keep only the widgets that sit behind it. */
  .float--b,
  .float--d {
    display: none;
  }

  .trust {
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin-inline: auto;
    text-align: left;
  }
}

/* ------------------------------------------------------------------ Ticker */

.ticker {
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  display: grid;
  gap: 12px;
}

.ticker__row {
  display: flex;
  gap: 12px;
  width: max-content;
  margin-left: -30%;
  white-space: nowrap;
}

.ticker__row--alt {
  margin-left: -55%;
}

.ticker__row span {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--ink-2);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.ticker__row--alt span {
  color: var(--orange-3);
  border-color: rgba(255, 181, 71, 0.16);
  background: rgba(255, 153, 0, 0.04);
}

/* ------------------------------------------------------------------ How it works */

.how {
  padding: var(--section-pad) 0 calc(var(--section-pad) * 0.6);
  background: linear-gradient(180deg, var(--bg-1), var(--bg) 40%, var(--bg-1));
}

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

.step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  max-width: 470px;
  opacity: 0.28;
  transition: opacity 0.5s;
}

.step.is-active {
  opacity: 1;
}

.no-js .step {
  opacity: 1;
}

.step__num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 181, 71, 0.7);
}

.step h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.step > p {
  color: var(--ink-2);
  font-size: 1.08rem;
}

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

.step__aside {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem !important;
  color: var(--orange-3) !important;
}

.step__media {
  display: none;
}

.how__sticky {
  position: sticky;
  top: max(84px, calc(50vh - 439px * var(--how-s)));
  display: grid;
  place-items: center;
}

.how__phone {
  position: relative;
}

.how__phone::before {
  content: "";
  position: absolute;
  inset: 10% -10%;
  background: radial-gradient(closest-side, rgba(255, 153, 0, 0.18), transparent);
  pointer-events: none;
}

.how {
  --how-s: 0.72;
}

.phone--how {
  --s: var(--how-s);
}

@media (max-height: 800px) {
  .how { --how-s: 0.64; }
}

@media (max-height: 680px) {
  .how { --how-s: 0.54; }
}

@media (max-width: 899px) {
  .how__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .js .how__phone {
    display: none;
  }

  .no-js .how__phone {
    order: -1;
    margin-bottom: 40px;
  }

  .no-js .how__sticky {
    position: static;
  }

  .step {
    min-height: 0;
    max-width: none;
    opacity: 1;
    padding: 32px 0 48px;
  }

  .js .step__media {
    display: grid;
    place-items: center;
    margin-top: 18px;
    container-type: inline-size;
  }

  .step__media .phone {
    --s: 0.62;
  }

  .step__media .screen {
    transition: none;
  }
}

@media (max-width: 420px) {
  .step__media .phone {
    --s: 0.56;
  }
}

/* ------------------------------------------------------------------ Gallery */

.gallery {
  padding: var(--section-pad) 0 calc(var(--section-pad) * 1.2);
  background: var(--bg-1);
}

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

.masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.masonry__col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.masonry__col--mid {
  margin-top: 90px;
}

.tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  container-type: inline-size;
}

/* Scale each widget down to fit its column, never up. */
.tile .w--m {
  --u: min(1px, calc(100cqi / 338));
}

.tile .w--s {
  --u: min(1px, calc(100cqi / 158));
}

.tile figcaption {
  font-size: 0.92rem;
  color: var(--ink-3);
  text-align: center;
}

.tile figcaption b {
  color: var(--ink);
  font-weight: 600;
}

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

  .masonry__col:nth-child(3) {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  .masonry__col:nth-child(3) .tile {
    flex: 0 1 calc(50% - 15px);
  }

  .masonry__col--mid {
    margin-top: 60px;
  }
}

@media (max-width: 680px) {
  .masonry {
    grid-template-columns: minmax(0, 1fr);
  }

  /* One column again. Not wrapping, too: in a wrapping column the tiles (size containers)
     were measured too short, so their widgets were squashed or ran into the next tile. */
  .masonry__col,
  .masonry__col:nth-child(3) {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .masonry__col:nth-child(3) .tile {
    flex: none;
  }

  .masonry__col--mid {
    margin-top: 0;
  }
}

/* ------------------------------------------------------------------ Widgets that open their guide
   Spend and alarm widget examples link to the setup guide that builds them. They grow a little
   on hover or keyboard focus. The link scales, not the widget, which has transforms of its own
   (the scroll reveal, the floating widget's tilt). */

.zoom-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 24px;
  transition: transform 0.35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.zoom-link:focus-visible {
  outline-offset: 6px;
  border-radius: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  .zoom-link:focus-visible {
    transform: scale(1.06);
  }

  .zoom-link--gentle:focus-visible {
    transform: scale(1.03);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .zoom-link:hover {
    transform: scale(1.06);
  }

  /* The spend section's large widget would cover its neighbour. */
  .zoom-link--gentle:hover {
    transform: scale(1.03);
  }
}

/* "Example setup", under the caption of a gallery widget that links to its guide. Placed below
   the caption so showing it doesn't move the tiles. */
.tile--link figcaption {
  position: relative;
}

.tile__hint {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--orange-2);
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 0.25s, transform 0.3s var(--ease-out);
  pointer-events: none;
}

.tile__hint .ico {
  width: 14px;
  height: 14px;
}

.tile--link:hover .tile__hint,
.tile--link:focus-within .tile__hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Without hover (phones and tablets), always say where a tap goes. */
@media (hover: none) {
  .tile__hint {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ------------------------------------------------------------------ Split layout */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.split--reverse .split__copy {
  order: 2;
}

.split__copy h2 {
  margin-bottom: 22px;
}

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

@media (max-width: 899px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--reverse .split__copy {
    order: 0;
  }

  .split__visual {
    min-height: 0;
  }
}

/* ------------------------------------------------------------------ Spend */

.spend {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg-1), #0d1222);
}

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

.coin {
  position: absolute;
  font-family: var(--font-rounded);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 153, 0, 0.07);
  -webkit-text-stroke: 1px rgba(255, 153, 0, 0.16);
}

.coin--1 { font-size: 260px; left: 47%; top: 58%; }
.coin--2 { font-size: 140px; right: 6%; top: 8%; }
.coin--3 { font-size: 180px; right: 42%; bottom: -10%; }

.spend__main .w {
  --s: 1.06;
}

.spend__float {
  position: absolute;
  right: 0;
  bottom: 10px;
  z-index: 2;
}

.spend__float .w {
  transform: rotate(6deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (max-width: 899px) {
  .coin {
    display: none;
  }
}

@media (max-width: 1100px) {
  .spend__main .w { --s: 0.95; }
  .spend__float { right: -20px; }
}

@media (max-width: 899px) {
  .split__visual.spend__visual,
  .spend .split__visual {
    padding: 20px 0 80px;
  }
}

@media (max-width: 480px) {
  .spend__main .w { --s: 0.9; }
  .spend__float .w { --s: 0.78; }
  .spend__float { right: -10px; bottom: 0; }
}

@media (max-width: 380px) {
  .spend__main .w { --s: 0.82; }
}

/* ------------------------------------------------------------------ Lock Screen */

.lock {
  padding: var(--section-pad) 0;
  background: radial-gradient(70% 60% at 30% 50%, rgba(44, 76, 150, 0.35), transparent 70%), #0b1020;
}

.lock__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.lock__digits {
  font-family: var(--font-rounded);
  font-size: clamp(200px, 34vw, 520px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.phone--lock {
  --s: 0.72;
}

.lockscreen {
  background:
    radial-gradient(110% 60% at 50% 105%, rgba(255, 128, 0, 0.95), transparent 60%),
    radial-gradient(90% 60% at 0% 40%, rgba(70, 60, 200, 0.6), transparent 70%),
    linear-gradient(180deg, #071330 0%, #1c1446 55%, #4a1a0c 100%);
  color: #fff;
}

.lockscreen::after {
  content: "";
  position: absolute;
  bottom: calc(8 * var(--u));
  left: 50%;
  width: calc(134 * var(--u));
  height: calc(5 * var(--u));
  margin-left: calc(-67 * var(--u));
  border-radius: 99px;
  background: #fff;
}

.lockscreen p {
  margin: 0;
}

.lockscreen__top {
  position: absolute;
  top: calc(70 * var(--u));
  inset-inline: 0;
  text-align: center;
}

.lockscreen__inline {
  font-size: calc(17 * var(--u));
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.lockscreen__time {
  font-family: var(--font-rounded);
  font-size: calc(104 * var(--u));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  margin-top: calc(2 * var(--u)) !important;
}

.lockscreen__widgets {
  position: absolute;
  top: calc(232 * var(--u));
  inset-inline: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(12 * var(--u));
}

.acc {
  color: #fff;
}

.acc small {
  font-size: calc(11 * var(--u));
  opacity: 0.72;
}

.acc--rect {
  width: calc(150 * var(--u));
  height: calc(72 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: calc(13 * var(--u));
  line-height: 1.15;
}

.acc--rect b {
  font-weight: 600;
}

.acc__value {
  font-family: var(--font-rounded);
  font-size: calc(23 * var(--u));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.acc--circ {
  position: relative;
  width: calc(72 * var(--u));
  height: calc(72 * var(--u));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
}

.acc--circ small {
  font-size: calc(8.5 * var(--u));
  font-weight: 600;
  opacity: 0.85;
}

.acc__gauge {
  position: absolute;
  inset: calc(5 * var(--u));
  transform: rotate(135deg);
  overflow: visible;
}

.acc__gauge .gauge__track {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 3;
}

.acc__gauge .gauge__value {
  stroke: #fff;
  stroke-width: 3;
}

.js .lockscreen__widgets:not(.is-in) .gauge__value {
  stroke-dashoffset: 75px;
}

.acc__num {
  font-family: var(--font-rounded);
  font-size: calc(16 * var(--u));
  font-weight: 600;
}

.acc__num--big {
  font-size: calc(19 * var(--u));
}

.lockscreen__bottom {
  position: absolute;
  bottom: calc(46 * var(--u));
  inset-inline: calc(46 * var(--u));
  display: flex;
  justify-content: space-between;
}

.round-btn {
  display: grid;
  place-items: center;
  width: calc(50 * var(--u));
  height: calc(50 * var(--u));
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
}

.round-btn .ico {
  width: calc(22 * var(--u));
  height: calc(22 * var(--u));
  color: #fff;
}

@media (max-width: 480px) {
  .phone--lock { --s: 0.62; }
}

/* ------------------------------------------------------------------ Features (bento) */

.features {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, #0b1020, var(--bg-1));
}

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

.bento__card {
  position: relative;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}

.bento__card > p,
.bento__copy > p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.bento__card > p b,
.bento__copy > p b {
  color: var(--ink);
  font-weight: 600;
}

.bento__card--hero {
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 30px;
  background:
    radial-gradient(80% 80% at 80% 100%, rgba(255, 159, 10, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

.bento__copy {
  max-width: 520px;
}

.bento__art {
  display: grid;
  place-items: center;
  container-type: inline-size;
}

.bento__art .w {
  --u: min(1.4px, calc(100cqi / 338));
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.sz {
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 181, 71, 0.55);
  background: rgba(255, 153, 0, 0.07);
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--orange-3);
}

.sz--s { width: 34px; height: 34px; }
.sz--m { width: 72px; height: 34px; }
.sz--l { width: 72px; height: 72px; }
.sz--xl { width: 110px; height: 72px; }
.sz--circ { width: 30px; height: 30px; border-radius: 50%; border-style: dashed; }
.sz--rect { width: 58px; height: 26px; border-radius: 8px; border-style: dashed; }

.js .bento__card.is-in .spin-on-reveal {
  animation: spin 1.4s 0.3s var(--ease-out);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

  .bento__card--hero {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento__card--hero {
    grid-column: auto;
  }

  .bento__card {
    padding: 24px;
  }
}

/* ------------------------------------------------------------------ Faithful */

.faithful {
  padding: var(--section-pad) 0;
  background: var(--bg-1);
}

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

.chips li {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.chips code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--orange-3);
}

.faithful__visual {
  align-content: start;
  justify-items: start;
  padding-bottom: 120px;
}

.code-wrap {
  width: min(100%, 520px);
}

.code {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0f172a, #0a1020);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.code__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.code__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.code__bar span:nth-child(2) { background: #febc2e; }
.code__bar span:nth-child(3) { background: #28c840; }

.code__bar em {
  margin-left: 10px;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.code pre,
.policy {
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  color: #c9d4e5;
}

.code pre {
  padding: 18px 20px 22px;
  font-size: 0.78rem;
  line-height: 1.65;
}

.code i,
.policy i {
  font-style: normal;
}

.code pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}

.code .k { color: #7dd3fc; }
.code .s,
.policy .s { color: #fdba74; }
.code .n { color: #c4b5fd; }
.code .m { color: #f472b6; font-weight: 700; }

.faithful__arrow {
  position: absolute;
  left: 13%;
  bottom: 46px;
  z-index: 3;
}

.faithful__arrow .ico {
  width: 52px;
  height: 52px;
  padding: 13px;
  border-radius: 50%;
  color: #1a1203;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  box-shadow: 0 12px 30px -8px rgba(255, 153, 0, 0.8);
  transform: rotate(12deg);
  stroke-width: 2.6;
}

.faithful__widget {
  position: absolute;
  right: -10px;
  bottom: 0;
  z-index: 2;
}

.faithful__widget .w {
  transform: rotate(-3deg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .faithful__widget .w { --s: 0.9; }
}

@media (max-width: 899px) {
  .faithful__visual {
    justify-items: center;
    padding-bottom: 150px;
  }

  .faithful__widget {
    right: 0;
  }
}

@media (max-width: 480px) {
  .faithful__widget .w { --s: 0.8; }
  .faithful__arrow { left: 4%; bottom: 70px; }
  .code pre { font-size: 0.7rem; }
}

/* ------------------------------------------------------------------ Privacy */

.privacy {
  padding: var(--section-pad) 0;
  background: radial-gradient(60% 50% at 50% 40%, #12203d, var(--bg) 75%);
}

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

.orbit {
  position: absolute;
  left: 50%;
  top: 46%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 181, 71, 0.16);
}

.orbit span {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px 4px rgba(255, 153, 0, 0.55);
}

.orbit span:nth-child(2) {
  top: auto;
  bottom: -5px;
  background: #60a5fa;
  box-shadow: 0 0 18px 4px rgba(96, 165, 250, 0.5);
}

.orbit--1 { width: 560px; height: 560px; margin: -280px 0 0 -280px; }
.orbit--2 { width: 860px; height: 860px; margin: -430px 0 0 -430px; border-color: rgba(96, 165, 250, 0.14); }
.orbit--3 { width: 1180px; height: 1180px; margin: -590px 0 0 -590px; }

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

.pcard {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(12, 19, 36, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pcard > p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.policy {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  line-height: 1.7;
}

.policy code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

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

@media (max-width: 600px) {
  .privacy__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ FAQ */

.faq {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.faq__list details {
  border-bottom: 1px solid var(--line);
}

.faq__list details:first-child {
  border-top: 1px solid var(--line);
}

.faq__list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  font-size: 1.12rem;
  font-weight: 600;
  transition: color 0.2s;
}

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

.faq__list summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--orange-2);
  border-bottom: 2px solid var(--orange-2);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

.faq__list details[open] summary::after {
  transform: translateY(3px) rotate(225deg);
}

.faq__list summary:hover {
  color: var(--orange-3);
}

.faq__list details p {
  padding: 0 4px 24px;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ------------------------------------------------------------------ Final CTA */

.final {
  padding: calc(var(--section-pad) * 1.1) 0 calc(var(--section-pad) * 1.3);
  text-align: center;
  background: linear-gradient(180deg, var(--bg), #120c06 85%);
}

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

.final__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.final__icon {
  width: 128px;
  height: 128px;
  border-radius: 29px;
  box-shadow: 0 30px 80px -10px rgba(255, 153, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: bob 6s ease-in-out infinite;
  margin-bottom: 10px;
}

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

.final h2 {
  max-width: 15em;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  letter-spacing: -0.035em;
}

.final .lead {
  margin-inline: auto;
}

.fine {
  font-size: 0.86rem;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ Footer */

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: #0b0805;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.footer .brand {
  font-size: 0.95rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.9rem;
}

.footer__links a {
  color: var(--ink-2);
  text-decoration: none;
}

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

.footer__legal {
  flex-basis: 100%;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 90ch;
}

/* ------------------------------------------------------------------ Content pages (docs, privacy) */

.page-hero {
  padding: 150px 0 72px;
  background: radial-gradient(120% 90% at 50% -20%, var(--bg-3) 0%, var(--bg-1) 62%);
  border-bottom: 1px solid var(--line);
}

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

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  max-width: 16em;
}

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

.page-meta {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.page {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  padding: 64px 0 clamp(96px, 12vw, 150px);
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 0.9rem;
}

.toc__title {
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  color: var(--ink-3);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.2s, border-color 0.2s;
}

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

.toc a.is-current {
  color: var(--ink);
  border-left-color: var(--orange);
}

/* Running text */
.prose {
  min-width: 0;
  max-width: 760px;
  color: var(--ink-2);
}

.prose > section + section {
  margin-top: 72px;
}

.prose h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  scroll-margin-top: 90px;
}

.prose h3 {
  margin: 40px 0 12px;
  font-size: 1.22rem;
  color: var(--ink);
  scroll-margin-top: 90px;
}

.prose h4 {
  margin: 28px 0 10px;
  font-size: 1.02rem;
  color: var(--ink);
}

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

.prose ul,
.prose ol {
  margin: 14px 0 0;
  padding-left: 24px;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--orange-2);
}

.prose strong,
.prose b {
  color: var(--ink);
  font-weight: 600;
}

.prose kbd {
  font-family: var(--font);
  font-size: 0.86em;
  font-weight: 600;
  color: var(--ink);
  padding: 0.1em 0.45em;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}

/* Numbered steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0 !important;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
}

.steps > li + li {
  margin-top: 16px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-2);
  background: rgba(255, 153, 0, 0.12);
  border: 1px solid rgba(255, 181, 71, 0.3);
}

/* Code blocks, with a copy button added by script */
.codeblock {
  position: relative;
  margin: 20px 0 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0f172a, #0a1020);
  overflow: hidden;
}

.codeblock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-3);
}

.codeblock__actions {
  display: flex;
  gap: 6px;
}

.codeblock__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.codeblock__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.codeblock__btn.is-done {
  color: #30d158;
}

.codeblock__btn .ico {
  width: 14px;
  height: 14px;
}

.codeblock pre {
  margin: 0;
  padding: 16px 18px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #c9d4e5;
  tab-size: 2;
}

.codeblock code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}

/* Notes and warnings */
.callout {
  display: flex;
  gap: 14px;
  margin: 24px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 181, 71, 0.25);
  background: rgba(255, 153, 0, 0.06);
}

.callout > .ico {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--orange-2);
}

.callout p {
  margin: 0;
}

.callout--warn {
  border-color: rgba(255, 99, 88, 0.3);
  background: rgba(255, 69, 58, 0.07);
}

.callout--warn > .ico {
  color: #ff7b72;
}

/* Tables */
.table-wrap {
  margin: 20px 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.prose th,
.prose td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.prose th {
  color: var(--ink);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.prose tr:last-child td {
  border-bottom: 0;
}

/* Long values, such as a list of service names, wrap rather than squeeze the other columns. */
.prose td code {
  overflow-wrap: anywhere;
}

.prose td:first-child code {
  white-space: nowrap;
  overflow-wrap: normal;
}

/* Cards: a short summary, or a choice between two paths */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0 0;
}

.card-link {
  display: block;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.25s var(--ease-out);
}

a.card-link:hover {
  border-color: rgba(255, 181, 71, 0.45);
  transform: translateY(-2px);
}

.card-link .badge {
  margin-bottom: 14px;
}

.card-link h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.card-link p {
  margin: 0;
  font-size: 0.95rem;
}

.cards + p {
  margin-top: 24px;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.btn .ico {
  width: 18px;
  height: 18px;
}

/* A widget preview inside the docs */
.preview {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  margin: 28px 0 0;
  padding: 32px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 80% at 15% 0%, rgba(54, 98, 196, 0.45), transparent 60%),
    radial-gradient(80% 70% at 100% 100%, rgba(236, 120, 0, 0.35), transparent 62%),
    linear-gradient(170deg, #0f1d3d, #161233 55%, #2b1306);
}

.preview .w {
  --s: 1;
}

.preview + p {
  margin-top: 28px;
}

.preview figcaption {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(235, 235, 245, 0.7);
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
  }

  .toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
  }
}

@media (max-width: 420px) {
  .preview .w {
    --s: 0.88;
  }
}

/* ------------------------------------------------------------------ Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 70;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(28, 29, 34, 0.94);
  border: 1px solid rgba(255, 181, 71, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
  pointer-events: none;
}

.toast:empty {
  display: none;
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

.js [data-reveal] {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
}

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

/* Parallax layers are moved by script every frame: never transition them. */
[data-speed],
[data-speed-x],
[data-rotate] {
  will-change: transform;
}

/* ------------------------------------------------------------------ Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  [data-speed],
  [data-speed-x],
  [data-rotate] {
    will-change: auto;
  }
}

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

.notfound {
  position: relative;
  overflow: clip;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
}

.notfound h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 14em;
}

.notfound .eyebrow {
  margin: 0;
}
