/* Glowvale marketing preview — Soft tokens, system fonts only */
:root {
  --bg: #FFF6EC;
  --wash-a: #FFF8F0;
  --wash-b: #FFF1E8;
  --wash-c: #FFE9E6;
  --ink: #3B2330;
  --secondary: #7A5B69;
  --accent: #C23B63;
  --ring-coral: #FF8F6C;
  --ring-salmon: #F65C74;
  --ring-rose: #DC3068;
  --halo: #FF8A78;
  --btn-a: #E2587D;
  --btn-b: #C93561;
  --btn-label: #fff;
  --em-a: #C23B63;
  --em-b: #A42A4E;
  --card: rgba(255, 255, 255, 0.78);
  --card-edge: rgba(255, 255, 255, 0.95);
  --shadow: 0 10px 30px rgba(214, 128, 112, 0.13);
  --line: rgba(59, 35, 48, 0.12);
  --lilac: #8E6BE8;
  --sage: #4C9E81;
  --amber: #CA7E25;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, system-ui, "Segoe UI", sans-serif;
  --radius-card: 24px;
  --radius-pill: 999px;
  --space: 8px;
  --max: 1120px;
  --text: 40rem;
}

.band-dark,
.band-dark * {
  --bg: #0B080D;
  --ink: #F7EFF1;
  --secondary: rgba(247, 239, 241, 0.62);
  --accent: #FFB77A;
  --btn-a: #FFA24D;
  --btn-b: #FF4A7D;
  --btn-label: #240A12;
  --em-a: #FF9A52;
  --em-b: #FF5E78;
  --card: rgba(255, 255, 255, 0.055);
  --card-edge: rgba(255, 255, 255, 0.09);
  --shadow: none;
  --line: rgba(247, 239, 241, 0.12);
  --halo: #FF8A78;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  scroll-padding-top: 72px;
  overflow-x: clip;
}

html:focus-within { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-width: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  color: #fff;
  background: var(--ink);
  z-index: 30;
}
.skip:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 14px;
  clip: auto;
  clip-path: none;
  overflow: visible;
  white-space: nowrap;
  border-radius: 8px;
  color: #fff;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Type */
h1, h2, h3, .wordmark, .step-num {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5.4vw, 3.65rem); margin: 0 0 0.55rem; text-wrap: balance; max-width: 14ch; }
.hero h1 { max-width: 13.5ch; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); margin: 0 0 0.5rem; text-wrap: balance; }
h3 { font-size: 1.2rem; margin: 0 0 0.35rem; }

.em {
  font-style: italic;
  font-weight: 600;
  font-family: var(--serif);
  background-image: linear-gradient(90deg, var(--em-a), var(--em-b), var(--em-a));
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--em-b);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .em { color: transparent; -webkit-text-fill-color: transparent; }
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
  margin: 0 0 1rem;
}
.lede, .pitch { color: var(--secondary); margin: 0 0 1.5rem; text-wrap: pretty; }
.pitch { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; max-width: min(32em, 100%); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 20px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--wash-a) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.wordmark { font-size: 1.35rem; }
.wordmark:hover, .brand:hover .wordmark { color: var(--accent); }

.topnav { display: flex; gap: 4px 20px; flex-wrap: wrap; font-size: 0.95rem; }
.topnav a { color: var(--secondary); text-decoration: none; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
.topnav a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(ellipse 50% 45% at 88% 8%, rgba(255, 196, 160, 0.55), transparent 70%),
    radial-gradient(ellipse 42% 50% at 8% 70%, rgba(255, 176, 196, 0.35), transparent 70%),
    linear-gradient(180deg, var(--wash-a) 0%, var(--wash-b) 55%, var(--wash-c) 100%);
  padding: 48px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px 48px;
  align-items: center;
  min-height: 34rem;
  min-width: 0;
}
.hero-grid > *,
.band-grid > * { min-width: 0; max-width: 100%; overflow: visible; }
.hero-visual { max-width: none; z-index: 2; }
.device, .device-tilt { overflow: visible; }
.hero-copy { padding: 24px 0 72px; min-width: 0; }
.age {
  margin: 0;
  font-size: 0.9rem;
  color: var(--secondary);
}

.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 0 0 8px; }

.store {
  --store-font: -apple-system, "SF Pro Text", "SF Pro Display", "SF Pro", "Helvetica Neue", Helvetica, sans-serif;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  width: 176px;
  height: 54px;
  padding: 0 14px 0 11px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #000;
  color: #fff;
  border: 1px solid #A6A6A6;
  box-shadow: none;
  cursor: default;
  user-select: none;
  text-decoration: none;
}
a.store {
  cursor: pointer;
  color: #fff;
}
a.store:hover {
  border-color: #fff;
}
a.store:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.store-apple {
  width: 22px;
  height: 26px;
  flex: 0 0 auto;
  display: block;
  color: #fff;
}
.store-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  line-height: 1;
}
.store small {
  font-family: var(--store-font);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
  opacity: 1;
}
.store strong {
  font-family: var(--store-font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
}
/* A black Apple-style badge stays readable on the dark Afterglow band via its light-gray border. */
.band-dark .store { border-color: #C8C8C8; }

.hero-visual {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
  overflow: visible;
  padding: 28px 28px 56px;
}

/* Soft warm bloom behind the hero phone — no line, arc, or disc */
.hero-device::before {
  content: "";
  position: absolute;
  inset: 2% 0 10% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%,
    color-mix(in srgb, var(--halo) 32%, transparent) 0%,
    color-mix(in srgb, var(--ring-coral) 16%, transparent) 42%,
    transparent 74%);
  filter: blur(44px);
  z-index: 0;
  pointer-events: none;
}

/* Device frames — straight-on, with a clean soft drop shadow */
.device { width: min(340px, 100%); position: relative; z-index: 1; overflow: visible; }
.device.hero-device {
  width: min(360px, 100%);
  padding: 8px 8px 28px;
  box-sizing: border-box;
  margin: 0 auto;
}
.hero-device .device-tilt {
  width: 100%;
  position: relative;
  z-index: 1;
  transform: none;
  transform-style: flat;
  --shadow-x: 0px;
  --edge-shadow: 0 0 0 transparent;
  --drop-shadow: 0 18px 40px -12px rgba(59, 35, 48, 0.28);
}

.device-tilt {
  --tilt-y: 22deg;
  --tilt-x: 6deg;
  --tilt-z: 4deg;
  --tilt-y-flat: 9deg;
  --tilt-x-flat: 3deg;
  --tilt-z-flat: 2deg;
  --flatten: 0;
  --shadow-x: 28px;
  --push-z: 0px;
  --edge-shadow: -3px 1px 0 #4a3840, -7px 2px 0 #2a1e24, -11px 3px 0 #140e12;
  --drop-shadow: 18px 30px 48px -16px rgba(59, 35, 48, 0.28);
  position: relative;
  transform-style: preserve-3d;
  transform:
    rotateY(calc(var(--tilt-y) + (var(--tilt-y-flat) - var(--tilt-y)) * var(--flatten)))
    rotateX(calc(var(--tilt-x) + (var(--tilt-x-flat) - var(--tilt-x)) * var(--flatten)))
    rotateZ(calc(var(--tilt-z) + (var(--tilt-z-flat) - var(--tilt-z)) * var(--flatten)))
    translateZ(var(--push-z));
}

/* Floor shadow: centered under the hero, offset with the lean elsewhere */
.device-tilt::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 1%;
  height: 10%;
  background: transparent;
  border-radius: 50%;
  transform: translate3d(var(--shadow-x), 18px, -70px) scale(0.88, 0.55);
  box-shadow: 0 0 22px 12px rgba(59, 35, 48, 0.28);
  z-index: -1;
  pointer-events: none;
}
.hero-device .device-tilt::after {
  left: 12%;
  right: 12%;
  bottom: 0;
  transform: translateY(16px) scale(0.94, 0.5);
  box-shadow: 0 0 22px 12px rgba(59, 35, 48, 0.22);
}

/* How it works: fan toward each other */
.shot-row .device:first-child .device-tilt {
  --tilt-y: 18deg;
  --tilt-x: 6deg;
  --tilt-z: 3deg;
  --tilt-y-flat: 8deg;
  --tilt-x-flat: 3deg;
  --tilt-z-flat: 1deg;
  --shadow-x: 22px;
  --push-z: -28px;
}
.shot-row .device:last-child .device-tilt {
  --tilt-y: -18deg;
  --tilt-x: 6deg;
  --tilt-z: -3deg;
  --tilt-y-flat: -8deg;
  --tilt-x-flat: 3deg;
  --tilt-z-flat: -1deg;
  --shadow-x: -22px;
  --push-z: 28px;
  --edge-shadow: 3px 1px 0 #4a3840, 7px 2px 0 #2a1e24, 11px 3px 0 #140e12;
  --drop-shadow: -18px 30px 48px -16px rgba(59, 35, 48, 0.28);
}

/* Rhythm: faces right, toward the copy */
.band-dark .device .device-tilt {
  --tilt-y: 28deg;
  --tilt-x: 7deg;
  --tilt-z: 4deg;
  --tilt-y-flat: 11deg;
  --tilt-x-flat: 3deg;
  --tilt-z-flat: 2deg;
  --shadow-x: 32px;
  --edge-shadow: -3px 1px 0 #3a3036, -7px 2px 0 #2a2228, -11px 3px 0 #1a1418;
  --drop-shadow: 18px 30px 48px -16px rgba(0, 0, 0, 0.45);
}

/* Your-data: faces left, toward the copy */
.feature-data .device-tilt {
  --tilt-y: -20deg;
  --tilt-x: 6deg;
  --tilt-z: -3deg;
  --tilt-y-flat: -8deg;
  --tilt-x-flat: 3deg;
  --tilt-z-flat: -1deg;
  --shadow-x: -24px;
  --edge-shadow: 3px 1px 0 #4a3840, 7px 2px 0 #2a1e24, 11px 3px 0 #140e12;
  --drop-shadow: -18px 30px 48px -16px rgba(59, 35, 48, 0.28);
}

.device-frame {
  position: relative;
  border-radius: 44px;
  padding: 9px;
  background: #1c1418;
  box-shadow:
    var(--edge-shadow, 0 0 0 transparent),
    var(--drop-shadow, 0 18px 40px -12px rgba(59, 35, 48, 0.28)),
    0 0 0 1px rgba(59, 35, 48, 0.12);
  z-index: 1;
}
.device-frame img {
  width: 100%;
  height: auto;
  border-radius: 35px;
  background: var(--bg);
}
.device.has-island .island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 22px;
  background: #0B080D;
  border-radius: 12px;
  z-index: 2;
  pointer-events: none;
}
.device-caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--secondary);
}

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 34rem; margin: 0 0 40px; }
.section-head .lede { margin-bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px 22px 26px;
  min-height: 100%;
}
.step-num {
  display: block;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.step p { margin: 0; color: var(--secondary); font-size: 1rem; }

.shot-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: center;
  gap: 28px 56px;
  margin: 48px 0 0;
  padding: 16px 12px 36px;
  perspective: 1200px;
  perspective-origin: 50% 40%;
  isolation: isolate;
}
.shot-row .device { width: 100%; margin: 0 auto; padding: 8px 20px 20px; box-sizing: border-box; }


/* Afterglow band */
.band-dark {
  background:
    radial-gradient(ellipse 55% 80% at 78% 48%, #1A1016 0%, transparent 68%),
    radial-gradient(ellipse 42% 55% at 82% 40%, rgba(255, 94, 120, 0.22), transparent 70%),
    radial-gradient(ellipse 35% 40% at 10% 90%, rgba(255, 154, 82, 0.12), transparent 70%),
    var(--bg);
  color: var(--ink);
  padding: 88px 0;
  overflow: visible;
}
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
  min-width: 0;
  perspective: 1200px;
  perspective-origin: 58% 40%;
}
.band-grid .device { padding: 24px 16px 48px 48px; box-sizing: border-box; }

/* Warm Afterglow bloom so the dark phone reads against the band */
.band-dark .device::before {
  content: "";
  position: absolute;
  inset: 4% 2% 8% 6%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 42% 45%,
      rgba(255, 154, 82, 0.5) 0%,
      rgba(255, 94, 120, 0.34) 32%,
      rgba(240, 60, 114, 0.16) 56%,
      transparent 74%);
  filter: blur(42px);
  z-index: 0;
  pointer-events: none;
}
/* Soft floor glow under the Rhythm phone */
.band-dark .device::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 10%;
  bottom: 6%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 94, 120, 0.28), rgba(255, 154, 82, 0.1) 45%, transparent 72%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}
.band-dark .device-tilt,
.band-dark .device-frame { position: relative; z-index: 1; }

/* Titanium rim + colored rim light so the dark frame lifts off the band */
.band-dark .device-frame {
  background:
    linear-gradient(#1c1418, #1c1418) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 200, 180, 0.16) 28%, rgba(40, 24, 28, 0.9) 62%, rgba(255, 154, 82, 0.28) 100%) border-box;
  border: 1.5px solid transparent;
  box-shadow:
    var(--edge-shadow),
    inset 1px 1px 0 rgba(255, 255, 255, 0.3),
    inset -1px -1px 0 rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 0 2px rgba(255, 154, 82, 0.22),
    0 0 32px 4px rgba(255, 94, 120, 0.28),
    var(--drop-shadow);
}
.band-dark .device-tilt::after {
  box-shadow: 0 0 28px 16px rgba(255, 94, 120, 0.22);
}
@media (min-width: 861px) {
  .band-grid { align-items: center; }
}
.band-dark .lede, .band-dark p { color: var(--secondary); }
.band-dark a { color: var(--accent); }
.band-dark a:hover { color: var(--ink); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px 24px 26px;
}
.feature p { margin: 0; color: var(--secondary); font-size: 1rem; }

.feature-data {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: 32px 48px;
  align-items: center;
  margin-top: 28px;
  perspective: 1200px;
  perspective-origin: 70% 40%;
  padding: 8px 8px 28px;
}
.feature-data .device { width: min(320px, 100%); margin: 0 auto; padding: 8px 40px 16px 8px; box-sizing: border-box; }

/* Legal pages */
.legal-page { padding: 48px 0 72px; }
.legal-body { max-width: 40rem; }
.legal-body h2 { font-size: 1.35rem; margin: 2.25rem 0 0.6rem; }
.legal-body p, .legal-body ul { margin: 0 0 1rem; }
.legal-body ul { padding-left: 1.15rem; }
.legal-body li { margin: 0 0 0.45rem; }
.plans { list-style: none; padding: 0; margin: 0 0 1rem; }
.plans li {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  margin: 0 0 0.75rem;
}
.plans strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.foot-nav a[aria-current="page"] { color: var(--accent); }

/* FAQ */
.faq-list { max-width: 40rem; }
details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  padding: 18px 32px 18px 0;
  position: relative;
  min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--secondary);
  border-bottom: 1.5px solid var(--secondary);
  transform: translateY(-70%) rotate(45deg);
}
details[open] summary::after { transform: translateY(-20%) rotate(225deg); }
summary::after { transition: transform 0.35s ease; }
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
}
details[open] .faq-panel { grid-template-rows: 1fr; }
.faq-inner { overflow: hidden; }
.faq-panel p { margin: 0 0 18px; color: var(--secondary); max-width: 38em; }

/* Footer */
.site-foot {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 0.95rem;
  text-align: center;
}
.caution {
  max-width: 40rem;
  margin: 0 auto 28px;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0 auto 20px;
}
.foot-nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-nav a:hover { color: var(--accent); }
.email {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  color: var(--accent);
  overflow-wrap: break-word;
  word-break: break-word;
}
.legal { margin: 0 auto 0.4rem; max-width: 40rem; }
.legal:last-child { margin-bottom: 0; }

/* Motion: transform/opacity only. Off under reduced motion. */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
html.js .hero .reveal,
html.js .hero .reveal.in {
  opacity: 1;
  transform: none;
  transition: none;
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.62s cubic-bezier(0.22, 0.7, 0.2, 1),
    transform 0.62s cubic-bezier(0.22, 0.7, 0.2, 1);
}
html.js .reveal.d1.in { transition-delay: 0.08s; }
html.js .reveal.d2.in { transition-delay: 0.16s; }
html.js .reveal.d3.in { transition-delay: 0.24s; }
html.js .reveal.d4.in { transition-delay: 0.32s; }

@media (prefers-reduced-motion: no-preference) {
  .device-frame {
    animation: device-float 7s ease-in-out 1.1s infinite;
  }
  .shot-row .device:nth-child(2) .device-frame { animation-delay: -1.6s; }
  .band-dark .device-frame { animation-delay: -3.2s; }
  .feature-data .device-frame { animation-delay: -2.4s; }

  .device-tilt {
    transition: transform 0.7s cubic-bezier(0.22, 0.7, 0.2, 1);
  }
  @media (hover: hover) and (min-width: 861px) {
    .device:hover .device-tilt { --flatten: 1 !important; }
    .hero-device:hover .device-tilt { --flatten: 0; }
  }

  .feature {
    transition: transform 0.4s cubic-bezier(0.22, 0.7, 0.2, 1), box-shadow 0.4s ease;
  }
  .feature:hover {
    transform: translateY(-4px);
    box-shadow:
      0 16px 36px -18px rgba(59, 35, 48, 0.28),
      0 0 0 1px color-mix(in srgb, var(--card-edge) 80%, transparent);
  }
  details[open] .faq-panel,
  .faq-panel {
    transition: grid-template-rows 0.45s cubic-bezier(0.22, 0.7, 0.2, 1);
  }

  html.js .em.shimmer {
    animation: em-shimmer 1.25s ease-out 0.28s 1 both;
  }
}

@keyframes device-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}
@keyframes em-shimmer {
  0% { background-position: 0% 50%; }
  55% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .feature, .store, .device, .faq-panel, summary::after {
    transition: none !important;
    animation: none !important;
  }
  .device-frame, .em, .device-tilt {
    animation: none !important;
  }
  .device-tilt { --flatten: 0; }
}

@media (max-width: 860px) {
  .hero-grid,
  .band-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hero { padding-top: 16px; }
  .hero-copy { padding-top: 4px; padding-bottom: 4px; }
  .hero h1 { max-width: 13.5ch; margin-bottom: 0.4rem; }
  .hero .pitch { margin-bottom: 1.1rem; }
  h1 { max-width: 16ch; }
  .hero-visual { justify-content: center; padding: 4px 12px 32px; }
  .hero-device::before { inset: 6% 8% 8% 8%; }
  .shot-row .device:first-child .device-tilt {
    --tilt-y: 8deg; --tilt-x: 3deg; --tilt-z: 1.5deg;
    --tilt-y-flat: 8deg; --tilt-x-flat: 3deg; --tilt-z-flat: 1.5deg;
    --shadow-x: 12px; --push-z: 0px;
  }
  .shot-row .device:last-child .device-tilt {
    --tilt-y: -8deg; --tilt-x: 3deg; --tilt-z: -1.5deg;
    --tilt-y-flat: -8deg; --tilt-x-flat: 3deg; --tilt-z-flat: -1.5deg;
    --shadow-x: -12px; --push-z: 0px;
  }
  .band-dark .device .device-tilt {
    --tilt-y: 11deg; --tilt-x: 4deg; --tilt-z: 2deg;
    --tilt-y-flat: 11deg; --tilt-x-flat: 4deg; --tilt-z-flat: 2deg;
    --shadow-x: 14px;
  }
  .feature-data .device-tilt {
    --tilt-y: -9deg; --tilt-x: 3deg; --tilt-z: -1.5deg;
    --tilt-y-flat: -9deg; --tilt-x-flat: 3deg; --tilt-z-flat: -1.5deg;
    --shadow-x: -12px;
  }
  .cta { align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .shot-row { grid-template-columns: minmax(0, 260px); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-data { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .device.hero-device { width: min(268px, 78%); padding: 0 8px 16px; }
  .feature-data .device { width: min(260px, 100%); padding: 4px 24px 16px 8px; }
  .band-grid .device { padding: 16px 8px 36px 24px; }
  section, .band-dark { padding: 64px 0; }
  .top-inner, .wrap { padding-inline: 16px; }
}

@media (max-width: 540px) {
  body { font-size: 17px; }
  .top-inner {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px 10px;
    padding-block: 8px;
  }
  .brand { gap: 8px; flex-shrink: 0; }
  .brand img { width: 28px; height: 28px; border-radius: 7px; }
  .wordmark { font-size: 1.05rem; }
  .topnav {
    gap: 0 10px;
    flex-wrap: nowrap;
    font-size: 0.78rem;
    min-width: 0;
  }
  .topnav a { padding: 8px 0; }
  .hero-copy { padding-bottom: 4px; }
}

/* Blog */
.blog-head {
  padding: 64px 0 8px;
  text-align: center;
}
.blog-head h1 {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.blog-head .lede {
  max-width: 36rem;
  margin: 0 auto 40px;
}
.blog-list { padding: 8px 0 96px; }
.posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.posts:has(.post-card:only-child) {
  grid-template-columns: minmax(0, 32rem);
  justify-content: center;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.35s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.post-card:hover { color: var(--ink); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .post-card:hover { transform: translateY(-3px); }
}
.post-card .thumb {
  aspect-ratio: 1200 / 630;
  background: linear-gradient(165deg, var(--wash-a), var(--wash-c) 60%, #FFD8D0);
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-sample,
.thumb-plain {
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-sample span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.post-card .pc-body { padding: 22px 24px 26px; }
.post-card time {
  display: block;
  font-size: 0.85rem;
  color: var(--secondary);
  margin: 0 0 8px;
}
.post-card h2 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  text-wrap: balance;
}
.post-card p {
  margin: 0;
  color: var(--secondary);
  font-size: 0.98rem;
}
.post-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-empty {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 40px 28px;
}
.blog-empty p {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.blog-empty small {
  display: block;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.5;
}
.blog-sample { margin-top: 48px; }
.blog-sample-label {
  text-align: center;
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.blog-sample-lede {
  text-align: center;
  color: var(--secondary);
  max-width: 34rem;
  margin: 0 auto 24px;
}
.sample-banner {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: var(--ink);
  font-size: 0.95rem;
}
.post { padding: 48px 0 88px; }
.post-wrap { max-width: 44rem; }
.post h1 { max-width: none; }
.post .crumb { text-align: left; margin-bottom: 12px; }
.post .crumb a {
  color: var(--accent);
  text-decoration: none;
}
.post .crumb a:hover { text-decoration: underline; }
.byline {
  color: var(--secondary);
  font-size: 0.95rem;
  margin: 0 0 28px;
  line-height: 1.6;
}
.byline span + span::before {
  content: "·";
  margin: 0 8px;
}
.post-cover { margin: 0 0 32px; }
.post-cover img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.post-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 {
  font-size: 1.55rem;
  margin-top: 2em;
  margin-bottom: 0;
}
.post-body h3 {
  font-size: 1.2rem;
  margin-top: 1.6em;
  margin-bottom: 0;
}
.post-body ul,
.post-body ol { padding-left: 1.25rem; }
.post-body li + li { margin-top: 0.4em; }
.post-body a { color: var(--accent); }
.post-body blockquote {
  margin: 1.15em 0 0;
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 18px;
  color: var(--secondary);
}
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.2em 0 0;
}
.post-note {
  max-width: none;
  margin: 32px 0 0;
  color: var(--secondary);
  font-size: 0.95rem;
}
.post-cta {
  margin-top: 40px;
  background: color-mix(in srgb, var(--wash-c) 70%, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  text-align: center;
}
.post-cta .cta-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.post-cta > p {
  color: var(--secondary);
  font-size: 1rem;
  margin: 0 auto 20px;
  max-width: 28em;
}
.post-cta .cta { margin: 0; }
.post-cta .store { cursor: pointer; }
.post-cta .age {
  margin: 12px 0 0;
  color: var(--secondary);
  font-size: 0.9rem;
}
.topnav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 860px) {
  .blog-head { padding-top: 40px; }
  .posts { grid-template-columns: 1fr; }
  .post { padding: 36px 0 72px; }
  .post-body { font-size: 1rem; }
  .post-body h2 { font-size: 1.35rem; }
  .post-cta { padding: 26px 20px; }
}

.image-credit { margin-top: 8px; font-size: .8125rem; color: #6b6f76; }
.post-sources { margin: 32px 0 0; font-size: .9375rem; }
.post-sources h2 { font-size: 1.0625rem; margin: 0 0 8px; }
.post-sources ul { margin: 0; padding-left: 1.2em; }


/* Hero 10-second pass: short phones, home blog, closing CTA */
@media (max-width: 860px) and (max-height: 760px) {
  .hero { padding-top: 12px; }
  .hero h1 { font-size: 1.95rem; }
  .hero .pitch { font-size: 1rem; line-height: 1.45; margin-bottom: 0.9rem; }
  .cta { gap: 10px; }
  .device.hero-device { width: min(236px, 74%); padding: 0 8px 8px; }
  .hero-visual { padding: 0 12px 24px; }
}

@media (max-width: 860px) and (max-height: 700px) {
  .hero { padding-top: 8px; }
  .hero h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
  .hero .pitch { font-size: 0.98rem; margin-bottom: 0.75rem; }
  .device.hero-device { width: min(214px, 70%); }
}

.home-posts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-posts .post-card h2 { font-size: 1.15rem; }
.close-cta {
  padding: 72px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(255, 176, 196, 0.28), transparent 70%),
    linear-gradient(180deg, var(--wash-a), var(--wash-c));
}
.close-cta h2 { margin-bottom: 0.4rem; }
.close-cta .lede { margin: 0 auto 1.35rem; max-width: 28rem; }
.close-cta .cta { align-items: center; }
@media (max-width: 860px) {
  .home-posts { grid-template-columns: 1fr; }
  .close-cta { padding: 56px 0; }
}
