/* ==========================================================================
   InnovaPrint — Home page styles
   Ported from the InnovaPrint Home.dc.html design system.
   Layout is driven by inline styles on the elements (matching the design);
   this file holds the design tokens, keyframes, responsive rules and the
   base element styling.
   ========================================================================== */

:root {
  --bg:#0B0D12; --bg2:#14161C; --surface:#171A21; --surface2:#1E222B; --card:#161922;
  --border:rgba(255,255,255,.09); --border2:rgba(255,255,255,.15);
  --text:#F4F5F7; --muted:#9BA1AD; --muted2:#6B7280;
  --blue:#2F6FED; --blue-soft:rgba(47,111,237,.16);
  --coral:#FF5A36; --yellow:#FFC93C; --magenta:#E5386D;
  --glass:rgba(13,15,21,.55); --shadow:0 22px 60px -26px rgba(0,0,0,.75);
  --radius:16px;
}
[data-innova-theme="light"] {
  --bg:#FAFBFF; --bg2:#F0F3FA; --surface:#FFFFFF; --surface2:#EDF1F9; --card:#FFFFFF;
  --border:rgba(16,19,26,.10); --border2:rgba(16,19,26,.16);
  --text:#10131A; --muted:#5A6272; --muted2:#8A93A3;
  --glass:rgba(255,255,255,.60);
  --shadow:0 26px 60px -28px rgba(24,39,75,.28);
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,sans-serif;
  font-size:16px;
  line-height:1.6;
  overflow-x:clip; /* clip (not hidden) so it doesn't break position:sticky */
  transition:background .3s ease,color .3s ease;
}
a { color:var(--blue); text-decoration:none; transition:color .18s ease,opacity .18s ease; }
a:hover { color:var(--coral); }
::selection { background:var(--coral); color:#fff; }

button { font-family:inherit; }

/* Wordmark — "InnovaPrint" painted with the logo's magenta->blue gradient.
   Falls back to a solid blue where background-clip:text isn't supported. */
.wordmark { color:var(--blue); }
@supports ((-webkit-background-clip:text) or (background-clip:text)) {
  .wordmark {
    background:linear-gradient(100deg, var(--magenta) 10%, var(--blue) 90%);
    -webkit-background-clip:text; background-clip:text;
    -webkit-text-fill-color:transparent; color:transparent;
  }
}

/* --- Header interactions ------------------------------------------------- */
/* Brand logo: gentle lift on hover */
.brand img { transition:transform .2s cubic-bezier(.16,1,.3,1); }
.brand:hover img { transform:scale(1.06) rotate(-2deg); }

/* Nav links: gradient underline that slides in on hover, stays for active */
.nav-link { position:relative; padding:8px 12px; border-radius:9px; font-size:14px; font-weight:500; white-space:nowrap; color:var(--muted); transition:color .18s ease, background .18s ease; }
.nav-link:hover { color:var(--text); background:var(--surface); }
.nav-link.is-active { color:var(--blue); }
.nav-link::after { content:""; position:absolute; left:12px; right:12px; bottom:3px; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--magenta),var(--blue)); transform:scaleX(0); transform-origin:center; transition:transform .22s cubic-bezier(.16,1,.3,1); }
.nav-link:hover::after, .nav-link.is-active::after { transform:scaleX(1); }

/* Header icon buttons */
.hdr-icon { width:40px; height:40px; border-radius:11px; border:1px solid var(--border); background:var(--surface); color:var(--text); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:border-color .15s ease, color .15s ease, transform .15s ease; }
.hdr-icon:hover { border-color:var(--blue); color:var(--blue); transform:translateY(-1px); }

/* Header CTA: gradient fill, hover lift, arrow nudge + a slow shine sweep */
.header-cta { position:relative; overflow:hidden; border:none; background:linear-gradient(120deg,var(--coral),var(--magenta)); color:#fff; font-family:Inter,sans-serif; font-weight:600; font-size:14.5px; padding:11px 20px; border-radius:11px; cursor:pointer; white-space:nowrap; display:inline-flex; align-items:center; gap:8px; box-shadow:0 10px 24px -10px var(--magenta); transition:transform .15s ease, box-shadow .15s ease; }
.header-cta:hover { transform:translateY(-2px); box-shadow:0 16px 32px -12px var(--magenta); }
.header-cta > svg { transition:transform .15s ease; }
.header-cta:hover > svg { transform:translateX(3px); }
.header-cta::after { content:""; position:absolute; top:-30%; left:-140%; width:55%; height:160%; background:linear-gradient(100deg,transparent,rgba(255,255,255,.42),transparent); transform:skewX(-18deg); animation:ctaShine 5s ease-in-out infinite; }
@keyframes ctaShine { 0%,55% { left:-140%; } 80%,100% { left:150%; } }

/* Legal pages (privacy / terms) — readable long-form prose */
.legal { max-width:820px; margin:0 auto; padding:clamp(48px,7vw,88px) clamp(16px,4vw,40px); }
.legal .updated { font-family:'Space Mono',monospace; font-size:12.5px; color:var(--muted2); letter-spacing:.04em; }
.legal h2 { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:clamp(20px,2.4vw,26px); letter-spacing:-.01em; margin:38px 0 12px; color:var(--text); }
.legal p, .legal li { color:var(--muted); font-size:15.5px; line-height:1.75; }
.legal p { margin:0 0 14px; }
.legal ul { padding-left:22px; margin:10px 0 16px; }
.legal li { margin:6px 0; }
.legal li::marker { color:var(--blue); }
.legal a { color:var(--blue); font-weight:600; }
.legal strong { color:var(--text); }

/* Back-to-top — appears once scrolled; sits above the mobile bottom nav */
.back-to-top {
  position:fixed; right:clamp(16px,4vw,28px); bottom:24px; z-index:50;
  width:46px; height:46px; border-radius:50%;
  border:1px solid var(--border2); background:var(--glass);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  color:var(--text); cursor:pointer; display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow);
  opacity:0; transform:translateY(14px) scale(.9); pointer-events:none;
  transition:opacity .25s ease, transform .25s cubic-bezier(.16,1,.3,1), border-color .15s ease, color .15s ease;
}
.back-to-top.is-visible { opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.back-to-top:hover { border-color:var(--blue); color:var(--blue); transform:translateY(-2px) scale(1.05); }
@media (max-width:920px) { .back-to-top { bottom:76px; width:44px; height:44px; } }

/* --- Admin: media picker, image fields, media library ------------------- */
#media-picker[hidden] { display:none; }
#media-picker { position:fixed; inset:0; z-index:100; }
.mp-overlay { position:absolute; inset:0; background:rgba(6,8,12,.7); backdrop-filter:blur(4px); }
.mp-panel { position:relative; max-width:760px; margin:6vh auto; max-height:82vh; display:flex; flex-direction:column; background:var(--bg); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow); overflow:hidden; }
.mp-head { display:flex; align-items:center; gap:14px; padding:18px 22px; border-bottom:1px solid var(--border); }
.mp-head strong { font-family:'Space Grotesk',sans-serif; font-size:17px; }
.mp-upload { margin-left:auto; background:var(--coral); color:#fff; font-weight:600; font-size:13.5px; padding:9px 15px; border-radius:10px; cursor:pointer; }
.mp-close { border:1px solid var(--border2); background:var(--surface); color:var(--text); width:36px; height:36px; border-radius:10px; cursor:pointer; font-size:20px; line-height:1; }
.mp-msg { padding:10px 22px; font-size:13.5px; color:var(--muted); }
.mp-grid { padding:20px 22px; overflow-y:auto; display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:18px; align-content:start; }
.mp-item { position:relative; display:block; padding:0; border:1px solid var(--border); border-radius:12px; overflow:hidden; cursor:pointer; background:var(--card); height:130px; transition:border-color .15s ease, transform .15s ease; }
.mp-item:hover { border-color:var(--blue); transform:translateY(-2px); }
.mp-item img, .mp-item video { width:100%; height:100%; object-fit:cover; display:block; }
.mp-badge, .media-badge { position:absolute; bottom:6px; right:6px; font-family:'Space Mono',monospace; font-size:10px; background:rgba(0,0,0,.62); color:#fff; padding:2px 7px; border-radius:6px; }
.media-badge { left:8px; right:auto; bottom:8px; }
.mp-empty { color:var(--muted); font-size:14px; grid-column:1/-1; }

.imgfield { display:flex; align-items:center; gap:12px; }
.imgfield-preview { width:64px; height:64px; border-radius:10px; border:1px solid var(--border2); background:var(--surface); overflow:hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.imgfield-preview.is-empty::after { content:"—"; color:var(--muted2); }
.imgfield-preview img, .imgfield-preview video { width:100%; height:100%; object-fit:cover; }

.media-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:20px; margin-top:22px; }
.media-card { position:relative; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--card); aspect-ratio:1; }
.media-card img, .media-card video { width:100%; height:100%; object-fit:cover; display:block; }
.media-card .del { position:absolute; top:8px; right:8px; width:30px; height:30px; border-radius:8px; border:none; background:rgba(0,0,0,.6); color:#fff; cursor:pointer; opacity:0; transition:opacity .15s ease; }
.media-card:hover .del { opacity:1; }
.dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border:2px dashed var(--border2); border-radius:16px; padding:44px 24px; text-align:center; color:var(--muted); cursor:pointer; transition:border-color .15s ease, background .15s ease; }
.dropzone:hover, .dropzone.drag { border-color:var(--blue); background:var(--blue-soft); }

/* generic content editor cards */
.ed-card { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:20px; box-shadow:var(--shadow); margin-bottom:16px; }
.ed-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.ed-grid.ed-images { margin-top:14px; }
.ed-field { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:600; }
.ed-field input, .ed-field textarea, .ed-field select { border:1.5px solid var(--border2); background:var(--surface); color:var(--text); border-radius:10px; padding:10px 12px; font-family:Inter,sans-serif; font-size:14.5px; outline:none; }
.ed-field textarea { resize:vertical; }
.ed-check { display:inline-flex; align-items:center; gap:8px; font-size:13.5px; font-weight:600; color:var(--muted); }
.ed-check input { width:16px; height:16px; accent-color:var(--blue); }
.ed-actions { display:flex; align-items:center; gap:8px; margin-top:16px; flex-wrap:wrap; }
.ed-btn { border:1px solid var(--border2); background:var(--surface); color:var(--text); font-family:Inter,sans-serif; font-weight:600; font-size:13.5px; padding:9px 14px; border-radius:10px; cursor:pointer; }
.ed-btn.ed-save { border:none; background:var(--coral); color:#fff; }
.ed-btn.ed-del { color:var(--coral); }
.ed-msg { display:block; margin-top:10px; font-size:13px; font-weight:600; }

/* Reveal-on-scroll */
[data-reveal] {
  opacity:0; transform:translateY(26px);
  transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .7s cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-in { opacity:1; transform:none; }

/* --- Home stats: creative animated counters ----------------------------- */
.stats-strip {
  max-width:1240px; margin:0 auto;
  padding:clamp(44px,6vw,68px) clamp(16px,4vw,40px);
  display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:20px;
}
.stat-card {
  position:relative; overflow:hidden; text-align:center;
  padding:34px 22px 28px; border:1px solid var(--border); border-radius:20px;
  background:var(--card); box-shadow:var(--shadow);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease,
             opacity .7s cubic-bezier(.16,1,.3,1);
}
.stat-card::before { content:""; position:absolute; top:0; left:0; right:0; height:4px;
  background:linear-gradient(90deg,var(--acc),var(--acc2)); }
.stat-card::after { content:""; position:absolute; top:-55%; right:-40%;
  width:80%; height:150%; background:radial-gradient(circle,var(--acc),transparent 68%);
  opacity:.14; pointer-events:none; }
.stat-card:hover { transform:translateY(-6px); border-color:var(--acc);
  box-shadow:0 30px 60px -28px var(--acc); }
.stat-num {
  display:block; font-family:'Space Grotesk',sans-serif; font-weight:700;
  font-size:clamp(42px,5.4vw,60px); letter-spacing:-.03em; line-height:1;
  background:linear-gradient(120deg,var(--acc),var(--acc2));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.stat-label { display:block; margin:13px auto 0; max-width:24ch;
  font-size:14.5px; line-height:1.45; color:var(--muted); }

/* --- Process / how-it-works: connected timeline ------------------------- */
.process-steps { position:relative; display:flex; flex-direction:column; }
.pstep { position:relative; display:flex; gap:18px; align-items:flex-start; padding-bottom:22px; }
.pstep::before { content:""; position:absolute; left:22px; top:0; bottom:0; width:2px; z-index:0;
  background:linear-gradient(180deg,rgba(47,111,237,.45),rgba(229,56,109,.4)); }
.pstep:first-of-type::before { top:23px; }
.pstep:last-of-type { padding-bottom:0; }
.pstep:last-of-type::before { bottom:auto; height:23px; }
.pstep-num {
  position:relative; z-index:1; flex-shrink:0; width:46px; height:46px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:18px; color:#fff;
  background:linear-gradient(135deg,var(--magenta),var(--blue));
  box-shadow:0 12px 26px -10px rgba(47,111,237,.7);
}
.pstep-body {
  flex:1; min-width:0; background:var(--card); border:1px solid var(--border);
  border-radius:16px; padding:17px 20px; box-shadow:var(--shadow);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pstep-body h3 { font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:17px; margin:0; letter-spacing:-.01em; }
.pstep-body p { margin:5px 0 0; font-size:14px; line-height:1.5; color:var(--muted); }
.pstep:hover .pstep-body { transform:translateX(5px); border-color:var(--blue);
  box-shadow:0 22px 44px -26px var(--blue); }
.pstep.is-active .pstep-num { background:linear-gradient(135deg,var(--coral),var(--magenta));
  box-shadow:0 0 0 5px rgba(255,90,54,.16), 0 12px 26px -10px var(--coral); }
.pstep.is-active .pstep-body { border-color:var(--coral); box-shadow:0 22px 44px -26px var(--coral); }

/* --- Interactive process stepper (surfaces page) ------------------------- */
/* The wall prints itself: advancing a step inks the rail and wipes a real
   finished mural down over the bare-wall hatch, with the print head riding the
   ink boundary. Scoped to .proc-* so the home timeline (.pstep) is untouched. */
.proc { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.85fr); gap:clamp(28px,4vw,56px); align-items:start; }
.proc-rail { position:relative; display:flex; flex-direction:column; gap:6px; }
/* Dashed = not yet printed; the ink overlay fills in behind the active step.
   33px = the num's centre (10px button padding + 23px radius). */
.proc-track { position:absolute; z-index:0; left:22px; top:33px; bottom:33px; width:2px;
  background:repeating-linear-gradient(180deg,var(--border2) 0 5px,transparent 5px 11px); }
.proc-ink { position:absolute; left:-1px; top:0; width:4px; height:0; border-radius:2px;
  background:linear-gradient(180deg,var(--blue),var(--magenta));
  box-shadow:0 0 14px -1px rgba(47,111,237,.75); transition:height .55s cubic-bezier(.22,1,.36,1); }
.proc-step {
  position:relative; display:flex; gap:18px; align-items:flex-start; width:100%;
  padding:10px 14px 10px 0; background:none; border:none; border-radius:16px;
  font-family:inherit; color:var(--text); text-align:left; cursor:pointer;
  transition:transform .18s ease;
}
.proc-step:hover { transform:translateX(4px); }
.proc-step:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.proc-num {
  position:relative; z-index:1; flex-shrink:0; width:46px; height:46px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Mono',monospace; font-weight:700; font-size:16px; color:var(--muted);
  background:var(--surface2); border:1px solid var(--border2);
  transition:background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.proc-copy { display:flex; flex-direction:column; min-width:0; padding-top:3px; }
.proc-title { font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:17px; letter-spacing:-.01em;
  color:var(--muted); transition:color .35s ease; }
.proc-desc { margin-top:4px; font-size:14px; line-height:1.5; color:var(--muted2); transition:color .35s ease; }
.proc-step.is-on .proc-num { color:#fff; border-color:transparent;
  background:linear-gradient(135deg,var(--blue),var(--magenta));
  box-shadow:0 0 0 5px var(--blue-soft), 0 12px 26px -10px rgba(47,111,237,.8); }
.proc-step.is-on .proc-title { color:var(--text); }
.proc-step.is-on .proc-desc { color:var(--muted); }

.proc-panel { display:flex; flex-direction:column; gap:14px; }
.proc-wall {
  position:relative; aspect-ratio:4/3; border-radius:20px; overflow:hidden;
  border:1px solid var(--border); box-shadow:var(--shadow);
  background:repeating-linear-gradient(135deg,var(--surface2) 0 14px,transparent 14px 28px),var(--surface);
}
/* clip-path's initial value is set inline from the step count (see the partial). */
.proc-shot { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
  transition:clip-path .55s cubic-bezier(.22,1,.36,1); }
.proc-head {
  position:absolute; left:0; right:0; top:0; height:2px; z-index:2;
  background:linear-gradient(90deg,transparent,var(--blue) 18%,#fff 50%,var(--magenta) 82%,transparent);
  box-shadow:0 0 22px 3px rgba(47,111,237,.55); opacity:0;
  transition:top .55s cubic-bezier(.22,1,.36,1), opacity .35s ease;
}
.proc.is-live .proc-head { opacity:1; }
.proc-readout { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.proc-count { font-family:'Space Mono',monospace; font-size:12px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--blue); flex-shrink:0; }
.proc-caption { font-size:14px; color:var(--muted); min-width:0; }

@media (max-width:900px) {
  .proc { grid-template-columns:1fr; gap:28px; }
  .proc-panel { order:-1; }
  .proc-wall { aspect-ratio:16/10; }
}

/* --- Mobile: centre hero + key section headings for better balance ------ */
@media (max-width:680px) {
  .hero-slide { text-align:center; }
  .hero-slide h1, .hero-slide p { margin-left:auto !important; margin-right:auto !important; justify-content:center; }
  .hero-slide > div { justify-content:center; }
  .mob-center { text-align:center !important; }
  .mob-auto { margin-left:auto !important; margin-right:auto !important; }
  .mob-stack { flex-direction:column !important; align-items:center !important; text-align:center !important; }
}

/* Keyframes */
@keyframes floatBlob { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(24px,-30px) scale(1.08);} }
@keyframes heroIn { from{opacity:0;transform:translateY(14px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeScale { from{opacity:0;transform:translateY(18px) scale(.97);} to{opacity:1;transform:translateY(0) scale(1);} }
@keyframes drawerIn { from{transform:translateX(100%);} to{transform:translateX(0);} }
@keyframes bounceDown { 0%,100%{transform:translateY(0);opacity:.5;} 50%{transform:translateY(7px);opacity:1;} }
@keyframes overlayIn { from{opacity:0;} to{opacity:1;} }

.anim-heroIn { animation:heroIn .6s cubic-bezier(.16,1,.3,1); }
.anim-fade { animation:heroIn .4s ease; }

/* Hero slides — only the active one is shown */
.hero-slide { display:none; }
.hero-slide.is-active { display:block; animation:heroIn .6s cubic-bezier(.16,1,.3,1); }

/* Testimonials — only the active one is shown */
.tst-slide { display:none; }
.tst-slide.is-active { display:block; animation:heroIn .4s ease; }

/* Elements that are toggled by JS (search panel, drawer, modal, lightbox) */
[hidden] { display:none !important; }

/* Responsive helpers (mirrors the design's data-r rules) */
@media (max-width:920px) {
  [data-r="desktop-nav"] { display:none !important; }
  [data-r="mobile-only"] { display:flex !important; }
  [data-r="page"] { padding-bottom:74px !important; }
  /* Comfortable tap targets (>=44px) for the header icon buttons */
  [data-action="openSearch"], [data-action="toggleTheme"] { width:44px !important; height:44px !important; }
  /* Lighter backdrop blur — far cheaper to composite while scrolling on phones */
  header, #search-panel { backdrop-filter:blur(9px) !important; -webkit-backdrop-filter:blur(9px) !important; }
}
@media (min-width:921px) {
  [data-r="mobile-only"] { display:none !important; }
}

/* Comparison component — a table on desktop, feature cards on phones -------- */
.cmp { background:var(--card); border:1px solid var(--border); border-radius:24px; overflow:hidden; box-shadow:var(--shadow); }
.cmp-row { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; }
.cmp-row:not(:last-child) { border-bottom:1px solid var(--border); }
.cmp-cell { padding:15px 18px; display:flex; align-items:center; justify-content:center; gap:8px; font-size:15px; font-family:'Space Mono',monospace; color:var(--muted2); }
.cmp-cell:not(.cmp-feature) { border-left:1px solid var(--border); }
.cmp-feature { justify-content:flex-start; gap:11px; padding:17px 24px; font-weight:500; font-family:Inter,sans-serif; color:var(--text); }
.cmp-dot { width:6px; height:6px; border-radius:50%; background:var(--blue); flex-shrink:0; }
.cmp-win { background:var(--blue-soft); box-shadow:inset 2px 0 0 var(--blue), inset -2px 0 0 var(--blue); }
.cmp-th { align-items:flex-end; text-align:center; padding-top:26px; padding-bottom:20px; color:var(--muted); font-family:'Space Grotesk',sans-serif; font-weight:600; }
.cmp-check { width:32px; height:32px; border-radius:50%; background:var(--coral); display:flex; align-items:center; justify-content:center; box-shadow:0 8px 18px -6px var(--coral); flex-shrink:0; }
.cmp-col-label { display:none; }
@media (max-width:720px) {
  .cmp-row { grid-template-columns:1fr; }
  .cmp-header { display:none; }
  .cmp-cell { justify-content:space-between; border-left:none; padding:13px 22px; }
  .cmp-cell:not(.cmp-feature) { border-top:1px solid var(--border); }
  .cmp-feature { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:17px; padding:18px 22px 12px; }
  .cmp-win { box-shadow:inset 4px 0 0 var(--coral); }
  .cmp-col-label { display:inline; color:var(--muted); font-family:Inter,sans-serif; font-size:14px; font-weight:500; }
}

/* Let form-grid items (esp. number inputs, which have a wide intrinsic min-width)
   shrink to their track so they never overflow + get clipped by the card. */
.form-2col > *, .form-3col > * { min-width:0; }
.form-2col input, .form-3col input { max-width:100%; }

/* Stack multi-column form grids on narrow phones */
@media (max-width:560px) {
  .form-2col, .form-3col { grid-template-columns:1fr !important; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  html { scroll-behavior:auto; }
}