/* captions2u — shared stylesheet (mobile-first: 360 → 768 → 1200) */

:root {
  /* Brand gradient — decoration only, never behind text */
  --c-pink: #F4317C;
  --c-orange: #FF8A3D;
  --c-purple: #8A3FFC;
  --grad: linear-gradient(120deg, #F4317C 0%, #FF8A3D 50%, #8A3FFC 100%);
  /* Text-safe "ink" gradient: white text >= 5.18:1 at every point */
  --ink-pink: #C2185B;
  --ink-orange: #C2410C;
  --ink-purple: #6D28D9;
  --grad-ink: linear-gradient(120deg, #C2185B 0%, #C2410C 50%, #6D28D9 100%);
  /* Neutrals */
  --ink: #1A1523;
  --text: #3A3347;
  --muted: #5E566E;
  --line: #ECE7F2;
  --bg: #FAF7FC;
  --surface: #FFFFFF;
  --tint-pink: #FFF0F6;
  --tint-orange: #FFF4EC;
  --tint-purple: #F4EEFF;
  --footer-bg: #1F1A28;
  --footer-text: #FFFFFF;
  --footer-muted: #CFC8DA;
  --focus: #6D28D9;
  --focus-on-dark: #E9D5FF;
  /* Spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  /* Shape */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(26, 21, 35, .05), 0 4px 14px rgba(26, 21, 35, .06);
  --sh-2: 0 10px 30px rgba(26, 21, 35, .12);
  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
svg { flex: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 var(--s3); text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 700; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); }
a { color: var(--ink-purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-pink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 70ch; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s2); color: #fff; }
.grad-text {
  background: var(--grad-ink);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(8px); }
}
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--header-h); }
.logo {
  display: inline-flex; align-items: center; gap: var(--s2);
  color: var(--ink); text-decoration: none;
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
  min-height: 44px;
}
.logo:hover { color: var(--ink); }
.logo-mark { width: 32px; height: 32px; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s4);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink);
  font: 600 .9375rem/1 var(--font-body); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.no-js .nav-toggle { display: none; }
.no-js .header-inner { flex-wrap: wrap; }
.no-js .site-nav { width: 100%; }

.js .site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-2);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: var(--s2) var(--gutter) var(--s5);
}
.js .site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-list > li:last-child { border-bottom: 0; }
.nav-link, .sub-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; min-height: 48px; padding: var(--s2) 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--ink); text-decoration: none;
  font: 600 1rem/1.3 var(--font-body);
}
.nav-link[aria-current="page"] { color: var(--ink-pink); }
.sub-toggle svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) { .sub-toggle svg { transition: transform .2s; } }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 0 0 var(--s3) var(--s3); }
.js .sub { display: none; }
.js .has-sub.is-open > .sub { display: block; }
.sub a {
  display: flex; align-items: center; min-height: 44px; padding: var(--s1) 0;
  color: var(--text); text-decoration: none; font-weight: 400;
}
.sub a:hover { color: var(--ink-pink); }
.sub a[aria-current="page"] { color: var(--ink-pink); font-weight: 600; }
.sub-all a { font-weight: 600; color: var(--ink-purple); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav, .js .site-nav {
    display: block; position: static; padding: 0; max-height: none; overflow: visible;
    background: none; border: 0; box-shadow: none; width: auto;
  }
  .no-js .site-nav { width: auto; }
  .no-js .header-inner { flex-wrap: nowrap; }
  .nav-list { display: flex; align-items: center; gap: var(--s1); }
  .nav-list > li { position: relative; border: 0; }
  .nav-link, .sub-toggle {
    width: auto; min-height: 44px; padding: 0 var(--s3);
    border-radius: var(--r-pill); font-size: .9375rem;
  }
  .nav-link:hover, .sub-toggle:hover, .has-sub.is-open > .sub-toggle { background: var(--tint-purple); color: var(--ink); }
  .sub {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 10;
    min-width: 270px; padding: var(--s2);
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: var(--sh-2);
  }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .sub a { min-height: 40px; padding: var(--s2) var(--s3); border-radius: var(--r-sm); }
  .sub a:hover { background: var(--tint-pink); color: var(--ink); }
  .sub--mood { left: auto; right: 0; }
  .js .has-sub.is-open > .sub--mood { display: grid; grid-template-columns: 1fr 1fr; min-width: 440px; column-gap: var(--s1); }
  .sub--mood .sub-all { grid-column: 1 / -1; }
  .sub-all { border-top: 1px solid var(--line); margin-top: var(--s1); padding-top: var(--s1); }
  .no-js .sub { display: none; }
  .no-js .has-sub:hover > .sub, .no-js .has-sub:focus-within > .sub { display: block; }
}

/* ---------- Page head / breadcrumb ---------- */
.page-head { padding: var(--s5) 0 var(--s2); }
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2);
  margin: 0 0 var(--s5); padding: 0; font-size: .875rem; color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--s2); }
.breadcrumb li + li::before { content: "\203A"; content: "\203A" / ""; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink-pink); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
.accent-bar { display: block; width: 56px; height: 5px; border-radius: var(--r-pill); background: var(--grad); margin-bottom: var(--s4); }
.meta-line { font-size: .875rem; color: var(--muted); margin-bottom: var(--s4); }
.lead { font-size: 1.0625rem; color: var(--ink); }
@media (min-width: 768px) { .lead { font-size: 1.125rem; } .page-head { padding-top: var(--s6); } }

.head-grid { display: grid; gap: var(--s2); }
.head-grid > .prose > :last-child { margin-bottom: 0; }
@media (min-width: 1200px) {
  .head-grid { grid-template-columns: minmax(0, 1fr) 440px; align-items: center; gap: var(--s7); margin-bottom: var(--s6); }
  .head-grid .cover { margin: 0; }
}
.cover { margin: var(--s2) 0 var(--s5); }
.cover img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--r-lg); }

/* ---------- On-this-page jump list ---------- */
.toc { margin: 0 0 var(--s5); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.toc-title { font: 700 .8125rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 var(--s3); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.toc a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4);
  border-radius: var(--r-pill); background: var(--tint-purple);
  color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 600;
}
.toc a:hover { background: var(--tint-pink); color: var(--ink); }

/* ---------- Caption sections & cards ---------- */
.cap-section { padding: var(--s6) 0 var(--s4); border-top: 1px solid var(--line); }
.cap-section h2 { margin-bottom: var(--s2); }
.cap-section > p { max-width: 70ch; }
.cap-grid { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .cap-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4); } }
@media (min-width: 1200px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }
.cap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s3) var(--s3) var(--s3) var(--s4); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1);
}
@media (prefers-reduced-motion: no-preference) { .cap { transition: box-shadow .2s, transform .2s; } }
.cap:hover {
  border-color: transparent; box-shadow: var(--sh-2);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
}
@media (prefers-reduced-motion: no-preference) { .cap:hover { transform: translateY(-2px); } }
.cap-text { flex: 1; min-width: 0; margin: 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.5; overflow-wrap: anywhere; }
.copy-btn {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 var(--s4);
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-ink) border-box;
  color: var(--ink-purple); font: 600 .9375rem/1 var(--font-body); cursor: pointer;
}
.copy-btn:hover { background: linear-gradient(var(--tint-purple), var(--tint-purple)) padding-box, var(--grad-ink) border-box; color: var(--ink); }
.copy-btn::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='12' height='12' rx='2'/><path d='M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='12' height='12' rx='2'/><path d='M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/></svg>") center / contain no-repeat;
}
.copy-btn.is-copied { background: var(--grad-ink); color: #fff; }
.copy-btn.is-copied::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>");
}

/* ---------- Tips, FAQ, related ---------- */
.content-section { padding: var(--s7) 0 var(--s2); border-top: 1px solid var(--line); }
.tip-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; margin-top: var(--s4); }
@media (min-width: 768px) { .tip-grid { grid-template-columns: repeat(2, 1fr); } }
.tip { position: relative; padding: var(--s5) var(--s5) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.tip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.tip p:last-child { margin-bottom: 0; }
.faq-list { max-width: 80ch; }
.faq-item { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { margin-bottom: var(--s2); }
.faq-item p { margin: 0; }

/* ---------- Cards (hub, home, related, 404) ---------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card-grid--compact { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 768px) { .card-grid--compact { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
@media (min-width: 1200px) { .card-grid--compact { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-1);
}
@media (prefers-reduced-motion: no-preference) { .card { transition: box-shadow .2s, transform .2s; } .card:hover { transform: translateY(-2px); } }
.card:hover { box-shadow: var(--sh-2); }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-title a:focus-visible { outline: none; }
.card-thumb {
  display: flex; align-items: center; justify-content: center;
  height: 112px; font-size: 2.5rem; line-height: 1;
}
.card-grid--compact .card-thumb { aspect-ratio: auto; height: 84px; font-size: 2rem; }
.thumb-1 { background: linear-gradient(135deg, #FFE1EC, #FFE8D6); }
.thumb-2 { background: linear-gradient(135deg, #FFE8D6, #EDE2FF); }
.thumb-3 { background: linear-gradient(135deg, #EDE2FF, #FFE1EC); }
.thumb-4 { background: linear-gradient(135deg, #FFE1EC, #EDE2FF); }
.thumb-5 { background: linear-gradient(135deg, #FFF0DC, #FFE1EC); }
.thumb-6 { background: linear-gradient(135deg, #E6E0FF, #FFEFE3); }
.card-body { display: flex; flex-direction: column; gap: var(--s2); flex: 1; padding: var(--s4) var(--s5) var(--s5); }
.card-grid--compact .card-body { padding: var(--s3) var(--s4) var(--s4); }
.card-title { font-size: 1.125rem; margin: 0; }
.card-grid--compact .card-title { font-size: 1rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-desc { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.card-grid--compact .card-desc { font-size: .875rem; }
.card-samples { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s2); }
.card-samples li { background: var(--tint-pink); color: var(--ink); border-radius: var(--r-sm); padding: var(--s2) var(--s3); font-size: .9375rem; line-height: 1.45; }
.card-samples li:nth-child(2) { background: var(--tint-purple); }
.card-more { margin-top: auto; padding-top: var(--s2); font-weight: 600; font-size: .9375rem; color: var(--ink-purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--grad-ink); color: #fff; }
.btn-primary:hover { color: #fff; box-shadow: var(--sh-2); filter: brightness(.95); }
.btn-secondary { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-ink) border-box; color: var(--ink); }
.btn-secondary:hover { background: linear-gradient(var(--tint-purple), var(--tint-purple)) padding-box, var(--grad-ink) border-box; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0 0; }

/* ---------- Home ---------- */
.hero { position: relative; padding: var(--s6) 0 var(--s5); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70vw; max-width: 720px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(244, 49, 124, .16), rgba(255, 138, 61, .10) 55%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -50% -25%; width: 60vw; max-width: 600px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(138, 63, 252, .12), transparent 72%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: var(--s5); align-items: center; }
.hero-art img { width: 100%; max-width: 560px; margin: 0 auto; border-radius: var(--r-lg); }
@media (min-width: 1200px) { .hero { padding: var(--s8) 0 var(--s7); } .hero-grid { grid-template-columns: 1.1fr .9fr; gap: var(--s7); } }
.section { padding: var(--s7) 0 var(--s2); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s2) var(--s4); margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.section-head p { margin: var(--s2) 0 0; color: var(--muted); max-width: 60ch; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }
.panel { padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
@media (min-width: 768px) { .panel { padding: var(--s6); } }
.panel--tint { background: linear-gradient(135deg, var(--tint-pink), var(--tint-purple)); border-color: transparent; }
.panel > :last-child { margin-bottom: 0; }

/* ---------- Legal / text pages ---------- */
.text-page .prose h2 { margin-top: var(--s6); }
.text-page .prose ul { padding-left: 1.25rem; }
.text-page .prose li { margin-bottom: var(--s2); }
.contact-box { display: grid; gap: var(--s2); margin: var(--s4) 0 var(--s5); }
.contact-box a { font-size: 1.125rem; font-weight: 600; }

/* ---------- 404 ---------- */
.notfound { padding: var(--s7) 0 var(--s2); text-align: left; }
.notfound-code { font: 800 clamp(4rem, 3rem + 6vw, 7rem)/1 var(--font-head); letter-spacing: -.04em; margin: 0 0 var(--s3); }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--s8); padding: var(--s7) 0 var(--s5); background: var(--footer-bg); color: var(--footer-muted); font-size: .9375rem; }
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1.6fr 1fr; } }
.footer-title { font: 700 1rem/1.2 var(--font-head); color: var(--footer-text); margin: 0 0 var(--s3); letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--s5); }
.footer-links--2col { grid-template-columns: 1fr 1fr; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--footer-muted); text-decoration: none; }
.footer-links a:hover { color: var(--footer-text); text-decoration: underline; }
.footer-links .footer-all a { color: var(--footer-text); font-weight: 600; }
.footer-bottom {
  margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5);
}
.footer-bottom p { margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--s5) + env(safe-area-inset-bottom, 0px)); z-index: 200;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: var(--s3) var(--s5);
  background: var(--ink); color: #fff; border-radius: var(--r-pill); box-shadow: var(--sh-2);
  font-weight: 600; font-size: .9375rem; text-align: center;
}
@media (prefers-reduced-motion: no-preference) { .toast { transition: opacity .2s, transform .2s; } }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Forced colours (Windows High Contrast) ---------- */
@media (forced-colors: active) {
  .grad-text { color: CanvasText; background: none; }
  .copy-btn, .btn { border: 1px solid ButtonText; }
  .copy-btn::before { forced-color-adjust: none; background: ButtonText; }
  .accent-bar, .tip::before { background: CanvasText; }
}
