:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --bg-deep: #eef3f0;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-subtle: #f8faf9;
  --surface-tint: #edf5f0;
  --surface-translucent: rgb(255 255 255 / 78%);
  --input-bg: #f8faf9;
  --text: #1d2722;
  --text-secondary: #47544d;
  --text-muted: #718078;
  --placeholder: #8b9790;
  --border: #d9e1dd;
  --border-strong: #becbc4;
  --accent: #236d50;
  --accent-hover: #18573e;
  --accent-contrast: #ffffff;
  --accent-soft: #e8f3ed;
  --success-surface: #e8f3ed;
  --success-border: #cfe1d7;
  --success-edge: #78a98f;
  --success-text: #344b40;
  --warning-accent: #87591f;
  --warning-text: #6c4718;
  --warning-surface: #fff6e8;
  --warning-border: #ecd7b8;
  --warning-edge: #d29a52;
  --warning-note: #7c674d;
  --danger: #a2463f;
  --danger-ring: rgb(162 70 63 / 12%);
  --focus: #1f6ca1;
  --focus-ring: rgb(31 108 161 / 14%);
  --focus-outline: rgb(31 108 161 / 40%);
  --header-bg: rgb(255 255 255 / 94%);
  --footer-bg: rgb(255 255 255 / 78%);
  --surface-highlight: rgb(255 255 255 / 90%);
  --surface-border-emphasis: rgb(190 203 196 / 88%);
  --accent-highlight: rgb(35 109 80 / 35%);
  --hero-wash: radial-gradient(circle at 50% 36%, rgb(199 225 211 / 34%) 0, rgb(224 238 231 / 17%) 28%, rgb(244 247 245 / 0%) 62%);
  --scroll-track: #edf2ef;
  --scroll-thumb: #a8b5ae;
  --scroll-thumb-hover: #88978f;
  --shadow-header: 0 0.125rem 0.75rem rgb(26 48 37 / 3%);
  --shadow-soft: 0 0.75rem 2.5rem rgb(29 52 40 / 7%), 0 0.125rem 0.5rem rgb(29 52 40 / 5%);
  --shadow-raised: 0 1.25rem 3.5rem rgb(28 57 43 / 11%), 0 0.25rem 0.875rem rgb(28 57 43 / 6%);
  --shadow-button: 0 0.35rem 0.85rem rgb(35 109 80 / 16%);
  --shadow-button-hover: 0 0.6rem 1.25rem rgb(35 109 80 / 22%);
  --shadow-control: 0 0.15rem 0.4rem rgb(29 52 40 / 4%);
  --shadow-control-hover: 0 0.35rem 0.8rem rgb(29 52 40 / 7%);
  --input-focus-shadow: 0 0.45rem 1.25rem rgb(29 52 40 / 6%);
  --radius-control: 0.75rem;
  --radius-panel: 0.9rem;
  --radius-surface: 1.125rem;
  --content: 52rem;
  --article: 58rem;
  --shell-max: 72rem;
  --pico-grid-column-gap: clamp(1rem, 2.4vw, 1.75rem);
  --pico-grid-row-gap: 1rem;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111815;
  --bg-deep: #0d1411;
  --surface: #18211d;
  --surface-raised: #1c2722;
  --surface-subtle: #151e1a;
  --surface-tint: #1d3027;
  --surface-translucent: rgb(24 33 29 / 82%);
  --input-bg: #141d19;
  --text: #edf2ef;
  --text-secondary: #c5d0ca;
  --text-muted: #94a29a;
  --placeholder: #78867f;
  --border: #2d3a34;
  --border-strong: #43534b;
  --accent: #65a987;
  --accent-hover: #7ab998;
  --accent-contrast: #0e1712;
  --accent-soft: #20382d;
  --success-surface: #1b3027;
  --success-border: #355b49;
  --success-edge: #5d9477;
  --success-text: #c6ddd1;
  --warning-accent: #c69b67;
  --warning-text: #e1bd8d;
  --warning-surface: #2a2319;
  --warning-border: #5b472d;
  --warning-edge: #9a7344;
  --warning-note: #c2a982;
  --danger: #d08079;
  --danger-ring: rgb(208 128 121 / 16%);
  --focus: #78a9ca;
  --focus-ring: rgb(120 169 202 / 18%);
  --focus-outline: rgb(120 169 202 / 46%);
  --header-bg: rgb(17 24 21 / 94%);
  --footer-bg: rgb(15 22 19 / 88%);
  --surface-highlight: rgb(255 255 255 / 5%);
  --surface-border-emphasis: #3a4a42;
  --accent-highlight: rgb(101 169 135 / 34%);
  --hero-wash: radial-gradient(circle at 50% 34%, rgb(42 74 59 / 46%) 0, rgb(25 46 37 / 24%) 31%, rgb(17 24 21 / 0%) 64%);
  --scroll-track: #101713;
  --scroll-thumb: #46544d;
  --scroll-thumb-hover: #5a6a61;
  --shadow-header: 0 0.125rem 0.75rem rgb(0 0 0 / 18%);
  --shadow-soft: 0 0.75rem 2.5rem rgb(0 0 0 / 22%), 0 0.125rem 0.5rem rgb(0 0 0 / 18%);
  --shadow-raised: 0 1.25rem 3.5rem rgb(0 0 0 / 30%), 0 0.25rem 0.875rem rgb(0 0 0 / 20%);
  --shadow-button: 0 0.35rem 0.9rem rgb(0 0 0 / 24%);
  --shadow-button-hover: 0 0.6rem 1.25rem rgb(0 0 0 / 30%);
  --shadow-control: 0 0.15rem 0.45rem rgb(0 0 0 / 18%);
  --shadow-control-hover: 0 0.35rem 0.8rem rgb(0 0 0 / 24%);
  --input-focus-shadow: 0 0.45rem 1.25rem rgb(0 0 0 / 24%);
}


* { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 0.75rem;
  height: 0.75rem;
}

html::-webkit-scrollbar-track { background: var(--scroll-track); }

html::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 0.1875rem solid var(--scroll-track);
  border-radius: 99rem;
}

html::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { min-width: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover { color: var(--accent-hover); }

button,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5.2vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 760;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.028em;
  font-weight: 730;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -0.014em;
  font-weight: 720;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell-max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.625rem;
  left: 0.625rem;
  padding: 0.55rem 0.8rem;
  transform: translateY(-170%);
  border: 0.0625rem solid var(--border-strong);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 0.0625rem solid var(--border);
  background: var(--header-bg);
  box-shadow: var(--shadow-header);
}

.header-inner {
  min-height: 4.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  display: grid;
  width: clamp(8.8rem, 12vw, 10.25rem);
  aspect-ratio: 650 / 164;
  align-items: center;
}

.brand-logo img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
}

.brand-logo-dark { display: none !important; }

:root[data-theme="dark"] .brand-logo-light { display: none !important; }
:root[data-theme="dark"] .brand-logo-dark { display: block !important; }

.header-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2vw, 1.7rem);
}

.header-link,
.header-action {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 670;
  text-decoration: none;
  white-space: nowrap;
}

.header-link::after,
.header-action::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 0.0625rem;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--accent);
  transition: transform 160ms ease;
}

.header-link:hover,
.header-action:hover { color: var(--accent); }
.header-link:hover::after,
.header-action:hover::after { transform: scaleX(1); }

.header-action {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0.0625rem solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface-translucent);
  color: var(--text-secondary);
  box-shadow: var(--shadow-control);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 140ms ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-control-hover);
  transform: translateY(-0.04rem);
}

.theme-toggle:active {
  transform: translateY(0);
  box-shadow: none;
}

.theme-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme-mode="system"] .theme-icon-system,
:root[data-theme-mode="light"] .theme-icon-light,
:root[data-theme-mode="dark"] .theme-icon-dark { display: block; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.5rem, 6vw, 5.75rem) 1rem clamp(2.75rem, 5vw, 4.6rem);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--hero-wash);
  pointer-events: none;
}

.hero-inner {
  width: min(100%, 52rem);
  margin-inline: auto;
}

.hero-copy {
  width: min(100%, 46rem);
  margin-inline: auto;
  text-align: center;
}

.hero-kicker,
.section-label,
.question-label,
.section-number,
.refund-eyebrow {
  color: var(--text-muted);
  font-size: 0.77rem;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 0.85rem;
  color: var(--accent);
}

.hero h1 {
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 1.15rem;
}

.lead {
  max-width: 45rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.62;
}

.hero .lead {
  margin-inline: auto;
  margin-bottom: 0;
}

.lookup-card {
  position: relative;
  width: min(100%, 45rem);
  margin: clamp(2rem, 4vw, 2.8rem) auto 0;
  padding: clamp(1.2rem, 2.6vw, 1.65rem);
  border: 0.0625rem solid var(--surface-border-emphasis);
  border-radius: var(--radius-surface);
  background: var(--surface-raised);
  box-shadow: var(--shadow-raised), inset 0 0.0625rem 0 var(--surface-highlight);
}

.lookup-card::before,
.seo-lookup::before {
  content: "";
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--accent-highlight), transparent);
  pointer-events: none;
}

.lookup-form {
  display: grid;
  gap: 0.75rem;
}

.field-heading {
  display: grid;
  gap: 0.28rem;
}

.field-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.35;
}

.field-helper,
.field-error,
.privacy-note,
.example-note,
.loading-note,
.action-note,
.secondary-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.field-helper { margin-bottom: 0; }

.field-error {
  margin: -0.1rem 0 0;
  color: var(--danger);
  font-weight: 660;
}

textarea {
  width: 100%;
  min-height: 6.9rem;
  resize: none;
  padding: 1rem 1.05rem;
  border: 0.0625rem solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--input-bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
  box-shadow: inset 0 0.0625rem 0 var(--surface-highlight);
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease, transform 170ms ease;
}

textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

textarea:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

textarea:focus {
  border-color: var(--focus);
  background: var(--surface);
  box-shadow: 0 0 0 0.22rem var(--focus-ring), var(--input-focus-shadow);
  transform: translateY(-0.04rem);
}

textarea[aria-invalid="true"] { border-color: var(--danger); }

textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 0.22rem var(--danger-ring), var(--input-focus-shadow);
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 100vmax var(--input-bg) inset;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.15rem;
  border: 0.0625rem solid transparent;
  border-radius: 0.7rem;
  font-size: 0.94rem;
  font-weight: 730;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 170ms ease, border-color 170ms ease, color 170ms ease, box-shadow 170ms ease, transform 140ms ease;
}

.button:focus-visible,
.theme-toggle:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 0.18rem solid var(--focus-outline);
  outline-offset: 0.2rem;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-button);
}

.button-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-0.07rem);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface-translucent);
  color: var(--text);
  box-shadow: var(--shadow-control);
}

.button-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-control-hover);
  transform: translateY(-0.05rem);
}

.button-secondary[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
  box-shadow: inset 0 0 0 0.0625rem var(--accent-highlight);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.lookup-submit-row {
  min-height: 3rem;
  display: flex;
  align-items: center;
  width: 100%;
}

.button-block { width: 100%; }

.button-spinner {
  width: 0.9em;
  height: 0.9em;
  flex: 0 0 0.9em;
  border: 0.125em solid color-mix(in srgb, var(--accent-contrast) 38%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.loading-note { margin: 0; }

.lookup-notes {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 0.0625rem solid var(--border);
}

.privacy-note { margin-bottom: 0.35rem; }
.privacy-note strong { color: var(--text-secondary); font-weight: 700; }
.example-note { margin-bottom: 0; }

.trust-strip {
  gap: clamp(0.7rem, 2vw, 1.75rem);
  padding-block: 0.5rem 4rem;
}

.trust-strip > div {
  padding-block: 1.1rem;
  border-top: 0.0625rem solid var(--border);
}

.trust-strip strong,
.trust-strip span { display: block; }

.trust-strip strong {
  margin-bottom: 0.2rem;
  color: var(--text);
  font-size: 0.9rem;
}

.trust-strip span {
  max-width: 32ch;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.48;
}

.result-shell {
  --result-index: 2.15rem;
  --result-gap: 0.85rem;
  --result-content-offset: calc(var(--result-index) + var(--result-gap));
  width: min(calc(100% - 2rem), var(--content));
  max-width: none;
  padding-block: clamp(2.8rem, 5vw, 5.3rem);
}

.result-aligned-copy {
  padding-inline-start: var(--result-content-offset);
}

.result-aligned-surface {
  padding-inline-start: var(--result-content-offset);
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  font-size: 0.82rem;
  font-weight: 730;
  line-height: 1.3;
}

.status-success,
.status-confirmed { color: var(--accent); }
.status-neutral { color: var(--warning-accent); }

.result-header { margin-bottom: 1.65rem; }
.question-label { margin-bottom: 0.35rem; text-transform: none; letter-spacing: 0; }

.result-header h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.45rem, 6vw, 3.35rem);
}

.result-header .lead { margin-bottom: 0.75rem; }
.secondary-meta { margin-bottom: 0; }

.bank-line {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 0.0625rem solid var(--border);
  border-left: 0.2rem solid var(--border-strong);
  border-radius: 0.55rem;
  background: var(--surface-subtle);
  box-shadow: inset 0 0.0625rem 0 var(--surface-highlight);
}

.bank-line span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 710;
  letter-spacing: 0.02em;
}

.bank-line strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bank-line small { color: var(--text-muted); font-size: 0.8rem; }
.bank-line.compact { margin-block: 1.35rem 1.9rem; }

.content-card {
  margin-top: 1.4rem;
  padding: 1.2rem 1.3rem;
}

.bank-line.result-aligned-surface,
.content-card.result-aligned-surface {
  padding-inline-start: var(--result-content-offset);
}

.recurring-card {
  border: 0.0625rem solid var(--success-border);
  border-left: 0.22rem solid var(--success-edge);
  border-radius: 0.75rem;
  background: var(--success-surface);
  box-shadow: inset 0 0.0625rem 0 var(--surface-highlight);
}

.recurring-card h2 { margin-bottom: 0.45rem; font-size: 1.2rem; }
.recurring-card p { margin-bottom: 0; color: var(--success-text); }

.branch-card,
.content-section,
.verification-block {
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 0.0625rem solid var(--border-strong);
}

.result-step {
  display: grid;
  grid-template-columns: var(--result-index) minmax(0, 1fr);
  column-gap: var(--result-gap);
  align-items: start;
}

.result-step-content {
  min-width: 0;
  grid-column: 2;
}

.result-step > .section-number {
  grid-column: 1;
  grid-row: 1;
}

.result-step-plain > .result-step-content {
  grid-column: 2;
}

.section-heading {
  display: block;
  margin-bottom: 1.2rem;
}

.section-heading h2 { margin-bottom: 0.35rem; }
.section-heading .section-lead { margin-bottom: 0; }

.section-heading-simple {
  display: block;
  margin-bottom: 0.7rem;
}

.section-number {
  margin: 0.28rem 0 0;
  color: var(--accent);
}

.section-lead {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.branch-actions .button { min-width: 10.4rem; }

.branch-feedback {
  margin: 0.9rem 0 0;
  color: var(--accent-hover);
  font-size: 0.92rem;
  font-weight: 660;
}

.warning-panel {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border: 0.0625rem solid var(--warning-border);
  border-left: 0.22rem solid var(--warning-edge);
  border-radius: 0.7rem;
  background: var(--warning-surface);
}

.warning-panel h3 { color: var(--warning-text); }
.warning-panel p:last-child { margin-bottom: 0; }
.warning-panel:focus-visible {
  outline: 0.16rem solid color-mix(in srgb, var(--warning-accent) 48%, transparent);
  outline-offset: 0.18rem;
}

.warning-note {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 0.0625rem solid var(--warning-border);
  color: var(--warning-note);
  font-size: 0.84rem;
  line-height: 1.5;
}

.content-section > p:last-of-type:not(.action-note) { margin-bottom: 0; }
.external-action { margin-top: 1.15rem; }
.action-note { margin: 0.55rem 0 0; }

.cancel-action {
  display: grid;
  gap: 1.05rem;
}

.cancel-instruction {
  margin-bottom: 0;
}

.cancel-action-row {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.cancel-action-row .external-action {
  width: 100%;
  margin-top: 0;
}

.cancel-action-row .action-note {
  margin: 0;
}

.refund-card {
  position: relative;
  margin-top: 0.25rem;
  padding: clamp(1.2rem, 2.6vw, 1.55rem);
  overflow: hidden;
  border: 0.0625rem solid var(--border-strong);
  border-radius: var(--radius-surface);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft), inset 0 0.0625rem 0 var(--surface-highlight);
}

.refund-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 1.25rem;
  left: 1.25rem;
  height: 0.0625rem;
  background: var(--accent-highlight);
  pointer-events: none;
}


.refund-eyebrow {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent);
}

.refund-card h3,
.refund-card p,
.refund-card .button,
.refund-card .refund-branch-note {
  position: relative;
  z-index: 1;
}

.refund-card p { color: var(--text-secondary); }
.refund-card .button { margin-top: 0.1rem; }
.refund-card .action-note { margin-bottom: 0; }

.refund-branch-note {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--warning-accent);
  font-size: 0.8rem;
  font-weight: 720;
}

.refund-section-deemphasized .refund-card {
  border-color: var(--border);
  background: var(--surface-subtle);
  box-shadow: none;
}

.refund-section-deemphasized .refund-card .button-primary {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.contacts-section { padding-top: 2rem; }

.contact-list {
  overflow: hidden;
  border: 0.0625rem solid var(--border);
  border-radius: 0.8rem;
  background: var(--surface-translucent);
  box-shadow: var(--shadow-control);
}

.contact-row {
  min-height: 3.2rem;
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.72rem 0.9rem;
  border-bottom: 0.0625rem solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.contact-row:last-child { border-bottom: 0; }
a.contact-row { cursor: pointer; }

a.contact-row:hover {
  background: var(--surface-tint);
  color: var(--text);
}

.contact-row-static { cursor: default; }

.contact-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 660;
}

.contact-value {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 630;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 780;
  transform: translateX(0);
  transition: transform 160ms ease;
}

a.contact-row:hover .contact-arrow { transform: translateX(0.16rem); }

.verification-block {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.verification-summary {
  display: grid;
  gap: 0.55rem;
}

.verification-summary p { margin-bottom: 0; }
.verification-summary strong { color: var(--text-secondary); }

details { margin-top: 0.85rem; }

summary {
  width: fit-content;
  color: var(--text);
  font-weight: 690;
  cursor: pointer;
}

.details-body { padding: 0.7rem 0 0 1.15rem; }
.details-body p { margin-bottom: 0.4rem; }

.source-list,
.descriptor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.source-list {
  border-top: 0.0625rem solid var(--border);
}

.source-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.72rem 0;
  border-bottom: 0.0625rem solid var(--border);
}

.source-list a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 630;
  overflow-wrap: anywhere;
}

.source-list span {
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.result-offset-link {
  margin-left: var(--result-content-offset);
}

.back-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  margin-top: 2.2rem;
  font-size: 0.9rem;
  font-weight: 690;
}

.state-page {
  width: min(100%, 44rem);
  margin-inline: auto;
}

.state-page h1 {
  max-width: 39rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.state-page > .lead { margin-bottom: 1rem; }

.state-guidance {
  margin-top: 1.9rem;
  padding-top: 1.7rem;
  border-top: 0.0625rem solid var(--border);
}

.state-guidance h2 { font-size: 1.25rem; }

.state-form {
  margin-top: 1.8rem;
  padding: 1.2rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.unknown-details {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 0.0625rem solid var(--border);
}

.unknown-details p { margin: 0.7rem 0 0; color: var(--text-muted); }

.merchant-page {
  width: min(calc(100% - 2rem), var(--article));
  max-width: none;
  margin-inline: auto;
  padding-block: clamp(2rem, 3vw, 3.75rem);
}

.breadcrumbs {
  width: min(100%, var(--content));
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0 auto 1.35rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.breadcrumbs a { color: var(--text-muted); }

.merchant-header {
  width: min(100%, var(--content));
  margin: 0 auto 1.85rem;
}

.merchant-header .status-line { margin-bottom: 0.85rem; }

.merchant-header h1 {
  max-width: 50rem;
  margin-bottom: 0.9rem;
  font-size: clamp(2.3rem, 4.5vw, 3.2rem);
}

.merchant-header .lead {
  max-width: 48rem;
  margin-bottom: 0.8rem;
}

.seo-lookup {
  position: relative;
  width: min(100%, var(--content));
  display: grid;
  gap: 1rem;
  margin-inline: auto;
  padding: clamp(1.15rem, 2.2vw, 1.45rem);
  border: 0.0625rem solid var(--surface-border-emphasis);
  border-radius: var(--radius-surface);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft), inset 0 0.0625rem 0 var(--surface-highlight);
}

.seo-lookup-intro {
  max-width: 41rem;
}

.seo-lookup-intro h2 { margin-bottom: 0.45rem; }

.seo-lookup-intro > p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.section-label { margin-bottom: 0.45rem; color: var(--accent); }
.seo-lookup-form textarea { min-height: 5.75rem; }

.merchant-content {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.merchant-facts-grid {
  gap: 0;
  margin-top: 0.25rem;
  border-block: 0.0625rem solid var(--border);
}

.merchant-fact-section {
  padding: 1.65rem 0;
  border-bottom: 0;
}

.merchant-fact-section h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.merchant-section {
  margin-top: 0;
  padding-block: 2.2rem 0;
  border-top: 0;
  border-bottom: 0.0625rem solid var(--border);
}

.merchant-section:last-child { border-bottom: 0; }

.merchant-recurring {
  margin-top: 2.2rem;
  margin-bottom: 0;
}

.merchant-action-section {
  padding-bottom: 2.2rem;
}

.merchant-action-section .button { min-width: min(100%, 18rem); }

.merchant-refund-section .refund-card .button {
  margin-inline: 0;
}

.merchant-refund-section {
  padding-bottom: 2.2rem;
}

.descriptor-list {
  overflow: hidden;
  border: 0.0625rem solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface-translucent);
}

.descriptor-list li {
  padding: 0.72rem 0.9rem;
  border-bottom: 0.0625rem solid var(--border);
}

.descriptor-list li:last-child { border-bottom: 0; }

.descriptor-list code {
  color: var(--text-secondary);
  font-size: 0.87rem;
}

.merchant-section .contact-list { margin-top: 0.4rem; }

.narrow-page {
  width: min(calc(100% - 2rem), 44rem);
  max-width: none;
  min-height: 64vh;
  padding-block: clamp(3rem, 6vw, 5.4rem);
}

.narrow-page h1 { max-width: 39rem; }
.narrow-page .lead { margin-bottom: 1.7rem; }

.narrow-note {
  margin-bottom: 1.8rem;
  padding: 1.1rem 1.2rem;
  border: 0.0625rem solid var(--border);
  border-left: 0.22rem solid var(--border-strong);
  border-radius: 0.65rem;
  background: var(--surface-subtle);
}

.narrow-note p { margin: 0; }

.site-footer {
  position: relative;
  border-top: 0.0625rem solid var(--border);
  background: var(--footer-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-inner p {
  max-width: 46rem;
  margin: 0;
}

.footer-brand {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-weight: 700;
  white-space: nowrap;
}

.merchant-index-page {
  width: min(calc(100% - 2rem), var(--article));
  max-width: none;
  min-width: 0;
  padding-block: clamp(2.5rem, 5vw, 5.7rem);
}

.merchant-index-header {
  width: min(100%, var(--content));
  min-width: 0;
  margin: 0 auto 3rem;
}

.merchant-index-header .section-label { margin-bottom: 0.75rem; }

.merchant-index-header h1 {
  max-width: 46rem;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
  font-size: clamp(2.4rem, 5vw, 3.65rem);
}

.merchant-index-header .lead { max-width: 48rem; }

.merchant-index-section {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.merchant-index-section + .merchant-index-section { margin-top: 3.5rem; }

.merchant-index-section-heading {
  max-width: 44rem;
  min-width: 0;
  margin-bottom: 1.25rem;
}

.merchant-index-section-heading h2 {
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}

.merchant-index-section-heading p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.merchant-index-list {
  overflow: hidden;
  border: 0.0625rem solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface-translucent);
  box-shadow: var(--shadow-soft);
}

.merchant-index-row {
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.5rem;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-bottom: 0.0625rem solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.merchant-index-row:last-child { border-bottom: 0; }

.merchant-index-row:hover {
  background: var(--surface-tint);
  color: var(--text);
}

.merchant-index-row:hover .merchant-index-main strong,
.merchant-index-row:focus-visible .merchant-index-main strong { color: var(--accent); }

.merchant-index-main {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.merchant-index-main strong {
  font-size: 1.05rem;
  line-height: 1.3;
  transition: color 160ms ease;
}

.merchant-index-main > span {
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.45;
}

.merchant-index-status {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 660;
  white-space: nowrap;
}

.merchant-index-status-ready { color: var(--accent); }

.merchant-index-arrow {
  color: var(--text-muted);
  font-size: 1.15rem;
  text-align: right;
  transform: translateX(0);
  transition: color 160ms ease, transform 160ms ease;
}

.merchant-index-row:hover .merchant-index-arrow {
  color: var(--accent);
  transform: translateX(0.18rem);
}

.merchant-index-lookup {
  width: min(100%, var(--content));
  align-items: end;
  gap: clamp(1rem, 2.4vw, 1.8rem);
  margin: 4rem auto 0;
  padding: 1.5rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.merchant-index-lookup > div { max-width: 35rem; }
.merchant-index-lookup .button { justify-self: end; align-self: end; }
.merchant-index-lookup h2 { margin-bottom: 0.5rem; }

.merchant-index-lookup p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 45rem) {
  .header-inner,
  .footer-inner { width: min(calc(100% - 4rem), var(--shell-max)); }

  .trust-strip > div { padding-top: 1.15rem; }

  .verification-summary {
    grid-template-columns: 11.5rem minmax(0, 1fr);
    gap: 1.15rem;
  }

}

@media (max-width: 44.999rem) {
  .merchant-index-row {
    grid-template-columns: minmax(0, 1fr) 1.35rem;
    gap: 0.75rem;
  }

  .merchant-index-status {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    white-space: normal;
  }

  .merchant-index-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .merchant-index-lookup { align-items: start; }
  .merchant-index-lookup .button { width: 100%; justify-self: stretch; }
}

@media (max-width: 37.5rem) {
  .shell,
  .result-shell,
  .merchant-page,
  .merchant-index-page,
  .narrow-page {
    width: min(calc(100% - 1.5rem), var(--shell-max));
  }

  .header-inner { gap: 0.7rem; }
  .brand-logo { width: 8.7rem; }
  .header-nav { gap: 0.7rem; }
  .header-action { display: none; }
  .header-link { font-size: 0.84rem; }
  .theme-toggle { width: 2.25rem; height: 2.25rem; flex-basis: 2.25rem; }

  .hero {
    padding: 2.8rem 0.75rem 2.5rem;
  }

  .hero-copy { text-align: left; }
  .hero h1 { margin-inline: 0; font-size: 2.35rem; }
  .hero .lead { margin-inline: 0; font-size: 1rem; }

  .lookup-card {
    margin-top: 1.8rem;
    padding: 1rem;
    border-radius: 0.9rem;
    box-shadow: var(--shadow-raised);
  }

  textarea { min-height: 6.5rem; }

  .trust-strip { padding-bottom: 3.25rem; }

  .result-shell {
    --result-index: 1.75rem;
    --result-gap: 0.65rem;
    padding-block: 2.6rem 4.2rem;
  }
  .result-header h1 { font-size: 2.5rem; }

  .content-card { padding: 1rem 1.05rem; }

  .branch-card,
  .content-section,
  .verification-block {
    margin-top: 2.1rem;
    padding-top: 1.75rem;
  }

  .section-heading { margin-bottom: 1rem; }

  .branch-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .branch-actions .button { width: 100%; min-width: 0; }

  .cancel-action-row { grid-template-columns: 1fr; gap: 0.65rem; }
  .cancel-action-row .action-note { max-width: 38ch; }

  .refund-card { padding: 1.05rem; }

  .contact-row {
    grid-template-columns: minmax(5.4rem, 0.78fr) minmax(0, 1.22fr);
    gap: 0.75rem;
    padding-inline: 0.75rem;
  }

  .contact-value { font-size: 0.86rem; }

  .source-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .source-list span { white-space: normal; }

  .merchant-page { padding-block: 1.8rem 4.5rem; }
  .merchant-header { margin-bottom: 1.6rem; }
  .merchant-header h1 { font-size: 2.3rem; }
  .seo-lookup { gap: 1rem; padding: 1rem; }
  .seo-lookup-form textarea { min-height: 5.9rem; }
  .merchant-section { padding-top: 1.85rem; }

  .merchant-index-page { padding-block: 2rem 4.5rem; }
  .merchant-index-header { margin-bottom: 2.6rem; }
  .merchant-index-header h1 { font-size: 2.35rem; }
  .merchant-index-section + .merchant-index-section { margin-top: 3rem; }
  .merchant-index-row { padding: 1rem; }
  .merchant-index-lookup { margin-top: 3rem; padding: 1.05rem; }

  .narrow-page { padding-block: 2.8rem 4.3rem; }

  .footer-inner {
    display: grid;
    gap: 0.7rem;
    padding-block: 1.25rem;
  }

  .footer-brand { justify-self: start; }
}

@media (forced-colors: active) {
  .button,
  textarea,
  .refund-card,
  .lookup-card,
  .seo-lookup,
  .contact-list,
  .merchant-index-list {
    border: 0.0625rem solid CanvasText;
    box-shadow: none;
  }

  .recurring-card,
  .warning-panel,
  .bank-line,
  .narrow-note { border-left: 0.2rem solid CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Refund questionnaire and generated package. */
.refund-flow-page {
  width: min(calc(100vw - 2rem), 47.5rem);
  margin-inline: auto;
}

.refund-service-price {
  margin: 0 0 0.55rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 650;
}
.refund-service-price strong { color: var(--text); }
.refund-price-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  align-items: baseline;
  margin: 1.25rem 0 1.6rem;
  padding: 1rem 1.1rem;
  border: 0.0625rem solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface);
}
.refund-price-summary > span {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 650;
}
.refund-price-summary > strong {
  font-size: 1.35rem;
  line-height: 1;
}
.refund-price-summary > small {
  grid-column: 1 / -1;
  color: var(--text-secondary);
  line-height: 1.45;
}
.refund-questionnaire {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.125rem;
}
.refund-question {
  min-width: 0;
  margin: 0;
  padding: 0 0 1.625rem;
  border: 0;
  border-bottom: 0.0625rem solid var(--border);
}
.refund-question legend {
  width: 100%;
  margin-bottom: 0.875rem;
  padding: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 730;
}
.choice-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.8125rem 0.875rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  box-shadow: var(--shadow-control);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 140ms ease;
}
.choice-row + .choice-row { margin-top: 0.5625rem; }
.choice-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-control-hover); transform: translateY(-0.03rem); }
.choice-row:focus-within { outline: 0.18rem solid var(--focus-outline); outline-offset: 0.14rem; }
.choice-row:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice-row input { margin-top: 0.25rem; accent-color: var(--accent); }
.choice-row span { display: grid; gap: 0.125rem; }
.choice-row small { color: var(--text-muted); font-size: 0.86rem; line-height: 1.4; }
.choice-row-compact { padding-block: 0.625rem; }
.refund-transaction-fields {
  gap: 0.875rem 1.125rem;
}
.refund-transaction-fields > * { min-width: 0; }
.refund-field { display: grid; gap: 0.4375rem; color: var(--text-secondary); font-weight: 650; }
.refund-field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.75rem;
  border: 0.0625rem solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--input-bg);
  color: var(--text);
  color-scheme: inherit;
  font: inherit;
  font-weight: 500;
}
.refund-field input:focus-visible {
  outline: 0.1875rem solid color-mix(in srgb, var(--focus) 22%, transparent);
  outline-offset: 0.0625rem;
  border-color: var(--focus);
}
.refund-form-summary { margin: 1.25rem 0; }
.refund-submit-block { display: grid; gap: 0.5625rem; justify-items: start; padding-top: 0.25rem; }
.refund-case-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.0625rem;
  margin: 1.75rem 0 2.625rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--border);
}
.refund-case-summary > div { padding: 0.8125rem 0.9375rem; background: var(--surface-raised); }
.refund-case-summary > div:last-child { grid-column: 1 / -1; }
.refund-case-summary dt { color: var(--text-muted); font-size: 0.78rem; font-weight: 700; }
.refund-case-summary dd { margin: 0.125rem 0 0; color: var(--text); font-weight: 650; }
.refund-package-section { margin-top: 2.625rem; }
.generated-copy-block {
  margin-top: 1rem;
  padding: 1rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface-raised);
  box-shadow: var(--shadow-control);
}
.generated-copy-label { margin-bottom: 0.4375rem; color: var(--text-muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.generated-copy-block pre {
  margin: 0 0 0.875rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
  font: inherit;
  line-height: 1.6;
}
.button-compact { min-height: 2.5rem; padding: 0.5rem 0.75rem; font-size: 0.88rem; }
.refund-destination { margin-top: 1rem; }
.refund-next-steps { padding-left: 1.35rem; }
.refund-next-steps li + li { margin-top: 0.5rem; }
.refund-disclaimer { margin-top: 2.25rem; }

@media (max-width: 37.5rem) {
  .refund-case-summary { grid-template-columns: 1fr; }
  .refund-submit-block .button { width: 100%; }
}


/* Framework-backed polish layer: Pico provides responsive grid primitives; product styles stay authoritative. */
.grid > * { min-width: 0; }

.merchant-facts-grid > .merchant-fact-section + .merchant-fact-section {
  border-top: 0.0625rem solid var(--border);
}

@media (min-width: 48rem) {
  .merchant-facts-grid > .merchant-fact-section { padding-inline: 1.4rem; }
  .merchant-facts-grid > .merchant-fact-section:first-child { padding-left: 0; }
  .merchant-facts-grid > .merchant-fact-section:last-child {
    padding-right: 0;
    border-top: 0;
    border-left: 0.0625rem solid var(--border);
  }
}

.unknown-research {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--surface-subtle);
}
.unknown-research h2 { margin: 0.2rem 0 0.6rem; font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
.unknown-research > p { color: var(--text-secondary); }
.research-optin-form { display: grid; gap: 0.85rem; margin-top: 1rem; }
.research-consent { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--text-secondary); }
.research-consent input { flex: 0 0 auto; margin-top: 0.2rem; }
.research-optin-form .button { justify-self: start; }
.research-success { padding: 0.8rem 1rem; border-left: 0.2rem solid var(--success-edge); background: var(--success-surface); border-radius: var(--radius-control); color: var(--success-text) !important; }

@media (max-width: 36rem) {
  .research-optin-form .button { width: 100%; justify-content: center; }
}

.research-trap {
  position: absolute !important;
  inline-size: 0.0625rem !important;
  block-size: 0.0625rem !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-left: auto;
}
.footer-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18rem;
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--text-secondary);
  text-decoration-color: currentColor;
}

.legal-header { margin-bottom: 2.3rem; }
.legal-section {
  margin-top: 2.1rem;
  padding-top: 1.6rem;
  border-top: 0.0625rem solid var(--border);
}
.legal-section h2 { margin-bottom: 0.8rem; font-size: clamp(1.25rem, 2.5vw, 1.55rem); }
.legal-section h3 { margin: 1.25rem 0 0.45rem; font-size: 1rem; }
.legal-section p,
.legal-section li { color: var(--text-secondary); }
.legal-section ul { padding-left: 1.25rem; }
.legal-section li + li { margin-top: 0.4rem; }
.legal-details { display: grid; gap: 0; margin: 0; border-top: 0.0625rem solid var(--border); }
.legal-details > div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 1.5fr);
  gap: 1rem;
  padding-block: 0.65rem;
  border-bottom: 0.0625rem solid var(--border);
}
.legal-details dt { color: var(--text-muted); font-size: 0.86rem; }
.legal-details dd { margin: 0; overflow-wrap: anywhere; }
.research-policy-note,
.refund-privacy-note { color: var(--text-muted); font-size: 0.84rem; }
.research-policy-note { margin: -0.2rem 0 0; }
.refund-privacy-note { margin: -0.7rem 0 1.5rem; }

@media (max-width: 44.999rem) {
  .footer-legal { margin-left: 0; }
  .legal-details > div { grid-template-columns: 1fr; gap: 0.2rem; }
}
