/* nembo.app: the app's look (apps/prototype/src/styles), on a page. */

@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --font: 'Nunito', ui-rounded, system-ui, sans-serif;
  --display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --bg: #fff6ec;
  --bg-soft: #fbeee1;
  --surface: #ffffff;
  --hair: #f2e3d4;
  --hair-strong: #e5cfba;
  --ink: #1f2a44;
  --ink-2: #4c5670;
  --ink-3: #79819a;
  --sky: #a9cbf2;
  --sky-deep: #7fb2ee;
  --apricot: #ff9a5c;
  --apricot-deep: #e9732f;
  --peach: #ffdcc4;
  --sun: #ffc94a;
  --ok: #2f9e7e;
  --radius: 30px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(31, 42, 68, 0.05), 0 18px 40px -22px rgba(31, 42, 68, 0.28);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(46px, 7vw, 88px);
}

h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  max-width: 16ch;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 40px);
}

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

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apricot-deep);
  margin-bottom: 14px;
}

.lead,
.section-lead {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--ink-2);
  max-width: 34em;
}

.section-lead {
  margin-top: 18px;
}

/* Buttons: the app's pill buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--spring),
    box-shadow 0.25s var(--ease),
    background 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -16px rgba(31, 42, 68, 0.6);
}

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

.btn-light {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--sky) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition:
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.top.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  box-shadow: 0 1px 0 var(--hair);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
}

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

.nav a:not(.btn) {
  position: relative;
  text-decoration: none;
  color: var(--ink-2);
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

.nav a:not(.btn):hover,
.nav a.active {
  color: var(--ink);
}

.nav a:not(.btn):hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  min-height: 44px;
  padding: 0 20px;
  font-size: 16px;
}

.menu-btn {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.menu-btn span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.35s var(--spring),
    top 0.35s var(--ease);
}

.menu-btn span:first-child {
  top: 18px;
}

.menu-btn span:last-child {
  top: 26px;
}

.menu-btn[aria-expanded='true'] span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded='true'] span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

/* Hero: the sky of the app's first screen, ending in a row of clouds */

.hero {
  position: relative;
  background: var(--sky);
  padding: 40px 0 0;
  margin-top: -1px;
  overflow: hidden;
}

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

.sun {
  position: absolute;
  right: 12%;
  top: 40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow:
    0 0 0 18px rgba(255, 201, 74, 0.28),
    0 0 0 40px rgba(255, 201, 74, 0.12);
}

.cloud {
  position: absolute;
  fill: url(#cloud-shade);
  filter: drop-shadow(0 10px 14px rgba(70, 110, 170, 0.18));
}

.cloud.c1 {
  width: 280px;
  height: 168px;
  right: -60px;
  top: 110px;
}

.cloud.c2 {
  width: 150px;
  height: 90px;
  left: 4%;
  top: 60px;
  opacity: 0.95;
}

.cloud.c3 {
  width: 100px;
  height: 60px;
  left: 46%;
  top: 26px;
  opacity: 0.9;
}

.cloud.c4 {
  width: 190px;
  height: 114px;
  left: 52%;
  bottom: 140px;
  opacity: 0.55;
}

.cloud.c1 use,
.cloud.c2 use,
.cloud.c3 use,
.cloud.c4 use {
  animation: drift 20s ease-in-out infinite alternate;
}

.cloud.c2 use {
  animation-duration: 26s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  to {
    transform: translateX(-22px);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  min-height: 600px;
  padding-bottom: 170px;
}

.hero-text .lead {
  margin-top: 24px;
  color: #2c3a5a;
}

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

.fine {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #3d4c6e;
}

.hero-object {
  margin: 0 -10% 0 -2%;
}

.hero-object img {
  width: 100%;
  filter: drop-shadow(0 34px 34px rgba(31, 42, 68, 0.22));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-12px) rotate(-1deg);
  }
}

.cloud-bank {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 190px;
  pointer-events: none;
  background:
    var(--bank-hero-front) repeat-x 0 100% / auto 150px,
    var(--bank-hero-back) repeat-x 260px 100% / auto 190px;
}

/* Hero entrance */

.hero-eyebrow,
.hero-title,
.hero-text .lead,
.cta-row,
.fine,
.hero-object {
  animation: rise 0.9s var(--ease-out) both;
}

.hero-title {
  animation-delay: 0.06s;
}

.hero-text .lead {
  animation-delay: 0.14s;
}

.cta-row {
  animation-delay: 0.22s;
}

.fine {
  animation-delay: 0.28s;
}

.hero-object {
  animation: pop 1.1s var(--ease-out) 0.1s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
  }
}

/* Sections */

.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
}

/* Soft sections open and close with a row of clouds instead of straight corners. */
.section-soft {
  background: var(--bg-soft);
  margin: 100px 0;
}

.section-soft::before,
.section-soft::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
}

/* Top: peach clouds rising out of the cream page. */
.section-soft::before {
  top: -119px;
  background:
    var(--bank-soft-front) repeat-x 0 100% / auto 100px,
    var(--bank-soft-back) repeat-x 300px 100% / auto 120px;
}

/* Bottom: cream clouds rising out of the peach section. */
.section-soft::after {
  bottom: -1px;
  background:
    var(--bank-cream-front) repeat-x 140px 100% / auto 100px,
    var(--bank-cream-back) repeat-x 0 100% / auto 120px;
}

/* Puffy cards: a rounded card with a row of cloud bumps on top (one silhouette, one shadow). */

.puff {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #fffaf4 100%);
  border-radius: var(--radius);
  filter: drop-shadow(0 1px 1px rgba(31, 42, 68, 0.05)) drop-shadow(0 16px 24px rgba(31, 42, 68, 0.1));
  transition:
    transform 0.45s var(--spring),
    filter 0.45s var(--ease);
}

.puff::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -70px;
  height: 74px;
  background: var(--cap-1) no-repeat 50% 100% / 360px 74px;
  pointer-events: none;
}

.puff:nth-child(3n + 2)::before {
  background-image: var(--cap-2);
}

.puff:nth-child(3n)::before {
  background-image: var(--cap-3);
}

.puff:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 1px 1px rgba(31, 42, 68, 0.05)) drop-shadow(0 24px 30px rgba(31, 42, 68, 0.16));
}

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 84px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.steps .puff {
  padding: 30px 28px 32px;
}

.steps p {
  margin-top: 10px;
  color: var(--ink-2);
}

.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}

.steps .puff:nth-child(1) .step-num {
  color: #c85a1f;
}

.steps .puff:nth-child(2) .step-num {
  color: #3f73b8;
}

.steps .puff:nth-child(3) .step-num {
  color: var(--ok);
}

/* Routine cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 84px 22px;
  margin-top: 96px;
}

.card {
  padding: 28px 28px 30px;
  overflow: visible;
}

.card-cloud {
  display: block;
  width: 70px;
  height: 42px;
  margin-bottom: 18px;
  fill: var(--tint);
  transition: transform 0.6s var(--spring);
}

.card:hover .card-cloud {
  transform: translateX(10px) translateY(-4px);
}

.card-when {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.card p:not(.card-when) {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16px;
}

/* Promise */

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

.promise-item {
  position: relative;
  padding-top: 26px;
}

.promise-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--line, 1));
  transition: transform 1s var(--ease-out) calc(var(--i, 0) * 0.12s + 0.15s);
}

.promise-item.reveal:not(.in)::before {
  --line: 0;
}

.promise-item p {
  margin-top: 12px;
  color: var(--ink-2);
}

/* Colours */

.colors-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 48px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.swatch {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--c);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(31, 42, 68, 0.12);
  transition:
    box-shadow 0.2s var(--ease),
    transform 0.3s var(--spring);
}

.swatch span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.swatch:hover {
  transform: scale(1.1);
}

.swatch[aria-checked='true'] {
  box-shadow:
    inset 0 0 0 1px rgba(31, 42, 68, 0.12),
    0 0 0 3px var(--bg-soft),
    0 0 0 5px var(--ink);
}

.swatch-name {
  margin-top: 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
}

.color-stage {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.stage-cloud {
  position: absolute;
  width: 100%;
  height: 100%;
  fill: var(--stage, #f3ead9);
  transition: fill 0.5s var(--ease);
}

.color-stage img {
  position: relative;
  width: 82%;
  margin-top: 8%;
  transition:
    opacity 0.25s var(--ease),
    transform 0.5s var(--spring);
}

.color-stage img.fading {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
}

/* App: iPhone 17 Pro frames (402×874 pt screen, Dynamic Island, thin aluminium edge) */

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 44px);
  margin-top: 70px;
}

.phone-fig {
  margin: 0;
  width: min(300px, 30%);
  text-align: center;
}

.phone-fig figcaption {
  margin-top: 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}

.phone-center {
  transform: translateY(-36px);
}

.iphone {
  position: relative;
  aspect-ratio: 71.9 / 150;
  padding: 1.2%;
  border-radius: 14.5% / 7%;
  background: linear-gradient(135deg, #e9e6e1 0%, #c9c5bf 22%, #f4f2ee 45%, #b9b5af 70%, #dedad4 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 40px 60px -32px rgba(31, 42, 68, 0.45),
    0 12px 24px -12px rgba(31, 42, 68, 0.25);
}

/* Side buttons, in units of the phone's width (cqw): action and volume on the left, side button on the right */
.phone-fig {
  container-type: inline-size;
}

.iphone::before,
.iphone::after {
  content: '';
  position: absolute;
  width: 1.2cqw;
  border-radius: 1cqw;
  background: #c4c0ba;
}

.iphone::before {
  left: -0.9cqw;
  top: 36cqw;
  height: 7cqw;
  box-shadow:
    0 13cqw 0 0 #c4c0ba,
    0 27cqw 0 0 #c4c0ba;
}

.iphone::after {
  right: -0.9cqw;
  top: 54cqw;
  height: 20cqw;
}

.iphone-screen {
  position: relative;
  height: 100%;
  padding: 2.5%;
  border-radius: 13% / 6.3%;
  background: #08090b;
  container-type: inline-size;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10.6% / 4.9%;
}

.island {
  position: absolute;
  left: 50%;
  top: 4%;
  width: 29%;
  height: 3.9%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.status {
  position: absolute;
  left: 3.2%;
  right: 3.2%;
  top: 4.3%;
  height: 3.3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9% 0 12%;
  font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
  font-weight: 600;
  font-size: 4.1cqw;
  color: #000;
  letter-spacing: -0.01em;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
}

.status-icons i {
  display: block;
  background: #000;
}

.status-icons .sig {
  width: 4.6cqw;
  height: 3cqw;
  -webkit-mask: linear-gradient(90deg, #000 18%, transparent 18% 27%, #000 27% 45%, transparent 45% 54%, #000 54% 72%, transparent 72% 81%, #000 81%);
  mask: linear-gradient(90deg, #000 18%, transparent 18% 27%, #000 27% 45%, transparent 45% 54%, #000 54% 72%, transparent 72% 81%, #000 81%);
  clip-path: polygon(0 75%, 27% 55%, 54% 30%, 81% 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 1px;
}

.status-icons .wifi {
  width: 4.2cqw;
  height: 3cqw;
  clip-path: polygon(50% 100%, 0 30%, 15% 14%, 34% 4%, 50% 0, 66% 4%, 85% 14%, 100% 30%);
  border-radius: 1px;
}

.status-icons .bat {
  position: relative;
  width: 6.4cqw;
  height: 3cqw;
  border-radius: 0.9cqw;
  background: #000;
  box-shadow: inset 0 0 0 0.35cqw #000;
}

.status-icons .bat::after {
  content: '';
  position: absolute;
  right: -0.9cqw;
  top: 1cqw;
  width: 0.5cqw;
  height: 1cqw;
  border-radius: 0 1px 1px 0;
  background: rgba(0, 0, 0, 0.45);
}

.home-bar {
  position: absolute;
  left: 50%;
  bottom: 4.1%;
  width: 36%;
  height: 0.6%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0d0f14;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 90px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.facts .puff {
  padding: 26px 26px 28px;
  color: var(--ink-2);
}

.facts b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

.facts .puff::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tint);
}

/* Shop */

.section.shop {
  padding-top: 0;
}

.shop-box {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 56px;
  padding: clamp(36px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

.shop-cloud {
  position: absolute;
  z-index: -1;
  fill: rgba(255, 255, 255, 0.05);
}

.shop-cloud.s1 {
  width: 520px;
  height: 312px;
  right: -120px;
  bottom: -110px;
}

.shop-cloud.s2 {
  width: 260px;
  height: 156px;
  left: 36%;
  top: -70px;
}

.shop-box .eyebrow {
  color: var(--sun);
}

.shop-box .section-lead {
  color: rgba(255, 246, 236, 0.78);
}

.waitlist {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  max-width: 520px;
}

.waitlist input[type='email'] {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.waitlist input[type='email']:focus {
  outline: none;
  border-color: var(--sky-deep);
}

.waitlist .btn {
  background: var(--apricot);
  color: var(--ink);
}

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

.form-note {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 246, 236, 0.66);
}

.form-note.ok {
  color: #9fe0c4;
  font-weight: 700;
}

.form-note.err {
  color: #ffb39a;
  font-weight: 700;
}

.shop-preview {
  position: relative;
}

.shop-preview img {
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35));
  animation: float 7s ease-in-out infinite;
}

.badge {
  position: absolute;
  top: 6%;
  right: 4%;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 999px;
  transform: rotate(6deg);
}

/* FAQ */

details {
  border-bottom: 1px solid var(--hair-strong);
  padding: 22px 0;
}

details:first-of-type {
  margin-top: 40px;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
}

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

summary::after {
  content: '+';
  font-size: 26px;
  line-height: 1;
  color: var(--apricot-deep);
  transition: transform 0.25s var(--spring);
}

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

details p {
  margin-top: 12px;
  color: var(--ink-2);
}

details[open] p {
  animation: rise 0.45s var(--ease-out);
}

/* Footer */

.footer {
  padding: 64px 0 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-claim {
  margin-top: 8px;
  color: var(--ink-2);
}

.footer-links {
  display: flex;
  gap: 22px;
  font-weight: 700;
}

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

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

.footer-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
  color: var(--ink-3);
}

.footer-source {
  margin-top: 8px;
}

.footer-source a {
  color: var(--ink-3);
  text-decoration-color: var(--hair-strong);
  text-underline-offset: 3px;
}

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

/* Scroll reveal (main.js adds .in once): rise, a touch of blur, staggered by --i */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.09s);
}

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

/* Puff cards keep their shadow filter once revealed */
.js .puff.reveal.in {
  filter: drop-shadow(0 1px 1px rgba(31, 42, 68, 0.05)) drop-shadow(0 16px 24px rgba(31, 42, 68, 0.1));
}

/* Phones: rise and straighten up while they come into view (main.js sets --p from 0 to 1) */
.phone-fig {
  --p: 1;
}

.js .phone-fig {
  opacity: calc(0.2 + var(--p) * 0.8);
}

.js .phone-left .iphone {
  transform: translateY(calc((1 - var(--p)) * 80px)) rotate(calc((1 - var(--p)) * -7deg));
}

.js .phone-center .iphone {
  transform: translateY(calc((1 - var(--p)) * 40px));
}

.js .phone-right .iphone {
  transform: translateY(calc((1 - var(--p)) * 80px)) rotate(calc((1 - var(--p)) * 7deg));
}

/* Legal pages and the tag page */

.doc {
  padding: 56px 0 96px;
}

.doc h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.doc h2 {
  font-size: 26px;
  max-width: none;
  margin-top: 44px;
}

.doc h3 {
  font-size: 19px;
  margin-top: 28px;
}

.doc p,
.doc ul,
.doc ol {
  margin-top: 14px;
  color: var(--ink-2);
}

.doc li {
  margin-top: 6px;
}

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

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hair-strong);
}

.doc blockquote {
  margin: 16px 0 0;
  padding: 14px 20px;
  background: var(--bg-soft);
  border-radius: 16px;
}

.doc-back {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-2);
}

.doc-switch {
  display: flex;
  gap: 6px;
  margin-left: auto;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 15px;
}

.doc-switch a {
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
}

.doc-switch a[aria-current='page'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.doc h2 {
  scroll-margin-top: 90px;
  padding-top: 8px;
}

.doc h2 + h3 {
  margin-top: 18px;
}

.doc-summary {
  margin-top: 32px;
  padding: 6px 26px 24px;
  border-radius: 28px;
  background: #e8f1fc;
}

.doc-summary h2 {
  margin-top: 18px;
  font-size: 22px;
}

.doc-toc {
  margin-top: 28px;
  padding: 6px 26px 22px;
  border-radius: 28px;
  border: 1px solid var(--hair-strong);
  background: var(--surface);
}

.doc-toc h2 {
  margin-top: 18px;
  font-size: 22px;
}

.doc-toc ul,
.doc-toc ol {
  columns: 2;
  column-gap: 32px;
  padding-left: 20px;
}

.doc-toc li {
  break-inside: avoid;
}

.doc-toc a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

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

.doc a {
  text-underline-offset: 3px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid var(--hair-strong);
  background: var(--surface);
}

.table-wrap table {
  margin: 0;
  min-width: 560px;
}

.table-wrap th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 800;
}

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

.doc-top {
  margin-top: 48px;
  font-weight: 700;
}

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

@media (max-width: 640px) {
  .doc-toc ul,
  .doc-toc ol {
    columns: 1;
  }
}

.doc-page .top {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  box-shadow: 0 1px 0 var(--hair);
}

.tag-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.tag-page img {
  width: min(360px, 80vw);
  margin: 0 auto 28px;
}

.tag-page p {
  margin: 16px auto 0;
  max-width: 28em;
  color: var(--ink-2);
}

/* Small screens */

@media (max-width: 960px) {
  .menu-btn {
    display: block;
  }

  /* The sections menu drops down under the bar, as a soft sheet. */
  .nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px;
    border-radius: 28px;
    background: var(--bg);
    box-shadow: 0 30px 60px -24px rgba(31, 42, 68, 0.4);
    font-size: 19px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition:
      opacity 0.25s var(--ease),
      transform 0.35s var(--spring),
      visibility 0s linear 0.35s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.25s var(--ease),
      transform 0.35s var(--spring);
  }

  .nav a:not(.btn) {
    padding: 14px 16px;
    border-radius: 16px;
    font-family: var(--display);
    font-weight: 600;
    color: var(--ink);
  }

  .nav a:not(.btn)::after {
    display: none;
  }

  .nav a:not(.btn):hover,
  .nav a.active {
    background: var(--bg-soft);
  }

  .nav-cta {
    margin-top: 8px;
    min-height: 54px;
    font-size: 18px;
  }

  .hero-grid,
  .colors-grid,
  .shop-box {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
    gap: 8px;
    padding-bottom: 200px;
  }

  .hero-object {
    order: -1;
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .cloud.c4 {
    display: none;
  }

  .steps,
  .cards,
  .promise,
  .facts {
    grid-template-columns: 1fr;
  }

  .steps,
  .cards {
    gap: 84px;
  }

  .facts {
    gap: 84px;
  }

  .promise {
    gap: 32px;
  }

  .phones {
    gap: 12px;
  }

  .phone-fig figcaption {
    font-size: 13px;
  }

  .phone-center {
    transform: translateY(-18px);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .cta-row .btn {
    width: 100%;
  }

  .sun {
    width: 76px;
    height: 76px;
    top: 24px;
    right: 8%;
  }

  .cloud.c1 {
    width: 180px;
    height: 108px;
    top: 80px;
  }

  .cloud.c3 {
    display: none;
  }

  .waitlist {
    flex-direction: column;
  }

  .shop-box {
    border-radius: 36px;
  }


  /* One phone at a time: a horizontal row you can swipe */
  .phones {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -20px;
    padding: 30px 20px 10px;
    gap: 18px;
    scrollbar-width: none;
  }

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

  .phone-fig {
    flex: 0 0 72%;
    width: auto;
    scroll-snap-align: center;
  }

  .phone-center {
    transform: none;
  }

  .swatches {
    gap: 10px;
  }

  .swatch {
    width: 40px;
    height: 40px;
  }
}

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

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

  .js .phone-fig {
    --p: 1 !important;
  }
}
