/* ============================================================================
   Qanary UI — Quokkai design language, hand-rolled CSS (no build step).
   Tokens mirror the Quokkai system: warm orange accent, gray neutrals, DM Serif
   Display headings, Outfit body, Caveat for personal moments, shadow+border
   cards, yellow→orange gradient reserved for hero CTAs.
   ========================================================================== */

/* ---- self-hosted fonts (latin subsets) ---- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/outfit-variable-9bbb8353.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/dm-serif-display-3f6a6125.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/dm-serif-display-italic-1e5e7a9d.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/caveat-variable-0aa453d2.woff2") format("woff2");
}

/* ---- design tokens ---- */
:root {
  /* accent — warm orange is the only real accent */
  --accent-50: #fff7ed;
  --accent-100: #ffedd5;
  --accent-200: #fed7aa;
  --accent-300: #fdba74;
  --accent-400: #fb923c;
  --accent-500: #f97316;
  --accent-600: #ea580c;
  --accent-700: #c2410c;
  --accent-yellow: #facc15;

  /* neutrals — gray only */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* semantic */
  --green-soft: #dcfce7;
  --green-ink: #16a34a;
  --red-soft: #fee2e2;
  --red-ink: #dc2626;
  --amber-soft: #fef3c7;
  --amber-ink: #d97706;

  /* elevation — shadow + hairline border together */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* radii — soft by default; xl/2xl for cards, 3xl for hero + floating panels */
  --r-md: 0.5rem;
  --r-lg: 0.75rem;
  --r-xl: 1rem;
  --r-2xl: 1.25rem;
  --r-3xl: 1.75rem;

  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "DM Serif Display", ui-serif, Georgia, serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --gradient-accent: linear-gradient(to right, var(--accent-yellow), var(--accent-600));
}

/* ---- base ---- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font-sans);
  color: var(--gray-700);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gray-900);
  letter-spacing: 0.01em;
}
h1 { font-size: 2.35rem; line-height: 1.15; margin: 0 0 0.5rem; }
h2 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 0.75rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }
a { color: var(--accent-600); text-decoration: none; transition: color 0.2s ease-in-out; }
a:hover { color: var(--accent-700); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; border-radius: var(--r-md); }

code {
  background: var(--gray-100);
  color: var(--gray-800);
  padding: 0.1em 0.4em;
  border-radius: var(--r-md);
  font-size: 0.85em;
}
pre {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 1em 1.2em;
  border-radius: var(--r-lg);
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.55;
}
pre code { background: transparent; color: inherit; padding: 0; }
.muted { color: var(--gray-500); font-weight: 400; }
h1 .muted, h2 .muted, h3 .muted {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0;
}
.hand { font-family: var(--font-hand); font-weight: 600; }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th {
  text-align: left;
  color: var(--gray-500);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gray-50);
}
th, td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--gray-200); }
td { color: var(--gray-700); }
tbody tr:last-child td, table tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }
tr:hover th, thead tr:hover th { background: var(--gray-50); }
td a { font-weight: 500; }

/* ---- forms ---- */
label {
  display: block;
  margin: 0.9rem 0;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-700);
}
label.inline { font-weight: 400; display: flex; align-items: center; gap: 0.5rem; margin: 0.6rem 0; }
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=number], select, textarea {
  display: block;
  width: 100%;
  max-width: 28rem;
  padding: 0.55rem 0.75rem;
  margin-top: 0.3rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--r-lg);
  font: inherit;
  font-size: 0.875rem;
  color: var(--gray-900);
  background: #fff;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
input::placeholder, textarea::placeholder { color: var(--gray-400); }
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus,
input[type=url]:focus, input[type=number]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgb(249 115 22 / 0.15);
}
input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  accent-color: var(--accent-600);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--gray-700);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out,
              color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.btn:hover { background: var(--gray-50); color: var(--gray-900); text-decoration: none; }
.btn svg { width: 1rem; height: 1rem; flex: none; }
.btn-primary {
  background: var(--accent-600);
  border-color: var(--accent-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-700); border-color: var(--accent-700); color: #fff; }
.btn-gradient {
  background: var(--gradient-accent);
  border: 0;
  border-radius: var(--r-xl);
  color: #fff;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.btn-gradient:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8125rem; border-radius: var(--r-md); }
.btn-lg { padding: 0.7rem 1.4rem; font-size: 0.9375rem; border-radius: var(--r-xl); }
.btn-danger { color: var(--red-ink); border-color: var(--gray-300); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red-ink); color: var(--red-ink); }
.btn-block { display: flex; width: 100%; }
.linklike {
  background: none;
  border: none;
  color: var(--accent-600);
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}
.linklike:hover { color: var(--accent-700); text-decoration: underline; }
.linklike.danger { color: var(--red-ink); }
.linklike.danger:hover { color: var(--red-ink); }

/* ---- cards & panels: shadow-sm + hairline border, rounded-xl ---- */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 2rem;
  margin: 1.5rem 0;
}
.card > h2:first-child { margin-top: 0; }
table.card { padding: 0; overflow: hidden; }
.card-hover { transition: box-shadow 0.2s ease-in-out; }
.card-hover:hover { box-shadow: var(--shadow-lg); }

/* ---- badges: soft pills ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.125rem 0.6rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  background: var(--gray-100);
  color: var(--gray-600);
  white-space: nowrap;
  vertical-align: middle;
}
.badge-approved, .badge-active, .badge-paid { background: var(--green-soft); color: var(--green-ink); }
.badge-pending, .badge-pending_review, .badge-pending_verification, .badge-draft,
.badge-warn, .badge-held, .badge-processing { background: var(--amber-soft); color: var(--amber-ink); }
.badge-rejected, .badge-failed, .badge-disabled, .badge-void, .badge-canceled { background: var(--red-soft); color: var(--red-ink); }
.badge-exported, .badge-submitted, .badge-parked { background: var(--accent-50); color: var(--accent-700); }
.badge-indigo { background: var(--accent-50); color: var(--accent-700); }

/* ---- flash ---- */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  margin: 0.8rem 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.flash svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.05rem; }
.flash-notice { background: var(--green-soft); color: #166534; border-color: #bbf7d0; }
.flash-alert { background: var(--red-soft); color: #991b1b; border-color: #fecaca; }

/* ---- merchant shell ---- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 258px;
  flex: none;
  background:
    radial-gradient(120% 55% at 12% -8%, rgba(250, 204, 21, 0.16), transparent 60%),
    linear-gradient(178deg, #fff 55%, var(--accent-50));
  border: 1px solid rgba(234, 88, 12, 0.08);
  border-radius: var(--r-3xl);
  box-shadow: var(--shadow-lg);
  margin: 0.9rem 0 0.9rem 0.9rem;
  padding: 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: sticky;
  top: 0.9rem;
  height: calc(100vh - 1.8rem);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 0.6rem; padding: 0.25rem 0.625rem 1rem; }
.brand a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand a:hover { text-decoration: none; }
.brand-logo {
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(234, 88, 12, 0.28));
}
.brand-name {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gray-900);
}
.nav-section {
  padding: 0.9rem 0.625rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.8rem;
  border-radius: var(--r-xl);
  color: var(--gray-600);
  font-size: 1.0125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s ease-in-out, color 0.18s ease-in-out, box-shadow 0.18s ease-in-out;
}
.nav-link svg { width: 1.35rem; height: 1.35rem; flex: none; }
.nav-link:hover { background: rgba(255, 255, 255, 0.7); color: var(--gray-900); text-decoration: none; }
.nav-link.active {
  background: #fff;
  color: var(--accent-700);
  font-weight: 600;
  box-shadow: 0 4px 14px -6px rgba(234, 88, 12, 0.4), var(--shadow-sm);
}
.nav-link.active svg { color: var(--accent-600); }
.avatar {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  border-radius: 9999px;
  background: var(--gradient-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 12px -4px rgba(234, 88, 12, 0.4);
}
.content { flex: 1; min-width: 0; padding: 1.75rem 3rem 4rem; max-width: 1480px; }

/* ---- topbar: user cluster pinned top-right (Quokkai-style) ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  padding: 0.4rem 1.1rem 0.4rem 0.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease-in-out;
}
.user-menu:hover { box-shadow: var(--shadow-md); }
.user-menu-meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.user-menu-meta .who {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-meta .linklike { font-size: 0.78rem; color: var(--gray-500); text-align: left; }
.user-menu-meta .linklike:hover { color: var(--accent-600); }

/* ---- page header ---- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
}
.page-header h1 { margin: 0; }
.page-header .page-sub { margin: 0.25rem 0 0; color: var(--gray-500); font-size: 0.875rem; }
.page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* ---- dashboard hero band (signature: warm blobs + geometry) ---- */
.dash-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-3xl);
  border: 1px solid rgba(234, 88, 12, 0.1);
  background:
    radial-gradient(75% 120% at 88% -25%, rgba(250, 204, 21, 0.4), transparent 55%),
    linear-gradient(135deg, #fff 0%, #fff7ed 62%, #ffedd5 128%);
  box-shadow: var(--shadow-md);
  padding: 3.25rem 3.5rem;
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.dash-hero-body { position: relative; z-index: 2; max-width: 34rem; }
.dash-hero-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.dash-hero h1 { margin: 0 0 0.35rem; font-size: 2.85rem; }
.dash-hero-sub { margin: 0; color: var(--gray-600); font-size: 1.15rem; }
.dash-hero-sub .hand { font-size: 1.55rem; color: var(--accent-600); }
.dash-hero-actions { position: relative; z-index: 2; }

/* decorative blobs, dashed ring, floating dots */
.dash-blob, .dash-ring, .dash-dot { position: absolute; pointer-events: none; z-index: 1; }
.dash-blob { border-radius: 50%; }
.dash-blob-1 {
  width: 320px; height: 320px;
  right: -90px; bottom: -150px;
  background: radial-gradient(circle at 35% 35%, rgba(251, 146, 60, 0.32), rgba(234, 88, 12, 0.1) 70%);
}
.dash-blob-2 {
  width: 150px; height: 150px;
  right: 160px; top: -70px;
  background: radial-gradient(circle at 40% 40%, rgba(250, 204, 21, 0.5), transparent 70%);
}
.dash-ring {
  width: 88px; height: 88px;
  right: 44px; bottom: 34px;
  border-radius: 50%;
  border: 2px dashed rgba(234, 88, 12, 0.3);
}
.dash-dot-1 { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-500); right: 130px; bottom: 50px; }
.dash-dot-2 { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-yellow); right: 250px; bottom: 30px; }
.dash-dot-3 { width: 18px; height: 18px; border-radius: 50%; background: rgba(234, 88, 12, 0.22); right: 200px; top: 46px; }
@keyframes blob-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: no-preference) {
  .dash-blob-1 { animation: blob-float 9s ease-in-out infinite; }
  .dash-blob-2 { animation: blob-float 7s ease-in-out infinite reverse; }
}

/* ---- stats ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 1.15rem;
  margin: 1.25rem 0 2.25rem;
}
.stat {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.6rem;
  overflow: hidden;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* lead metric carries the warm accent */
.stat:first-child {
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(250, 204, 21, 0.18), transparent 55%),
    linear-gradient(160deg, #fff, var(--accent-50));
  border-color: rgba(234, 88, 12, 0.18);
}
.stat-value {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.stat-label {
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- filter chips: pill style ---- */
.filter-row { display: flex; gap: 0.5rem; margin: 1rem 0; align-items: center; flex-wrap: wrap; }
.filter-row a {
  text-decoration: none;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
.filter-row a:hover { border-color: var(--accent-300); color: var(--accent-600); }
.filter-row a.active {
  background: var(--accent-600);
  border-color: var(--accent-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.filter-sep { color: var(--gray-300); }
.bulk-actions { margin: 1rem 0; display: flex; gap: 0.5rem; }

/* ---- provenance & journeys (suite phase 2) ---- */
.tier-note { margin: -8px 0 16px; }
.chan-bar { background: var(--gray-100); border-radius: 999px; height: 8px; overflow: hidden; min-width: 120px; }
.chan-bar-fill { background: var(--accent-600); height: 100%; border-radius: 999px; }
.journey { list-style: none; margin: 0; padding: 0; }
.journey-touch { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--gray-100); flex-wrap: wrap; }
.journey-touch:last-child { border-bottom: none; }
.journey-when { color: var(--gray-500); font-size: 13px; }
.journey-url { color: var(--gray-500); font-size: 13px; word-break: break-all; }
.journey-lookup { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.journey-lookup input[type="text"] { max-width: 260px; }

/* ---- onboarding checklist ---- */
.checklist { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; }
.checklist li { display: flex; gap: 0.85rem; padding: 0.65rem 0; align-items: flex-start; }
.checklist li + li { border-top: 1px solid var(--gray-100); }
.step-dot {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  border-radius: 9999px;
  background: var(--accent-50);
  color: var(--accent-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.05rem;
}
.checklist li.done .step-dot { background: var(--green-soft); color: var(--green-ink); }
.checklist li.done .step-body { color: var(--gray-400); }
.checklist li.done .step-body a { color: var(--gray-400); }
.step-body { font-size: 0.875rem; padding-top: 0.2rem; }

/* ---- empty states ---- */
.empty-state { text-align: center; padding: 2.75rem 1.5rem; }
.empty-state-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--accent-50);
  color: var(--accent-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.empty-state-icon svg { width: 1.5rem; height: 1.5rem; }
.empty-state h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; margin: 0 0 0.25rem; }
.empty-state p { color: var(--gray-500); font-size: 0.875rem; margin: 0 0 1rem; }

/* ---- copy-to-clipboard rows ---- */
.copy-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 0.3rem 0.3rem 0.3rem 0.75rem;
  margin: 0.15rem 0;
}
.copy-row code {
  background: transparent;
  padding: 0;
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  border-radius: var(--r-md);
  padding: 0.25rem 0.6rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.copy-btn:hover { border-color: var(--accent-300); color: var(--accent-600); }
.copy-btn svg { width: 0.875rem; height: 0.875rem; }
.copy-btn.copied { border-color: var(--green-ink); color: var(--green-ink); }

/* ---- details / add-rule disclosure ---- */
details.disclosure { margin-top: 1rem; }
details.disclosure summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--accent-600);
  padding: 0.4rem 0;
  list-style-position: inside;
  transition: color 0.2s ease-in-out;
}
details.disclosure summary:hover { color: var(--accent-700); }
details.disclosure[open] summary { margin-bottom: 0.5rem; }
.disclosure-panel {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
}

/* ---- portal + public ---- */
.portal-shell { max-width: 780px; margin: 0 auto; padding: 0 1.25rem 2rem; }
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}
.brand-small { font-family: var(--font-serif); font-size: 1.15rem; color: var(--gray-900); }
.powered-by { text-align: center; color: var(--gray-400); font-size: 0.8125rem; padding: 1.75rem 0 0.5rem; }
.powered-by a { color: var(--gray-500); font-weight: 500; }
.greeting { font-size: 2.1rem; }
.greeting .hand {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.2em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.share-link { font-size: 0.9rem; }

/* ---- auth + marketing ---- */
.auth-card {
  max-width: 26.5rem;
  margin: 7vh auto 3rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}
.auth-card h1 { font-size: 1.5rem; margin: 0 0 0.35rem; }
.auth-card .lede { color: var(--gray-500); font-size: 0.9375rem; margin: 0 0 0.75rem; }
.auth-card input[type=submit], .auth-card .btn-primary { width: 100%; margin-top: 1.1rem; padding: 0.65rem 1rem; }
.auth-card .muted { font-size: 0.875rem; margin-top: 1.25rem; text-align: center; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.auth-brand a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.auth-footnote { text-align: center; color: var(--gray-400); font-size: 0.8125rem; max-width: 26.5rem; margin: -2rem auto 3rem; }

/* eyebrow badge (marketing + shared) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-50);
  color: var(--accent-700);
  border: 1px solid var(--accent-100);
  border-radius: 9999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.eyebrow svg { width: 1rem; height: 1rem; flex: none; }
.cta-row { display: flex; gap: 0.8rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }

/* pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 3.5rem 0 1.25rem;
  text-align: left;
  align-items: stretch;
}
.tier {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.tier:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tier h3 { font-family: var(--font-sans); font-weight: 600; font-size: 0.9375rem; color: var(--gray-500); margin: 0; }
.tier-hot { border: 2px solid var(--accent-600); box-shadow: var(--shadow-lg); }
.tier-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.tier .price { font-size: 1.75rem; font-weight: 700; color: var(--gray-900); margin: 0.35rem 0 0.75rem; }
.tier .price small { font-size: 0.875rem; font-weight: 500; color: var(--gray-500); }
.tier-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.tier-features li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.8438rem; color: var(--gray-600); }
.tier-features svg { width: 1rem; height: 1rem; flex: none; color: var(--accent-500); margin-top: 0.15rem; }

/* ---- vue island: rule builder ---- */
.rule-builder { display: grid; gap: 0.6rem; }
.rule-builder .row { display: flex; gap: 0.75rem; align-items: end; flex-wrap: wrap; }
.rule-builder label { margin: 0.25rem 0; font-size: 0.8125rem; }
.rule-builder select, .rule-builder input { max-width: 13rem; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    width: auto;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    margin: 0.75rem 0.75rem 0;
    border: 1px solid rgba(234, 88, 12, 0.08);
    border-radius: var(--r-2xl);
    padding: 0.55rem 0.7rem;
  }
  .dash-hero { padding: 1.75rem 1.5rem; }
  .dash-hero h1 { font-size: 1.9rem; }
  .dash-blob-1 { width: 200px; height: 200px; }
  .brand { padding: 0 0.5rem 0 0; }
  .brand-name { display: none; }
  .nav-section { display: none; }
  .nav-link { white-space: nowrap; padding: 0.45rem 0.6rem; }
  .content { padding: 1.25rem 1rem 2.5rem; }
  .topbar { margin-bottom: 1.25rem; }
}
@media (max-width: 720px) {
  table.card { display: block; overflow-x: auto; }
  .page-header { flex-direction: column; }
}

/* ---- marketing footer ---- */
.site-footer { margin-top: 4rem; padding: 1.5rem 0; display: flex; gap: 1.5rem; justify-content: center;
               color: var(--stone-500, #78716c); font-size: .9rem; }
.site-footer a { color: inherit; }

/* ---- legal pages ---- */
.legal-page { max-width: 44rem; margin: 3rem auto; padding: 0 1.25rem; line-height: 1.65; }
.legal-page h1 { margin-bottom: .25rem; }
.legal-page h2 { margin-top: 2rem; font-size: 1.1rem; }

/* ============================================================================
   Marketing one-pager (home#index) — scoped under .mkt
   ========================================================================== */
.mkt { background: #fffdf8; overflow-x: clip; --nav-h: 4.8rem; }
@media (min-width: 768px) { .mkt { --nav-h: 5.6rem; } }
.mkt section { scroll-margin-top: 5rem; }

/* nav — fixed so the rounded island floats over the hero on load, then
   expands to a full-width bar on scroll */
.mkt-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1.4rem 1rem 0;
  background: transparent; border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.mkt-nav-inner {
  max-width: 72rem; margin: 0 auto;
  padding: 0.5rem 0.7rem 0.5rem 1rem;
  display: flex; align-items: center; gap: 1.5rem;
  background: rgb(255 253 248 / 0.82);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--gray-100); border-radius: var(--r-3xl);
  box-shadow: var(--shadow-lg);
  transition: border-radius 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease,
              background 0.3s ease, border-color 0.3s ease;
}
/* scrolled: keep the same floating island — just tighten padding (the logo and
   wordmark shrink via the --brand-logo / --brand-name vars below) */
.mkt-nav.is-scrolled { padding-top: 0.8rem; }
.mkt-nav.is-scrolled .mkt-nav-inner { padding: 0.3rem 0.6rem 0.3rem 0.85rem; }
/* Logo sizes are driven by CSS vars on .mkt-nav so the scroll-shrink state
   (toggled by the landing controller) animates the same properties. */
.mkt-nav { --brand-logo: 48px; --brand-name: 1.4rem; }
@media (min-width: 768px) { .mkt-nav { --brand-logo: 64px; --brand-name: 1.75rem; } }
.mkt-nav.is-scrolled { --brand-logo: 42px; --brand-name: 1.3rem; }
@media (min-width: 768px) { .mkt-nav.is-scrolled { --brand-logo: 48px; --brand-name: 1.45rem; } }

.mkt-brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-sans); color: var(--gray-900);
  transform-origin: left center;
  transition: transform 0.3s ease-in-out;
}
.mkt-brand:hover { transform: scale(1.05); }

.mkt-brand-logo {
  position: relative; flex: none; display: inline-flex;
  width: var(--brand-logo); height: var(--brand-logo);
  transition: width 0.3s ease, height 0.3s ease;
}
.mkt-brand img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(234, 88, 12, 0.28));
  transition: transform 0.3s ease-in-out;
}
.mkt-brand:hover img { transform: rotate(3deg); }

/* Soft warm halo behind the logo — brand yellow→orange, revealed on hover. */
.mkt-brand-glow {
  position: absolute; inset: -20%; z-index: 0;
  border-radius: 50%;
  background: var(--gradient-accent);
  filter: blur(16px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.mkt-brand:hover .mkt-brand-glow { opacity: 0.35; }

.mkt-brand-name {
  font-size: var(--brand-name); font-weight: 700; letter-spacing: -0.02em;
  transition: font-size 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .mkt-brand, .mkt-brand-logo, .mkt-brand img, .mkt-brand-name { transition: none; }
  .mkt-brand:hover { transform: none; }
  .mkt-brand:hover img { transform: none; }
}
.mkt-brand:hover { text-decoration: none; color: var(--gray-900); }
.mkt-links { display: flex; gap: 1.4rem; margin-left: auto; }
.mkt-links a { color: var(--gray-600); font-size: 0.9rem; font-weight: 500; }
.mkt-links a:hover { color: var(--accent-600); text-decoration: none; }
.mkt-nav-cta { display: flex; align-items: center; gap: 1rem; }
.mkt-signin { color: var(--gray-600); font-size: 0.9rem; font-weight: 500; }

/* hero — full-bleed band; the fixed nav floats over its top, so pad content
   down past the nav while the gradient/shapes fill the space behind it */
.mkt-hero {
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; padding: calc(var(--nav-h) + 3rem) 1.25rem 4.5rem; text-align: center;
}
.mkt-hero::before {
  content: ""; position: absolute; inset: -4rem 0 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42rem 26rem at 22% 8%, var(--accent-50), transparent 62%),
    radial-gradient(38rem 26rem at 82% 4%, #fefce8, transparent 60%);
}
.mkt-hero > * { position: relative; z-index: 2; max-width: 62rem; margin-left: auto; margin-right: auto; }

/* geometric decorations — shared by the hero (dashboard's blob/ring/dot language) */
.mkt-shape { position: absolute; z-index: 1; pointer-events: none; }
.mkt-blob { border-radius: 50%; }
.mkt-blob-1 {
  width: 340px; height: 340px; right: -90px; top: -130px;
  background: radial-gradient(circle at 35% 35%, rgba(251, 146, 60, 0.28), rgba(234, 88, 12, 0.07) 70%);
}
.mkt-blob-2 {
  width: 190px; height: 190px; left: -70px; bottom: 10px;
  background: radial-gradient(circle at 40% 40%, rgba(250, 204, 21, 0.42), transparent 70%);
}
.mkt-ring {
  width: 108px; height: 108px; left: 6%; top: 24%;
  border-radius: 50%; border: 2px dashed rgba(234, 88, 12, 0.28);
}
.mkt-square {
  width: 66px; height: 66px; right: 8%; bottom: 20%;
  border-radius: 18px; border: 2px solid rgba(234, 88, 12, 0.24); transform: rotate(18deg);
}
.mkt-dot { border-radius: 50%; }
.mkt-dot-1 { width: 16px; height: 16px; background: var(--accent-500); right: 15%; top: 30%; }
.mkt-dot-2 { width: 11px; height: 11px; background: var(--accent-yellow); left: 19%; bottom: 30%; }
.mkt-dot-3 { width: 20px; height: 20px; background: rgba(234, 88, 12, 0.18); right: 21%; bottom: 32%; }
@keyframes mkt-square-float { 0%, 100% { transform: rotate(18deg) translateY(0); } 50% { transform: rotate(24deg) translateY(-12px); } }
@media (prefers-reduced-motion: no-preference) {
  .mkt-blob-1 { animation: blob-float 10s ease-in-out infinite; }
  .mkt-blob-2 { animation: blob-float 8s ease-in-out infinite reverse; }
  .mkt-ring { animation: blob-float 12s ease-in-out infinite; }
  .mkt-square { animation: mkt-square-float 14s ease-in-out infinite; }
}
.mkt-hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); line-height: 1.07; max-width: 19ch; margin: 0 auto 1.4rem; }
.mkt-lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--gray-500); max-width: 46rem; margin: 0 auto; }
.mkt-lede strong { color: var(--gray-700); }
.mkt-hand-note { margin: 0.2rem 0 0; }
.mkt-hand-note .hand { font-size: 1.45rem; color: var(--accent-600); display: inline-block; transform: rotate(-2deg); }
.mkt-underline { position: relative; white-space: nowrap; }
.mkt-underline svg { position: absolute; left: -2%; width: 104%; height: 0.3em; bottom: -0.16em; overflow: visible; }
.mkt-underline path {
  fill: none; stroke: var(--accent-500); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 230; stroke-dashoffset: 230;
  animation: mkt-draw 0.9s ease-out 0.5s forwards;
}
@keyframes mkt-draw { to { stroke-dashoffset: 0; } }

/* sections */
.mkt-section { max-width: 72rem; margin: 0 auto; padding: 4.5rem 1.25rem; text-align: center; }
.mkt-h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; margin: 0.9rem auto 2.2rem; max-width: 26ch; }
.mkt-h2 em { color: var(--accent-600); }

/* success-tax calculator */
.mkt-calc-section { padding-top: 2.5rem; }
.mkt-calc {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-3xl);
  box-shadow: var(--shadow-xl); max-width: 56rem; margin: 0 auto; text-align: left;
  padding: 2.2rem clamp(1.1rem, 3vw, 2.6rem) 1.6rem;
}
.mkt-calc::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 35% 35%, rgba(250, 204, 21, 0.16), transparent 70%);
}
.mkt-calc > * { position: relative; z-index: 1; }
.mkt-calc-label { display: block; text-align: center; font-size: 1.05rem; color: var(--gray-600); margin-bottom: 0.9rem; }
.mkt-calc-label output { font-family: var(--font-serif); font-size: 1.9rem; color: var(--gray-900); padding: 0 0.15rem; }
.mkt-calc input[type="range"] { width: 100%; height: 2rem; accent-color: var(--accent-600); cursor: pointer; }
.mkt-chart { width: 100%; height: auto; display: block; margin: 1rem 0 0.4rem; }
.mkt-chart .axis { stroke: var(--gray-200); stroke-width: 1; }
.mkt-curve-them { fill: none; stroke: var(--gray-800); stroke-width: 3.5; stroke-linecap: round; }
.mkt-curve-us { fill: none; stroke: var(--accent-500); stroke-width: 4; stroke-linecap: round; }
.mkt-chart text { font: 600 13px var(--font-sans); fill: var(--gray-500); }
.mkt-chart .label-us { fill: var(--accent-600); }
.mkt-dot-them { fill: var(--gray-900); }
.mkt-dot-us { fill: var(--accent-600); }
.mkt-calc-readouts { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 0.6rem; }
.mkt-readout {
  flex: 1 1 14rem; max-width: 18rem; border: 1px solid var(--gray-200);
  border-radius: var(--r-xl); padding: 0.8rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.mkt-readout-us { border-color: var(--accent-200); background: var(--accent-50); }
.mkt-readout-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-500); }
.mkt-readout-num { font-family: var(--font-serif); font-size: 1.6rem; color: var(--gray-900); }
.mkt-readout-us .mkt-readout-num { color: var(--accent-700); }
.mkt-taxline { text-align: center; font-size: 1.15rem; color: var(--gray-600); margin: 1.2rem 0 0.4rem; }
.mkt-taxline strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.55rem; color: var(--red-ink); }
.mkt-calc-foot { text-align: center; color: var(--gray-400); font-size: 0.78rem; max-width: 40rem; margin: 0.6rem auto 0; }

/* how it works */
.mkt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; text-align: left; }
.mkt-step {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm); padding: 2rem 1.8rem;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.mkt-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mkt-step::after {
  content: ""; position: absolute; right: -36px; top: -36px; width: 104px; height: 104px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 32%, rgba(250, 204, 21, 0.26), transparent 70%);
}
.mkt-step-num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.1rem; height: 3.1rem; margin-bottom: 1rem;
  border-radius: 1rem; background: var(--gradient-accent); color: #fff;
  font-family: var(--font-serif); font-size: 1.55rem; line-height: 1;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.28);
}
.mkt-step h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.mkt-step p { margin: 0; color: var(--gray-500); }

/* two programs */
.mkt-programs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 56rem; margin: 0 auto; text-align: left; }
.mkt-program {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm); padding: 1.8rem;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.mkt-program:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mkt-program::before {
  content: ""; position: absolute; right: -44px; bottom: -44px; width: 136px; height: 136px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(251, 146, 60, 0.14), transparent 70%);
}
.mkt-program > * { position: relative; z-index: 1; }
.mkt-program h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.mkt-program p { margin: 0; color: var(--gray-500); }
.mkt-program .hand { font-size: 1.3rem; color: var(--accent-600); }
.mkt-spine-note { max-width: 44rem; margin: 1.6rem auto 0; color: var(--gray-500); }

/* engineering receipts */
.mkt-receipts {
  list-style: none; padding: 0; max-width: 46rem; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1rem; text-align: left;
}
.mkt-receipts li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--r-xl);
  padding: 1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.mkt-receipts li > svg { width: 1.4rem; height: 1.4rem; color: var(--green-ink); flex: none; margin-top: 0.1rem; }
.mkt-receipts strong { color: var(--gray-900); }

/* pricing extras (grid/tiers reuse existing classes) */
.mkt-pricing-hand { margin: -1.2rem 0 0; }
.mkt-pricing-hand .hand { font-size: 1.5rem; color: var(--accent-600); }
.mkt-pricing-note { color: var(--gray-400); font-size: 0.85rem; max-width: 40rem; margin: 0.4rem auto 0; }

/* faq */
.mkt-faq { max-width: 44rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.7rem; text-align: left; }
.mkt-faq details { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 0.95rem 1.2rem; }
.mkt-faq summary {
  cursor: pointer; font-weight: 600; color: var(--gray-800); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.mkt-faq summary::-webkit-details-marker { display: none; }
.mkt-faq summary::after { content: "+"; font-size: 1.35rem; color: var(--accent-500); flex: none; }
.mkt-faq details[open] summary::after { content: "–"; }
.mkt-faq details p { margin: 0.7rem 0 0; color: var(--gray-500); }

/* closer */
.mkt-closer {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #fffdf8, var(--accent-50));
  border-top: 1px solid var(--accent-100);
  padding: 6rem 1.25rem 2rem; text-align: center;
}
.mkt-closer > * { position: relative; z-index: 1; }
.mkt-closer::before {
  content: ""; position: absolute; z-index: 0; left: 9%; top: 20%; width: 120px; height: 120px;
  border-radius: 50%; border: 2px dashed rgba(234, 88, 12, 0.24); pointer-events: none;
}
.mkt-closer::after {
  content: ""; position: absolute; z-index: 0; right: -70px; bottom: -70px; width: 280px; height: 280px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(251, 146, 60, 0.2), transparent 68%);
}
.mkt-closer h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 0.8rem; }
.mkt-closer p { color: var(--gray-500); font-size: 1.15rem; margin: 0 0 1.8rem; }

/* scroll reveals */
.mkt-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.mkt-reveal.is-visible { opacity: 1; transform: none; }
.mkt-steps .mkt-reveal:nth-child(2), .mkt-programs .mkt-reveal:nth-child(2),
.pricing-grid .mkt-reveal:nth-child(2) { transition-delay: 0.1s; }
.mkt-steps .mkt-reveal:nth-child(3), .pricing-grid .mkt-reveal:nth-child(3) { transition-delay: 0.2s; }
.pricing-grid .mkt-reveal:nth-child(4) { transition-delay: 0.3s; }

/* responsive + reduced motion */
@media (max-width: 860px) {
  .mkt-links { display: none; }
  .mkt-steps, .mkt-programs { grid-template-columns: 1fr; }
  .mkt-hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .mkt-ring, .mkt-square, .mkt-dot-1, .mkt-dot-3, .mkt-blob-1 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mkt-reveal { opacity: 1; transform: none; transition: none; }
  .mkt-underline path { stroke-dashoffset: 0; animation: none; }
}
