:root {
  color-scheme: light dark;
  --bg: #f6faf9;
  --surface: #ffffff;
  --surface-alt: #eef6f4;
  --border: #cfe2dd;
  --control-border: #6f9189;
  --text: #162226;
  --muted: #4b6165;
  --brand: #238774;
  --brand-bright: #37ad95;
  --brand-fill: #1b7362;
  --brand-fill-hover: #14594c;
  --brand-ink: #175d50;
  --hero-top: #1f7d6b;
  --hero-bottom: #175d50;
  --coral: #d9533a;
  --yellow: #e89b00;
  --band-bg: #eaf5f2;
  --band-border: #cbe2dc;
  --trust-frame: #ebb5a7;
  --pill-bg: #ffffff;
  --danger: #b91c1c;
  --warn-inline: #b45309;
  --warn-bg: #fef3c7;
  --warn-border: #d97706;
  --warn-text: #78350f;
  --err-bg: #fee2e2;
  --err-border: #dc2626;
  --err-text: #7f1d1d;
  --ok-bg: #dcfce7;
  --ok-border: #16a34a;
  --ok-text: #14532d;
  --focus-ring: #0f4c41;
  --focus-ring-hero: #fde68a;
  --scrollbar-track: #e6f1ee;
  --scrollbar-thumb: #6f9189;
  --shadow: 0 14px 36px rgba(22, 34, 38, 0.06);
  --radius: 20px;
  accent-color: var(--brand-fill);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

:root:has(> head > meta[name="color-scheme"][content="light"]),
[data-theme="light"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1415;
    --surface: #131f21;
    --surface-alt: #1a2a2d;
    --border: #2a4347;
    --control-border: #5a7c80;
    --text: #eef6f5;
    --muted: #98b4b0;
    --brand: #37ad95;
    --brand-bright: #43bfa6;
    --brand-fill: #1b6b5c;
    --brand-fill-hover: #155549;
    --brand-ink: #72dfd0;
    --hero-top: #1d6f60;
    --hero-bottom: #12483e;
    --coral: #f2755c;
    --yellow: #f7c948;
    --band-bg: #122123;
    --band-border: #243b3e;
    --trust-frame: #ebb5a7;
    --pill-bg: #1b2d30;
    --danger: #f87171;
    --warn-inline: #fbbf24;
    --warn-bg: #2f2412;
    --warn-border: #d97706;
    --warn-text: #fde68a;
    --err-bg: #35161b;
    --err-border: #ef4444;
    --err-text: #fecaca;
    --ok-bg: #122c1f;
    --ok-border: #22c55e;
    --ok-text: #bbf7d0;
    --focus-ring: #72dfd0;
    --focus-ring-hero: #fde68a;
    --scrollbar-track: #152326;
    --scrollbar-thumb: #5b7e82;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]),
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1415;
  --surface: #131f21;
  --surface-alt: #1a2a2d;
  --border: #2a4347;
  --control-border: #527377;
  --text: #eef6f5;
  --muted: #98b4b0;
  --brand: #37ad95;
  --brand-bright: #43bfa6;
  --brand-fill: #1b6b5c;
  --brand-fill-hover: #155549;
  --brand-ink: #72dfd0;
  --hero-top: #1d6f60;
  --hero-bottom: #12483e;
  --coral: #f2755c;
  --yellow: #f7c948;
  --band-bg: #122123;
  --band-border: #243b3e;
  --trust-frame: #ebb5a7;
  --pill-bg: #1b2d30;
  --danger: #f87171;
  --warn-inline: #fbbf24;
  --warn-bg: #2f2412;
  --warn-border: #d97706;
  --warn-text: #fde68a;
  --err-bg: #35161b;
  --err-border: #ef4444;
  --err-text: #fecaca;
  --ok-bg: #122c1f;
  --ok-border: #22c55e;
  --ok-text: #bbf7d0;
  --focus-ring: #72dfd0;
  --focus-ring-hero: #fde68a;
  --scrollbar-track: #152326;
  --scrollbar-thumb: #5b7e82;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 20px;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus-within {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  outline: 3px solid var(--focus-ring);
}

:where(a:any-link, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.hero-shell :where(a:any-link, button):focus-visible {
  outline-color: var(--focus-ring-hero);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  transition: background-color 180ms ease, color 180ms ease;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO SHELL */
.hero-shell {
  background: radial-gradient(circle at 50% 0%, var(--hero-top) 0%, var(--hero-bottom) 74%);
  color: #ffffff;
  border-radius: 0 0 36px 36px;
  overflow: hidden;
}

.hero-shell-compact {
  border-radius: 0 0 24px 24px;
  padding-bottom: 6px;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(12, 34, 30, 0.2);
  flex-shrink: 0;
}

.brand-mark img {
  display: block;
  width: 26px;
  height: 26px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 32px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.header-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.icon-svg {
  display: inline-block;
  flex-shrink: 0;
}

.icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: inline-block;
}

.hero-content {
  text-align: center;
  padding-top: 38px;
  padding-bottom: 10px;
}

.hero-title {
  margin: 0 auto 12px;
  max-width: 680px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0 auto 24px;
  max-width: 580px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.94);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-btn-primary,
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease;
}

.hero-btn-primary {
  background: #ffffff;
  color: #1f6b5f;
  box-shadow: 0 8px 20px rgba(15, 55, 49, 0.22);
}

.hero-btn-primary:hover {
  transform: translateY(-1px);
  background: #f2fbf9;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-visual {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 18px;
  position: relative;
}

.hero-3d-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(15, 55, 49, 0.24));
}

@media (prefers-reduced-motion: no-preference) {
  .hero-3d-img {
    animation: gentleFloat 6s ease-in-out infinite;
  }
  @keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
}

/* WORKSPACE SECTION */
.main-content {
  padding-top: 38px;
  padding-bottom: 42px;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.access-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-text);
  font-size: 0.84rem;
  font-weight: 700;
}

.access-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.access-bar label {
  font-size: 0.88rem;
  font-weight: 700;
}

.access-bar input {
  flex: 1 1 200px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--text);
  font: inherit;
}

.access-error {
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 600;
}

.section-heading h2 {
  margin: 0 0 4px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* 3 PASTEL 3D TOOL CARDS (inspired by "New Arrivals" 3-card row) */
.tool-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.tool-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.tool-card-btn:hover {
  transform: translateY(-2px);
}

.tool-card-btn.active {
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(60, 163, 147, 0.2);
}

.tool-card-media {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.tool-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-yellow { background: #fedd80; }
.media-coral { background: #ffd2c9; }
.media-mint { background: #b3e3d7; }

.tool-card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.tool-card-desc {
  font-size: 0.84rem;
  color: var(--muted);
}

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.panel-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-panel h1,
.tool-panel h3 {
  margin: 0 0 6px;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.limit-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.sub-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.sub-tab-btn {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.sub-tab-btn.active {
  background: var(--brand-fill);
  border-color: var(--brand-fill);
  color: #ffffff;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.dropzone {
  border: 2px dashed var(--control-border);
  border-radius: 16px;
  padding: 30px 18px;
  text-align: center;
  cursor: pointer;
  background: var(--surface-alt);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--brand-fill);
}

.dropzone-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: rgba(60, 163, 147, 0.14);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.dropzone-title {
  margin: 0 0 4px;
  font-weight: 700;
}

.dropzone-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.link-like {
  color: var(--brand-ink);
  text-decoration: underline;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 700;
  font-size: 0.9rem;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  background: var(--surface-alt);
  color: var(--text);
  font: inherit;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.preset-box {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.field-help {
  color: var(--muted);
  font-size: 0.86rem;
}

.field-help a {
  color: var(--brand-ink);
  font-weight: 600;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.color-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-pair input[type="color"] {
  width: 46px;
  height: 42px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  cursor: pointer;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 120ms ease, background-color 120ms ease;
}

.btn-primary {
  background: var(--brand-fill);
  color: #ffffff;
  align-self: flex-start;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-fill-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-secondary {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--border);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.4);
}

.btn-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.status-box,
.warning-box {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.status-box.info {
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.status-box.error {
  background: var(--err-bg);
  border: 1px solid var(--err-border);
  color: var(--err-text);
}

.status-box.success {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-text);
}

.warning-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
}

.result-card {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-header h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.ttl-countdown {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.ttl-countdown.expired {
  color: var(--danger);
  font-weight: 700;
}

.mobile-qr-box {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.mobile-qr-box img {
  width: 172px;
  height: 172px;
  border-radius: 10px;
}

.cross-link {
  margin: 10px 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.link-btn {
  background: none;
  border: none;
  padding: 4px 2px;
  min-block-size: 28px;
  font: inherit;
  font-weight: 600;
  color: var(--brand-ink);
  text-decoration: underline;
  cursor: pointer;
}

.contrast-warn {
  color: var(--warn-inline);
  font-weight: 700;
}

.preview-pane {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  max-height: 520px;
  overflow: auto;
  background: var(--surface-alt);
}

.raw-code {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}

.markdown-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--border);
  padding: 7px 10px;
  text-align: left;
}

.qr-preview-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  padding: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.qr-preview-wrap img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* WARM MINT-CREAM TRUST BAND */
.mint-band {
  background: var(--band-bg);
  border-top: 1px solid var(--band-border);
  border-bottom: 1px solid var(--band-border);
  padding: 46px 0;
  margin-top: 18px;
}

.trust-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.trust-intro h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pill-bg);
  border: 1px solid var(--band-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.trust-pill svg {
  color: var(--brand-ink);
  flex-shrink: 0;
}

.trust-showcase {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.trust-art-frame {
  background: var(--trust-frame);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.trust-art-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.trust-card-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

.trust-card-copy h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.trust-card-copy p {
  margin: 0;
  color: var(--muted);
}

/* BOTTOM TEAL CALLOUT CARD */
.footer-wrap {
  padding-top: 38px;
  padding-bottom: 34px;
}

.footer-cta-card {
  background: radial-gradient(circle at 80% 20%, var(--hero-top) 0%, var(--hero-bottom) 74%);
  color: #ffffff;
  border-radius: 28px;
  padding: 30px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-cta-card h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-cta-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.94rem;
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-fine {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-fine a {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (pointer: coarse) {
  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .sub-tab-btn,
  .theme-toggle-btn,
  .link-btn,
  .header-links a {
    min-block-size: 44px;
  }
}

@media (forced-colors: active) {
  .hero-shell,
  .footer-cta-card,
  .tool-panel,
  .tool-card-btn,
  .vip-pill,
  .limit-pill {
    border: 1px solid CanvasText;
  }

  .brand-mark {
    border: 2px solid CanvasText;
  }

  .tool-card-btn.active {
    border: 3px solid Highlight;
  }

  .btn-primary,
  .sub-tab-btn.active {
    border: 2px solid ButtonText;
  }
}

@media (max-width: 780px) {
  .tool-cards-grid {
    grid-template-columns: 1fr;
  }
  .tool-card-btn {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    text-align: left;
    padding: 14px;
  }
  .tool-card-media {
    grid-row: span 2;
    width: 64px;
    height: 64px;
    margin-bottom: 0;
  }
  .trust-showcase {
    grid-template-columns: 1fr;
  }
  .footer-cta-card {
    padding: 24px 20px;
  }
}
