/* ==========================================================================
   URPriority LLC — "Playful Geometric" design system
   Shared stylesheet for index.html, privacy.html, terms.html.
   No build step: plain CSS, custom properties, system-loaded webfonts.

   Concept: "Stable Grid, Wild Decoration".
   Content sits in clean, readable blocks; the space around it carries the
   shapes, patterns and hard shadows.

   Contents
     01  Tokens
     02  Reset & base
     03  Typography
     04  Layout primitives
     05  Decoration: patterns, shapes, squiggles
     06  Buttons
     07  Cards
     08  Forms
     09  Header
     10  Footer
     11  Marquee
     12  Motion
     13  Responsive
   ========================================================================== */


/* 01  Tokens ============================================================== */

:root {
  /* --- Color ------------------------------------------------------------
     accent is the brand violet. accent-deep is the same hue darkened to
     clear 4.5:1 against white — used for any surface or text that carries
     copy, so the palette stays punchy without failing WCAG AA. */
  --bg:              #FFFDF5;  /* warm cream — paper feel */
  --fg:              #1E293B;  /* slate 800 — softer than black */
  --muted:           #F1F5F9;
  --muted-fg:        #64748B;
  --accent:          #8B5CF6;  /* vivid violet — decorative fills */
  --accent-deep:     #7C3AED;  /* violet, text-safe */
  --accent-fg:       #FFFFFF;
  --secondary:       #F472B6;  /* hot pink */
  --tertiary:        #FBBF24;  /* amber */
  --quaternary:      #34D399;  /* mint */
  --border:          #E2E8F0;
  --input-border:    #CBD5E1;
  --card:            #FFFFFF;
  --ring:            #8B5CF6;

  /* --- Typography -------------------------------------------------------
     Modular scale, ratio 1.25 (major third). */
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --step--2: 0.64rem;
  --step--1: 0.8rem;
  --step-0:  1rem;
  --step-1:  1.25rem;
  --step-2:  1.5625rem;
  --step-3:  1.9531rem;
  --step-4:  2.4414rem;
  --step-5:  3.0518rem;
  --step-6:  3.8147rem;

  /* --- Radius & border --------------------------------------------------- */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-full: 9999px;
  --bw:     2px;             /* chunky borders by default */

  /* --- The "pop" shadow: hard, no blur, solid offset ---------------------- */
  --pop:      4px 4px 0 0 var(--fg);
  --pop-lg:   6px 6px 0 0 var(--fg);
  --pop-sm:   2px 2px 0 0 var(--fg);
  --pop-card: 8px 8px 0 0 var(--border);

  /* --- Spacing ------------------------------------------------------------ */
  --section-y: 6rem;         /* 96px */
  --container: 72rem;        /* generous, ~max-w-6xl */

  /* --- Motion: overshoot so everything lands with a small bounce ---------- */
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.18s;
  --t-base: 0.3s;
}


/* 02  Reset & base ======================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;  /* sticky header clearance for #anchors */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  overflow-x: clip;          /* decoration can bleed without a scrollbar */
}

a { color: inherit; text-decoration: none; }

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

/* One high-contrast focus treatment everywhere: thick ring, clear offset. */
:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--tertiary);
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-full);
  box-shadow: var(--pop);
  font-family: var(--font-head);
  font-weight: 700;
  transition: top var(--t-base) var(--bounce);
}
.skip-link:focus { top: 1rem; }

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


/* 03  Typography ========================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(var(--step-4), 6.5vw, var(--step-6)); }
h2 { font-size: clamp(var(--step-3), 4.5vw, var(--step-5)); }
h3 { font-size: var(--step-1); font-weight: 700; }
h4 { font-size: var(--step-0); font-weight: 700; }

p { text-wrap: pretty; }

/* Eyebrow above a section heading — sits inside a pill so it reads as an
   object, not stray text. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
  background: var(--card);
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-full);
  padding: 0.4rem 1rem;
  box-shadow: var(--pop-sm);
  margin-bottom: 1.25rem;
}
.kicker::before {
  content: "";
  width: 0.6rem; height: 0.6rem;
  border-radius: var(--r-full);
  background: var(--kicker-dot, var(--accent));
}

.lead {
  font-size: var(--step-1);
  color: #41527A;
}

.muted { color: var(--muted-fg); }

/* Hand-drawn squiggle underline for an emphasised word. */
.squig {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 q 14 -8 28 0 t 28 0 t 28 0 t 28 0' fill='none' stroke='%23FBBF24' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 0.38em;
  padding-bottom: 0.12em;
}
.squig--pink {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 q 14 -8 28 0 t 28 0 t 28 0 t 28 0' fill='none' stroke='%23F472B6' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Highlighter block behind a word — the pen-swipe emphasis. */
.mark {
  background: var(--mark, var(--tertiary));
  border-radius: var(--r-sm);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.2em;
}


/* 04  Layout primitives =================================================== */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.wrap--narrow { max-width: 52rem; }

.section {
  position: relative;
  padding-block: var(--section-y);
}

.sec-head {
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.sec-head p { color: var(--muted-fg); margin-top: 0.75rem; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }


/* 05  Decoration: patterns, shapes, squiggles ============================= */

/* Patterns take their ink from `color`, so any instance can be re-tinted. */
.pat-dots {
  background-image: radial-gradient(currentColor 1.7px, transparent 1.8px);
  background-size: 18px 18px;
}
.pat-grid {
  background-image:
    linear-gradient(currentColor 1.5px, transparent 1.5px),
    linear-gradient(90deg, currentColor 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.pat-stripes {
  background-image: repeating-linear-gradient(
    45deg, currentColor 0 7px, transparent 7px 15px);
}

/* Decorative layer. Anything inside is inert: pointer-events off, hidden
   from assistive tech, and dropped entirely on small screens so shapes can
   never crowd the copy. */
.deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.deco > * { position: absolute; }

/* Content always rides above the decoration layer. */
.layer { position: relative; z-index: 1; }

/* Primitive shapes, sized/positioned per instance with inline styles. */
.shape-circle   { border-radius: var(--r-full); }
.shape-square   { border-radius: var(--r-sm); }
.shape-pill     { border-radius: var(--r-full); }
.shape-arch     { border-radius: var(--r-full) var(--r-full) 0 0; }
.shape-leaf     { border-radius: var(--r-lg) 0 var(--r-lg) 0; }
.shape-triangle { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.shape-blob     { border-radius: 62% 38% 54% 46% / 46% 56% 44% 54%; }

.outlined { border: var(--bw) solid var(--fg); }

/* Section divider: a chunky wave that separates two background colours. */
.wave { display: block; width: 100%; height: 60px; }

/* Full-bleed dashed rule used to "connect" a row of cards. */
.dash-line {
  position: absolute;
  left: 0; right: 0;
  border-top: 3px dashed var(--input-border);
  z-index: 0;
}


/* 06  Buttons ============================================================= */

/* The "candy button": solid fill, dark outline, hard shadow, pill radius.
   Hover lifts toward the light; active presses into the page. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;                       /* stays tappable on mobile */
  padding: 0.7rem 1.4rem;
  font-family: var(--font-head);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-fg);
  background: var(--accent-deep);
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-full);
  box-shadow: var(--pop);
  cursor: pointer;
  transition:
    transform var(--t-base) var(--bounce),
    box-shadow var(--t-base) var(--bounce),
    background-color var(--t-fast) ease;
}
.btn:hover  { transform: translate(-2px, -2px); box-shadow: var(--pop-lg); }
.btn:active { transform: translate(2px, 2px);   box-shadow: var(--pop-sm); }

/* Circular icon chip inside the button — the arrow gets its own "coin". */
.btn .ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px; height: 26px;
  border-radius: var(--r-full);
  background: var(--accent-fg);
  color: var(--accent-deep);
  transition: transform var(--t-base) var(--bounce);
}
.btn:hover .ic { transform: translateX(3px); }

/* Secondary: outline only, floods with amber on hover. */
.btn--ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: none;
}
.btn--ghost:hover  { background: var(--tertiary); box-shadow: var(--pop-sm); }
.btn--ghost:active { background: var(--tertiary); box-shadow: none; }
.btn--ghost .ic { background: var(--fg); color: var(--tertiary); }

.btn--pink  { background: var(--secondary); color: var(--fg); }
.btn--pink .ic { background: var(--fg); color: var(--secondary); }
.btn--block { width: 100%; }
.btn--lg    { font-size: var(--step-1); padding: 0.9rem 1.8rem; min-height: 56px; }


/* 07  Cards =============================================================== */

/* The "sticker" card: white, hard outline, offset colour shadow. Hovering
   wiggles it a degree off-axis like a sticker being peeled. */
.card {
  position: relative;
  background: var(--card);
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow-x, 8px) var(--card-shadow-x, 8px) 0 0
              var(--card-shadow, var(--border));
  transition:
    transform var(--t-base) var(--bounce),
    box-shadow var(--t-base) var(--bounce);
}
.card:hover {
  transform: rotate(-1deg) scale(1.02);
  box-shadow: 12px 12px 0 0 var(--card-shadow, var(--border));
}
.card h3 { margin-bottom: 0.5rem; }
.card p  { color: var(--muted-fg); font-size: var(--step-0); }

/* Colour variants — rotate these through a grid for the confetti effect. */
.card--violet { --card-shadow: var(--accent); }
.card--pink   { --card-shadow: var(--secondary); }
.card--amber  { --card-shadow: var(--tertiary); }
.card--mint   { --card-shadow: var(--quaternary); }

/* Card with an icon coin sitting half-in / half-out of the top border. */
.card--badge { padding-top: 3rem; }
.card__badge {
  position: absolute;
  top: 0; left: 2rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: var(--r-full);
  border: var(--bw) solid var(--fg);
  background: var(--badge-bg, var(--accent));
  color: var(--badge-fg, #fff);
  box-shadow: var(--pop-sm);
}

/* Checklist. The tick is never bare — it lives inside a mint coin, so the
   meaning survives without colour. */
.ticks { list-style: none; display: grid; gap: 0.55rem; margin-top: 1.1rem; }
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--step-0);
  color: #41527A;
}
.ticks li::before {
  content: "";
  flex: none;
  width: 24px; height: 24px;
  margin-top: 0.15rem;
  border-radius: var(--r-full);
  border: var(--bw) solid var(--fg);
  background: var(--quaternary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E293B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
}

/* Small icon coin, reusable outside cards. */
.coin {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--r-full);
  border: var(--bw) solid var(--fg);
  background: var(--coin-bg, var(--accent));
  color: var(--coin-fg, #fff);
}


/* 08  Forms =============================================================== */

.field { margin-bottom: 1.1rem; }

.field label,
.label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--fg);
  background: #fff;
  border: var(--bw) solid var(--input-border);
  border-radius: var(--r-sm);
  box-shadow: 4px 4px 0 0 transparent;   /* reserved, revealed on focus */
  transition:
    border-color var(--t-fast) ease,
    box-shadow var(--t-base) var(--bounce);
}
.input::placeholder { color: #94A3B8; }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 4px 4px 0 0 var(--accent);
}
textarea.input { resize: vertical; min-height: 6rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Consent block — deliberately loud, it's the compliance-critical control. */
.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 1.25rem;
  background: #FEF3C7;
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-md);
  box-shadow: var(--pop-sm);
}
.consent input[type="checkbox"] {
  flex: none;
  width: 1.35rem; height: 1.35rem;
  margin-top: 0.15rem;
  accent-color: var(--accent-deep);
  cursor: pointer;
}
.consent label {
  font-size: var(--step--1);
  line-height: 1.55;
  font-weight: 500;
  color: var(--fg);
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
  cursor: pointer;
}

.fine-print {
  margin-top: 1rem;
  font-size: var(--step--2);
  line-height: 1.6;
  color: var(--muted-fg);
  text-align: center;
}
.fine-print a { color: var(--accent-deep); font-weight: 700; text-decoration: underline; }


/* 09  Header ============================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--bw) solid var(--fg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
}
/* Brand mark: the UR monogram on transparent ground, so it keeps its own
   proportions instead of being boxed into a tile. The artwork's white half
   is baked to ink in the asset so it reads against the cream header.
   No resting tilt — on a bare logo that reads as a mistake rather than a
   sticker — but it still wiggles on hover. */
.brand__mk {
  height: 40px;
  width: auto;
  flex: none;
  transition: transform var(--t-base) var(--bounce);
}
.brand:hover .brand__mk { transform: rotate(-5deg) scale(1.08); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a:not(.btn) {
  position: relative;
  font-weight: 600;
  font-size: var(--step-0);
  padding-bottom: 2px;
}
/* Underline grows from the left on hover — cheap, and it feels drawn-on. */
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  border-radius: var(--r-full);
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--bounce);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }


/* 10  Footer ============================================================== */

.site-footer {
  position: relative;
  background: var(--fg);
  color: #CBD5E1;
  padding: 4rem 0 2rem;
  font-size: var(--step--1);
}
.site-footer h4 {
  color: #fff;
  font-size: var(--step-0);
  margin-bottom: 0.85rem;
}
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: var(--tertiary); }

.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.legal {
  border-top: var(--bw) dashed #475569;
  padding-top: 1.25rem;
  color: #94A3B8;
  font-size: var(--step--2);
  line-height: 1.7;
}


/* 11  Marquee ============================================================= */

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* Each logo is a sticker pill; every other one tilts the opposite way. */
.chip {
  display: grid;
  place-items: center;
  min-width: 13rem;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step-0);
  text-align: center;
  white-space: nowrap;
  background: var(--card);
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-md);
  box-shadow: var(--pop-sm);
  transform: rotate(-1.2deg);
}
.marquee__track > .chip:nth-child(even) { transform: rotate(1.2deg); }


/* 12  Motion ============================================================== */

/* Entrance: elements pop in with an overshoot rather than fading.
   Gated on `.js` so the content is never hidden when scripting is off. */
.js [data-pop] { opacity: 0; }
.js [data-pop].is-in { animation: pop-in 0.55s var(--bounce) both; }

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.9) translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  30%      { transform: rotate(4deg); }
  70%      { transform: rotate(-4deg); }
}
.wiggle-host:hover .wiggle,
.wiggle:hover { animation: wiggle 0.45s ease-in-out; }

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(var(--spin, 0deg)); }
  50%      { transform: translateY(-14px) rotate(var(--spin, 0deg)); }
}
.floaty { animation: float-y 6s ease-in-out infinite; }

/* Honour the OS setting: no bounce, no wiggle, no drift, no marquee. */
@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;
  }
  .js [data-pop] { opacity: 1; }
  .card:hover { transform: none; }
  .btn:hover, .btn:active { transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track > [aria-hidden="true"] { display: none; }
}


/* 13  Document pages (privacy, terms) ==================================== */

/* Long-form legal copy still gets the sticker treatment — it sits on a
   single card over a dot field, with the section markers carrying the
   confetti rotation so the page never reads as a wall of text. */
.doc { position: relative; padding-block: 3.5rem 5rem; }

.doc__card {
  position: relative;
  background: var(--card);
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-lg);
  box-shadow: 10px 10px 0 0 var(--accent);
  padding: 3rem;
}

.doc__card h1 { margin-bottom: 0.75rem; }

/* Effective date as a small sticker rather than grey caption text. */
.eff {
  display: inline-block;
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--quaternary);
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-full);
  padding: 0.3rem 0.9rem;
  margin-bottom: 2rem;
  transform: rotate(-1.5deg);
}

.doc__card h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step-2);
  margin: 2.5rem 0 0.75rem;
}
.doc__card h2::before {
  content: "";
  flex: none;
  width: 0.85rem; height: 0.85rem;
  border-radius: var(--r-full);
  border: var(--bw) solid var(--fg);
  background: var(--accent);
}
/* Rotate the marker colour so the sections read as a set of stickers. */
.doc__card h2:nth-of-type(4n+2)::before { background: var(--secondary); }
.doc__card h2:nth-of-type(4n+3)::before { background: var(--tertiary); }
.doc__card h2:nth-of-type(4n+4)::before { background: var(--quaternary); }

.doc__card p  { margin-bottom: 1rem; color: #41527A; }
.doc__card a  {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Callout: the compliance statement, boxed loudly so it can't be skimmed. */
.callout {
  background: #FEF3C7;
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-md);
  box-shadow: var(--pop);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.doc-footer {
  border-top: var(--bw) dashed var(--input-border);
  padding: 1.5rem 0;
  color: var(--muted-fg);
  font-size: var(--step--1);
}


/* 14  Responsive ========================================================== */

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
}

@media (max-width: 640px) {
  :root {
    /* Shrink the pop shadows so they don't eat the narrow gutters. */
    --pop:      2px 2px 0 0 var(--fg);
    --pop-lg:   3px 3px 0 0 var(--fg);
    --pop-sm:   2px 2px 0 0 var(--fg);
    --card-shadow-x: 4px;
    --section-y: 4rem;
  }

  .grid--2,
  .grid--3       { grid-template-columns: 1fr; }
  .field-row     { grid-template-columns: 1fr; gap: 0; }
  .footer-cols   { grid-template-columns: 1fr; gap: 1.75rem; }
  .card          { padding: 1.5rem; }
  .card--badge   { padding-top: 2.5rem; }
  .doc__card     { padding: 1.5rem; box-shadow: 5px 5px 0 0 var(--accent); }
  .card:hover    { transform: none; }   /* no rotation in a tight column */
  .deco          { display: none; }     /* never let shapes crowd the copy */
  .btn           { width: 100%; }
  .btn--auto     { width: auto; }

  /* Header runs out of room once only the brand and CTA are left — tighten
     both and keep each on a single line rather than letting them collide. */
  .nav             { height: 64px; }
  .brand           { font-size: var(--step-0); white-space: nowrap; }
  .brand__mk       { height: 32px; }
  .nav-links .btn  { min-height: 42px; padding: 0.5rem 0.9rem;
                     font-size: var(--step--1); white-space: nowrap; }
}
