/*
  ArtID website. Plain CSS, no build step, no server: open any .html file to preview.
  Colours come only from the ArtID Brand Guidelines palette:
  Heritage Red (#771054 and tints), Charcoal (#272329 and tints), Gallery White (#F5F2EC and tints)
  and Gilt (#C0954B, kept for marks on charcoal). Fonts: Instrument Serif, DM Sans, Geist Mono.
*/

:root {
  --gw-50: #fbfaf7; --gw-100: #f5f2ec; --gw-200: #eae5dc; --gw-300: #ddd6cb; --white: #ffffff;
  --ink: #272329; --ink-950: #1a171c; --ink-800: #2e2930; --ink-700: #403b42; --ink-600: #58535b; --ink-500: #6a656d; --mist: #bdb8c0;
  --red: #771054; --red-50: #fcf1f7; --red-100: #f8e1ee; --red-200: #f4bfda; --red-300: #db9abd; --red-400: #be749c; --red-500: #a14d7d; --red-700: #6d074c; --red-800: #540038; --red-900: #3c0026;
  --gilt: #c09548; --gilt-100: #ffe4ba; --gilt-300: #dfb774; --gilt-700: #765822;
  --bad: #b42f25; --bad-soft: #fbe6e2; --ok: #1e7a4a; --ok-soft: #e3f1e8;

  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--gw-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red); }
a:hover { color: var(--red-700); }
:focus-visible { outline: 2px solid var(--red-300); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red-200); color: var(--ink); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Scroll progress + cursor glow ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--red), var(--red-300), var(--gilt-300)); transform-origin: left; transform: scaleX(0); }
.cursor-glow { position: fixed; z-index: 1; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(219, 154, 189, 0.22), transparent); transition: opacity 400ms; opacity: 0; mix-blend-mode: multiply; }
.has-cursor .cursor-glow { opacity: 1; }
.dark-zone .cursor-glow, body.on-dark .cursor-glow { mix-blend-mode: screen; }

/* ---------- Header (floating glass pill) ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.site-header .bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  max-width: 1120px; margin: 0 auto; padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(39, 35, 41, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  transition: background-color 300ms, border-color 300ms;
}
.site-header.light .bar { background: rgba(255, 255, 255, 0.72); border-color: rgba(221, 214, 203, 0.9); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gw-100); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.site-header.light .brand { color: var(--ink); }
.brand:hover { color: inherit; }
.brand svg { width: 32px; height: 32px; transition: transform 500ms var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; gap: 2px; }
.nav a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: rgba(245, 242, 236, 0.82); text-decoration: none; transition: color 200ms, background-color 200ms; }
.site-header.light .nav a { color: var(--ink-600); }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }
.site-header.light .nav a:hover { color: var(--red); background: var(--red-50); }
.site-header .nav a[aria-current="page"] { color: var(--white); background: var(--red); box-shadow: 0 6px 16px -8px rgba(119, 16, 84, 0.8); }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: inherit; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 2px; background: currentColor; position: relative; transition: transform 250ms, opacity 250ms; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.site-header { color: var(--gw-100); }
.site-header.light { color: var(--ink); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 760px) {
  .site-header { top: 10px; padding: 0 12px; }
  .menu-btn { display: block; }
  .nav { position: absolute; left: 12px; right: 12px; top: 64px; flex-direction: column; gap: 4px; padding: 10px; border-radius: 22px; background: rgba(39, 35, 41, 0.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 220ms, transform 220ms var(--ease); }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a, .site-header.light .nav a { color: var(--gw-100); padding: 12px 16px; font-size: 16px; }
}

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; font: 500 15.5px/1 var(--font-sans); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform 200ms var(--ease), box-shadow 250ms, background-color 200ms, color 200ms; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 10px 26px -12px rgba(119, 16, 84, 0.85); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, var(--red) 20%, var(--red-500) 45%, var(--red-300) 50%, var(--red-500) 55%, var(--red) 80%); background-size: 250% 100%; background-position: 100% 0; transition: background-position 700ms var(--ease); }
.btn-primary:hover { color: var(--white); box-shadow: 0 16px 34px -14px rgba(119, 16, 84, 0.95); }
.btn-primary:hover::before { background-position: 0 0; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: var(--gw-100); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--gw-300), 0 6px 16px -10px rgba(119, 16, 84, 0.4); }
.btn-light:hover { background: var(--red-50); color: var(--red); }
.btn-danger { background: var(--bad); color: var(--white); }
.btn-danger:hover { background: #9a271f; color: var(--white); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--red); cursor: pointer; }
.link-btn:hover { color: var(--red-700); text-decoration: underline; }
.link-btn:disabled { color: var(--ink-500); cursor: default; text-decoration: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.soon { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; background: var(--ink-950); color: var(--gilt-300); font-size: 15px; box-shadow: inset 0 0 0 1px rgba(223, 183, 116, 0.35); }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gilt-300); box-shadow: 0 0 10px var(--gilt-300); animation: pulse 1.6s ease-in-out infinite; }

/* ---------- Aurora (animated brand gradients) ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.85; will-change: transform; }
.aurora i:nth-child(1) { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; left: -12%; top: -20%; background: radial-gradient(closest-side, var(--red), transparent); animation: drift1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 50vw; height: 50vw; max-width: 640px; max-height: 640px; right: -10%; top: 0%; background: radial-gradient(closest-side, var(--red-400), transparent); animation: drift2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 44vw; height: 44vw; max-width: 560px; max-height: 560px; left: 30%; bottom: -30%; background: radial-gradient(closest-side, rgba(192, 149, 72, 0.75), transparent); animation: drift3 26s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; right: 18%; bottom: -10%; background: radial-gradient(closest-side, rgba(219, 154, 189, 0.7), transparent); animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(18%, 14%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16%, 18%) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-20%, -12%) scale(1.1); } }
.grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>"); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; background: linear-gradient(160deg, var(--ink-950) 0%, var(--ink) 40%, var(--red-900) 100%); color: var(--gw-100); overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-300); }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { margin: 18px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 9vw, 124px); line-height: 0.94; letter-spacing: -0.015em; }
.shine { background: linear-gradient(100deg, var(--gw-100) 0%, var(--gw-100) 35%, var(--red-300) 45%, var(--gilt-300) 52%, var(--gw-100) 62%, var(--gw-100) 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s ease-in-out infinite; }
@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero h1 em { font-style: italic; }
.hero .lead { margin: 26px 0 0; max-width: 34ch; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: rgba(245, 242, 236, 0.8); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
.split-word > span { display: inline-block; transform: translateY(110%); animation: word-up 900ms var(--ease) forwards; }
@keyframes word-up { to { transform: none; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 242, 236, 0.6); }
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--red-300), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Scanner: a painted canvas that changes, framed by the ArtID scan corners */
.scanner { position: relative; width: min(440px, 100%); margin: 0 auto; aspect-ratio: 4 / 5; perspective: 1000px; }
.scanner .stage { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 300ms var(--ease); }
.canvas { position: absolute; inset: 9% 12%; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 10px var(--gw-50), 0 0 0 11px rgba(0, 0, 0, 0.12); background: var(--gw-100); }
.art { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 650ms ease, transform 1600ms var(--ease); }
.art.on { opacity: 1; transform: none; }
.canvas::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(120deg, transparent 30%, rgba(219, 154, 189, 0.55) 45%, rgba(223, 183, 116, 0.55) 55%, transparent 70%); transform: translateX(-130%); }
.canvas.flash::after { animation: flash 700ms var(--ease); }
@keyframes flash { to { transform: translateX(130%); } }
.art-d { background: linear-gradient(90deg, var(--ink) 0 18%, transparent 18%), radial-gradient(circle at 62% 38%, var(--red-300) 0 22%, transparent 22.5%), radial-gradient(circle at 62% 38%, var(--gilt-300) 0 30%, transparent 30.5%), linear-gradient(200deg, var(--red-800), var(--red-500)); }
.art-e { background: conic-gradient(from 30deg at 40% 60%, var(--gilt), var(--red), var(--red-300), var(--gw-100), var(--ink-700), var(--gilt)); }
/* Three abstract compositions, painted with the palette only */
.art-a { background:
  radial-gradient(circle at 68% 30%, var(--gilt-300) 0 14%, transparent 14.5%),
  radial-gradient(circle at 30% 76%, var(--red) 0 20%, transparent 20.5%),
  linear-gradient(140deg, transparent 52%, var(--ink) 52% 55%, transparent 55%),
  linear-gradient(180deg, var(--red-100) 0 48%, var(--red-300) 48% 100%); }
.art-b { background:
  linear-gradient(180deg, var(--red-800) 0 30%, transparent 30%),
  linear-gradient(180deg, transparent 34%, var(--gilt) 34% 62%, transparent 62%),
  linear-gradient(180deg, transparent 66%, var(--ink-700) 66% 100%),
  var(--red-500); }
.art-c { background:
  repeating-radial-gradient(circle at 50% 55%, var(--ink) 0 6px, var(--gilt-300) 6px 14px, var(--red-400) 14px 22px, var(--gw-100) 22px 30px); }
.art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.25), transparent 50%), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23c)' opacity='0.35'/></svg>"); mix-blend-mode: soft-light; }
.corners { position: absolute; inset: 2% 4%; animation: breathe 3s ease-in-out infinite; transform: translateZ(40px); }
.corners b { position: absolute; width: 22%; height: 18%; border: 0 solid var(--red-300); filter: drop-shadow(0 0 10px rgba(219, 154, 189, 0.6)); }
.corners b:nth-child(1) { left: 0; top: 0; border-width: 6px 0 0 6px; border-top-left-radius: 28px; }
.corners b:nth-child(2) { right: 0; top: 0; border-width: 6px 6px 0 0; border-top-right-radius: 28px; }
.corners b:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 6px 6px; border-bottom-left-radius: 28px; }
.corners b:nth-child(4) { right: 0; bottom: 0; border-width: 0 6px 6px 0; border-bottom-right-radius: 28px; }
.beam { position: absolute; left: 6%; right: 6%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--red-300), var(--gilt-300), var(--red-300), transparent); box-shadow: 0 0 24px 6px rgba(219, 154, 189, 0.45); animation: beam 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateZ(40px) scale(1.025); } }
@keyframes beam { 0% { top: 10%; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: 90%; opacity: 0; } }
.result { position: absolute; left: 50%; bottom: -12%; transform: translate(-50%, 0) translateZ(70px); width: min(300px, 88%); padding: 14px 16px; border-radius: 18px; background: rgba(245, 242, 236, 0.92); color: var(--ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7); }
.result .label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.result .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.4s ease-in-out infinite; }
.result .rows { display: grid; gap: 7px; margin-top: 10px; }
.result .row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-600); }
.result .row span { width: 62px; flex: none; }
.result .row i { height: 7px; border-radius: 7px; background: linear-gradient(90deg, var(--red), var(--red-300), var(--gilt-300)); animation: fill 3s var(--ease) infinite; transform-origin: left; }
.result .row:nth-child(2) i { animation-delay: 0.15s; }
.result .row:nth-child(3) i { animation-delay: 0.3s; }
.result .row:nth-child(4) i { animation-delay: 0.45s; }
@keyframes fill { 0% { transform: scaleX(0); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0.4; } }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.75); } }
/* Sprinkles live in the top-left corner of a section only (like a little burst of paint flecks). */
.sparkles { position: absolute; left: 0; top: 0; right: auto; bottom: auto; width: min(380px, 70vw); height: 230px; z-index: 1; pointer-events: none; -webkit-mask-image: radial-gradient(120% 120% at 0% 0%, #000 55%, transparent 100%); mask-image: radial-gradient(120% 120% at 0% 0%, #000 55%, transparent 100%); }

/* ---------- Word band: two straight rows sliding in opposite directions, edges fading out ---------- */
.ribbons { position: relative; overflow: hidden; padding: 34px 0; background: linear-gradient(120deg, var(--ink-950), var(--red-900) 45%, var(--red-800) 70%, var(--ink) 100%); background-size: 200% 200%; animation: band 16s ease-in-out infinite alternate; }
@keyframes band { to { background-position: 100% 100%; } }
.ribbons::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); width: 40%; animation: sweep-x 6s ease-in-out infinite; }
@keyframes sweep-x { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
.ribbon { position: relative; z-index: 2; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ribbon + .ribbon { margin-top: 6px; }
.ribbon .track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ribbon.two .track { animation-direction: reverse; animation-duration: 48s; }
.ribbons:hover .track { animation-play-state: paused; }
.ribbon span { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap; transition: transform 300ms var(--ease), color 300ms, text-shadow 300ms; }
.ribbon.one span { font-family: var(--font-display); font-style: italic; font-size: clamp(40px, 6vw, 76px); line-height: 1.05; background: linear-gradient(100deg, var(--gw-100) 30%, var(--red-300) 45%, var(--gilt-300) 55%, var(--gw-100) 70%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s ease-in-out infinite; }
.ribbon.two span { font-family: var(--font-mono); font-size: clamp(13px, 1.4vw, 16px); letter-spacing: 0.35em; text-transform: uppercase; color: rgba(245, 242, 236, 0.55); }
.ribbon span:hover { transform: translateY(-3px) scale(1.06); }
.ribbon.two span:hover { color: var(--gilt-300); text-shadow: 0 0 18px rgba(223, 183, 116, 0.8); }
/* painted dots between the words, one palette colour each */
.ribbon span::after { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gilt-300), var(--gilt) 60%, var(--gilt-700)); box-shadow: 0 0 16px rgba(223, 183, 116, 0.6); animation: blink 2.4s ease-in-out infinite; }
.ribbon span:nth-child(3n+2)::after { background: radial-gradient(circle at 35% 30%, var(--red-200), var(--red-300) 60%, var(--red-500)); box-shadow: 0 0 16px rgba(219, 154, 189, 0.6); animation-delay: -0.8s; }
.ribbon span:nth-child(3n)::after { background: radial-gradient(circle at 35% 30%, var(--red-400), var(--red) 60%, var(--red-900)); box-shadow: 0 0 16px rgba(119, 16, 84, 0.8); animation-delay: -1.6s; }
.ribbon.two span::after { width: 6px; height: 6px; }
@keyframes blink { 50% { transform: scale(0.6); opacity: 0.6; } }
@keyframes marquee { to { transform: translateX(-50%); } }
.ribbons .sparkles { z-index: 1; }

/* ---------- Light "magic" backgrounds: pastel palette blobs drifting behind a section ---------- */
.magic { position: relative; overflow: hidden; isolation: isolate; }
.magic > .aurora { z-index: -1; }
.aurora.light i { filter: blur(80px); opacity: 0.55; mix-blend-mode: multiply; }
.aurora.light i:nth-child(1) { background: radial-gradient(closest-side, var(--red-200), transparent); }
.aurora.light i:nth-child(2) { background: radial-gradient(closest-side, var(--gilt-100), transparent); }
.aurora.light i:nth-child(3) { background: radial-gradient(closest-side, var(--red-300), transparent); opacity: 0.4; }
.aurora.light i:nth-child(4) { background: radial-gradient(closest-side, var(--gilt-300), transparent); opacity: 0.35; }
.magic > .sparkles { z-index: -1; }
/* floating painted shapes */
.shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shapes b { position: absolute; border-radius: 50%; opacity: 0.5; animation: float-shape 12s ease-in-out infinite; }
.shapes b:nth-child(1) { width: 120px; height: 120px; left: 6%; top: 12%; border: 14px solid var(--red-200); }
.shapes b:nth-child(2) { width: 60px; height: 60px; right: 10%; top: 18%; background: linear-gradient(140deg, var(--gilt-300), var(--gilt)); animation-delay: -3s; }
.shapes b:nth-child(3) { width: 200px; height: 200px; right: -50px; bottom: 6%; border: 2px dashed var(--red-300); animation-delay: -6s; animation-duration: 18s; }
.shapes b:nth-child(4) { width: 34px; height: 34px; left: 40%; bottom: 10%; background: var(--red); opacity: 0.35; animation-delay: -2s; }
.shapes b:nth-child(5) { width: 90px; height: 16px; border-radius: 16px; left: 18%; bottom: 22%; background: linear-gradient(90deg, var(--red-300), var(--gilt-300)); animation-delay: -8s; }
@keyframes float-shape { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(18px, -22px) rotate(25deg); } 66% { transform: translate(-14px, 12px) rotate(-15deg); } }

/* ---------- Sections ---------- */
section.block { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: 52px; }
@media (min-width: 900px) { .section-head { grid-template-columns: 0.9fr 1.1fr; align-items: end; } }
.num { font-family: var(--font-mono); font-size: 13px; color: var(--red); letter-spacing: 0.08em; }
.h2 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -0.01em; }
.h2 em { font-style: italic; padding-right: 0.1em; margin-right: -0.1em; background: linear-gradient(90deg, var(--red), var(--red-400), var(--gilt)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p { margin: 0; font-size: 18px; color: var(--ink-600); max-width: 52ch; }
.on-dark .section-head p { color: rgba(245, 242, 236, 0.75); }
.on-dark .num { color: var(--red-300); }

/* How it works */
.steps-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 30px; border-radius: 26px; min-height: 300px; color: var(--gw-100); overflow: hidden; transform-style: preserve-3d; transition: transform 300ms var(--ease), box-shadow 300ms; box-shadow: 0 30px 60px -36px rgba(60, 0, 38, 0.7); }
.step { background-size: 220% 220% !important; animation: hue-flow 9s ease-in-out infinite alternate; }
.step:nth-child(1) { background: linear-gradient(150deg, var(--red) 0%, var(--red-800) 45%, var(--red-400) 100%); }
.step:nth-child(2) { background: linear-gradient(150deg, var(--ink-700) 0%, var(--ink-950) 45%, var(--red-800) 100%); animation-delay: -3s; }
.step:nth-child(3) { background: linear-gradient(150deg, var(--red-400) 0%, var(--red-700) 45%, var(--gilt-700) 100%); animation-delay: -6s; }
@keyframes hue-flow { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
.step:hover { animation-duration: 2.4s; box-shadow: 0 40px 70px -30px rgba(119, 16, 84, 0.85), 0 0 0 1px rgba(223, 183, 116, 0.35); }
.step::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 48%, transparent 66%); transform: translateX(-120%); }
.step:hover::after { transform: translateX(120%); transition: transform 900ms var(--ease); }
.step::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(closest-side, rgba(223, 183, 116, 0.45), transparent); transition: transform 600ms var(--ease); }
.step:hover::before { transform: translate(-30px, 30px) scale(1.2); }
.step .big { font-family: var(--font-display); font-size: 96px; line-height: 0.8; opacity: 0.2; }
.step h3 { position: relative; margin: 38px 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.step p { position: relative; margin: 0; color: rgba(245, 242, 236, 0.82); }
.step .icon { position: absolute; right: 26px; bottom: 26px; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.step .icon svg { width: 26px; height: 26px; stroke: var(--gilt-300); }
.note { margin-top: 26px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--gw-200); color: var(--ink-600); font-size: 14.5px; }
.note strong { color: var(--ink); }

/* Quotes: a watercolour sheet. Washes of Heritage Red, Red 300, Gilt and Charcoal bloom
   and drift behind the words; brush strokes paint themselves in; paint flecks rise. */
.quotes { position: relative; overflow: hidden; color: var(--ink); background: var(--gw-50); }
.paper { position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 80% at 50% 50%, var(--white), var(--gw-100)); }
.paper::after { content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3'/><feColorMatrix values='0 0 0 0 0.92  0 0 0 0 0.89  0 0 0 0 0.86  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"); }
.washes { position: absolute; inset: -10%; z-index: 0; filter: url(#watercolor); }
.wash { position: absolute; border-radius: 50%; mix-blend-mode: multiply; opacity: 0.6; animation: bloom 16s ease-in-out infinite alternate; }
.wash.w1 { width: 46%; height: 70%; left: -4%; top: 4%; background: radial-gradient(closest-side, rgba(119, 16, 84, 0.55), rgba(161, 77, 125, 0.35) 55%, transparent 75%); }
.wash.w2 { width: 40%; height: 60%; right: -2%; top: -6%; background: radial-gradient(closest-side, rgba(219, 154, 189, 0.75), rgba(244, 191, 218, 0.4) 60%, transparent 78%); animation-duration: 19s; }
.wash.w3 { width: 36%; height: 55%; right: 6%; bottom: -10%; background: radial-gradient(closest-side, rgba(192, 149, 72, 0.6), rgba(223, 183, 116, 0.35) 55%, transparent 76%); animation-duration: 22s; }
.wash.w4 { width: 30%; height: 45%; left: 10%; bottom: -12%; background: radial-gradient(closest-side, rgba(88, 83, 91, 0.4), rgba(189, 184, 192, 0.3) 55%, transparent 75%); animation-duration: 25s; }
.wash.w5 { width: 22%; height: 34%; left: 44%; top: -8%; background: radial-gradient(closest-side, rgba(255, 228, 186, 0.9), transparent 75%); animation-duration: 14s; }
@keyframes bloom { 0% { transform: translate(0, 0) scale(0.92) rotate(0deg); } 100% { transform: translate(4%, 3%) scale(1.08) rotate(12deg); } }
.strokes { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.strokes path { fill: none; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; opacity: 0.55; }
.quotes.in .strokes path { animation: paint 2.6s var(--ease) forwards; }
.quotes.in .strokes path:nth-child(2) { animation-delay: 0.4s; }
.quotes.in .strokes path:nth-child(3) { animation-delay: 0.8s; }
@keyframes paint { to { stroke-dashoffset: 0; } }
.quotes .sparkles { z-index: 1; }
.quote-sheet { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 64px); border-radius: 28px; background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 40px 80px -50px rgba(60, 0, 38, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.8); text-align: center; animation: float 7s ease-in-out infinite; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gilt); }
.ornament::before, .ornament::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gilt)); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 34px; height: 34px; animation: twirl 18s linear infinite; }
.quote-stage { position: relative; display: grid; place-items: center; min-height: 300px; margin-top: 18px; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(8px); transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease); pointer-events: none; }
.quote.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.quote p { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 5vw, 62px); line-height: 1.12; color: var(--ink); }
.quote p em { font-style: italic; padding: 0 0.06em; background: linear-gradient(100deg, var(--red) 0%, var(--red-400) 50%, var(--gilt) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.quote footer { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.quote footer::before, .quote footer::after { content: "◆"; font-size: 8px; color: var(--gilt); }
.quote-dots { position: relative; z-index: 2; display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.quote-dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(119, 16, 84, 0.15); cursor: pointer; overflow: hidden; position: relative; }
.quote-dots button.on::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), var(--gilt-300)); transform-origin: left; animation: dot-fill 6s linear forwards; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Promises (from the Privacy Policy, Section 1) */
.promises { display: grid; gap: 16px; }
@media (min-width: 700px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .promises { grid-template-columns: repeat(6, 1fr); } .promise { grid-column: span 2; } .promise:nth-child(4) { grid-column: 2 / span 2; } }
.promise { position: relative; padding: 26px; border-radius: 22px; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 44px -30px rgba(119, 16, 84, 0.5); overflow: hidden; transition: transform 300ms var(--ease), box-shadow 300ms; }
.promise { isolation: isolate; transition: transform 350ms var(--ease), box-shadow 350ms, color 350ms; }
.promise::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(135deg, var(--red) 0%, var(--red-400) 50%, var(--gilt) 100%); background-size: 200% 200%; opacity: 0; transition: opacity 450ms var(--ease); animation: hue-flow 4s ease-in-out infinite alternate; }
.promise:nth-child(2)::before { background-image: linear-gradient(135deg, var(--ink) 0%, var(--red-800) 55%, var(--red-400) 100%); }
.promise:nth-child(3)::before { background-image: linear-gradient(135deg, var(--gilt-700) 0%, var(--gilt) 50%, var(--red-300) 100%); }
.promise:nth-child(4)::before { background-image: linear-gradient(135deg, var(--red-400) 0%, var(--red) 55%, var(--ink) 100%); }
.promise:nth-child(5)::before { background-image: linear-gradient(135deg, var(--red-900) 0%, var(--red-500) 55%, var(--gilt-300) 100%); }
.promise:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: 0 34px 64px -28px rgba(119, 16, 84, 0.75); }
.promise:hover::before { opacity: 1; }
.promise:hover p { color: var(--white); }
.promise:hover .dot { background: rgba(255, 255, 255, 0.2) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); transform: rotate(-10deg) scale(1.08); }
.promise .dot { transition: transform 350ms var(--ease), background-color 350ms; }
.promise p { transition: color 350ms; }
.promise::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, var(--red-100), transparent); transition: transform 600ms var(--ease); }
.promise:hover::after { transform: scale(1.4); }
.promise .dot { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--white); background: linear-gradient(140deg, var(--red), var(--red-400)); box-shadow: 0 10px 20px -10px rgba(119, 16, 84, 0.8); }
.promise:nth-child(2) .dot { background: linear-gradient(140deg, var(--ink-700), var(--ink)); }
.promise:nth-child(3) .dot { background: linear-gradient(140deg, var(--gilt), var(--gilt-700)); }
.promise:nth-child(4) .dot { background: linear-gradient(140deg, var(--red-400), var(--red-700)); }
.promise:nth-child(5) .dot { background: linear-gradient(140deg, var(--red-800), var(--ink)); }
.promise .dot svg { width: 22px; height: 22px; }
.promise p { position: relative; z-index: 1; margin: 18px 0 0; font-size: 17px; line-height: 1.45; color: var(--ink); }
.light-wash { background: radial-gradient(900px 500px at 100% 0%, var(--red-100), transparent 70%), radial-gradient(800px 500px at 0% 100%, rgba(255, 228, 186, 0.55), transparent 70%), var(--gw-100); }

/* Page cards */
.page-cards { display: grid; gap: 18px; }
@media (min-width: 700px) { .page-cards { grid-template-columns: repeat(2, 1fr); } }
.page-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 28px; border-radius: 26px; text-decoration: none; color: var(--gw-100); overflow: hidden; isolation: isolate; transition: transform 350ms var(--ease), box-shadow 350ms; box-shadow: 0 26px 50px -32px rgba(60, 0, 38, 0.8); }
.page-card:hover { color: var(--white); transform: translateY(-6px); box-shadow: 0 36px 60px -30px rgba(60, 0, 38, 0.9); }
.page-card::before { content: ""; position: absolute; inset: 0; z-index: -2; transition: transform 800ms var(--ease); }
.page-card:hover::before { transform: scale(1.08) rotate(-1deg); }
.page-card:nth-child(1)::before { background: linear-gradient(135deg, var(--red) 0%, var(--red-400) 60%, var(--gilt-300) 130%); }
.page-card:nth-child(2)::before { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-700) 50%, var(--red-800) 120%); }
.page-card:nth-child(3)::before { background: linear-gradient(135deg, var(--gilt-700) 0%, var(--gilt) 55%, var(--gilt-300) 120%); }
.page-card:nth-child(4)::before { background: linear-gradient(135deg, var(--red-900) 0%, var(--red-700) 55%, var(--red-300) 130%); }
.page-card::after { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; right: -100px; bottom: -140px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.05), 0 0 0 80px rgba(255, 255, 255, 0.04); transition: transform 800ms var(--ease); }
.page-card:hover::after { transform: scale(1.15); }
.page-card h3 { margin: 20px 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; }
.page-card p { margin: 0; max-width: 32ch; opacity: 0.85; }
.page-card .go { position: absolute; right: 24px; top: 24px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); transition: transform 350ms var(--ease), background-color 300ms; }
.page-card:hover .go { transform: rotate(-45deg); background: rgba(255, 255, 255, 0.28); }

/* Final call */
.final { position: relative; overflow: hidden; text-align: center; color: var(--gw-100); background: linear-gradient(160deg, var(--red-900), var(--ink-950)); }
.final .wrap { position: relative; z-index: 2; }
.final .sparkles { z-index: 1; }
.final h2 { margin: 0 auto; max-width: 14ch; font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 8vw, 104px); line-height: 0.95; }
.final p { margin: 22px auto 0; max-width: 46ch; color: rgba(245, 242, 236, 0.78); font-size: 18px; }
.final .actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 150px 0 120px; color: var(--gw-100); background: linear-gradient(155deg, var(--ink-950), var(--ink) 45%, var(--red-900)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { margin: 16px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 8vw, 100px); line-height: 0.95; }
.page-hero .lead { margin: 22px 0 0; max-width: 46ch; font-size: 19px; color: rgba(245, 242, 236, 0.8); }
.page-hero .lead-small { margin-top: 12px; max-width: 60ch; font-size: 16px; }
.page-hero .lead-small strong { color: var(--gw-100); font-weight: 600; }
/* Extra room under the fixed menu bar so the whole heading always shows (delete account page). */
.page-hero-roomy { padding-top: clamp(170px, 24vh, 220px); }
/* Delete account page: the step-by-step help under the sign-in card, on its own card, in larger text. */
.del-info { margin-top: 28px; color: var(--ink-600); font-size: 17.5px; line-height: 1.75; }
.card.del-info h2 { margin: 34px 0 10px; color: var(--ink); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.card.del-info h2:first-child { margin-top: 0; }
.del-info h3 { margin: 22px 0 6px; color: var(--red-700); font-size: 19.5px; font-weight: 600; }
.card.del-info p { margin: 10px 0 0; }
.del-info ol, .del-info ul { margin: 8px 0 0; padding-left: 24px; }
.del-info li { margin: 6px 0; }
.del-info strong { color: var(--ink); }
@media (max-width: 560px) { .del-info { font-size: 16.5px; } .card.del-info h2 { font-size: 23px; } .del-info h3 { font-size: 18px; } }
/* Delete account: the sign-in box opens and closes (closed at first); the steps card below stays open. */
.del-signin { padding-top: 22px; padding-bottom: 22px; }
.del-signin > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; color: var(--ink); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.del-signin > summary::-webkit-details-marker { display: none; }
.del-signin > summary .plus { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--white); font-size: 22px; transition: transform 300ms var(--ease); }
.del-signin[open] > summary .plus { transform: rotate(45deg); }
.del-signin-body { margin-top: 22px; animation: open 400ms var(--ease); }
.del-howto-open { margin-top: 22px; }
.del-howto-open h2 { margin: 0 0 6px; }
.del-info .del-num { display: inline-block; margin-right: 12px; color: var(--red); font-size: 0.7em; font-weight: 600; letter-spacing: 0.06em; vertical-align: 0.15em; }
.del-info .plain-steps { list-style: none; padding-left: 0; }
.del-info .plain-steps li { margin: 10px 0; }
.page-hero .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, 0.1); color: rgba(245, 242, 236, 0.9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.chip.gilt { background: var(--ink-950); color: var(--gilt-300); box-shadow: inset 0 0 0 1px rgba(223, 183, 116, 0.35); }
.page-body { position: relative; z-index: 3; margin-top: -64px; padding-bottom: 100px; }
.page-magic { position: relative; isolation: isolate; }
.page-magic > .aurora, .page-magic > .sparkles, .page-magic > .shapes { position: absolute; z-index: -1; }


/* Glass card */
.card { position: relative; padding: 32px; border-radius: 26px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 30px 60px -38px rgba(60, 0, 38, 0.55), 0 2px 6px rgba(39, 35, 41, 0.04); }
.card h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.card > p { color: var(--ink-600); }
@media (max-width: 560px) { .card { padding: 22px; border-radius: 22px; } }
.glow-border { isolation: isolate; }
.glow-border::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--angle, 0deg), var(--gw-300) 0deg 200deg, var(--gilt-300) 245deg, var(--red-300) 290deg, var(--red) 330deg, var(--gw-300) 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin-border 8s linear infinite; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }
.stack > * + * { margin-top: 22px; }

/* Legal */
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.toc { font-size: 14px; }
@media (min-width: 1000px) { .toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; } }
.toc details { padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -30px rgba(60, 0, 38, 0.5); }
.toc summary { font-weight: 600; cursor: pointer; }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--ink-600); text-decoration: none; transition: background-color 150ms, color 150ms; }
.toc a:hover { background: var(--red-50); color: var(--red); }
.toc a.active { background: linear-gradient(90deg, var(--red-100), transparent); color: var(--red); font-weight: 500; }
.legal { color: var(--ink-600); line-height: 1.78; background: linear-gradient(160deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 225, 238, 0.85) 25%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 228, 186, 0.7) 75%, rgba(252, 241, 247, 0.85) 100%); background-size: 100% 400%; animation: hue-flow 18s ease-in-out infinite alternate; }
.legal h2 { position: relative; padding-left: 18px !important; }
.legal h2::before { content: ""; position: absolute; left: 0; top: calc(1.4em + 4px); width: 5px; height: 1.1em; border-radius: 5px; background: linear-gradient(180deg, var(--red), var(--red-300), var(--gilt-300)); }
.legal h2:first-child::before { top: 4px; }
.legal h2.in-view::before { animation: bar-pulse 1.2s var(--ease); }
@keyframes bar-pulse { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
.legal h3 { background: linear-gradient(90deg, var(--red-700), var(--red-400)); -webkit-background-clip: text; background-clip: text; color: transparent !important; display: inline-block; }
.legal .table-wrap { box-shadow: 0 18px 40px -30px rgba(119, 16, 84, 0.5); }
.legal tr { transition: background-color 200ms; }
.legal tbody tr:hover { background: var(--red-50); }
.legal > *:first-child { margin-top: 0; }
.legal h2 { color: var(--ink); font-size: 23px; font-weight: 600; margin: 2.2em 0 0.6em; padding-top: 1.4em; border-top: 1px solid var(--gw-200); }
.legal h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { color: var(--ink); font-size: 17.5px; font-weight: 600; margin: 1.6em 0 0.4em; }
.legal p, .legal ul, .legal ol { margin: 0.85em 0; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li + li { margin-top: 0.35em; }
.legal li::marker { color: var(--red-400); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border-radius: 16px; border: 1px solid var(--gw-200); background: var(--white); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.legal th { text-align: left; font-weight: 600; color: var(--ink); background: linear-gradient(90deg, var(--red-50), var(--gw-50)); }
.legal th, .legal td { padding: 11px 14px; border-bottom: 1px solid var(--gw-200); vertical-align: top; }
.legal tr:last-child td { border-bottom: 0; }
.todo { background: var(--gilt-100); color: var(--gilt-700); padding: 1px 7px; border-radius: 6px; font-weight: 500; white-space: nowrap; }

/* Support */
.contact-card { display: grid; gap: 20px; align-items: center; overflow: hidden; }
@media (min-width: 760px) { .contact-card { grid-template-columns: 1fr auto; } }
.contact-card .mail { font-family: var(--font-mono); font-size: 15px; }
.faq details { border-top: 1px solid var(--gw-200); }
.faq details:first-of-type { border-top: 0; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 0; font-size: 18px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red-50); color: var(--red); font-size: 22px; transition: transform 300ms var(--ease), background-color 300ms, color 300ms; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--red); color: var(--white); }
.faq .answer { padding: 0 0 20px; color: var(--ink-600); animation: open 400ms var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq ol { margin: 0 0 12px; padding-left: 1.3em; }
.faq li + li { margin-top: 5px; }
.faq li::marker { color: var(--red); font-weight: 600; }
.faq p { margin: 0 0 10px; }

/* Delete account */
.steps { display: flex; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.steps li { flex: 1; height: 5px; border-radius: 5px; background: var(--gw-200); overflow: hidden; position: relative; }
.steps li.on::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), var(--red-300), var(--gilt-300)); animation: grow 600ms var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
/* Delete account: the step bars with their names, so it's clear which step you're on. */
.steps-labeled { gap: 12px; margin-bottom: 28px; }
.steps-labeled li { height: auto; background: none; overflow: visible; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink-500); }
.steps-labeled li::after { display: none; }
.steps-labeled .bar { display: block; position: relative; height: 5px; margin-bottom: 8px; border-radius: 5px; background: var(--gw-200); overflow: hidden; }
.steps-labeled li.on .bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), var(--red-300), var(--gilt-300)); animation: grow 600ms var(--ease) both; transform-origin: left; }
.steps-labeled b { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.steps-labeled li.on { color: var(--ink); }
.steps-labeled li.on b { color: var(--red); }
@media (max-width: 560px) { .steps-labeled li { font-size: 12.5px; } }
.field { display: block; margin-top: 18px; }
.field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--gw-300); border-radius: 14px; background: var(--white); font: 16px var(--font-sans); color: var(--ink); transition: border-color 150ms, box-shadow 150ms; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(119, 16, 84, 0.14); }
.pw { position: relative; display: block; }
.pw .input { padding-right: 70px; }
.pw button { position: absolute; right: 7px; top: 7px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-500); font: 500 13px var(--font-sans); cursor: pointer; }
.pw button:hover { background: var(--red-50); color: var(--red); }
.code-input { text-align: center; font-family: var(--font-mono); font-size: 24px; letter-spacing: 0.45em; }
.hint { margin-top: 6px; font-size: 13px; color: var(--ink-500); }
.alert { margin-top: 16px; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; animation: open 300ms var(--ease); }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14.5px; }
.deleted-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .deleted-list { grid-template-columns: repeat(2, 1fr); } }
.deleted-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(120deg, var(--red-50), var(--gw-50)); border: 1px solid var(--red-100); font-weight: 500; }
.deleted-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-100); flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 15px; cursor: pointer; }
.check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--red); flex: none; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: var(--white); background: linear-gradient(140deg, var(--ok), #2f9a63); box-shadow: 0 14px 30px -14px rgba(30, 122, 74, 0.8); animation: pop 600ms var(--ease); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.side-card { display: flex; gap: 18px; align-items: flex-start; }
.side-card .badge { flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: var(--white); background: linear-gradient(140deg, var(--red), var(--red-400)); }
[hidden] { display: none !important; }

/* ---------- Footer: same dark aurora as the hero, sprinkles, floating cards ---------- */
.site-footer { position: relative; overflow: hidden; color: rgba(245, 242, 236, 0.78); background: linear-gradient(160deg, var(--ink-950) 0%, var(--ink) 40%, var(--red-900) 100%); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; z-index: 3; height: 1px; background: linear-gradient(90deg, transparent, var(--red-300), var(--gilt-300), transparent); }
.site-footer .sparkles { z-index: 1; }
.site-footer .wrap { position: relative; z-index: 2; display: grid; gap: 20px; padding-top: 80px; padding-bottom: 34px; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr; } }
.foot-card { position: relative; padding: 26px; border-radius: 24px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(219, 154, 189, 0.05); animation: float 8s ease-in-out infinite; transition: box-shadow 300ms, border-color 300ms, background-color 300ms; }
.foot-card:nth-child(2) { animation-delay: -2.6s; }
.foot-card:nth-child(3) { animation-delay: -5.2s; }
.foot-card:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(219, 154, 189, 0.4); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85), 0 0 40px -10px rgba(219, 154, 189, 0.35); }
.site-footer h4 { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-300); }
.site-footer a { color: var(--gw-100); text-decoration: none; transition: color 200ms; }
.site-footer a:hover { color: var(--gilt-300); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer ul a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-300); transform: scale(0); transition: transform 250ms var(--ease); }
.site-footer ul a:hover::before { transform: scale(1); }
.site-footer .big-word { grid-column: 1 / -1; margin: 30px 0 0; text-align: center; font-family: var(--font-display); font-size: clamp(90px, 20vw, 260px); line-height: 0.8; letter-spacing: -0.02em; background: linear-gradient(100deg, rgba(245, 242, 236, 0.08) 20%, rgba(219, 154, 189, 0.5) 45%, rgba(223, 183, 116, 0.55) 55%, rgba(245, 242, 236, 0.08) 80%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 9s ease-in-out infinite; user-select: none; }
.site-footer .legal-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: rgba(245, 242, 236, 0.6); }
.trail { position: fixed; inset: 0; z-index: 70; pointer-events: none; width: 100vw; height: 100vh; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 100ms; } .reveal-d2 { transition-delay: 200ms; } .reveal-d3 { transition-delay: 300ms; } .reveal-d4 { transition-delay: 400ms; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .split-word > span { transform: none; }
  .cursor-glow { display: none; }
}

/* Inner pages: the light magic layer stays behind everything while you scroll long pages. */
.fixed-magic { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fixed-magic > .aurora, .fixed-magic > .shapes, .fixed-magic > .sparkles { z-index: 0; }
.page-hero, .site-footer { z-index: 1; }
.promise:hover { background: transparent; border-color: rgba(255, 255, 255, 0.4); }
.fixed-magic .sparkles { display: none; }
