/* madridnotebook.com: Madrid's marketing site in its default theme, Neon Grid.
   Tokens and fonts follow Madrid's theme contract (app/theme/themes/neon.css). House rule from the app:
   grids, suns, glows and confetti live in chrome and art; running text always sits on calm, solid color. */

@font-face {
  font-family: 'Audiowide';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/audiowide-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: 'Audiowide';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/audiowide-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/rubik-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: 'Rubik';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/rubik-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/vt323-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Mr Dafoe';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/mrdafoe-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  /* Neon Grid palette (Madrid's default theme) */
  --night: #120b2e;
  --deep: #0b0620;
  --surface: #1c1444;
  --raised: #251b55;
  --line: #3d3176;
  --line-strong: #5b4ea0;
  --ink: #f3eeff;
  --muted: #c3b9e6;
  --on-neon: #14092e;
  --magenta: #ff3ea5;
  --magenta-text: #ff8fcf;
  --cyan: #2de2e6;
  --cyan-text: #6ff0f3;
  --amber: #ffb443;
  --amber-text: #ffc56b;
  --orange: #ff7a3d;
  --violet-text: #c7aaff;
  --mint: #4be3a0;
  --mint-text: #74eebb;
  --danger-text: #ff9aae;
  --attention-soft: #412e46;
  --success-soft: #1d3a52;
  --danger-soft: #45173f;
  --sunset: linear-gradient(90deg, #ffb443 0%, #ff3ea5 55%, #b04dff 100%);
  --hero-fill: linear-gradient(90deg, #ffd35c 0%, #ff8a3d 50%, #ff5fb8 100%);

  --font-display: 'Audiowide', 'Rubik', system-ui, sans-serif;
  --font-text: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-number: 'VT323', ui-monospace, monospace;
  --font-script: 'Mr Dafoe', 'Brush Script MT', cursive;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --glow-cyan: 0 0 0 1px rgba(45, 226, 230, 0.55), 0 0 22px -4px rgba(45, 226, 230, 0.55);
  --glow-magenta: 0 0 18px -8px rgba(255, 62, 165, 0.9);
  --shot-glow: 0 30px 80px -30px rgba(255, 62, 165, 0.55), 0 0 0 1px rgba(255, 62, 165, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main {
  flex: 1 0 auto;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--cyan-text);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: #5b2a6e;
  color: var(--ink);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}
p {
  margin: 0;
  text-wrap: pretty;
}
figure {
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-neon);
  border-radius: var(--radius-m);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 11, 46, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  border-image: var(--sunset) 1;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand img.mark {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 6px rgba(255, 62, 165, 0.35));
}
.brand .lockup {
  display: grid;
  gap: 2px;
}
.brand img.wordmark {
  width: 96px;
  height: auto;
}
.brand .tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan-text);
  text-transform: uppercase;
  line-height: 1.2;
}
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-m);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.site-nav a:hover {
  background: rgba(143, 128, 216, 0.16);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: var(--radius-m);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 150ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 150ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.button.primary {
  background: var(--sunset);
  color: var(--on-neon);
  box-shadow: 0 10px 24px -12px rgba(255, 62, 165, 0.9);
}
.button.primary:hover {
  color: var(--on-neon);
  box-shadow: 4px 4px 0 var(--cyan);
  transform: translate(-1px, -1px);
}
.button.secondary {
  border: 1px solid var(--cyan);
  color: var(--cyan-text);
  background: transparent;
}
.button.secondary:hover {
  box-shadow: var(--glow-cyan);
  color: var(--ink);
}
.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.header-cta {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 15px;
  margin-left: auto;
}
.site-nav + .header-cta {
  margin-left: 0;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-text);
  margin-bottom: 14px;
}
.gradient-text {
  background: var(--hero-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: #ffd35c;
  -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) {
  .gradient-text {
    -webkit-text-fill-color: currentColor;
    background: none;
    color: CanvasText;
  }
}
.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 62ch;
}
.script {
  font-family: var(--font-script);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  color: var(--magenta-text);
  text-shadow: 0 0 10px rgba(255, 62, 165, 0.55);
}
.script em {
  font-style: normal;
  color: var(--cyan-text);
  text-shadow: 0 0 10px rgba(45, 226, 230, 0.5);
}
.mono {
  font-family: var(--font-mono);
  font-size: 15px;
}
code.name {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber-text);
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 2px 8px;
  word-break: break-all;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0 0;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 880px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  margin-bottom: 22px;
}
.hero .lede {
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 22px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 180, 67, 0.6);
  border-radius: 999px;
  background: var(--attention-soft);
  color: var(--ink);
  font-size: 15px;
}
.price-chip strong {
  font-family: var(--font-number);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  color: var(--amber-text);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b0620 0%, #1d0b44 48%, #3a1060 60%, #0b0620 60.2%, #0b0620 100%);
  border: 1px solid rgba(255, 62, 165, 0.55);
  box-shadow: 0 0 44px -12px rgba(255, 62, 165, 0.7);
}
.hero-art .script {
  position: absolute;
  top: 9%;
  left: 9%;
  right: 6%;
  transform: rotate(-6deg);
  font-size: clamp(30px, 2.8vw, 40px);
}
.art-sun {
  position: absolute;
  left: 50%;
  bottom: 40%;
  width: 78%;
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: url('/art/sun.svg') center bottom / contain no-repeat;
  filter: drop-shadow(0 0 36px rgba(255, 62, 165, 0.45));
}
.art-floor {
  position: absolute;
  top: 60%;
  left: -40%;
  right: -40%;
  bottom: -20%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 62, 165, 0.65) 0 1.5px, transparent 1.5px 48px),
    repeating-linear-gradient(0deg, rgba(255, 62, 165, 0.65) 0 1.5px, transparent 1.5px 30px);
  background-color: var(--deep);
  transform: perspective(240px) rotateX(55deg);
  transform-origin: top center;
  border-top: 2px solid var(--magenta);
  box-shadow: 0 -6px 26px -4px rgba(255, 62, 165, 0.8);
}
@media (prefers-reduced-motion: no-preference) {
  .art-sun {
    animation: sun-rise 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
  }
  @keyframes sun-rise {
    from {
      transform: translate(-50%, 40%);
      opacity: 0.3;
    }
    to {
      transform: translate(-50%, 0);
      opacity: 1;
    }
  }
}
.art-sticker {
  position: absolute;
  right: 9%;
  bottom: 9%;
  width: 26%;
  height: auto;
  transform: rotate(8deg);
  filter: drop-shadow(6px 6px 0 var(--cyan));
}
.hero-shot {
  margin-top: clamp(48px, 6vw, 80px);
}
.shot {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--deep);
  box-shadow: var(--shot-glow);
}
.shot img {
  width: 100%;
}
.caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Sections ---------- */
section {
  padding: clamp(64px, 8vw, 112px) 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head h2,
.feature h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 16px;
}
.band {
  background: var(--deep);
  border-block: 1px solid var(--line);
}
.rule {
  height: 10px;
  width: 72px;
  margin-bottom: 18px;
  background: url('/art/squiggle.svg') left center / auto 100% repeat-x;
}

/* The loop */
.loop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.loop li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 22px 22px 24px;
  overflow: hidden;
}
.loop li::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--stage, var(--cyan));
}
.loop .num {
  font-family: var(--font-number);
  font-size: 40px;
  line-height: 1;
  color: var(--stage-text, var(--cyan-text));
}
.loop h3 {
  font-size: 22px;
  margin: 10px 0 6px;
}
.loop .where {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.loop p {
  color: var(--muted);
  font-size: 15px;
}
.loop li:nth-child(1) { --stage: #c3b9e6; --stage-text: #c3b9e6; }
.loop li:nth-child(2) { --stage: #2de2e6; --stage-text: #6ff0f3; }
.loop li:nth-child(3) { --stage: #ffb443; --stage-text: #ffc56b; }
.loop li:nth-child(4) { --stage: #ff7a3d; --stage-text: #ff8a3d; }
.loop li:nth-child(5) { --stage: #ff3ea5; --stage-text: #ff8fcf; }
.loop li:nth-child(6) { --stage: #4be3a0; --stage-text: #74eebb; }

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature + .feature {
  margin-top: clamp(64px, 8vw, 112px);
}
.feature.flip > .feature-copy {
  order: 2;
}
.feature-copy > p:not(.eyebrow),
.feature-intro p.body {
  color: var(--muted);
  margin-bottom: 18px;
}
.feature-copy > p.lead-in,
.feature-intro p.lead-in {
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 16px;
}
.feature-block .shot,
.roles-shot {
  margin-top: 0;
}
.roles-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.27fr);
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}
.phone-shot {
  border-radius: 30px;
  border: 2px solid var(--line-strong);
  padding: 6px;
  background: var(--deep);
  box-shadow: var(--shot-glow);
}
.phone-shot img {
  border-radius: 24px;
}
.feature-intro {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.feature-intro h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 16px;
}
.feature-intro .calls {
  margin-bottom: 0;
}
.feature-block + .feature,
.feature + .feature-block,
.feature-block + .feature-block {
  margin-top: clamp(72px, 9vw, 120px);
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 10px -2px rgba(45, 226, 230, 0.8);
}
.checks li strong {
  color: var(--ink);
}
.stack {
  display: grid;
  gap: 18px;
}
/* Verdict chips */
.calls {
  display: grid;
  gap: 10px;
  margin: 6px 0 20px;
}
.call {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.chip.strong { background: var(--success-soft); color: var(--mint-text); }
.chip.weak { background: var(--danger-soft); color: var(--danger-text); }
.chip.pending { background: var(--attention-soft); color: var(--amber-text); }
.call p {
  color: var(--muted);
  font-size: 15px;
}

/* Roles */
.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.role {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
  transition: box-shadow 150ms ease;
}
.role:hover {
  box-shadow: 0 0 0 1px var(--cyan), 0 -3px 0 0 var(--magenta) inset;
}
.role h3 {
  font-size: 20px;
  margin-bottom: 4px;
}
.role .opens {
  font-size: 14px;
  color: var(--cyan-text);
  font-weight: 600;
  margin-bottom: 14px;
}
.role ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  display: grid;
  gap: 8px;
}
.role li::marker {
  color: var(--magenta-text);
}

/* Access roles table */
.access {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 8px 0 22px;
}
.access div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 16px;
}
.access dt {
  font-weight: 700;
  margin-bottom: 4px;
}
.access dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.teams {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.teams li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--raised);
  font-size: 14px;
  color: var(--ink);
}

/* Themes */
.themes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.themes figure {
  margin: 0;
}
.themes img {
  border-radius: var(--radius-m);
  border: 1px solid var(--line-strong);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}
.themes .default img {
  border: 2px solid var(--magenta);
  box-shadow: var(--glow-magenta);
}
.themes figcaption {
  margin-top: 10px;
}
.themes figcaption strong {
  display: block;
  font-size: 16px;
}
.themes figcaption span {
  color: var(--muted);
  font-size: 14px;
}
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--magenta-text);
  vertical-align: 2px;
}

/* Fit */
.fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.fit article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
}
.fit h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.fit p {
  color: var(--muted);
}
.workspace-facts {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.workspace-facts div {
  border-top: 2px solid var(--line-strong);
  padding-top: 14px;
}
.workspace-facts h3 {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}
.workspace-facts p {
  color: var(--muted);
  font-size: 15px;
}

/* Pricing */
.pricing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-l);
  box-shadow: 8px 8px 0 var(--magenta);
  padding: clamp(28px, 4vw, 48px);
}
.pricing::after {
  content: '';
  position: absolute;
  right: 18px;
  top: -34px;
  width: 140px;
  height: 104px;
  background: url('/art/confetti.svg') center / contain no-repeat;
  pointer-events: none;
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 8px 0 6px;
}
.price .from {
  font-size: 18px;
  color: var(--muted);
}
.price .amount {
  font-family: var(--font-number);
  font-size: clamp(64px, 9vw, 96px);
  line-height: 0.9;
  color: var(--amber-text);
  text-shadow: 0 0 18px rgba(255, 180, 67, 0.35);
}
/* Amount and unit read as one figure: $500/month, with no gap between them. */
.price .figure {
  white-space: nowrap;
}
.price .per {
  font-size: 20px;
  font-weight: 600;
}
.pricing h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 4px;
}
.pricing .scoped {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
}
.pricing p.note {
  color: var(--muted);
  margin-top: 14px;
  font-size: 15px;
}
.pricing h3 {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 880px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-number);
  font-size: 30px;
  color: var(--cyan-text);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details[open] {
  border-color: var(--line-strong);
}
.faq .answer {
  padding: 0 20px 20px;
  color: var(--muted);
}
.faq .answer p + p {
  margin-top: 10px;
}

/* Closing call */
.closing {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-bottom: 0;
}
.closing h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 16px;
}
.closing p {
  color: var(--muted);
  margin: 0 auto 26px;
  max-width: 56ch;
}
.closing .horizon-band {
  position: relative;
  height: 200px;
  margin-top: 56px;
}
.closing .horizon-band .sun {
  position: absolute;
  left: 50%;
  bottom: 70px;
  width: 300px;
  height: 150px;
  transform: translateX(-50%);
  background: url('/art/sun.svg') center bottom / contain no-repeat;
}
.closing .horizon-band .floor {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 72px;
  background: url('/art/grid.svg') center top / 100% 100% no-repeat;
  border-top: 2px solid var(--magenta);
  box-shadow: 0 -6px 24px -4px rgba(255, 62, 165, 0.7);
}

/* Footer */
.site-footer {
  background: var(--deep);
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 15px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.made-by {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
/* The Pixel & Shelf mark in paper on the dark footer, with no tile (Navy Family: paper mark on dark grounds).
   It is inline SVG in currentColor, so forced colors repaint it with the link color instead of hiding it. */
.made-by .ps-mark {
  width: 30px;
  height: 30px;
  flex: none;
  color: #f6f4ec;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  max-width: 80ch;
}

/* 404 */
.lost {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.lost .code {
  font-family: var(--font-number);
  font-size: clamp(96px, 16vw, 160px);
  line-height: 0.9;
  color: var(--amber-text);
  text-shadow: 0 0 22px rgba(255, 180, 67, 0.35);
}
.lost h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 16px 0 12px;
}
.lost p {
  color: var(--muted);
  margin: 0 auto 26px;
  max-width: 48ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .feature,
  .feature-intro,
  .hero-grid,
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .hero-art { aspect-ratio: 4 / 3; max-width: 560px; width: 100%; }
  .hero-art .script { font-size: clamp(24px, 6.6vw, 32px); top: 7%; left: 7%; right: auto; }
  .art-sun { left: 72%; width: 40%; }
  .art-sticker { width: 18%; right: auto; left: 8%; bottom: 9%; }
  .feature.flip > .feature-copy { order: 0; }
  .workspace-facts,
  .fit { grid-template-columns: minmax(0, 1fr); }
  .roles-pair { grid-template-columns: minmax(0, 1fr); }
  .phone-shot { width: min(280px, 72%); margin-inline: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-row { min-height: 64px; gap: 12px; }
  .brand img.mark { width: 34px; height: 34px; }
  .brand img.wordmark { width: 78px; }
  .brand .tagline { display: none; }
  .header-cta { padding: 8px 12px; font-size: 14px; min-height: 40px; }
  .loop,
  .roles { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .button { width: 100%; }
  .price-chip { font-size: 14px; }
  .pricing::after { width: 96px; height: 72px; top: -26px; }
  .faq summary { font-size: 16px; }
  code.name { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Element crops from the app get breathing room so headings never touch the frame. */
figure.shot.pad {
  padding: clamp(16px, 3vw, 32px);
  background: var(--night);
}

/* ---------- Forced colors (Windows high contrast) ----------
   Last in the file so these rules follow the base rules they override. */
@media (forced-colors: active) {
  /* The gradient drops in forced colors, so primary buttons need an outline of their own. */
  .button.primary {
    border: 1px solid ButtonText;
  }
  .chip,
  .teams li {
    border: 1px solid CanvasText;
  }
  /* Forced colors keep url() images, so the motifs step aside and text sits on plain Canvas, as in the app. */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-art,
  .closing .horizon-band,
  .pricing::after {
    display: none;
  }
  .closing {
    padding-bottom: clamp(64px, 8vw, 112px);
  }
  .rule {
    height: 0;
    background: none;
    border-bottom: 2px solid CanvasText;
  }
  /* SVG keeps an author color in forced colors (preserve-parent-color), so name the system color here. */
  .made-by .ps-mark {
    color: CanvasText;
  }
}
