/**
 * styles.css — the marketing site.
 *
 * Mirrors the light-mode tokens of the `tattoo-labs` theme in
 * `web/src/design-tokens/themes.js` (the dashboard/portal's source of truth)
 * by hand, hex-for-hex, because this is a separate static Worker with no
 * build step and no import of that JS module. If that file's light values
 * change, update the values below to match — nothing enforces the two
 * staying in sync automatically.
 *
 * Light only: a first-time visitor should see the same clean, white product
 * they'll sign in to. The dashboard behind "Sign in" still offers
 * light/dark/system.
 *
 * Inter is self-hosted and loads via a <link> to /fonts/fonts.css in each
 * page's <head>, not a CSS @import here — a @import blocks on top of this
 * file's own request instead of loading in parallel with it.
 */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --subtle: #f7f7f8;
  --text: #18181b;
  --muted: #5f5f6a;
  --accent: #5b5bd6;
  --accent-hover: #4f4fc4;
  --accent-subtle: #eeeefc;
  --on-accent: #ffffff;
  --border: #e4e4e7;
  --border-strong: #8b8b96;
  --focus-ring: #5b5bd6;
  --ring: rgba(91, 91, 214, 0.28);
  --danger: #c7282e;
  --success: #18794e;
  --success-tint: #e9f6ee;
  --warning: #a35200;
  --warning-tint: #fff4e0;
  --radius: 12px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --control-lg: 44px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 24, 0.05);
  --shadow: 0 1px 3px rgba(16, 16, 24, 0.06), 0 1px 2px rgba(16, 16, 24, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(16, 16, 24, 0.18), 0 8px 16px -8px rgba(16, 16, 24, 0.08);

  --font-display: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Segoe UI Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-feature-settings: 'cv11', 'ss01';
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.center { align-items: center; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3vw, 36px); font-family: var(--font-display); }
p { margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; }

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.375rem, 1.6rem + 2.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
}

a { color: inherit; }
/* Links are underlined (softly, in a tint of the accent) wherever they sit
   in running text, so they're never distinguished by colour alone — WCAG
   1.4.1. Standalone navigation-style links (card titles, the badge) opt out
   below. */
main a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(91, 91, 214, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
main a:not(.btn):hover { text-decoration-color: currentColor; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font: 500 14.5px/1 var(--font-body);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover { background: var(--subtle); border-color: var(--border-strong); }
.btn:focus-visible { outline: none; border-color: var(--focus-ring); box-shadow: 0 0 0 3px var(--ring); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: none; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(24, 24, 27, 0.05); border-color: transparent; }
.btn-lg { height: var(--control-lg); padding: 0 22px; font-size: 15.5px; }

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

.site-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

/*
 * Positioned above the document's own top edge (negative `top`, anchored to
 * the initial containing block, not the viewport) so it is unreachable by
 * normal scrolling — scrollTop can't go negative. The elastic overscroll
 * bounce macOS/iOS trigger when you scroll past the top temporarily reveals
 * area above that edge, which is the only way this becomes visible. Height
 * is generous so even an aggressive scroll gesture stays inside it.
 */
.overscroll-fill {
  position: absolute;
  top: -600px;
  left: 0;
  right: 0;
  height: 600px;
  background: var(--subtle);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { border-radius: var(--radius-md); display: block; }
.nav { gap: 4px; }
.nav a:not(.btn) { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 8px 10px; border-radius: var(--radius-md); }
.nav a:not(.btn):hover { color: var(--text); background: rgba(24, 24, 27, 0.04); }
.nav .btn { margin-left: 4px; }

/* --- Hero: copy left, a product preview right --------------------------- */

.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}
/* A faint grid and an accent glow behind the product preview — depth
   without photography. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(91, 91, 214, 0.14), transparent 70%),
    linear-gradient(to right, rgba(24, 24, 27, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(24, 24, 27, 0.04) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero .lead { margin-top: 20px; }
.hero-cta { margin: 32px 0 20px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--muted); margin: 0; }

/* Small rounded pill above the headline. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
main a.badge { color: var(--muted); text-decoration: none; }
main a.badge:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text); }
.badge-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

/* --- Product preview (pure HTML/CSS — a picture of the dashboard, hidden
   from assistive tech since it's illustrative, not content) ------------- */

.mock {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  user-select: none;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--subtle); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d4d8; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.mock-side { border-right: 1px solid var(--border); background: var(--subtle); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.mock-side span { padding: 6px 8px; border-radius: 6px; color: var(--muted); font-weight: 500; }
.mock-side span.on { background: var(--accent-subtle); color: var(--accent); }
.mock-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stat { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.mock-stat b { display: block; font-size: 18px; font-weight: 600; }
.mock-stat small { color: var(--muted); font-size: 10.5px; }
.mock-card { border: 1px solid var(--border); border-radius: 8px; box-shadow: inset 0 2px 0 var(--accent); padding: 10px; }
.mock-card-title { font-weight: 600; margin-bottom: 6px; }
.mock-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); }
.mock-row:first-of-type { border-top: none; }
.mock-row span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-pill { padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 500; }
.mock-pill.ok { background: var(--success-tint); color: var(--success); }
.mock-pill.wait { background: var(--warning-tint); color: var(--warning); }

/* Small uppercase label above a section heading. */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .lead { margin: 0; font-size: 17px; }
.section-head.center .lead { margin: 0 auto; }

/* --- Features ----------------------------------------------------------- */

.features { padding: 96px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.section-head + .feature-grid { margin-top: 0; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--accent-subtle);
  color: var(--accent);
}
.feature-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; font-family: var(--font-body); }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }
.feature-card ul { margin: 0; padding-left: 18px; font-size: 15px; }
.feature-card li + li { margin-top: 8px; }

/* Feature card titles link to their feature page. */
main .feature-card h3 a { color: var(--text); text-decoration: none; }
main .feature-card h3 a:hover { color: var(--accent); text-decoration: none; }

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

.how { padding: 96px 0; background: var(--subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; counter-reset: step; }
.how-steps li { counter-increment: step; }
.how-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 14px;
}
.how-steps h3 { font-size: 17px; }
.how-steps p { color: var(--muted); margin: 0; font-size: 15px; }

/* Homepage guides and comparisons, between features and pricing. */
.resources { padding: 96px 0; }

/* --- Pricing ------------------------------------------------------------ */

.pricing { padding: 96px 0 104px; background: var(--subtle); border-top: 1px solid var(--border); }
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.pricing-card .btn { width: 100%; margin-top: 8px; }
.pricing-card .small { margin: 0; }
.pricing-card .pricing-foot { margin-top: 12px; text-align: center; }
.pricing-name { font-weight: 600; font-size: 15px; margin: 0; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem);
  letter-spacing: -0.03em;
  color: var(--text);
}
.price-period { color: var(--muted); font-size: 16px; }
.checklist { list-style: none; margin: 24px 0; padding: 24px 0 0; border-top: 1px solid var(--border); display: grid; gap: 12px; font-size: 15px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before {
  content: '✓';
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg);
}
.footer-links { gap: 20px; flex-wrap: wrap; }
/* Company/trading-name disclosure line under the footer links. */
.legal-entity { margin: 16px 0 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/*
 * Long-form pages: the legal pages (.legal) and the feature, pricing and FAQ
 * pages (.article). Long-form reading, so a narrower measure and more
 * generous spacing than the landing page.
 */
.legal, .article { padding: 64px 0 96px; }
.legal .wrap, .article .wrap { max-width: 760px; }
.legal h1, .article h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 12px; }
.legal h2, .article h2 { margin: 48px 0 12px; font-size: clamp(21px, 2.4vw, 26px); }
.legal h3, .article h3 { margin: 28px 0 8px; font-size: 17px; font-weight: 600; font-family: var(--font-body); }
.legal p, .legal li, .article p, .article li { color: #3f3f46; font-size: 16px; }
.legal ul, .legal ol, .article ul, .article ol { padding-left: 22px; margin: 0 0 16px; }
.legal li, .article li { margin-bottom: 6px; }
.legal table, .article table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14.5px; }
.legal th, .legal td, .article th, .article td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); }
.legal th, .article th { color: var(--muted); font-weight: 500; }
.legal .table-scroll, .article .table-scroll { overflow-x: auto; }
/* Comparison tables: a row label column, then one column per product. */
.article tbody th { width: 28%; }
.article .lead { margin: 0 0 8px; font-size: 19px; }

/* Copyable template text in guides: keeps its line breaks, scrolls rather than overflows on a phone. */
.article .template {
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 0 0 16px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.guide-list { margin-top: 32px; }

/* The closing call to action on every feature, pricing and FAQ page. */
.cta-band {
  margin-top: 56px;
  padding: 36px;
  background: var(--accent-subtle);
  border: 1px solid #dcdcf8;
  border-radius: var(--radius-lg);
}
.cta-band h2 { margin-top: 0; }
.cta-band .row { flex-wrap: wrap; margin-top: 8px; }

/* Full-width closing band on the homepage. */
.final-cta { padding: 96px 0; }
.final-cta .cta-band { margin: 0; padding: 56px 32px; text-align: center; }
.final-cta .cta-band .row { justify-content: center; }
.final-cta .lead { margin: 0 auto 8px; }

/* FAQ entries: native <details>, so they open without any script. */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 16.5px; }
.faq-item summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 4px; }
.faq-item p { margin: 12px 0 0; color: var(--muted); }

/* Analytics consent banner (built by main.js). Floats over the bottom of
   the page rather than pushing content, and never wider than the reading
   column so it doesn't read as a full-width wall. */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.consent-banner p { margin: 0; color: var(--muted); font-size: 14.5px; }
.consent-banner p a { color: var(--accent); }
.consent-banner .row { justify-content: flex-end; }
.consent-banner .btn { height: 36px; font-size: 14px; }

/* "Cookie settings" in the footer: a button styled like its sibling links. */
.link-button { background: none; border: 0; padding: 0; font-family: inherit; line-height: inherit; cursor: pointer; }
.link-button:hover { color: var(--text); }
.link-button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

/* Founding member application form (founding-members.html). Inputs share
   the app's field recipe so the form reads as part of the product. */
.apply-form { margin-top: 24px; }
.apply-form[hidden] { display: none; } /* .stack would otherwise override [hidden] */
.apply-form .field { display: flex; flex-direction: column; gap: 6px; }
.apply-form label { font-size: 14px; font-weight: 500; }
.apply-form .optional { color: var(--muted); font-weight: 400; }
.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  min-height: var(--control-lg);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming in on focus */
}
.apply-form input:hover, .apply-form select:hover, .apply-form textarea:hover { border-color: var(--border-strong); }
.apply-form textarea { min-height: 120px; resize: vertical; }
.apply-form input:focus-visible,
.apply-form select:focus-visible,
.apply-form textarea:focus-visible { outline: none; border-color: var(--focus-ring); box-shadow: 0 0 0 3px var(--ring); }
.apply-form .field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apply-form .btn { align-self: flex-start; cursor: pointer; }
.apply-form .btn:disabled { opacity: 0.6; cursor: progress; }
/* The honeypot: off-screen rather than display:none, which some bots skip. */
.apply-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 14.5px; }
.form-status.is-error { color: var(--danger); }
.form-done { margin: 16px 0 0; }

/* Confirmation modal (native <dialog>), opened once the form has left. */
.confirm-modal {
  width: min(440px, calc(100% - 32px));
  padding: 0; /* on .confirm-body, so a click on the dialog itself is the backdrop */
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.confirm-body { padding: 32px; }
.confirm-modal::backdrop { background: rgba(16, 16, 24, 0.4); backdrop-filter: blur(4px); }
.confirm-modal h2 { margin: 16px 0 8px; font-size: 22px; }
.confirm-modal p { margin: 0; font-size: 15px; color: var(--muted); }
.confirm-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.confirm-actions { justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.confirm-actions .btn { cursor: pointer; }

@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .apply-form .field-pair { grid-template-columns: 1fr; }
  .nav a:not(.btn-primary):not(.btn-ghost) { display: none; }
  .site-footer .row-between { flex-direction: column; gap: 12px; align-items: flex-start; }
  .features, .how, .resources, .pricing, .final-cta { padding: 64px 0; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .pricing-card { padding: 28px 22px; }
  .final-cta .cta-band { padding: 40px 20px; }
}

/* Motion, restrained and reduced-motion-safe. */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 120ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
  .btn:active { transform: translateY(1px); }
  .feature-card { transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
  .feature-card:hover { border-color: #d4d4d8; box-shadow: var(--shadow); }

  /* Consent banner: rises in once the page has settled (the delay keeps it
     from competing with first paint), its text and buttons following a beat
     behind, and drops away quickly once answered. Reopening it from the
     footer is a direct response to a click, so it skips the delay.
     `backwards` holds the first keyframe through the delay so the banner
     doesn't flash in at full opacity before animating. */
  .consent-banner { animation: consent-rise 560ms cubic-bezier(0.16, 1, 0.3, 1) 700ms backwards; }
  .consent-banner > * { animation: consent-fade 420ms ease-out backwards; }
  .consent-banner > p { animation-delay: 820ms; }
  .consent-banner > .row { animation-delay: 900ms; }
  .consent-banner.is-reopened,
  .consent-banner.is-reopened > * { animation-delay: 0ms; }
  .consent-banner.is-leaving { animation: consent-drop 220ms ease-in forwards; }

  /* Founding member form: once sent, the form folds away and the
     confirmation modal rises out of the same spot — the check mark
     popping in a beat behind. Closing reverses the modal quickly. */
  .apply-form.is-leaving { animation: form-leave 380ms cubic-bezier(0.4, 0, 1, 1) forwards; }
  .form-done:not([hidden]) { animation: consent-fade 420ms ease-out backwards; }
  .confirm-modal[open] { animation: modal-rise 520ms cubic-bezier(0.16, 1, 0.3, 1); }
  .confirm-modal[open]::backdrop { animation: backdrop-in 320ms ease-out; }
  .confirm-modal[open] .confirm-check { animation: check-pop 480ms cubic-bezier(0.34, 1.56, 0.64, 1) 160ms backwards; }
  .confirm-modal[open] .confirm-body > :not(.confirm-check) { animation: consent-fade 420ms ease-out 220ms backwards; }
  .confirm-modal.is-closing { animation: consent-drop 200ms ease-in forwards; }
  .confirm-modal.is-closing::backdrop { animation: backdrop-in 200ms ease-in reverse forwards; }
}

@keyframes form-leave {
  to { opacity: 0; transform: translateY(-12px) scale(0.96); filter: blur(4px); }
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(32px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes check-pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: none; }
}

@keyframes consent-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes consent-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes consent-drop {
  to { opacity: 0; transform: translateY(16px) scale(0.98); }
}
