:root {
  --ink: #161616;
  --heading: #0a0a0a;
  --muted: #5f6368;
  --quiet: #f5f5f2;
  --paper: #ffffff;
  --black: #050505;
  --charcoal: #1b1b1b;
  --red: #99000f;
  --red-dark: #99000f;
  --red-soft: #99000f;
  --line: #d8d8d2;
  --line-dark: rgba(255, 255, 255, 0.2);
  --gold: #b7812e;
  --green: #24875b;
  --blue: #2d5f8b;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  --radius: 4px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 11.8ch;
  font-size: clamp(3rem, 7vw, 6.25rem);
}

h2 {
  max-width: 13.5ch;
  font-size: clamp(2.1rem, 4.4vw, 4.05rem);
}

h3 {
  font-size: 1.12rem;
  line-height: 1.2;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(900px, calc(100% - 40px));
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 60;
  transform: translateY(-150%);
  background: var(--black);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.news-ticker {
  position: relative;
  z-index: 20;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 48px;
  align-items: stretch;
  overflow: hidden;
  background: white;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  font-size: 0.82rem;
}

.news-ticker-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  background: var(--black);
  color: white;
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-ticker-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #99000f;
  box-shadow: 0 0 0 4px rgba(153, 0, 15, 0.16);
}

.news-ticker-viewport {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 24px, black calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, black 24px, black calc(100% - 24px), transparent);
}

.news-ticker-track {
  width: max-content;
  min-height: 47px;
  display: flex;
  align-items: center;
  will-change: transform;
}

.news-ticker-track.is-ready {
  animation: tariffTickerRtl 70s linear infinite;
}

.news-ticker:hover .news-ticker-track,
.news-ticker:focus-within .news-ticker-track,
.news-ticker.is-paused .news-ticker-track {
  animation-play-state: paused;
}

.news-ticker-group {
  display: flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
}

.news-ticker-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 47px;
  color: #3f3f3f;
  white-space: nowrap;
}

.news-ticker-item::before {
  content: "";
  position: absolute;
  left: -24px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.news-ticker-item strong {
  color: var(--heading);
  font-size: inherit;
  line-height: inherit;
}

.news-ticker-item:hover strong,
.news-ticker-item:focus-visible strong {
  color: var(--red);
}

.news-ticker-item:focus-visible,
.news-ticker-toggle:focus-visible {
  outline: 3px solid rgba(153, 0, 15, 0.22);
  outline-offset: -3px;
}

.news-source {
  color: var(--red);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.news-ticker-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: white;
  color: var(--heading);
  cursor: pointer;
}

.news-ticker-toggle:hover {
  background: var(--quiet);
}

.pause-icon,
.pause-icon::after {
  display: block;
  width: 3px;
  height: 13px;
  background: currentColor;
}

.pause-icon {
  position: relative;
  margin-right: 6px;
}

.pause-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
}

.news-ticker.is-paused .pause-icon {
  width: 0;
  height: 0;
  margin: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  background: transparent;
}

.news-ticker.is-paused .pause-icon::after {
  display: none;
}

@keyframes tariffTickerRtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.nav-shell {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-weight: 800;
}

.brand-mark,
.brand-logo {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.brand-mark {
  background: var(--black);
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.brand-logo {
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.primary-nav a,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 0;
  color: #343434;
  font-size: 0.91rem;
  font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--heading);
  box-shadow: inset 0 -3px 0 var(--red);
}

.nav-cta {
  background: var(--red);
  color: white;
  padding-inline: 18px;
}

.nav-cta:hover {
  background: var(--red-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  place-items: center;
  gap: 4px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--heading);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--red);
  color: white;
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  background: transparent;
  border-color: currentColor;
  color: var(--heading);
}

.button.secondary:hover {
  background: var(--heading);
  color: white;
}

.button.light {
  background: white;
  color: var(--heading);
}

.button.light:hover {
  background: var(--red);
  color: white;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.4;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  align-items: center;
  gap: 56px;
  padding: 88px 0 72px;
}

.hero h1,
.hero h2,
.hero h3,
.hero .brand,
.hero label {
  color: white;
}

.hero p {
  color: #d9d9d6;
}

.eyebrow,
.tiny-label {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
}

.hero .eyebrow,
.calculator-band .eyebrow,
.cta-section .eyebrow,
.site-footer .eyebrow {
  color: #99000f;
}

.hero-lede {
  margin-top: 24px;
  max-width: 650px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero .button.secondary {
  color: white;
}

.hero .button.secondary:hover {
  background: white;
  color: var(--heading);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.proof-row span,
.status-pill,
.workflow-card > span,
.detail-card > span,
.use-case-grid article > span,
.resource-grid article > span,
.module-number,
.process-grid article > span,
.principles article > span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--quiet);
  color: var(--heading);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .proof-row span {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.product-visual {
  min-width: 0;
}

.dashboard-frame {
  position: relative;
  overflow: hidden;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
}

.dashboard-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--red);
}

.dashboard-top,
.review-item,
.result-top,
.footer-bottom,
.newsletter-panel,
.cta-panel,
.stats-band,
.calculator-band-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-top strong {
  display: block;
  margin-top: 4px;
  color: var(--heading);
  font-size: clamp(2.7rem, 5vw, 4rem);
  line-height: 1;
}

.status-pill.positive {
  background: #eaf6ef;
  border-color: #c8e6d5;
  color: var(--green);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.metric-card,
.mini-calc div,
.calculator-result,
.upload-panel,
.contact-card,
.guided-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-card {
  background: var(--quiet);
  padding: 16px;
}

.metric-card span,
.review-item small {
  display: block;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  color: var(--heading);
  font-size: 1.45rem;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-item {
  background: white;
  border: 1px solid var(--line);
  padding: 14px;
}

.review-item > div {
  min-width: 0;
  flex: 1;
}

.review-item strong {
  color: var(--heading);
}

.review-item > span:last-child {
  color: var(--heading);
  font-weight: 800;
  white-space: nowrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.green {
  background: var(--green);
}

.amber {
  background: var(--gold);
}

.blue {
  background: var(--blue);
}

.section {
  padding: 96px 0;
  background: white;
}

.section.tight {
  padding: 30px 0;
}

.shaded {
  background: var(--quiet);
  border-block: 1px solid var(--line);
}

.outcome-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: white;
}

.outcome-strip div {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.outcome-strip div:last-child {
  border-right: 0;
}

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

.outcome-strip strong {
  margin-bottom: 8px;
  color: var(--heading);
  font-size: 1.15rem;
}

.split,
.calculator-layout,
.contact-layout,
.platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: start;
}

.split p {
  margin-top: 20px;
  max-width: 660px;
}

.feature-grid,
.audience-grid,
.workflow-grid,
.process-grid,
.workflow-detail-grid,
.use-case-grid,
.resource-grid {
  display: grid;
  gap: 16px;
}

.feature-grid,
.audience-grid,
.process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.audience-grid article,
.process-grid article,
.workflow-card,
.detail-card,
.use-case-grid article,
.resource-grid article,
.module-block,
.principles article {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.feature-grid article:hover,
.audience-grid article:hover,
.process-grid article:hover,
.workflow-card:hover,
.detail-card:hover,
.use-case-grid article:hover,
.resource-grid article:hover {
  transform: translateY(-3px);
  border-color: #b6b6af;
  box-shadow: var(--shadow);
}

.feature-grid p,
.audience-grid p,
.process-grid p,
.workflow-card p,
.detail-card p,
.use-case-grid p,
.resource-grid p,
.module-block p,
.principles p {
  margin-top: 12px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 820px;
}

.workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-card {
  min-height: 278px;
  display: flex;
  flex-direction: column;
}

.workflow-card h3 {
  margin-top: 46px;
  font-size: 1.35rem;
}

.workflow-card p {
  margin-top: 14px;
}

.calculator-band,
.cta-section {
  background: var(--black);
  color: white;
}

.calculator-band h2,
.calculator-band h3,
.calculator-band p,
.cta-section h2,
.cta-section h3,
.cta-section p {
  color: white;
}

.calculator-band p,
.cta-section p {
  color: #d9d9d6;
}

.calculator-band p {
  margin: 20px 0 28px;
  max-width: 650px;
}

.calculator-band-grid {
  align-items: center;
}

.calculator-tabs-section {
  position: sticky;
  top: var(--header-height);
  z-index: 18;
  background: white;
  border-bottom: 1px solid var(--line);
}

.tariff-tabs {
  display: flex;
  gap: 0;
}

.tariff-tab {
  min-height: 52px;
  border: 1px solid var(--line);
  border-right: 0;
  background: white;
  color: var(--heading);
  padding: 0 22px;
  font-weight: 850;
  cursor: pointer;
}

.tariff-tab:last-child {
  border-right: 1px solid var(--line);
}

.tariff-tab:hover,
.tariff-tab:focus-visible {
  background: var(--quiet);
}

.tariff-tab.is-active {
  background: var(--black);
  border-color: var(--black);
  color: white;
}

[data-tariff-tab-panel][hidden] {
  display: none;
}

.mini-calc {
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-calc div {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.07);
  padding: 18px;
}

.mini-calc span {
  display: block;
  color: #d9d9d6;
  font-weight: 700;
}

.mini-calc strong {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: 1.45rem;
}

.cta-section {
  padding: 76px 0;
}

.cta-panel {
  border: 1px solid var(--line-dark);
  border-left: 6px solid var(--red);
  background: #101010;
  padding: 36px;
}

.cta-panel p {
  margin-top: 14px;
}

.page-hero {
  padding: 104px 0 76px;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 13ch;
  color: white;
}

.page-hero p:not(.eyebrow) {
  margin-top: 22px;
  max-width: 790px;
  color: #d9d9d6;
  font-size: 1.16rem;
}

.service-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

.service-focus,
.refund-callout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.service-focus .detail-card .button,
.refund-callout .button {
  margin-top: 26px;
}

.agreement-grid,
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agreement-grid article,
.risk-grid article {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  background: white;
}

.agreement-grid span,
.risk-grid span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agreement-grid strong {
  display: block;
  margin: 10px 0 6px;
  color: var(--heading);
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.risk-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.risk-grid article {
  min-height: 180px;
}

.refund-callout > div:first-child {
  padding: 48px;
  border-left: 7px solid var(--red);
  background: var(--black);
  color: white;
}

.refund-callout > div:first-child span,
.refund-callout > div:first-child strong {
  display: block;
}

.refund-callout > div:first-child strong {
  margin: 12px 0;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.95;
}

.refund-callout > div:first-child p {
  color: #d9d9d6;
}

.inline-form {
  display: flex;
  gap: 12px;
  align-items: end;
}

.inline-form label {
  min-width: min(360px, 100%);
  color: white;
}

.demo-panel {
  gap: 28px;
}

.side-rail {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 0;
  border-left: 4px solid var(--red);
  background: var(--quiet);
  padding: 10px 0 10px 18px;
}

.side-rail a {
  color: var(--muted);
  font-weight: 750;
  padding: 9px 0;
}

.side-rail a:hover {
  color: var(--red);
}

.module-stack {
  display: grid;
  gap: 18px;
}

.module-block h2 {
  margin-top: 16px;
}

.data-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border: 1px solid var(--line);
  background: white;
}

.data-table div {
  padding: 17px;
  border-right: 1px solid var(--line);
}

.data-table div:last-child {
  border-right: 0;
}

.data-table span,
.data-table em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.data-table strong {
  display: block;
  margin: 4px 0;
  color: var(--heading);
  font-size: 1.5rem;
}

.process-grid article span {
  width: 34px;
  height: 34px;
  margin-bottom: 32px;
  padding: 0;
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.workflow-detail-grid,
.use-case-grid,
.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card h2 {
  margin-top: 18px;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}

.detail-card ul,
.upload-panel ul,
.contact-card ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.detail-card li,
.upload-panel li,
.contact-card li {
  margin: 8px 0;
}

.detail-card li::marker,
.upload-panel li::marker,
.contact-card li::marker {
  color: var(--red);
}

.calculator-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
}

.calculator-form,
.contact-form {
  display: grid;
  gap: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.form-header p {
  margin-top: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--heading);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(153, 0, 15, 0.16);
  border-color: var(--red);
}

input::placeholder,
textarea::placeholder {
  color: #8a8d91;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.calculator-form .button {
  width: 100%;
}

.calculator-result {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
  background: var(--black);
  border-color: #2a2a2a;
  color: white;
  padding: 26px;
  box-shadow: var(--shadow);
}

.unified-calculator-form {
  max-width: none;
}

.unified-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.unified-results .calculator-result {
  position: static;
  display: flex;
  flex-direction: column;
}

.unified-results .result-top {
  min-height: 96px;
}

.unified-results .result-top strong {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
}

.unified-results .result-stats {
  grid-template-columns: 1fr;
}

.result-top {
  align-items: flex-start;
}

.result-top span,
.result-stats span {
  display: block;
  color: #d9d9d6;
  font-weight: 700;
}

.result-top strong {
  color: white;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  text-align: right;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.result-stats div,
.rate-row,
.flag-row {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  padding: 12px;
}

.result-stats strong,
.rate-row strong,
.flag-row strong {
  color: white;
}

.result-stats strong {
  display: block;
  margin-top: 8px;
}

.rate-stack,
.review-flags {
  display: grid;
  gap: 10px;
}

.rate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  animation: rowIn 260ms ease both;
}

.rate-row span,
.flag-row span {
  color: #d9d9d6;
}

.review-flags {
  margin-top: 18px;
}

.fine-print,
.helper-note {
  font-size: 0.88rem;
}

.fine-print {
  margin-top: 18px;
  color: #d9d9d6;
}

.guided-card {
  display: grid;
  gap: 8px;
  background: var(--quiet);
  padding: 16px;
}

.guided-card strong {
  color: var(--heading);
}

.guided-card p,
.helper-note {
  color: var(--muted);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.preset-row button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--heading);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.preset-row button:hover,
.preset-row button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.upload-panel {
  background: white;
  padding: 28px;
}

.upload-panel .button {
  margin-top: 22px;
}

.section122-summary {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  background: white;
}

.section122-summary span,
.section122-match span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section122-summary strong {
  display: block;
  color: var(--heading);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
}

.section122-summary p {
  color: var(--muted);
}

.section122-match {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-left: 4px solid #99000f;
  background: rgba(255, 255, 255, 0.07);
}

.section122-match p,
.section122-match small {
  color: #d9d9d6;
}

.section122-batch {
  display: grid;
  gap: 14px;
}

.section122-batch textarea {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.batch-output {
  min-height: 90px;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  background: var(--black);
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  white-space: pre;
}

.resource-grid article,
.use-case-grid article {
  min-height: 245px;
}

.resource-grid a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--red);
  font-weight: 850;
}

.resource-grid a:hover {
  color: var(--red-dark);
}

.newsletter-panel {
  align-items: end;
}

.newsletter-panel h2 {
  max-width: 540px;
}

.newsletter-panel p {
  margin-top: 14px;
}

.inline-form {
  display: flex;
  gap: 10px;
  min-width: min(440px, 100%);
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.contact-card {
  background: var(--quiet);
  padding: 28px;
}

.contact-card a,
.contact-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.contact-card a:hover {
  color: var(--red);
}

.contact-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.principles {
  display: grid;
  gap: 16px;
}

.stats-band {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
}

.stats-band div {
  flex: 1;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  color: var(--heading);
  font-size: 1.15rem;
}

.stats-band span {
  margin-top: 8px;
  color: var(--muted);
}

.workflow-showcase,
.calculator-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.calculator-showcase {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
}

.calculator-showcase p,
.workflow-showcase p {
  margin-top: 18px;
  max-width: 650px;
}

.image-frame,
.image-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--black);
}

.image-frame img,
.image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: transform 650ms ease, filter 650ms ease;
}

.image-frame:hover img,
.image-card:hover img {
  transform: scale(1.025);
  filter: grayscale(0.25) contrast(1.06);
}

.workflow-showcase .image-frame {
  aspect-ratio: 16 / 9;
}

.calculator-art {
  aspect-ratio: 1 / 1;
}

.site-footer {
  background: var(--black);
  color: white;
  padding: 58px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr) minmax(220px, 0.8fr);
  gap: 34px;
}

.footer-newsletter form {
  display: grid;
  gap: 12px;
}

.footer-newsletter label {
  color: white;
}

.footer-newsletter .footer-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-size: 0.86rem;
  font-weight: 400;
}

.footer-newsletter .footer-check input {
  width: auto;
  margin-top: 4px;
}

.footer-newsletter .footer-check span {
  margin: 0;
}

.footer-grid p {
  margin-top: 16px;
  max-width: 370px;
  color: #d9d9d6;
}

.footer-grid h2 {
  margin-bottom: 12px;
  color: #d9d9d6;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-grid a,
.footer-grid span {
  display: block;
  margin-top: 9px;
  color: white;
}

.footer-grid a:hover {
  color: #99000f;
}

.footer-brand .brand {
  color: white;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  color: #d9d9d6;
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 650ms ease var(--text-delay, 0ms),
    transform 650ms ease var(--text-delay, 0ms);
  will-change: opacity, transform;
}

.text-reveal.text-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy {
  animation: heroIn 700ms ease both;
}

.product-visual {
  animation: heroIn 820ms ease 120ms both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reveal,
  .text-reveal {
    opacity: 1;
    transform: none;
  }

  .news-ticker-track.is-ready {
    animation: none !important;
  }

  .news-ticker-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .news-ticker-group[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 1080px) {
  .primary-nav a {
    padding-inline: 9px;
    font-size: 0.86rem;
  }

  .unified-results {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .risk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .primary-nav,
  .nav-cta {
    display: none;
  }

  .primary-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding: 0 0 16px;
    border-top: 1px solid var(--line);
  }

  .primary-nav.is-open a {
    justify-content: flex-start;
    min-height: 46px;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }

  .hero-grid,
  .split,
  .calculator-band-grid,
  .calculator-layout,
  .form-grid.three,
  .contact-layout,
  .platform-layout,
  .workflow-showcase,
  .calculator-showcase,
  .service-focus,
  .refund-callout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .side-rail,
  .calculator-result {
    position: static;
  }

  .workflow-detail-grid,
  .use-case-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
  }

  .shell,
  .narrow {
    width: min(100% - 28px, 1180px);
  }

  .nav-shell {
    min-height: var(--header-height);
  }

  .brand {
    font-size: 0.95rem;
  }

  .news-ticker {
    grid-template-columns: auto minmax(0, 1fr) 44px;
    font-size: 0.77rem;
  }

  .news-ticker-label {
    padding-inline: 12px;
  }

  .news-ticker-label span:last-child {
    font-size: 0;
  }

  .news-ticker-label span:last-child::after {
    content: "News";
    font-size: 0.69rem;
  }

  .hero-grid,
  .section,
  .page-hero {
    padding-block: 58px;
  }

  .page-hero {
    padding-top: 72px;
  }

  h1 {
    max-width: 12ch;
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-actions,
  .button,
  .inline-form {
    width: 100%;
  }

  .outcome-strip,
  .feature-grid,
  .audience-grid,
  .process-grid,
  .workflow-grid,
  .workflow-detail-grid,
  .use-case-grid,
  .resource-grid,
  .metric-grid,
  .result-stats,
  .form-grid,
  .data-table,
  .mini-calc,
  .footer-grid,
  .agreement-grid,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .outcome-strip div,
  .data-table div,
  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .outcome-strip div:last-child,
  .data-table div:last-child,
  .stats-band div:last-child {
    border-bottom: 0;
  }

  .dashboard-frame,
  .calculator-form,
  .calculator-result,
  .cta-panel,
  .contact-form {
    padding: 20px;
  }

  .dashboard-top strong {
    font-size: 2.2rem;
    overflow-wrap: anywhere;
  }

  .review-item,
  .dashboard-top,
  .result-top,
  .newsletter-panel,
  .cta-panel,
  .footer-bottom,
  .stats-band,
  .calculator-band-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-top strong {
    text-align: left;
  }

  .inline-form {
    flex-direction: column;
  }

  .workflow-showcase .image-frame,
  .calculator-art {
    aspect-ratio: 4 / 3;
  }
}

.tariff-simulator-page {
  --sim-page: #f7f8f5;
  --sim-surface: #ffffff;
  --sim-surface-alt: #f2f4ef;
  --sim-surface-muted: #f8f9f6;
  --sim-ink: #111827;
  --sim-ink-soft: #344054;
  --sim-muted: #667085;
  --sim-muted-2: #98a2b3;
  --sim-line: #d9ded6;
  --sim-line-soft: #e7eae4;
  --sim-blue: #2451ff;
  --sim-blue-dark: #0f35d6;
  --sim-blue-soft: #eef2ff;
  --sim-green: #0f8c5f;
  --sim-yellow: #9a6200;
  --sim-danger: #99000f;
  --sim-shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
  --sim-shadow-soft: 0 8px 22px rgba(16, 24, 40, 0.055);
  --sim-radius-sm: 6px;
  --sim-radius-md: 10px;
  --sim-radius-lg: 16px;
  --sim-max-width: 1184px;
  margin-top: calc(var(--header-height) * -1);
  padding-top: var(--header-height);
  background: var(--sim-page);
  color: var(--sim-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tariff-simulator-page button {
  cursor: pointer;
}

.tariff-simulator-page h1,
.tariff-simulator-page h2,
.tariff-simulator-page h3,
.tariff-simulator-page p {
  margin-top: 0;
}

.tariff-simulator-page h1,
.tariff-simulator-page h2,
.tariff-simulator-page h3 {
  max-width: none;
  color: var(--sim-ink);
  letter-spacing: 0;
}

.tariff-hero {
  border-bottom: 1px solid var(--sim-line-soft);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--sim-surface) 74%, transparent), transparent),
    radial-gradient(circle at 50% -20%, rgba(36, 81, 255, 0.09), transparent 36rem);
}

.tariff-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 36px;
  width: min(var(--sim-max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0 66px;
}

.tariff-hero-copy {
  max-width: 780px;
  padding-top: 4px;
}

.tariff-simulator-page .hero-loader {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  margin-bottom: 24px;
}

.tariff-simulator-page .hero-loader span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--sim-blue);
  animation: simPulse 1.4s ease-in-out infinite;
}

.tariff-simulator-page .hero-loader span:nth-child(2) {
  animation-delay: 160ms;
}

.tariff-simulator-page .hero-loader span:nth-child(3) {
  animation-delay: 320ms;
}

@keyframes simPulse {
  0%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.tariff-hero-copy h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7.6vw, 88px);
  font-weight: 700;
  line-height: 0.96;
}

.tariff-hero-copy p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--sim-ink-soft);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.45;
}

.tariff-simulator-page .try-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--sim-muted);
  font-weight: 600;
}

.tariff-simulator-page .try-row button {
  min-height: 34px;
  border: 1px solid var(--sim-line);
  border-radius: 999px;
  background: var(--sim-surface);
  color: var(--sim-ink-soft);
  padding: 0 14px;
  font-weight: 700;
}

.tariff-simulator-page .try-row button:hover,
.tariff-simulator-page .try-row button.is-active {
  border-color: var(--sim-blue);
  color: var(--sim-blue);
}

.tariff-simulator-page .updates-panel {
  align-self: start;
  border: 1px solid var(--sim-line);
  border-radius: var(--sim-radius-lg);
  background: var(--sim-surface);
  box-shadow: var(--sim-shadow-soft);
  overflow: hidden;
}

.tariff-simulator-page .updates-heading {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--sim-line-soft);
}

.tariff-simulator-page .updates-heading h2 {
  margin-bottom: 6px;
  font-size: 22px;
  letter-spacing: 0;
}

.tariff-simulator-page .updates-heading span,
.tariff-simulator-page .card-heading span,
.tariff-simulator-page .section-header p,
.tariff-simulator-page .field-help,
.tariff-simulator-page .updates-list p,
.tariff-simulator-page .upload-card p,
.tariff-simulator-page .form-actions span,
.tariff-simulator-page .rule-list,
.tariff-simulator-page .fine-print,
.tariff-simulator-page .helper-note {
  color: var(--sim-muted);
}

.tariff-simulator-page .updates-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--sim-line-soft);
}

.tariff-simulator-page .updates-list time {
  color: var(--sim-ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.tariff-simulator-page .updates-list p {
  margin-bottom: 0;
  font-size: 13px;
}

.tariff-simulator-page .updates-list strong {
  display: block;
  margin-top: 4px;
  color: var(--sim-ink-soft);
  font-size: 12px;
}

.tariff-simulator-page .view-all {
  display: inline-flex;
  padding: 16px 24px 20px;
  border: 0;
  background: transparent;
  color: var(--sim-blue);
  font-size: 14px;
  font-weight: 700;
}

.tariff-simulator-page .inline-link {
  border: 0;
  background: transparent;
  color: var(--sim-blue);
  padding: 0;
  font-weight: 700;
}

.tariff-simulator-page .view-all:hover {
  color: var(--sim-blue-dark);
}

.tariff-simulator-page .simulator-section {
  width: min(var(--sim-max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 52px;
}

.tariff-simulator-page .detail-section {
  padding-top: 14px;
}

.tariff-simulator-page .batch-section {
  padding-top: 8px;
}

.tariff-simulator-page .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 20px;
}

.tariff-simulator-page .section-header.compact {
  margin-bottom: 16px;
}

.tariff-simulator-page .section-header h2 {
  margin-bottom: 5px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.tariff-simulator-page .section-header p {
  margin-bottom: 0;
}

.tariff-simulator-page .simulator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

.tariff-simulator-page .calculator-card,
.tariff-simulator-page .results-card,
.tariff-simulator-page .calculator-result,
.tariff-simulator-page .batch-card {
  border: 1px solid var(--sim-line);
  border-radius: var(--sim-radius-lg);
  background: var(--sim-surface);
  box-shadow: var(--sim-shadow-soft);
}

.tariff-simulator-page .calculator-card {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.tariff-simulator-page .results-card {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  display: grid;
  gap: 18px;
  padding: 20px;
}

.tariff-simulator-page .search-module {
  display: grid;
  gap: 9px;
}

.tariff-simulator-page .search-label,
.tariff-simulator-page .field > span {
  color: var(--sim-ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.tariff-simulator-page .search-box {
  display: flex;
  min-height: 56px;
  border: 1px solid var(--sim-line);
  border-radius: var(--sim-radius-md);
  background: var(--sim-surface);
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.02);
  overflow: hidden;
}

.tariff-simulator-page .search-box:focus-within {
  border-color: var(--sim-blue);
  box-shadow: 0 0 0 3px var(--sim-blue-soft);
}

.tariff-simulator-page .search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--sim-ink);
  padding: 0 16px;
}

.tariff-simulator-page .search-box .primary-action {
  margin: 7px;
  min-width: 102px;
}

.tariff-simulator-page .primary-action,
.tariff-simulator-page .secondary-action,
.tariff-simulator-page .file-button,
.tariff-simulator-page .small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sim-radius-sm);
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.tariff-simulator-page .primary-action {
  min-height: 42px;
  padding: 0 18px;
  background: var(--sim-blue);
  color: #fff;
}

.tariff-simulator-page .primary-action:hover {
  background: var(--sim-blue-dark);
  transform: translateY(-1px);
}

.tariff-simulator-page .secondary-action,
.tariff-simulator-page .file-button,
.tariff-simulator-page .small-button {
  min-height: 38px;
  padding: 0 14px;
  background: var(--sim-surface);
  border-color: var(--sim-line);
  color: var(--sim-ink);
}

.tariff-simulator-page .secondary-action:hover,
.tariff-simulator-page .file-button:hover,
.tariff-simulator-page .small-button:hover {
  border-color: var(--sim-blue);
  color: var(--sim-blue);
}

.tariff-simulator-page .field-grid {
  display: grid;
  gap: 16px;
}

.tariff-simulator-page .field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tariff-simulator-page .field-grid.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.tariff-simulator-page .field {
  display: grid;
  gap: 8px;
  color: var(--sim-ink);
}

.tariff-simulator-page .field input,
.tariff-simulator-page .field select,
.tariff-simulator-page .field textarea,
.tariff-simulator-page .unit-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--sim-line);
  border-radius: var(--sim-radius-sm);
  background: var(--sim-surface);
  color: var(--sim-ink);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.tariff-simulator-page .field input,
.tariff-simulator-page .field select,
.tariff-simulator-page .field textarea {
  padding: 11px 12px;
}

.tariff-simulator-page .field textarea {
  resize: vertical;
}

.tariff-simulator-page .field input:focus,
.tariff-simulator-page .field select:focus,
.tariff-simulator-page .field textarea:focus,
.tariff-simulator-page .unit-input:focus-within {
  border-color: var(--sim-blue);
  box-shadow: 0 0 0 3px var(--sim-blue-soft);
}

.tariff-simulator-page .field-help {
  min-height: 18px;
  font-size: 12px;
  font-weight: 600;
}

.tariff-simulator-page .unit-input {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.tariff-simulator-page .unit-input span {
  color: var(--sim-muted);
  font-weight: 800;
}

.tariff-simulator-page .unit-input input {
  min-height: 44px;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 8px;
}

.tariff-simulator-page .unit-input input:focus {
  box-shadow: none;
}

.tariff-simulator-page .advanced-card {
  border: 1px solid var(--sim-line);
  border-radius: var(--sim-radius-md);
  background: var(--sim-surface-muted);
  overflow: clip;
}

.tariff-simulator-page .advanced-card summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 12px;
  align-items: center;
  padding: 17px 18px;
  list-style: none;
  cursor: pointer;
  color: var(--sim-ink-soft);
  font-weight: 800;
}

.tariff-simulator-page .advanced-summary-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tariff-simulator-page .advanced-summary-copy strong {
  color: var(--sim-ink-soft);
  font-size: 17px;
}

.tariff-simulator-page .advanced-card summary::-webkit-details-marker {
  display: none;
}

.tariff-simulator-page .advanced-card summary::after {
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--sim-line);
  border-radius: 99px;
  background: var(--sim-surface);
  color: var(--sim-ink-soft);
}

.tariff-simulator-page .advanced-card[open] summary::after {
  content: "-";
}

.tariff-simulator-page .advanced-card summary small {
  display: block;
  color: var(--sim-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.tariff-simulator-page .advanced-content {
  display: grid;
  gap: 16px;
  padding: 0 18px 18px;
}

.tariff-simulator-page .toggle-list {
  display: grid;
  gap: 10px;
}

.tariff-simulator-page .toggle-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--sim-line-soft);
  border-radius: var(--sim-radius-sm);
  background: var(--sim-surface);
  color: var(--sim-ink);
}

.tariff-simulator-page .toggle-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--sim-blue);
}

.tariff-simulator-page .toggle-row span {
  display: grid;
  gap: 2px;
}

.tariff-simulator-page .toggle-row strong {
  color: var(--sim-ink-soft);
}

.tariff-simulator-page .toggle-row small {
  color: var(--sim-muted);
}

.tariff-simulator-page .upload-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 17px 18px;
  border: 1px dashed var(--sim-line);
  border-radius: var(--sim-radius-md);
  background: var(--sim-surface-muted);
}

.tariff-simulator-page .upload-card h3 {
  margin-bottom: 2px;
  font-size: 16px;
}

.tariff-simulator-page .upload-card p {
  margin-bottom: 0;
  font-size: 13px;
}

.tariff-simulator-page .file-button {
  min-width: max-content;
  background: var(--sim-ink);
  color: var(--sim-surface);
}

.tariff-simulator-page .file-button:hover {
  background: var(--sim-blue);
  color: #fff;
}

.tariff-simulator-page .file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tariff-simulator-page .form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 2px;
}

.tariff-simulator-page .result-summary {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: var(--sim-radius-md);
  background: var(--sim-ink);
  color: #fff;
}

.tariff-simulator-page .result-summary span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tariff-simulator-page .result-summary strong {
  color: #fff;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.tariff-simulator-page .result-summary p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 600;
}

.tariff-simulator-page .mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tariff-simulator-page .mini-stats div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--sim-line-soft);
  border-radius: var(--sim-radius-sm);
  background: var(--sim-surface-muted);
}

.tariff-simulator-page .mini-stats span {
  color: var(--sim-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tariff-simulator-page .mini-stats strong {
  overflow: hidden;
  color: var(--sim-ink-soft);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tariff-simulator-page .result-section {
  border: 1px solid var(--sim-line-soft);
  border-radius: var(--sim-radius-md);
  background: var(--sim-surface);
  overflow: hidden;
}

.tariff-simulator-page .card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--sim-line-soft);
}

.tariff-simulator-page .card-heading h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.tariff-simulator-page .breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tariff-simulator-page .breakdown-table th,
.tariff-simulator-page .breakdown-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--sim-line-soft);
  color: var(--sim-ink-soft);
  text-align: left;
  vertical-align: top;
}

.tariff-simulator-page .breakdown-table th {
  color: var(--sim-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tariff-simulator-page .breakdown-table th:nth-child(2),
.tariff-simulator-page .breakdown-table td:nth-child(2),
.tariff-simulator-page .breakdown-table th:nth-child(3),
.tariff-simulator-page .breakdown-table td:nth-child(3) {
  text-align: right;
}

.tariff-simulator-page .breakdown-table tr:last-child td {
  border-bottom: 0;
}

.tariff-simulator-page .breakdown-table td strong {
  display: block;
  color: var(--sim-ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.tariff-simulator-page .breakdown-table td span {
  display: block;
  margin-top: 4px;
  color: var(--sim-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tariff-simulator-page .rule-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 15px 18px 18px 32px;
  font-size: 13px;
}

.tariff-simulator-page .status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--sim-line);
  border-radius: 999px;
  padding: 0 9px;
  background: var(--sim-surface-muted);
  color: var(--sim-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tariff-simulator-page .unified-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.tariff-simulator-page .calculator-result {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  color: var(--sim-ink);
}

.tariff-simulator-page .calculator-result .result-top {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 20px;
  border-radius: var(--sim-radius-md);
  background: var(--sim-ink);
  color: #fff;
}

.tariff-simulator-page .calculator-result .result-top span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tariff-simulator-page .calculator-result .result-top strong {
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1;
  text-align: left;
}

.tariff-simulator-page .calculator-result .result-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.tariff-simulator-page .calculator-result .result-stats div,
.tariff-simulator-page .calculator-result .rate-row,
.tariff-simulator-page .calculator-result .flag-row {
  border: 1px solid var(--sim-line-soft);
  border-radius: var(--sim-radius-sm);
  background: var(--sim-surface-muted);
  padding: 12px;
}

.tariff-simulator-page .calculator-result .result-stats span,
.tariff-simulator-page .calculator-result .rate-row span,
.tariff-simulator-page .calculator-result .flag-row span {
  color: var(--sim-muted);
}

.tariff-simulator-page .calculator-result .result-stats strong,
.tariff-simulator-page .calculator-result .rate-row strong,
.tariff-simulator-page .calculator-result .flag-row strong {
  color: var(--sim-ink-soft);
}

.tariff-simulator-page .calculator-result .result-stats strong {
  display: block;
  margin-top: 8px;
}

.tariff-simulator-page .rate-stack,
.tariff-simulator-page .review-flags {
  display: grid;
  gap: 10px;
}

.tariff-simulator-page .rate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.tariff-simulator-page .review-flags {
  margin-top: 0;
}

.tariff-simulator-page .section122-match {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 16px;
  border: 1px solid var(--sim-line-soft);
  border-left: 4px solid var(--sim-blue);
  border-radius: var(--sim-radius-sm);
  background: var(--sim-surface-muted);
}

.tariff-simulator-page .section122-match[hidden] {
  display: none;
}

.tariff-simulator-page .section122-match span {
  display: block;
  color: var(--sim-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tariff-simulator-page .section122-match p,
.tariff-simulator-page .section122-match small {
  color: var(--sim-ink-soft);
}

.tariff-simulator-page .fine-print {
  margin-top: auto;
  font-size: 0.82rem;
}

.tariff-simulator-page .batch-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.tariff-simulator-page .section122-batch textarea {
  min-height: 190px;
  border: 1px solid var(--sim-line);
  border-radius: var(--sim-radius-sm);
  background: var(--sim-surface);
  color: var(--sim-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.tariff-simulator-page .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tariff-simulator-page .batch-output {
  min-height: 96px;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: var(--sim-radius-sm);
  background: var(--sim-ink);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  white-space: pre;
}

@media (max-width: 1080px) {
  .tariff-hero-inner,
  .tariff-simulator-page .simulator-layout,
  .tariff-simulator-page .unified-results {
    grid-template-columns: 1fr;
  }

  .tariff-simulator-page .results-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .tariff-hero-inner,
  .tariff-simulator-page .simulator-section {
    width: calc(100% - 32px);
  }

  .tariff-hero-inner {
    padding: 54px 0 44px;
  }

  .tariff-hero-copy h1 {
    font-size: 48px;
  }

  .tariff-simulator-page .try-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .tariff-simulator-page .updates-list article,
  .tariff-simulator-page .field-grid.two,
  .tariff-simulator-page .field-grid.three,
  .tariff-simulator-page .mini-stats {
    grid-template-columns: 1fr;
  }

  .tariff-simulator-page .upload-card,
  .tariff-simulator-page .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .tariff-simulator-page .search-box {
    flex-direction: column;
    padding: 7px;
  }

  .tariff-simulator-page .search-box input {
    min-height: 42px;
  }

  .tariff-simulator-page .search-box .primary-action {
    margin: 0;
    width: 100%;
  }
}
