/* Grabd — landing page
   Colours checked against WCAG AA (4.5:1 for text, 3:1 for large text). */

:root {
  --red: #cc2128;          /* white on this = 5.50 · on cream = 5.19 */
  --red-dark: #a81a20;
  --red-bright: #e52b32;   /* brand red — large display text & fills only */
  --red-wash: #fdeeee;

  --bg: #faf8f5;
  --bg-deep: #f2eee8;
  --card: #ffffff;

  --ink: #16130f;          /* 17.5:1 on cream */
  --ink-soft: #4f4941;     /* 8.3:1  on cream */
  --ink-mid: #6b6459;      /* 5.5:1  on cream — lightest text allowed */

  --line: rgba(22, 19, 15, 0.12);
  --focus: #0a58ca;

  --r: 20px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(22, 19, 15, 0.04), 0 10px 30px rgba(22, 19, 15, 0.07);
  --shadow-lg: 0 2px 6px rgba(22, 19, 15, 0.05), 0 26px 60px rgba(22, 19, 15, 0.12);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter,
    system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

/* Visible focus for every keyboard user. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* ---------------- type ---------------- */

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -0.022em; }

h1 { font-size: clamp(2.5rem, 5.6vw, 3.9rem); letter-spacing: -0.032em; line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); letter-spacing: -0.026em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.012em; }

p { margin: 0; }

.big-text {
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 40ch;
}

.eyebrow {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 12px;
}

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 4px;
  min-height: 46px;
}
.brand img { width: 34px; height: 34px; }

.header-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
  font-size: 1rem;
}
.header-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 500;
}
.header-nav a:hover { color: var(--ink); background: var(--bg-deep); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;            /* comfortable target for everyone */
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }

.btn-second {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.btn-second:hover { border-color: var(--ink-mid); }

.btn-header { min-height: 44px; padding: 10px 20px; font-size: 0.98rem; }

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.note {
  font-size: 0.98rem;
  color: var(--ink-mid);
  margin-top: 16px;
}

/* ---------------- sections ---------------- */

section { padding: 88px 0; }

.section-top { max-width: 40ch; margin-bottom: 52px; }
.section-top.centred { margin-left: auto; margin-right: auto; text-align: center; }
.section-top h2 + p { margin-top: 18px; }

.tint { background: var(--bg-deep); }

/* Warm red gradient band.
   The base reds are deliberately deep: the orange glow on top lightens the
   brightest corner to about #C43931, and white text needs to stay readable
   there (5.28:1). A lighter base would push it under 4.5:1. */
.gradient {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(90% 70% at 12% 4%, rgba(255, 138, 92, 0.28) 0%, transparent 62%),
    radial-gradient(80% 70% at 92% 96%, rgba(78, 6, 10, 0.55) 0%, transparent 65%),
    linear-gradient(140deg, #ad1a20 0%, #8e1318 55%, #6e0c11 100%);
}

/* A slow sheen that drifts across the band. */
.gradient::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 171, 138, 0.22), transparent 70%);
  animation: band-drift 26s ease-in-out infinite;
  pointer-events: none;
}

@keyframes band-drift {
  0%, 100% { transform: translate3d(-8%, -6%, 0) scale(1); }
  50%      { transform: translate3d(10%, 8%, 0) scale(1.18); }
}

.gradient .big-text { color: rgba(255, 255, 255, 0.92); }
.gradient .eyebrow  { color: #ffefe6; }
.gradient .note     { color: rgba(255, 255, 255, 0.92); }

/* Cards on the band are darkened, not lightened — lightening them would drop
   white text to about 4.4:1. */
.gradient .step {
  background: rgba(60, 4, 8, 0.26);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: none;
  color: #fff;
}
.gradient .step p { color: rgba(255, 255, 255, 0.92); }
.gradient .step .step-num { background: #fff; color: #a81a20; }
.gradient .step:hover {
  background: rgba(60, 4, 8, 0.34);
  box-shadow: 0 18px 40px rgba(50, 4, 8, 0.3);
}

/* Mascot tucked into the corner of the band. */
.band-mascot {
  position: absolute;
  right: 3%;
  bottom: -18px;
  width: 190px;
  z-index: -1;
  opacity: 0.9;
  filter: drop-shadow(0 18px 34px rgba(60, 4, 8, 0.45));
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

@media (max-width: 1100px) { .band-mascot { display: none; } }

/* ---------------- hero ---------------- */

.hero { padding: 56px 0 72px; text-align: center; }

.hero h1 { margin-bottom: 22px; }
.hero h1 .say { display: block; }
.hero h1 .find { color: var(--red-bright); }

.hero .big-text { margin: 0 auto 32px; max-width: 34ch; }
.hero .buttons { justify-content: center; }

.platforms {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.platforms img { width: 24px; height: 24px; }

.hero-image { margin-top: 56px; }
/* The same radius and lift every other raised block on the page has (`.step`,
   `.example-box`). Without them the shot sat on the cream as a hard rectangle —
   the one picture on the page with a visible edge. */
.hero-image img {
  margin: 0 auto;
  max-width: 980px;
  width: 100%;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ---------------- artwork + fallback ---------------- */

.art { position: relative; }

.art .missing-note { display: none; }

/* When the real file isn't there yet, show a labelled slot instead of a
   broken-image icon. JS adds .missing on the img's error event. */
.art.missing img { display: none; }
.art.missing .missing-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 32px 24px;
  min-height: 240px;
  border: 2px dashed var(--line);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink-mid);
  font-weight: 600;
  font-size: 1rem;
}
.art.missing .missing-note code {
  font-size: 0.9rem;
  background: var(--bg-deep);
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--ink-soft);
}
.gradient .art.missing .missing-note {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.82);
}
.gradient .art.missing .missing-note code {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---------------- steps ---------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.step .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------------- example: before / after ---------------- */

.example {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 64px;
}

.example-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-mid);
  margin-bottom: 10px;
}

.example-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.example-box.before {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  color: var(--ink-mid);
  overflow-wrap: anywhere;
}

.example-arrow {
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}

.example-kind {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  background: var(--red-wash);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.example-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.example-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  color: var(--ink-soft);
}
.example-box li { display: flex; gap: 12px; }
.example-box li .ico { width: 22px; flex-shrink: 0; }

/* ---------------- things it understands ---------------- */

.things {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 44px;
}

.thing {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.thing .thing-img { background: var(--bg-deep); }
.thing .thing-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.thing .art.missing .missing-note { border: 0; border-radius: 0; min-height: 200px; }

.thing-text { padding: 24px 26px 28px; }
.thing-text h3 { margin-bottom: 8px; }
.thing-text p { color: var(--ink-soft); font-size: 1.02rem; }

/* The eight categories that do not get a picture of their own. They used to be one
   sentence of bolded words on a single card, which read as a list of things the
   page could not be bothered to show. The container gives up being a card so the
   items can be: cards inside a card is one border too many. */
.also { text-align: center; }

.also-lead {
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.also-grid {
  display: grid;
  /* minmax(0,…) so a long label like "How-to guides" cannot push the track
     past its share and take the page's width with it. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.also-grid li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
}

.also-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--red-wash);
  color: var(--red);
}
.also-icon svg { width: 21px; height: 21px; }

.also-grid h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.also-grid small {
  display: block;
  margin-top: 3px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- split rows ---------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split + .split { margin-top: 96px; }
.split.reverse .split-art { order: -1; }

/* The feature shots get the page's own picture treatment, the same as `.thing`
   and the hero: these are the last images on the page still meeting the cream at
   a hard edge. The radius goes on the image itself rather than a wrapper, since
   there is nothing else in the column to clip. */
.split-art img {
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.split-text h2 + .big-text { margin-top: 18px; }

.plain-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plain-list li { display: flex; gap: 14px; align-items: flex-start; }
.plain-list .check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--red-wash);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
  font-weight: 800;
  font-size: 0.85rem;
}
.gradient .plain-list .check { background: rgba(255, 255, 255, 0.9); color: #a81a20; }
.plain-list .text { font-size: 1.05rem; color: var(--ink-soft); }
.plain-list .text strong { color: var(--ink); font-weight: 700; }
.gradient .plain-list .text { color: rgba(255, 255, 255, 0.92); }
.gradient .plain-list .text strong { color: #fff; }

kbd {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
  color: var(--ink);
}

/* ---------------- privacy ---------------- */

.privacy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.privacy-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 34px;
  box-shadow: var(--shadow);
}
.privacy-card h3 { margin-bottom: 12px; }
.privacy-card p { color: var(--ink-soft); font-size: 1.05rem; }
.privacy-card p + p { margin-top: 14px; }

/* ---------------- final ---------------- */

.final { text-align: center; }
.final img.mascot { width: 130px; margin: 0 auto 24px; }
.final h2 { margin-bottom: 18px; }
.final .big-text { margin: 0 auto 32px; max-width: 38ch; }
.final .buttons { justify-content: center; }

/* ---------------- footer ---------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  font-size: 1rem;
  color: var(--ink-mid);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-links a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 11px 10px;
  border-radius: 8px;
  display: inline-block;
  min-height: 44px;
}
.footer-links a:hover { color: var(--ink); background: var(--bg-deep); }

/* ---------------- motion ---------------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .steps, .things, .privacy-cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-art { order: 0; }
  .split + .split { margin-top: 64px; }
  .example { grid-template-columns: 1fr; gap: 14px; }
  .example-arrow { transform: rotate(90deg); justify-self: center; }
  .header-nav { display: none; }
  .big-text { max-width: none; }
  .section-top { max-width: none; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .buttons .btn { width: 100%; }
  .step, .privacy-card { padding: 26px 22px; }
}

/* ---------------- high contrast preference ---------------- */

@media (prefers-contrast: more) {
  :root {
    --ink-soft: #2b2620;
    --ink-mid: #3d372f;
    --line: rgba(22, 19, 15, 0.4);
  }
}

/* ============================================================
   MOTION LAYER
   Everything below is decoration. It is switched off wholesale
   by the prefers-reduced-motion block at the end of this file,
   and nothing here is required to read or use the page.
   ============================================================ */

/* --- scroll progress bar --- */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red-bright), #ff8a5c);
  z-index: 100;
  will-change: transform;
}

/* --- drifting glow behind the hero --- */

.hero { position: relative; isolation: isolate; overflow: hidden; }

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero::before {
  width: 620px; height: 620px;
  top: -220px; right: -180px;
  background: radial-gradient(circle, rgba(229,43,50,.16) 0%, rgba(255,138,92,.09) 45%, transparent 70%);
  animation: drift-a 22s ease-in-out infinite;
}

.hero::after {
  width: 520px; height: 520px;
  top: 120px; left: -220px;
  background: radial-gradient(circle, rgba(255,138,92,.13) 0%, rgba(229,43,50,.06) 48%, transparent 72%);
  animation: drift-b 27s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(-40px, 46px, 0) scale(1.12); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(48px, -38px, 0) scale(1.08); }
}

/* --- hero entrance, staggered --- */

.hero .platforms,
.hero h1 .say,
.hero h1 .find,
.hero .big-text,
.hero .buttons,
.hero .note,
.hero-image {
  animation: rise-in .85s cubic-bezier(.22,1,.36,1) backwards;
}

.hero .platforms   { animation-delay: .05s; }
.hero h1 .say      { animation-delay: .15s; display: block; }
.hero h1 .find     { animation-delay: .26s; display: block; }
.hero .big-text    { animation-delay: .38s; }
.hero .buttons     { animation-delay: .48s; }
.hero .note        { animation-delay: .56s; }
.hero-image        { animation-delay: .64s; animation-duration: 1.1s; }

@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to   { opacity: 1; transform: none; }
}

/* --- the headline's second line gets a slow sheen --- */

.hero h1 .find {
  background: linear-gradient(100deg,
    var(--red-bright) 0%, var(--red-bright) 38%,
    #ff8a5c 50%,
    var(--red-bright) 62%, var(--red-bright) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rise-in .85s cubic-bezier(.22,1,.36,1) .26s backwards,
             sheen 7s ease-in-out 1.6s infinite;
}

@keyframes sheen {
  0%, 72%, 100% { background-position: 130% 50%; }
  86%           { background-position: -30% 50%; }
}

/* --- hero artwork floats --- */

.hero-image img {
  animation: float 7s ease-in-out 1.4s infinite;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -14px, 0); }
}

/* --- buttons: lift + travelling shine --- */

.btn {
  position: relative;
  overflow: hidden;
  transition: background .15s ease, transform .18s cubic-bezier(.22,1,.36,1),
              box-shadow .18s ease, border-color .15s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.42) 50%, transparent 62%);
  transform: translateX(-130%);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(204, 33, 40, .32);
}
.btn-second:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22, 19, 15, .13);
}
.btn:hover::after { animation: shine .7s ease-out; }
.btn:active { transform: translateY(0); }

@keyframes shine {
  to { transform: translateX(130%); }
}

/* --- scroll reveals, with a little more travel and a spring --- */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.shown { opacity: 1; transform: none; }

/* sideways entrances for the two-column rows */
.js .split-text  { opacity: 0; transform: translate3d(-26px, 0, 0); transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1); }
.js .split-art   { opacity: 0; transform: translate3d(26px, 0, 0);  transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1); }
.js .split.reverse .split-text { transform: translate3d(26px, 0, 0); }
.js .split.reverse .split-art  { transform: translate3d(-26px, 0, 0); }
.split-text.shown, .split-art.shown { opacity: 1; transform: none; }

/* --- cards lift, artwork zooms gently --- */

.step, .privacy-card, .thing {
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease;
}
.step:hover, .privacy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(22,19,15,.06), 0 22px 46px rgba(22,19,15,.11);
}

.thing:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 10px rgba(22,19,15,.06), 0 26px 54px rgba(22,19,15,.13);
}
.thing .thing-img { overflow: hidden; }
.thing .thing-img img { transition: transform .5s cubic-bezier(.22,1,.36,1); }
.thing:hover .thing-img img { transform: scale(1.055); }

/* the step number pops when its card is hovered */
.step .step-num { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.step:hover .step-num { transform: scale(1.12) rotate(-6deg); }

/* --- the before/after arrow nudges along --- */

.example-arrow { animation: nudge 2.4s ease-in-out infinite; }

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(7px); }
}

@media (max-width: 900px) {
  .example-arrow { animation: nudge-down 2.4s ease-in-out infinite; }
  @keyframes nudge-down {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50%      { transform: rotate(90deg) translateX(7px); }
  }
}

/* --- the result card lands with a small pop when scrolled to --- */

.example-box.after-card.shown { animation: pop .55s cubic-bezier(.34,1.56,.64,1); }

@keyframes pop {
  0%   { transform: scale(.94); }
  60%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* --- checkmarks tick in one after another --- */

.js .plain-list li { opacity: 0; transform: translate3d(0, 12px, 0);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.plain-list.shown li { opacity: 1; transform: none; }
.plain-list.shown li:nth-child(1) { transition-delay: .06s; }
.plain-list.shown li:nth-child(2) { transition-delay: .16s; }
.plain-list.shown li:nth-child(3) { transition-delay: .26s; }

.plain-list .check { transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .2s ease; }
.plain-list li:hover .check { transform: scale(1.16) rotate(8deg); }

/* --- brand mark gives a wave on hover --- */

.brand img { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.brand:hover img { transform: rotate(-10deg) scale(1.1); }

.final img.mascot { animation: float 6s ease-in-out infinite; }

/* --- header compresses once you start scrolling --- */

.site-header .header-inner { transition: padding .25s ease; }
.site-header.scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }

/* --- nav links get an underline that grows out from the middle --- */

.header-nav a { position: relative; }
.header-nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.header-nav a:hover::after { transform: scaleX(1); }

/* ============================================================
   Motion off. This must stay last so it wins.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .progress { display: none; }

  .reveal,
  .split-text,
  .split-art,
  .plain-list li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero h1 .find {
    background: none;
    -webkit-text-fill-color: var(--red-bright);
    color: var(--red-bright);
  }

  *, *::before, *::after {
    animation: none !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */

.page-head {
  padding: 56px 0 40px;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 560px; height: 560px;
  top: -260px; right: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,43,50,.13) 0%, rgba(255,138,92,.07) 45%, transparent 70%);
  animation: drift-a 22s ease-in-out infinite;
  pointer-events: none;
}

.page-head h1 { margin-bottom: 18px; }
.page-head .big-text { margin: 0 auto; max-width: 40ch; }

/* --- contact cards --- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(22,19,15,.06), 0 22px 46px rgba(22,19,15,.11);
}

.contact-card .c-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--red-wash);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
}
.contact-card h3 { margin: 0; }
.contact-card p { color: var(--ink-soft); font-size: 1rem; flex-grow: 1; }
.contact-card a.c-link {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  padding: 6px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.contact-card a.c-link:hover { color: var(--red-dark); }

/* --- jump links --- */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.jump a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .18s cubic-bezier(.22,1,.36,1), border-color .15s ease, color .15s ease;
}
.jump a:hover { color: var(--ink); border-color: var(--ink-mid); transform: translateY(-2px); }

/* --- FAQ accordions (native <details>, no JavaScript needed) --- */

.faq { margin-bottom: 56px; }
.faq > h2 { margin-bottom: 22px; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] {
  border-color: rgba(22, 19, 15, 0.2);
  box-shadow: 0 2px 6px rgba(22,19,15,.05), 0 16px 36px rgba(22,19,15,.09);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 60px 20px 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 700;
  position: relative;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--bg); }

.faq summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 12px; height: 12px;
  margin-top: -8px;
  border-right: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(45deg);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }

.faq .answer { padding: 0 24px 24px; color: var(--ink-soft); font-size: 1.05rem; }
.faq .answer p + p { margin-top: 14px; }
.faq .answer strong { color: var(--ink); font-weight: 700; }

.faq .answer ol,
.faq .answer ul { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.faq .answer li { padding-left: 4px; }

.faq .answer a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.faq .answer a:hover { color: var(--red-dark); }

/* A path through the app's menus, e.g. You › Account › Delete Account */
.path {
  display: inline-block;
  background: var(--bg-deep);
  border-radius: 7px;
  padding: 2px 9px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.96em;
}

/* --- still stuck banner --- */

.stuck {
  border-radius: var(--r);
  padding: 44px 40px;
  text-align: center;
}
.stuck h2 { margin-bottom: 14px; }
.stuck .big-text { margin: 0 auto 26px; max-width: 44ch; }
.stuck .buttons { justify-content: center; }

@media (max-width: 900px) {
  .contact-cards { grid-template-columns: 1fr; }
  .stuck { padding: 34px 24px; }
}

@media (max-width: 520px) {
  .faq summary { padding: 18px 50px 18px 18px; font-size: 1.02rem; }
  .faq .answer { padding: 0 18px 20px; }
}

/* ---------------- map preview in the example card ---------------- */

.example-box.after-card { padding: 0; overflow: hidden; }
.example-box.after-card .card-body { padding: 18px 22px 20px; }

.example-map {
  height: 172px;
  border-bottom: 1px solid var(--line);
  background: #eee9e0;
}
.example-map svg { width: 100%; height: 100%; display: block; }

.map-ping { transform-origin: center; animation: map-ping 2.6s ease-out infinite; }

@keyframes map-ping {
  0%        { transform: scale(0.5); opacity: 0.42; }
  70%, 100% { transform: scale(2.1);  opacity: 0; }
}

@media (max-width: 520px) {
  .example-map { height: 140px; }
}

/* ============================================================
   LEGAL — long-form prose (privacy policy)
   The rest of the site is built from cards and bands; a policy
   is one column of text that has to stay readable at length, so
   it gets a measure of its own rather than the 1080px grid.
   ============================================================ */

.legal { max-width: 72ch; }

.legal h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  margin: 56px 0 18px;
  scroll-margin-top: 90px;
}

.legal h3 {
  font-size: 1.15rem;
  margin: 36px 0 12px;
  scroll-margin-top: 90px;
}

.legal > h2:first-child { margin-top: 0; }

.legal p,
.legal li { color: var(--ink-soft); font-size: 1.05rem; }

.legal p + p,
.legal p + ul,
.legal p + ol,
.legal ul + p,
.legal ol + p,
.legal p + .legal-table,
.legal .legal-table + p { margin-top: 16px; }

.legal strong { color: var(--ink); font-weight: 700; }

.legal ul,
.legal ol {
  margin: 16px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal li { padding-left: 4px; }

.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--red-dark); }

/* The in-app path a reader is told to tap — "You › Analysis". */
.legal .path {
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink);
}

/* The provider table is the one thing wider than the measure, so it
   scrolls on its own rather than pushing the page sideways. */
.legal-table {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.legal-table table { border-collapse: collapse; width: 100%; min-width: 560px; }

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.97rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-table th { color: var(--ink); font-weight: 700; background: var(--bg-deep); }
.legal-table td { color: var(--ink-soft); }
.legal-table tr:last-child td { border-bottom: 0; }

/* The summary box at the top — the policy in ten lines. */
.legal-summary {
  margin-top: 8px;
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.legal-summary h2 { margin-top: 0; }

.legal-updated {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--ink-mid);
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .legal h2 { margin-top: 44px; }
}
