/* BigYap marketing site
   Palette mirrors DesignSystem/Theme.swift (Brand): Cloud Dancer canvas,
   espresso ink, blush/rose accent, sage secondary. System Helvetica for
   display and body ("Helvetica Neue"), Georgia italic for the accent word. */

:root {
  --canvas: #F0EEE4;
  --surface: #FFFFFF;
  --surface-muted: #F4ECE5;
  --ink: #3A2F2A;
  --ink-2: #8C7D74;
  --ink-3: #B6A89E;
  --hairline: #EADFD6;
  --blush: #D9A6AC;
  --blush-soft: #ECD9DA;
  --rose: #C2606C;
  --sage: #8FA693;
  --sage-soft: #EAF0EB;

  --d-canvas: #171311;
  --d-surface: #221D1A;
  --d-muted: #2B2521;
  --d-ink: #F3ECE5;
  --d-ink2: #B6A99E;
  --d-ink3: #83766C;
  --d-hairline: #382F29;
  --d-blush: #E0A6AD;
  --d-rose: #D3737F;
  --d-sage: #9DB4A1;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;

  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --wrap-wide: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-soft: 0 24px 60px -30px rgba(58, 47, 42, .35), 0 2px 6px rgba(58, 47, 42, .06);
}

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

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

body {
  margin: 0;
  position: relative;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sprite #i-stop { fill: currentColor; stroke: none; }

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

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

.wrap {
  width: min(var(--wrap), calc(100% - 2 * clamp(20px, 5vw, 56px)));
  margin-inline: auto;
}
.wrap-wide {
  width: min(var(--wrap-wide), 90%);
  margin-inline: auto;
}

/* Ambient glows, clipped so they never widen the page */
.glows { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.glow-a {
  width: 62vw; height: 62vw; max-width: 940px; max-height: 940px;
  top: -18vw; right: -16vw;
  background: radial-gradient(closest-side, rgba(217, 166, 172, .55), rgba(217, 166, 172, 0));
}
.glow-b {
  width: 52vw; height: 52vw; max-width: 760px; max-height: 760px;
  left: -26vw; top: 62vh;
  background: radial-gradient(closest-side, rgba(143, 166, 147, .38), rgba(143, 166, 147, 0));
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
}
h2 { font-size: clamp(2.4rem, 4.2vw, 3.25rem); line-height: 1.06; letter-spacing: -.05em; font-weight: 500; }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 500; }
h2 em, h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
  letter-spacing: -.03em;
}

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rose);
  animation: ping 2s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(194, 96, 108, .45); }
  70%  { box-shadow: 0 0 0 10px rgba(194, 96, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 96, 108, 0); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(58, 47, 42, .7);
}
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(58, 47, 42, .75); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--ink-3); }
.btn-sm { padding: 11px 18px; font-size: .9rem; }
.btn:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-size: 34px; letter-spacing: -2px; font-weight: 800;
  color: var(--ink); text-decoration: none;
}
.wordmark.small { font-size: 22px; letter-spacing: -1.2px; }
.logo-wave { display: flex; align-items: center; gap: 3px; height: 31px; margin-right: 2px; }
.logo-wave i { width: 4px; height: 11px; background: var(--ink); border-radius: 4px; }
.logo-wave i:nth-child(2), .logo-wave i:nth-child(4) { height: 23px; }
.logo-wave i:nth-child(3) { height: 32px; }
.site-nav { display: flex; gap: 36px; font-size: 13px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--rose); }
.nav-cta {
  display: flex; align-items: center; gap: 25px;
  font-size: 13px; color: var(--ink); text-decoration: none;
  border: 1px solid rgba(58, 47, 42, .25);
  border-radius: var(--r-pill);
  padding: 13px 20px;
  transition: background .2s;
}
.nav-cta svg { width: 18px; height: 18px; }
.nav-cta:hover { background: var(--blush-soft); }
@media (max-width: 850px) {
  .site-header { height: 85px; }
  .site-nav { gap: 20px; font-size: 11px; }
  .nav-cta { display: none; }
}
@media (max-width: 560px) {
  .wordmark { font-size: 29px; }
  .site-nav { gap: 16px; font-size: 10px; }
}

/* ---------- Reveals ---------- */

.reveal {
  animation: rise .9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * .12s + .1s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.io { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.io.in { opacity: 1; transform: none; }

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

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 56px 0 48px;
}
.hero-copy { position: relative; z-index: 2; }
h1 {
  font-size: clamp(65px, 6.7vw, 104px);
  line-height: 1.02;
  letter-spacing: -6.5px;
  font-weight: 550;
  margin: 0 0 30px;
  position: relative;
}
.yap {
  font-family: var(--font-serif);
  font-weight: normal; font-style: italic;
  color: var(--rose);
  position: relative;
  letter-spacing: -5px;
  white-space: nowrap;
}
.yap > svg {
  position: absolute; left: 0; bottom: -16px;
  width: 100%; height: 24px;
  stroke: var(--blush); stroke-width: 3; fill: none; stroke-linecap: round;
}
.burst {
  font-size: 64px; color: var(--rose);
  display: inline-block; margin-left: 24px; vertical-align: 15%; font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 44px; }
.app-store-download { display: inline-flex; flex-shrink: 0; transition: transform .2s; }
.app-store-download:hover { transform: translateY(-2px); }
.app-store-download img { display: block; width: auto; height: 52px; }
.mac-download {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: 9px;
  font-size: 13px; font-weight: 550; color: var(--ink); text-decoration: none;
  transition: background .2s, transform .2s;
}
.mac-download:hover { background: var(--blush-soft); transform: translateY(-2px); }
.mac-download svg { width: 18px; height: 18px; }

.trust {
  list-style: none; padding: 0;
  margin: 24px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  color: #72665e; font-size: 11px; font-weight: 500;
}
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 13px; height: 13px; color: var(--sage); }

/* Illustrated devices */
.hero-art { height: 600px; position: relative; isolation: isolate; }
.hero-art svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.orb {
  position: absolute; width: 490px; height: 490px; border-radius: 50%;
  left: 7%; top: 32px;
  background: radial-gradient(circle at 40% 40%, #ead8cf, #dfbabc 75%);
  z-index: -2;
}
.orbit {
  position: absolute; border: 1px solid rgba(194, 96, 108, .13); border-radius: 50%;
  width: 550px; height: 420px; left: 0; top: 65px;
  transform: rotate(-27deg); z-index: -1;
}
.orbit-two { transform: rotate(32deg); width: 520px; height: 485px; left: 15px; top: 33px; }
.handwritten {
  position: absolute; right: 15px; top: 2px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 18px; line-height: 1.25;
  transform: rotate(8deg); z-index: 3;
}
.handwritten svg { width: 78px; height: 60px; position: absolute; left: 48px; top: 43px; stroke-width: 1.3; }
.art-star { position: absolute; color: var(--rose); font-size: 45px; }
.star-one { left: 4%; top: 35px; transform: rotate(18deg); }
.star-two { right: 0; bottom: 92px; font-size: 53px; }

.mac-window {
  position: absolute; top: 115px; left: 1%; width: 395px;
  background: #f8f6f0; border: 1px solid #fff; border-radius: 14px;
  box-shadow: 0 23px 40px rgba(88, 62, 61, .15), 0 2px 5px rgba(88, 62, 61, .12);
  transform: rotate(-6deg);
}
.window-title {
  height: 35px; border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; padding: 0 13px;
}
.window-title > svg { width: 11px; height: 11px; }
.traffic { display: flex; gap: 5px; }
.traffic i { height: 7px; width: 7px; border-radius: 50%; background: #d7a39a; }
.traffic i:nth-child(2) { background: #deca9d; }
.traffic i:nth-child(3) { background: #a4b69c; }
.mac-content { padding: 24px; }
.mini-heading { font-size: 20px; letter-spacing: -.5px; font-weight: 550; }
.recording-tag { font-size: 9px; color: var(--ink-2); margin-top: 10px; display: flex; align-items: center; gap: 5px; }
.recording-tag span, .phone-listening span { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); display: inline-block; }
.waveform { display: flex; align-items: center; justify-content: center; gap: 4px; }
.waveform i {
  display: block; width: 4px; height: var(--height);
  border-radius: var(--r-pill); background: var(--rose);
  animation: wave 1.3s ease-in-out infinite alternate;
  animation-delay: var(--delay);
  transform-origin: center;
}
@keyframes wave { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
.mac-wave { height: 65px; margin: 10px 0; }
.transcript { padding: 16px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-sm); }
.card-label { font-size: 8px; font-weight: 600; letter-spacing: 1px; color: var(--ink-2); display: flex; gap: 4px; align-items: center; }
.card-label svg { width: 11px; height: 11px; }
.transcript p { font-size: 13.5px; line-height: 1.5; margin: 10px 0 0; }
.transcript em { font-style: normal; color: var(--rose); }
.cursor {
  height: 1em; width: 1px; background: var(--rose);
  display: inline-block; vertical-align: -2px; margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { to { opacity: 0; } }
.mac-bottom { display: flex; justify-content: space-between; margin-top: 16px; font-size: 8px; color: var(--ink-2); align-items: center; }
.mac-bottom > span { display: flex; align-items: center; gap: 4px; }
.mac-bottom svg { width: 10px; height: 10px; }
kbd { font: inherit; border: 1px solid var(--hairline); border-radius: 4px; padding: 3px 4px; background: #fff; }

.iphone {
  position: absolute; right: 16px; top: 133px;
  width: 197px; height: 398px;
  border: 5px solid #53433e; border-radius: 35px;
  background: var(--canvas);
  box-shadow: 0 25px 35px rgba(93, 69, 72, .17), inset 0 0 0 2px rgba(255, 255, 255, .47);
  transform: rotate(9deg);
  padding: 8px; z-index: 2;
}
.phone-status { height: 27px; display: flex; align-items: center; justify-content: space-between; font-size: 8px; padding: 0 7px; position: relative; }
.island { position: absolute; left: 50%; transform: translateX(-50%); top: 0; background: #302825; width: 61px; height: 17px; border-radius: 15px; }
.phone-app { padding: 12px 6px 0; }
.phone-title { font-size: 23px; font-weight: 650; letter-spacing: -1px; display: flex; justify-content: space-between; }
.phone-title > span { color: var(--rose); font-size: 21px; }
.phone-subtitle { font-size: 8px; color: var(--ink-2); margin-top: 4px; }
.phone-record {
  border-radius: 50%; width: 67px; height: 67px;
  background: var(--blush); margin: 14px auto 8px;
  display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(217, 166, 172, .14), 0 0 0 16px rgba(217, 166, 172, .06);
}
.phone-record svg { stroke: #fff; width: 29px; height: 29px; }
.phone-listening { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 8px; color: var(--ink-2); margin-top: 10px; }
.phone-wave { height: 33px; gap: 3px; }
.phone-wave i { width: 2px; max-height: 22px; }
.phone-transcript { background: #fff; border: 1px solid var(--hairline); border-radius: 10px; padding: 11px; margin-top: 4px; }
.phone-transcript p { font-size: 11px; line-height: 1.65; margin: 7px 0 0; }
.phone-tabs { display: flex; justify-content: space-around; align-items: flex-start; padding: 10px 4px 0; font-size: 7px; font-weight: 500; color: var(--ink-2); }
.phone-tabs > span { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 44px; line-height: 1; }
.phone-tabs svg { width: 14px; height: 14px; }
.phone-tabs .active { color: var(--rose); }
.home-indicator { position: absolute; bottom: 6px; width: 58px; height: 3px; background: var(--ink); border-radius: var(--r-pill); left: 50%; transform: translateX(-50%); }
.privacy-sticker {
  position: absolute; left: 14px; bottom: 34px;
  background: var(--sage-soft); border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 13px; transform: rotate(-6deg);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 15px rgba(58, 47, 42, .04);
  font-size: 11px; line-height: 1.5; z-index: 3;
}
.privacy-sticker > span:first-child { border: 1px solid rgba(143, 166, 147, .44); border-radius: 50%; width: 35px; height: 35px; display: grid; place-items: center; }
.privacy-sticker svg { width: 17px; height: 17px; stroke: #667d6a; }
.privacy-sticker strong { font-weight: 550; }

@media (min-width: 1450px) {
  .hero { min-height: 760px; }
  .hero-art { transform: scale(1.08); transform-origin: center; }
}
@media (max-width: 1150px) {
  .hero-art { transform: scale(.88); transform-origin: left center; width: 540px; margin-left: -10px; }
  .hero { grid-template-columns: 51% 49%; overflow: hidden; }
  h1 { letter-spacing: -4px; }
  .burst { font-size: 48px; margin-left: 20px; }
}
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; text-align: center; overflow: visible; padding-top: 45px; gap: 10px; }
  .hero-actions, .trust { justify-content: center; }
  h1 { font-size: 80px; letter-spacing: -4px; }
  .hero-art { margin: 5px auto 20px; transform: none; width: 540px; max-width: 100%; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(44px, 14vw, 67px); line-height: 1.04; }
  .yap { letter-spacing: -4px; }
  .burst { font-size: 42px; margin-left: 12px; }
  .hero-actions { gap: 16px; margin-top: 36px; }
  .app-store-download img { height: 44px; }
  .mac-download { min-height: 44px; font-size: 11px; padding: 0 12px; gap: 8px; }
  .mac-download svg:last-child { display: none; }
  .hero-art { width: 360px; height: 395px; margin-top: 20px; }
  .orb { width: 325px; height: 325px; left: 4%; top: 30px; }
  .orbit { width: 350px; height: 295px; left: 0; top: 40px; }
  .orbit-two { width: 325px; height: 340px; top: 15px; }
  .mac-window { width: 295px; left: -3px; top: 90px; transform: rotate(-6deg) scale(.94); transform-origin: left top; }
  .mac-content { padding: 17px; }
  .mini-heading { font-size: 16px; }
  .transcript p { font-size: 13px; }
  .mac-wave { height: 48px; margin: 6px 0; gap: 3px; }
  .waveform i { width: 3px; }
  .mac-bottom { font-size: 7px; gap: 5px; }
  .iphone { transform: rotate(9deg) scale(.7); transform-origin: right top; right: 0; top: 107px; }
  .handwritten { font-size: 13px; right: 7px; top: 2px; }
  .handwritten svg { width: 55px; height: 45px; top: 32px; left: 35px; }
  .star-one { font-size: 30px; top: 26px; }
  .star-two { font-size: 35px; bottom: 37px; right: 0; }
  .privacy-sticker { font-size: 8px; padding: 10px; bottom: 0; left: 0; gap: 8px; }
  .privacy-sticker > span:first-child { width: 28px; height: 28px; }
}

/* ---------- Sections ---------- */

section { position: relative; }

.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vh, 56px); }
.sec-sub { color: var(--ink-2); font-size: 1.1rem; max-width: 56ch; margin: 18px 0 0; }

/* Privacy (dark) */
.privacy {
  background: var(--d-canvas);
  color: var(--d-ink);
  padding: clamp(80px, 12vh, 140px) 0;
  overflow: hidden;
}
.privacy::before {
  content: "";
  position: absolute;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  right: -20vw; top: -30vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(224, 166, 173, .22), transparent);
  filter: blur(40px);
  pointer-events: none;
}
.privacy-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.eyebrow-light { color: var(--d-ink2); }
.privacy h2 { font-size: clamp(2.6rem, 4.6vw, 3.9rem); margin-bottom: 26px; }
.privacy h2 em { color: var(--d-blush); }
.privacy p { color: var(--d-ink2); font-size: 1.15rem; max-width: 52ch; margin-bottom: 18px; }
.privacy .small { font-size: .95rem; color: var(--d-ink3); margin-bottom: 0; }
.privacy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--d-muted);
  padding: .1em .45em; border-radius: 6px;
  color: var(--d-ink);
}
.label {
  background: var(--d-surface);
  border: 1px solid var(--d-hairline);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  rotate: 1deg;
}
.label-h { display: flex; align-items: center; gap: 10px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--d-ink2); font-weight: 600; }
.label-h svg { width: 18px; height: 18px; color: var(--d-sage); }
.label-big {
  font-family: var(--font-display);
  font-size: 2.1rem; line-height: 1.1; letter-spacing: -.04em; font-weight: 500;
  margin: 18px 0 6px !important;
  color: var(--d-ink) !important;
}
.label-sub { margin: 0 0 22px !important; font-size: .95rem !important; }
.label-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--d-hairline); }
.label-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--d-hairline); font-size: .95rem; }
.label-list span { color: var(--d-ink2); }
.label-list b { font-weight: 600; color: var(--d-sage); text-align: right; }
@media (max-width: 900px) { .privacy-in { grid-template-columns: 1fr; } .label { rotate: 0deg; } }

/* Mac */
.mac-sec {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(80px, 12vh, 140px) 0;
}
.keys { display: flex; align-items: center; gap: 14px; justify-content: center; }
.key {
  display: inline-grid; place-items: center;
  min-width: 96px; height: 96px; padding: 0 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: 0 6px 0 var(--hairline), 0 20px 40px -24px rgba(58, 47, 42, .4);
  font-family: var(--font-display);
  font-size: 2.4rem;
  animation: press 4.5s var(--ease) infinite;
}
.key-space {
  min-width: 220px;
  font-family: var(--font-body);
  font-size: 1rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 600;
  animation-delay: .18s;
}
@keyframes press {
  0%, 6%, 100% { transform: none; box-shadow: 0 6px 0 var(--hairline), 0 20px 40px -24px rgba(58, 47, 42, .4); }
  3% { transform: translateY(5px); box-shadow: 0 1px 0 var(--hairline), 0 8px 20px -20px rgba(58, 47, 42, .4); }
}
.plus { font-family: var(--font-serif); font-size: 1.8rem; color: var(--ink-3); }
.keys-cap { text-align: center; color: var(--ink-3); margin: 26px 0 0; font-size: .95rem; }
.mac-copy h2 { margin-bottom: 20px; }
.mac-copy p { color: var(--ink-2); font-size: 1.1rem; max-width: 54ch; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg {
  flex: none; width: 24px; height: 24px;
  color: var(--sage); background: var(--sage-soft);
  border-radius: 50%; padding: 5px; margin-top: 1px;
}
@media (max-width: 900px) {
  .mac-sec { grid-template-columns: 1fr; }
  .keys { transform: scale(.85); }
}

/* Cleanup demo */
.cleanup { padding: clamp(40px, 6vh, 90px) 0 clamp(80px, 12vh, 140px); }
.demo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
.demo-out {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-soft);
}
.demo-tag { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.demo-tag svg { width: 16px; height: 16px; color: var(--rose); }
.demo-dur { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--ink-3); transition: color .3s; }
.demo-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.4; letter-spacing: -.02em; font-weight: 500;
  flex: 1;
  transition: opacity .18s;
}
.demo-text.swap { opacity: .25; }
.demo-text .fill { color: var(--rose); font-style: italic; }
.demo-text .vocab { color: #5F7A64; background: var(--sage-soft); border-radius: 6px; padding: 0 .18em; }
.wavebar { display: flex; align-items: center; gap: 3px; height: 36px; }
.wavebar i {
  display: block; flex: 1 1 0; min-width: 0;
  height: var(--h);
  background: var(--blush); border-radius: 99px;
  transition: flex .5s var(--ease), opacity .5s, height .5s;
}
.wavebar i.s { background: var(--ink-3); opacity: .45; height: 4px; }
.wavebar.trim i.s { flex: 0 0 0; opacity: 0; }
.demo-toggles { display: grid; gap: 12px; }
.tog {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .2s, transform .25s var(--ease);
}
.tog:hover { border-color: var(--ink-3); }
.tog > span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tog b { font-weight: 600; }
.tog small { color: var(--ink-2); font-size: .88rem; }
.tog input { position: absolute; opacity: 0; width: 0; height: 0; }
.tog i {
  flex: none; width: 52px; height: 32px;
  border-radius: 99px; background: var(--hairline);
  position: relative; transition: background .25s;
}
.tog i::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(58, 47, 42, .25);
  transition: transform .25s var(--ease);
}
.tog input:checked + i { background: var(--sage); }
.tog input:checked + i::after { transform: translateX(20px); }
.tog input:focus-visible + i { outline: 2px solid var(--rose); outline-offset: 2px; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }

/* Every iPhone */
.every { padding: 0 0 clamp(80px, 12vh, 140px); }
.every-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  background: linear-gradient(135deg, var(--surface-muted), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: 32px;
  padding: clamp(32px, 5vw, 64px);
}
.every-card h2 { margin-bottom: 18px; }
.every-card p { color: var(--ink-2); font-size: 1.1rem; max-width: 48ch; }
.every-list { list-style: none; padding: 0; margin: 0; display: grid; }
.every-list li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.every-list li:first-child { border-top: 1px solid var(--hairline); }
.every-list b { font-weight: 600; }
.every-list span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .every-card { grid-template-columns: 1fr; } }

/* Download */
.download {
  text-align: center;
  padding: clamp(40px, 6vh, 80px) 0 clamp(80px, 12vh, 140px);
  display: flex; flex-direction: column; align-items: center;
}
.dl-icon { width: 120px; height: 120px; filter: drop-shadow(0 20px 30px rgba(58, 47, 42, .25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.download h2 { margin-top: 20px; font-size: clamp(2.6rem, 5vw, 4.2rem); }
.download p { color: var(--ink-2); font-size: 1.1rem; margin: 14px 0 30px; }
.download .badges { justify-content: center; margin-top: 0; }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 32px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-2); font-size: .9rem;
}
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.by { color: var(--ink-3); font-weight: 400; }
.foot-links { display: flex; gap: 22px; margin-left: auto; }
.foot-links { align-items: center; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.by a { color: inherit; text-decoration: none; }
.by a:hover { color: var(--ink); text-decoration: underline; }
.foot-gh { display: inline-flex; align-items: center; }
.foot-gh svg { width: 22px; height: 22px; display: block; transition: color .2s, transform .2s; }
.foot-gh:hover { text-decoration: none !important; }
.foot-gh:hover svg { color: var(--ink); transform: translateY(-1px); }
.foot-copy { width: 100%; color: var(--ink-3); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .io { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
