/* Rainbow Noise marketing site.
 *
 * Light is the default theme: warm off-white, never clinical. Dark is a
 * manual toggle (data-theme="dark" on <html>): warm dusk charcoal, never
 * pure black. The seven noise tints are the only saturated accents.
 */

:root {
  color-scheme: light;

  --page-bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-soft: #F3EEE6;
  --ink: #26211B;
  --ink-soft: rgba(38, 33, 27, 0.72);
  --ink-muted: rgba(38, 33, 27, 0.55);
  --line: rgba(38, 33, 27, 0.12);

  --tint-white: #E4E4E4;
  --tint-pink: #EB437D;
  --tint-red: #FF3B30;
  --tint-green: #34C759;
  --tint-blue: #007AFF;
  --tint-violet: #5856D6;
  --tint-grey: #9E9EA2;

  --focus-ring: var(--tint-blue);
  --frame-shadow: 0 18px 40px rgba(38, 33, 27, 0.16);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --page-bg: #1A171D;
  --surface: #241F28;
  --surface-soft: #2B2530;
  --ink: #F4F0EA;
  --ink-soft: rgba(244, 240, 234, 0.72);
  --ink-muted: rgba(244, 240, 234, 0.55);
  --line: rgba(244, 240, 234, 0.14);

  --tint-white: #FFFFFF;
  --tint-pink: #EF4A88;
  --tint-red: #FF453A;
  --tint-green: #30D158;
  --tint-blue: #0A84FF;
  --tint-violet: #5E5CE6;
  --tint-grey: #78787C;

  --frame-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration-color: var(--ink-muted);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--ink);
}

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

/* Header. */

.site-header {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.theme-glyph {
  width: 20px;
  height: 20px;
}

.theme-glyph-sun {
  display: none;
}

:root[data-theme="dark"] .theme-glyph-sun {
  display: block;
}

:root[data-theme="dark"] .theme-glyph-moon {
  display: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1.125rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page-bg);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

/* Layout. */

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

section {
  margin: 6rem auto 0;
  max-width: 42rem;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(1.625rem, 3.5vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 0.375rem;
}

p {
  margin: 0 0 1rem;
}

/* Hero — a soft dusk wash built from the seven tints, no hard stops. */

.hero {
  max-width: none;
  margin-top: 2.5rem;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(58% 52% at 14% 18%, color-mix(in srgb, var(--tint-pink) 13%, transparent), transparent 72%),
    radial-gradient(52% 46% at 86% 14%, color-mix(in srgb, var(--tint-blue) 11%, transparent), transparent 72%),
    radial-gradient(50% 44% at 78% 82%, color-mix(in srgb, var(--tint-violet) 12%, transparent), transparent 72%),
    radial-gradient(46% 42% at 24% 86%, color-mix(in srgb, var(--tint-green) 9%, transparent), transparent 72%),
    radial-gradient(40% 36% at 50% 8%, color-mix(in srgb, var(--tint-red) 6%, transparent), transparent 72%),
    radial-gradient(64% 56% at 50% 55%, color-mix(in srgb, var(--tint-grey) 7%, transparent), transparent 76%),
    var(--page-bg);
}

.hero-subhead {
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  color: var(--ink-soft);
  margin: 1.25rem 0 0;
}

.hero-line {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  color: var(--ink-soft);
}

.hero-price {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 1.75rem 0 2.25rem;
}

.hero-soon {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* App Store badge. */

.store-badge-link {
  display: inline-block;
}

.store-badge {
  display: block;
  height: 54px;
  width: auto;
}

/* Honesty strip. */

.honesty-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

.honesty-strip li {
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* Split sections — copy beside a framed screenshot. */

.split {
  max-width: 56rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-copy h3 {
  margin-top: 1.75rem;
}

.split-figure {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.device-frame {
  display: block;
  width: min(15rem, 100%);
  aspect-ratio: 9 / 19.5;
  border: 8px solid #131316;
  border-radius: 2.5rem;
  overflow: hidden;
  background: #131316;
  box-shadow: var(--frame-shadow);
}

.device-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
}

.split-figure-pair .device-frame {
  width: min(11.5rem, 48%);
}

.split-figure-pair .device-frame:last-child {
  transform: translateY(1.5rem);
}

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

  .split-figure {
    order: 2;
  }
}

/* Seven colors — the silent paywall-style picker. */

.colors {
  text-align: center;
}

.colors-intro {
  max-width: 34rem;
  margin: 0 auto 2.5rem;
  color: var(--ink-soft);
}

.picker-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 200px;
  margin-bottom: 2rem;
}

.picker-pill {
  position: relative;
  width: 30px;
  height: var(--pill-height);
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--tint);
  cursor: pointer;
}

.picker-pill::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--tint);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.24s ease-in-out;
}

.picker-pill[aria-pressed="true"]::after {
  opacity: 1;
}

.picker-card {
  max-width: 28rem;
  min-height: 8.5rem;
  margin: 0 auto;
  padding: 1.375rem 1.5rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
}

.picker-card h3 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.picker-card-swatch {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tint);
  border: 1px solid var(--line);
}

.picker-card p {
  margin: 0;
  color: var(--ink-soft);
}

/* Section accents. */

.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

.small-line {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.plus-price {
  font-weight: 600;
}

/* Founder block. */

.founder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem 2.25rem;
  align-items: start;
  padding: 2rem 2.25rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.founder-copy p:last-child {
  margin-bottom: 0;
}

.founder-photo {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  outline: 1px solid var(--line);
  outline-offset: 4px;
}

.founder-monogram {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 3.5rem;
  font-weight: 650;
}

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

  .founder-portrait {
    justify-self: center;
  }
}

/* What's not here. */

.not-here {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.not-here li {
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--line);
}

.not-here li:last-child {
  border-bottom: none;
}

/* Final CTA. */

.final-cta {
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 1.75rem;
}

/* Prose pages. */

.prose {
  max-width: 40rem;
  margin: 4rem auto 0;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.prose h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
}

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.25rem;
}

.fine-print {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Footer. */

.site-footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}

.site-footer nav {
  margin-bottom: 0.5rem;
}

.site-footer nav span {
  margin: 0 0.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
}

/* Restrained scroll reveal — CSS only, off when motion is reduced and on
 * browsers without scroll-driven animations. */

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

@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
