/*
 * MWS Tools: shared site chrome.
 * Mirrors the v2 magicwand.site design system (warm paper, ink, wand purple,
 * Fraunces + Inter Tight + Caveat). Tool pages keep their own inline styles for
 * the tool UI only; header, opener, sections, FAQ, email capture, closing call
 * to action and footer all live here.
 */

:root {
  --paper: #FFFCF8;
  --band: #F5EFE6;
  --field: #FBF7F1;
  --line: #E7DFD3;
  --ink: #141210;
  --ink-2: #4B4640;
  --ink-3: #7A736B;
  --wand: #7C3AED;
  --wand-deep: #5B21B6;
  --lilac: #E9DBFF;
  --lilac-soft: #F4EDFF;
  --butter: #FFF1A8;
  --success: #15803D;
  --success-bg: #DCFCE7;
  --danger: #B91C1C;
  --danger-bg: #FEE2E2;

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter Tight', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Caveat', 'Comic Sans MS', cursive;

  --radius-card: 1.75rem;
  --radius-panel: 2.5rem;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.mws {
  display: block;
  min-height: 100vh;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.mws h1, body.mws h2, body.mws h3, body.mws h4 {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
  font-optical-sizing: auto;
}

body.mws ::selection { background: var(--wand); color: #fff; }
body.mws :focus-visible { outline: 2px solid var(--wand); outline-offset: 3px; }
body.mws input, body.mws textarea, body.mws select, body.mws button { font-family: inherit; }

.hidden { display: none !important; }

/* ---------- Primitives ---------- */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 640px) { .container { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1024px) { .container { padding-left: 48px; padding-right: 48px; } }

.wonk { font-style: italic; font-variation-settings: 'SOFT' 100, 'WONK' 1 !important; }
.wonk-accent { color: var(--wand-deep); }

.sparkle { display: inline-block; flex-shrink: 0; fill: currentColor; }

.section { padding: 80px 0; scroll-margin-top: 96px; }
.section.band { background: var(--band); }
@media (min-width: 768px) { .section { padding: 112px 0; } }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-label .num { color: var(--wand); }
.section-label .rule { width: 32px; height: 1px; background: var(--line); }

.display-xl { font-size: clamp(3rem, 8vw, 7.5rem); line-height: 0.95; letter-spacing: -0.035em; font-weight: 400; }
.display-lg { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; font-weight: 400; }
.display-md { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.025em; font-weight: 400; }
.display-sm { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; }

.margin-note {
  font-family: var(--font-hand);
  color: var(--wand);
  font-size: 1.6rem;
  line-height: 1.05;
  transform: rotate(-4deg);
  max-width: 15rem;
  pointer-events: none;
  user-select: none;
}

.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s ease;
}
.link-underline:hover, .group:hover .link-underline { background-size: 100% 1px; }

/* Buttons: pill shaped, ink by default, wand on hover. Same as the main site. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--wand); color: var(--paper); }
.btn--primary .sparkle { width: 14px; height: 14px; color: var(--butter); transition: transform 0.5s; }
.btn--primary:hover .sparkle { transform: rotate(90deg); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(20, 18, 16, 0.15); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--lilac); }
.btn svg.arrow { width: 16px; height: 16px; transition: transform 0.3s; }
.btn:hover svg.arrow-right { transform: translateX(4px); }
.btn:hover svg.arrow-up { transform: translate(2px, -2px); }
.btn:hover svg.arrow-down { transform: translateY(3px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(255, 252, 248, 0.9);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.site-header .bar { display: flex; height: 80px; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark .sparkle { width: 16px; height: 16px; color: var(--wand); transition: transform 0.7s; }
.wordmark:hover .sparkle { transform: rotate(180deg); }
.wordmark .wonk { font-weight: 400; }

.site-nav { display: none; align-items: center; gap: 24px; }
.site-nav a {
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--wand);
}

.header-actions { display: none; align-items: center; gap: 20px; }
.locale-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.header-actions .btn { min-height: 44px; padding: 0 20px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

.mobile-nav { display: none; height: calc(100dvh - 80px); overflow-y: auto; border-top: 1px solid var(--line); background: var(--paper); }
.site-header.is-open .mobile-nav { display: block; }
.mobile-nav .inner { display: flex; min-height: 100%; flex-direction: column; padding-top: 32px; padding-bottom: 32px; }
.mobile-nav nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav nav a .idx { font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--wand); }
.mobile-nav .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; }

@media (min-width: 1280px) {
  .site-nav, .header-actions { display: flex; }
  .menu-toggle, .mobile-nav, .site-header.is-open .mobile-nav { display: none; }
}

/* ---------- Page opener (same template as the case study pages) ---------- */

.opener { position: relative; border-bottom: 1px solid var(--line); padding: 40px 0 56px; overflow: hidden; }
@media (min-width: 768px) { .opener { padding: 56px 0 80px; } }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--ink); }
.back-link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.back-link:hover svg { transform: translateX(-4px); }

.eyebrow { margin-top: 32px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wand); }
.opener h1 { margin-top: 20px; max-width: 64rem; color: var(--ink); }
.opener .intro { margin-top: 32px; max-width: 42rem; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
@media (min-width: 768px) { .opener .intro { font-size: 20px; } }

.facts {
  margin-top: 48px;
  display: grid;
  gap: 24px;
  border-top: 1px solid rgba(20, 18, 16, 0.15);
  padding-top: 24px;
}
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin-top: 8px; font-size: 16px; color: var(--ink); }
.facts .cta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
@media (min-width: 1024px) { .facts .cta { justify-content: flex-end; } }

.margin-note-wrap { display: none; pointer-events: none; user-select: none; }
@media (min-width: 1024px) {
  .opener .margin-note-wrap, .page-hero .margin-note-wrap { display: block; position: absolute; right: 48px; top: 64px; }
}
.margin-note-arrow { display: block; margin-top: 4px; width: 56px; height: 36px; color: var(--wand); }

/* Hub opener (page hero) */
.page-hero { position: relative; border-bottom: 1px solid var(--line); padding: 64px 0; overflow: hidden; }
@media (min-width: 768px) { .page-hero { padding: 96px 0; } }
.page-hero h1 { margin-top: 24px; max-width: 64rem; }
.page-hero .intro { margin-top: 32px; max-width: 42rem; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
@media (min-width: 768px) { .page-hero .intro { font-size: 20px; } }
.page-hero .actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Tool stage (where the case study puts its cover image) ---------- */

.tool-stage { padding: 40px 0 80px; scroll-margin-top: 96px; }
@media (min-width: 768px) { .tool-stage { padding: 56px 0 112px; } }
.tool-frame {
  background: var(--band);
  border-radius: var(--radius-card);
  padding: 32px 16px;
}
@media (min-width: 640px) { .tool-frame { padding: 48px 32px; } }
@media (min-width: 1024px) { .tool-frame { padding: 64px 48px; } }
.tool-area { display: flex; flex-direction: column; align-items: center; width: 100%; }
.tool-area > * { width: 100%; }

/* ---------- How it works: numbered steps ---------- */

.flow {
  margin-top: 40px;
  display: grid;
  gap: 1px;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--line);
}
@media (min-width: 640px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.flow li { display: flex; align-items: flex-start; gap: 20px; background: var(--paper); padding: 28px; }
.flow .n { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: rgba(124, 58, 237, 0.7); }
.flow p { padding-top: 4px; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; color: var(--ink); }

/* ---------- FAQ: sticky label on the left, answers on the right ---------- */

.faq-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: 220px minmax(0, 1fr); } }
.faq-layout .side { display: none; }
@media (min-width: 1024px) { .faq-layout .side { display: block; } .faq-layout .side > * { position: sticky; top: 112px; } }
.faq-layout h2 { color: var(--ink); }

.faq-container { max-width: 48rem; }
.faq-container > h2 { display: none; }
.faq-grid, .faq-accordion { display: block; margin-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .faq-grid, .faq-accordion { margin-top: 0; } }
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-question, .faq-summary {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
}
details.faq-item .faq-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
}
details.faq-item .faq-summary::-webkit-details-marker { display: none; }
details.faq-item .faq-summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 1;
  color: var(--wand);
  transition: transform 0.3s;
}
details.faq-item[open] .faq-summary::after { transform: rotate(45deg); }
.faq-answer { margin-top: 12px; max-width: 42rem; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.faq-answer strong { color: var(--ink); font-weight: 600; }
.faq-answer a { color: var(--wand-deep); }

/* ---------- Email capture ("get the next one") ---------- */

.notify { display: grid; gap: 40px; }
@media (min-width: 1024px) { .notify { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 64px; } }
.notify h2 { margin-top: 24px; color: var(--ink); }
.notify .lead { margin-top: 20px; max-width: 32rem; font-size: 18px; line-height: 1.65; color: var(--ink-2); }

.email-capture-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.email-capture-section > h3, .email-capture-section > p { display: none; }
.email-capture-section form { display: block; }
.email-capture-section .input-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .email-capture-section .input-row { flex-direction: row; } }
.email-capture-section input[type="email"] {
  flex: 1;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(20, 18, 16, 0.15);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.email-capture-section input[type="email"]::placeholder { color: var(--ink-3); }
.email-capture-section input[type="email"]:focus { border-color: var(--wand); }
.email-capture-section button[type="submit"] {
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}
.email-capture-section button[type="submit"]:hover { background: var(--wand); }
.email-capture-section button[type="submit"]:disabled { opacity: 0.5; cursor: wait; }
.email-capture-section .blurb-container { display: flex; flex-direction: column; gap: 12px; }
.email-capture-section .blurb-label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.email-capture-section .blurb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.email-capture-section .blurb-pill {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.email-capture-section .blurb-pill:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.email-capture-section .blurb-pill.active { border-color: var(--ink); background: var(--ink); color: var(--paper); box-shadow: none; }
.email-capture-section .success-message {
  padding: 20px 24px;
  border-radius: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  text-align: left;
}

/* ---------- Next tool ---------- */

.next-tool { border-bottom: 1px solid var(--line); }
.next-tool a {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 64px 0;
  color: var(--ink);
  text-decoration: none;
}
@media (min-width: 768px) { .next-tool a { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 96px 0; } }
.next-tool .label { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.next-tool .name { margin-top: 16px; font-family: var(--font-display); color: var(--ink); transition: color 0.3s; }
.next-tool a:hover .name { color: var(--wand-deep); }
.round-arrow {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  transition: background-color 0.3s, color 0.3s;
}
.round-arrow svg { width: 26px; height: 26px; transition: transform 0.3s; }
.next-tool a:hover .round-arrow { background: var(--ink); color: var(--paper); }
.next-tool a:hover .round-arrow svg { transform: rotate(-45deg); }

/* ---------- Closing call to action ---------- */

.closing { padding: 80px 0; }
@media (min-width: 768px) { .closing { padding: 112px 0; } }
.closing .panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--ink);
  color: var(--paper);
  padding: 56px 28px;
}
@media (min-width: 768px) { .closing .panel { padding: 80px 64px; } }
.closing .orbit { position: absolute; right: -64px; bottom: -64px; width: 224px; height: 224px; opacity: 0.25; pointer-events: none; }
@media (min-width: 768px) { .closing .orbit { right: -40px; top: -96px; bottom: auto; width: 416px; height: 416px; opacity: 0.3; } }
.closing .copy { position: relative; max-width: 48rem; }
.closing h2 { color: var(--paper); }
.closing p { margin-top: 24px; max-width: 36rem; font-size: 18px; line-height: 1.65; color: rgba(255, 252, 248, 0.7); }
.closing .actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.closing .note { font-family: var(--font-hand); font-size: 1.5rem; color: var(--lilac); transform: rotate(-3deg); }

/* ---------- Tool cards on the hub ---------- */

.tool-list { margin-top: 56px; display: grid; gap: 80px 40px; }
@media (min-width: 768px) { .tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tool-list > :nth-child(even) { margin-top: 96px; } }
.tool-card-v2 { display: block; color: var(--ink); text-decoration: none; }
.tool-cover {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 3;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--band);
  padding: 28px;
  transition: transform 0.7s var(--ease-out);
}
.tool-card-v2:hover .tool-cover { transform: scale(0.985); }
.tool-cover.hatch { background-image: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(124, 58, 237, 0.06) 10px 11px); }
.tool-cover.ink { background: var(--ink); color: var(--paper); }
.tool-cover.lilac { background: var(--lilac); }
.tool-cover .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.tool-cover.ink .tag { color: rgba(255, 252, 248, 0.5); }
.tool-cover .title { position: relative; max-width: 26rem; }
.tool-cover .name { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 400; color: inherit; transition: color 0.3s; }
.tool-card-v2:hover .tool-cover .name { color: var(--wand-deep); }
.tool-card-v2:hover .tool-cover.ink .name { color: var(--lilac); }
.tool-cover .line { margin-top: 12px; font-family: var(--font-display); font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.3; color: var(--ink-2); }
.tool-cover.ink .line { color: rgba(255, 252, 248, 0.7); }
/* 3D icon from 3dicons.co (CC0). Every card gets one: see ADDING-TOOLS-SOP.md. */
.tool-cover .icon {
  position: absolute;
  right: 6%;
  top: 8%;
  width: 46%;
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(20, 18, 16, 0.14));
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
@media (max-width: 639px) {
  .tool-cover { aspect-ratio: 1 / 1; }
  .tool-cover .icon { width: 42%; top: 10%; }
}
.tool-card-v2:hover .tool-cover .icon { transform: translateY(-6px) rotate(-4deg); }
.tool-meta { margin-top: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.tool-meta .kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.tool-meta .kicker .num { color: var(--wand); }
.tool-meta .kicker .slash { margin: 0 8px; color: var(--line); }
.tool-meta h3 { margin-top: 12px; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; color: var(--ink); transition: color 0.3s; }
.tool-card-v2:hover .tool-meta h3 { color: var(--wand-deep); }
.tool-meta p:not(.kicker) { margin-top: 12px; max-width: 36rem; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.tool-meta .round-arrow { margin-top: 2px; width: 44px; height: 44px; border-color: var(--line); }
.tool-meta .round-arrow svg { width: 18px; height: 18px; }
.tool-card-v2:hover .tool-meta .round-arrow { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tool-card-v2:hover .tool-meta .round-arrow svg { transform: rotate(-45deg); }

/* ---------- Footer ---------- */

.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.site-footer .inner { padding-top: 80px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; } }
.footer-brand { grid-column: span 2; }
@media (min-width: 1024px) { .footer-brand { grid-column: span 1; } }
.site-footer .wordmark { color: var(--paper); }
.footer-brand p { margin-top: 24px; max-width: 24rem; font-size: 16px; line-height: 1.65; color: rgba(255, 252, 248, 0.7); }
.footer-brand .mail { display: inline-flex; min-height: 44px; align-items: center; margin-top: 24px; font-family: var(--font-display); font-size: 1.5rem; color: var(--paper); text-decoration: none; }
.footer-brand .mail:hover { color: var(--lilac); }
.footer-col .head { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 252, 248, 0.4); }
.footer-col ul { list-style: none; margin-top: 12px; }
@media (min-width: 1024px) { .footer-col ul { margin-top: 20px; } .footer-col li + li { margin-top: 12px; } }
.footer-col a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; color: rgba(255, 252, 248, 0.7); text-decoration: none; }
@media (min-width: 1024px) { .footer-col a { min-height: 0; } }
.footer-col a:hover { color: var(--paper); }
.footer-col a[aria-current="page"] { color: var(--paper); }
.footer-giant { margin-top: 80px; overflow: hidden; user-select: none; }
.footer-giant p { white-space: nowrap; font-family: var(--font-display); font-size: clamp(2rem, 8.6vw, 8rem); line-height: 0.85; letter-spacing: -0.02em; color: rgba(255, 252, 248, 0.07); }
.footer-bottom { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid rgba(255, 252, 248, 0.1); padding-top: 24px; font-size: 12px; color: rgba(255, 252, 248, 0.5); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-bottom .hand { font-family: var(--font-hand); font-size: 1.25rem; color: var(--lilac); }
.footer-disclaimer { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .closing, .next-tool, .notify-section, .margin-note-wrap { display: none !important; }
  .tool-frame { background: none; padding: 0; }
}
