/* AI Decor — aidecor.space
   Palette mirrors the app's design tokens (Colors.xcassets).
   No color-mix() with var() anywhere: on iOS below 16.2 such a declaration is
   invalid at computed-value time and falls back to the inherited color. */

/* Self-hosted latin subsets (Google Fonts, SIL OFL), variable on the wght
   axis. Newsreader replaced Bodoni Moda, whose hairlines were hard to read. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f5f0ed;
  --paper-deep: #ebe2d9;
  --card: #fffbf8;
  --ink: #1a1d1b;
  --ink-soft: #3b433f;
  --muted: #5f6763;
  --green: #2c5543;
  --green-deep: #1b3529;
  --green-mist: #dfe8e2;
  --brass: #c9a227;
  --brass-deep: #8f7016;
  --line: rgba(26, 29, 27, 0.12);
  --line-strong: rgba(26, 29, 27, 0.24);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--green); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--dark :focus-visible,
.site-footer :focus-visible,
.contact-card :focus-visible { outline-color: var(--brass); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip:focus { left: 12px; }

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

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

.display,
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 0;
  font-optical-sizing: auto;
}
.display em, h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: clamp(17px, 1.5vw, 19.5px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 237, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 600; color: var(--green); font-style: italic; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 12px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

/* ---------- App Store badge ---------- */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px 10px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  line-height: 1.1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 10px 24px -14px rgba(26, 29, 27, 0.6);
}
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.72;
}
.store-badge strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
a.store-badge:hover { transform: translateY(-2px); background: var(--green-deep); }
span.store-badge { cursor: default; }

.store-badge--sm { min-height: 42px; padding: 7px 16px 7px 13px; border-radius: 12px; gap: 9px; }
.store-badge--sm svg { width: 18px; height: 18px; }
.store-badge--sm small { font-size: 9.5px; }
.store-badge--sm strong { font-size: 14px; }

.store-badge--light { background: var(--paper); color: var(--ink); }
a.store-badge--light:hover { background: #fff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(44, 85, 67, 0.35);
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease), border-color 0.3s;
}
.text-link:hover { gap: 12px; border-color: var(--green); }

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

.hero {
  position: relative;
  padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.hero h1 {
  font-size: clamp(46px, 7.4vw, 104px);
  margin: 22px 0 26px;
}
.hero h1 .line { display: block; }
.hero .lead { margin: 0 0 34px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts b {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  color: var(--green);
}
.hero-facts span { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 470px);
}
.hero-visual .arch-outline {
  position: absolute;
  inset: -18px -18px 26px 26px;
  border: 1px solid rgba(44, 85, 67, 0.45);
  border-radius: 999px 999px 26px 26px;
  pointer-events: none;
}

.arch {
  position: relative;
  aspect-ratio: 1179 / 1627;
  border-radius: 999px 999px 26px 26px;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: 0 40px 80px -40px rgba(27, 53, 41, 0.55), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  isolation: isolate;
}

.floating {
  position: absolute;
  z-index: 3;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(26, 29, 27, 0.35);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.3;
}
.floating small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }

.floating--palette { left: -34px; bottom: 16%; }
.floating--palette .swatches { display: flex; gap: 4px; }
.floating--palette .swatches i {
  width: 20px; height: 28px; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}
.floating--palette strong { display: block; margin-top: 8px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 16px; }

.floating--style {
  right: -26px; top: 22%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px;
}
.floating--style .spark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: var(--brass);
}
.floating--style .spark svg { width: 18px; height: 18px; }
.floating--style b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 17px; display: block; }

/* ---------- Before / After ---------- */

.ba {
  --pos: 50%;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ba picture { display: contents; }
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* The divider moves with transform, not `left`, so dragging never counts as a
   layout shift. translateX(%) resolves against the layer's own width, which
   is the slider's width. */
.ba .ba-line {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 100%;
  transform: translateX(var(--pos));
  pointer-events: none;
}
.ba .ba-line::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -1px;
  width: 2px;
  background: rgba(255, 251, 248, 0.95);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
}
.ba .ba-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 251, 248, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: var(--green);
  box-shadow: 0 8px 26px -6px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease);
}
.ba .ba-knob svg { width: 24px; height: 24px; }
.ba.is-dragging .ba-knob { transform: translate(-50%, -50%) scale(1.08); }
.ba-tag {
  position: absolute;
  bottom: 18px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(26, 29, 27, 0.55);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.3s;
}
.ba-tag--before { left: 18px; }
.ba-tag--after { right: 18px; background: rgba(44, 85, 67, 0.8); }
.ba input[type="range"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ba:has(input:focus-visible) .ba-knob {
  box-shadow: 0 0 0 3px var(--green), 0 0 0 6px var(--card), 0 8px 26px -6px rgba(0, 0, 0, 0.4);
}

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 20px 0;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  white-space: nowrap;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
/* Four-point star drawn in CSS: the ✦ glyph would pull in a 26 KB font subset. */
.marquee-track span::after,
.contact-card li::before {
  content: "";
  flex: none;
  background: var(--brass);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}
.marquee-track span::after { width: 0.46em; height: 0.46em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

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

.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { font-size: clamp(38px, 5.6vw, 72px); margin-top: 18px; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 30em; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  padding: 28px 28px 8px 0;
  border-top: 1px solid var(--line-strong);
  position: relative;
}
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 84px);
  line-height: 1;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px var(--green);
  display: block;
  margin-bottom: 26px;
}
.step h3 { font-size: 26px; margin-bottom: 12px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.step .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip {
  font-size: 12.5px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.ready-note {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-radius: 999px;
  background: var(--card);
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 16px 36px -24px rgba(26, 29, 27, 0.4);
}
.ready-note .dot {
  position: relative;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brass);
  flex: none;
}
/* The pulse animates transform and opacity only, so it stays on the compositor. */
.ready-note .dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.28);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.55); opacity: 1; }
  75%, 100% { transform: scale(1.5); opacity: 0; }
}
.ready-note p { margin: 0; font-size: 15.5px; }
.ready-note b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; }

/* Modes (dark) */
.section--dark {
  background: var(--green-deep);
  color: var(--green-mist);
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  right: -300px; top: -420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 162, 39, 0.16), transparent);
  pointer-events: none;
}
.section--dark .eyebrow { color: var(--brass); }
.section--dark h2 em, .section--dark h3 em { color: #e6cf7f; }
.section--dark .section-head p { color: rgba(223, 232, 226, 0.78); }

.modes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.staging-frame {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2 / 1;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.mode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.mode-card {
  border: 1px solid rgba(223, 232, 226, 0.16);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  background: rgba(255, 255, 255, 0.03);
  flex: 1;
}
.mode-card h3 { font-size: 30px; color: var(--paper); margin-bottom: 10px; }
.mode-card > p { margin: 0 0 18px; font-size: 15.5px; color: rgba(223, 232, 226, 0.8); }
.mode-card dl { margin: 0; display: grid; gap: 12px; }
.mode-card dt { font-weight: 600; color: var(--paper); font-size: 15px; }
.mode-card dd { margin: 2px 0 0; font-size: 14.5px; color: rgba(223, 232, 226, 0.72); }
.mode-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}

/* Styles grid */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.styles-intro {
  grid-column: span 2;
  align-self: center;
  padding-right: clamp(0px, 3vw, 40px);
}
.styles-intro h2 { font-size: clamp(38px, 5.6vw, 72px); margin: 18px 0 18px; }
.styles-intro p { color: var(--ink-soft); margin: 0; }

.style-card { margin: 0; }
.style-card .img {
  aspect-ratio: 5 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-deep);
}
.style-card picture, .pro-visual picture { display: contents; }
.style-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.style-card:hover img { transform: scale(1.06); }
.style-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 12px 2px 0;
}
.style-card figcaption span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.15;
}
.style-card figcaption small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.style-custom {
  grid-column: span 2;
  border: 1px dashed rgba(44, 85, 67, 0.55);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  gap: 22px;
  align-items: center;
  background: rgba(255, 251, 248, 0.6);
}
.style-custom .wand {
  width: 64px; height: 64px; flex: none;
  border-radius: 50%;
  background: var(--green);
  color: var(--brass);
  display: grid; place-items: center;
}
.style-custom .wand svg { width: 28px; height: 28px; }
.style-custom h3 { font-size: 26px; margin-bottom: 8px; }
.style-custom p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.style-custom q {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--green);
}

/* Palettes */
.section--palettes { background: var(--paper-deep); }
.palettes {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.chip-card {
  background: var(--card);
  border-radius: 10px;
  padding: 8px 8px 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 14px 30px -22px rgba(26, 29, 27, 0.45);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.chip-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 26px 40px -22px rgba(26, 29, 27, 0.5); }
.chip-card .bands {
  display: grid;
  grid-template-rows: 3fr 1fr 1fr 1fr 1fr;
  aspect-ratio: 3 / 4.6;
  border-radius: 5px;
  overflow: hidden;
}
.chip-card .bands i { display: block; }
.chip-card .bands i:nth-child(1) { background: var(--c1); }
.chip-card .bands i:nth-child(2) { background: var(--c2); }
.chip-card .bands i:nth-child(3) { background: var(--c3); }
.chip-card .bands i:nth-child(4) { background: var(--c4); }
.chip-card .bands i:nth-child(5) { background: var(--c5); }
.chip-card small {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chip-card strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.15;
  margin-top: 2px;
}

/* Pro */
.pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.pro-visual {
  position: relative;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  box-shadow: 0 40px 80px -44px rgba(27, 53, 41, 0.6);
}
.pro-visual img { width: 100%; height: 100%; object-fit: cover; }
.pro h2 { font-size: clamp(38px, 5.2vw, 66px); margin: 18px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 16.5px; }
.checks svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: 1px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.plan {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 16px 14px;
  background: var(--card);
  position: relative;
}
.plan b { font-family: var(--serif); font-weight: 500; font-size: 21px; display: block; }
.plan span { font-size: 13px; color: var(--muted); }
.plan--featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.plan--featured em {
  position: absolute;
  top: -11px; left: 14px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--paper);
  padding: 3px 9px;
  border-radius: 999px;
}
.fineprint { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.fineprint a { color: var(--ink-soft); }

/* Privacy promise */
.promise {
  background: var(--card);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(32px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  box-shadow: 0 30px 70px -50px rgba(26, 29, 27, 0.5);
}
.promise h2 { font-size: clamp(36px, 4.6vw, 60px); margin: 18px 0 20px; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.promise-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.promise-list li:first-child { border-top: 0; padding-top: 0; }
.promise-list .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-mist);
  color: var(--green);
  display: grid; place-items: center;
}
.promise-list .ico svg { width: 22px; height: 22px; }
.promise-list b { display: block; font-size: 16.5px; margin-bottom: 2px; }
.promise-list p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* FAQ */
.faq { max-width: 880px; }
.faq details {
  border-top: 1px solid var(--line-strong);
}
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 13px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--green-mist); }
.faq .answer { padding: 0 60px 26px 0; color: var(--ink-soft); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Final CTA */
.cta {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
}
.cta h2 { font-size: clamp(44px, 7vw, 96px); max-width: 12em; margin: 20px auto 34px; }
.cta .arch-bg {
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: min(760px, 120vw);
  aspect-ratio: 1 / 1.2;
  transform: translateX(-50%);
  border: 1px solid rgba(44, 85, 67, 0.25);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.cta .arch-bg::after {
  content: "";
  position: absolute;
  inset: 40px 40px 0;
  border: 1px solid rgba(44, 85, 67, 0.16);
  border-radius: 999px 999px 0 0;
}

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

.site-footer {
  background: var(--ink);
  color: rgba(245, 240, 237, 0.72);
  padding: 64px 0 36px;
  padding-bottom: max(36px, env(safe-area-inset-bottom));
  font-size: 15px;
}
.site-footer .top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(245, 240, 237, 0.12);
}
.site-footer .brand { color: var(--paper); }
.site-footer .brand b { color: #e6cf7f; }
.site-footer p { margin: 14px 0 0; max-width: 26em; }
.site-footer .footer-title {
  margin: 4px 0 8px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-footer a { text-decoration: none; }
.site-footer ul a { display: inline-block; padding: 7px 0; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 26px;
  font-size: 13px;
  color: rgba(245, 240, 237, 0.5);
}

/* ---------- Document pages (Privacy / Terms / Support) ---------- */

.doc-hero {
  padding: clamp(40px, 7vw, 90px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.doc-hero h1 { font-size: clamp(44px, 7vw, 92px); margin: 18px 0 18px; }
.doc-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14.5px;
  color: var(--muted);
}
.doc-hero .meta b { color: var(--ink-soft); font-weight: 600; }

.doc {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(72px, 10vw, 128px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 100px;
  font-size: 14px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding-right: 8px;
}
.toc h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0 6px 14px;
  border-left: 1px solid var(--line);
  line-height: 1.35;
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--green); border-left: 2px solid var(--green); padding-left: 13px; font-weight: 600; }

.prose { max-width: 72ch; font-size: 16.5px; line-height: 1.72; color: var(--ink-soft); }
.prose h2 {
  font-size: clamp(28px, 3vw, 36px);
  color: var(--ink);
  margin: 64px 0 18px;
}
.prose h2:first-child { margin-top: 0; }
.prose h2 .n {
  font-style: italic;
  color: var(--green);
  font-weight: 400;
  margin-right: 0.3em;
}
.prose h3 {
  font-family: var(--sans);
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ink);
  margin: 30px 0 8px;
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--green); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }

.summary-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  margin: 0 0 48px;
  box-shadow: 0 20px 50px -40px rgba(26, 29, 27, 0.5);
  border: 1px solid var(--line);
}
.summary-box h2 {
  font-size: 26px !important;
  margin: 0 0 16px !important;
}
.summary-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.summary-box li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; margin: 0; }
.summary-box li svg { width: 20px; height: 20px; color: var(--green); margin-top: 4px; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
  min-width: 560px;
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.prose tr:last-child td { border-bottom: 0; }
.prose th {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: #f9f4f1;
}
.prose td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

.callout {
  border-left: 3px solid var(--brass);
  background: #fbf4e7;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 0 0 20px;
}
.callout p:last-child { margin-bottom: 0; }

.caps { text-transform: uppercase; font-size: 0.94em; letter-spacing: 0.01em; }

/* Support page */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(72px, 10vw, 128px);
  align-items: start;
}
.contact-card {
  position: sticky;
  top: 100px;
  background: var(--green-deep);
  color: var(--green-mist);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 260px; height: 320px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.contact-card h2 { color: var(--paper); font-size: clamp(30px, 3.4vw, 42px); margin: 16px 0 14px; }
.contact-card h2 em { color: #e6cf7f; }
.contact-card .eyebrow { color: var(--brass); }
.contact-card p { margin: 0 0 22px; color: rgba(223, 232, 226, 0.82); }
.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16.5px;
  transition: transform 0.3s var(--ease), background 0.3s;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.mail-btn:hover { transform: translateY(-2px); background: #fff; }
.mail-btn svg { width: 20px; height: 20px; flex: none; color: var(--green); }
.contact-card ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; font-size: 14.5px; position: relative; z-index: 1; }
.contact-card li { display: flex; gap: 10px; }
.contact-card li::before { width: 10px; height: 10px; margin-top: 6px; }

.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 12px; }
.tip { background: var(--card); border-radius: 16px; padding: 18px; border: 1px solid var(--line); }
.tip b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15.5px; }
.tip span { font-size: 14.5px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: 60px; padding-bottom: 60px; }
.notfound h1 { font-size: clamp(56px, 10vw, 140px); }
.notfound p { color: var(--ink-soft); margin: 10px 0 30px; }

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* The hero is visible from the first paint and only drifts into place:
   fading it in from opacity 0 would hold back Largest Contentful Paint. */
.hero .rise {
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(var(--d, 0s) * 0.5);
}
.hero .arch-in { animation: rise-arch 0.9s var(--ease) 0.05s both; }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes rise-arch { from { transform: translateY(22px) scale(0.985); } to { transform: none; } }

.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .hero .rise, .hero .arch-in { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .palettes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step { padding-bottom: 32px; }
}

/* Single columns are minmax(0, 1fr), never plain 1fr: a 1fr track can't shrink
   below its content's min-content width, and one wide table would widen the
   whole page on a phone. */
@media (max-width: 900px) {
  .nav .nav-hide { display: none; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: min(100%, 420px); margin-top: 8px; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .staging-frame { aspect-ratio: 3 / 2; }
  .mode-list { grid-template-columns: minmax(0, 1fr); }
  .styles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .styles-intro, .style-custom { grid-column: 1 / -1; }
  .styles-intro { padding-right: 0; margin-bottom: 10px; }
  .pro { grid-template-columns: minmax(0, 1fr); }
  .pro-visual { max-width: 420px; }
  .promise { grid-template-columns: minmax(0, 1fr); }
  .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .top > :first-child { grid-column: 1 / -1; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 12px; background: var(--card); }
  .support-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-card { position: relative; top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 62px; }
  .brand { font-size: 20px; }
  .brand svg { width: 26px; height: 26px; }
  .nav { gap: 14px; }
  /* Until release the badge links nowhere, so on phones the header keeps a
     real destination instead: the Support link. */
  .nav span.store-badge--sm { display: none; }
  .hero-facts b { font-size: 28px; }
  .floating--palette { left: -8px; bottom: 12%; }
  .floating--style { right: -6px; top: 16%; }
  .hero-visual .arch-outline { inset: -10px -8px 20px 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .palettes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .style-custom { flex-direction: column; align-items: flex-start; }
  .faq .answer { padding-right: 0; }
  .ready-note { border-radius: 20px; align-items: flex-start; }
  .ready-note .dot { margin-top: 6px; }
  .tips { grid-template-columns: minmax(0, 1fr); }
  .site-footer .top { grid-template-columns: minmax(0, 1fr); }
}
