:root {
  --navy: #0b1f3a;
  --navy-2: #122c50;
  --ink: #14202f;
  --ink-2: #3d4c60;
  --ink-3: #667085;
  --line: #e3e7ee;
  --line-2: #eef1f6;
  --paper: #ffffff;
  --wash: #f6f7fa;
  --wash-2: #eef1f6;
  --saffron: #e8871e;
  --saffron-2: #f6b25c;
  --teal: #0b7a63;
  --teal-soft: #e6f4ef;
  --amber-soft: #fdf1dd;
  --danger: #b42318;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 12px 32px -12px rgba(11, 31, 58, 0.22);
  --shadow-lg: 0 34px 70px -30px rgba(11, 31, 58, 0.35);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

::selection {
  background: var(--saffron-2);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid rgba(232, 135, 30, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ---------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--navy) 10%, var(--navy-2) 90%);
  color: var(--saffron-2);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-name {
  font-size: 1.06rem;
}

.brand-name span {
  color: var(--saffron);
}

.brand-tag {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  border-left: 1px solid var(--line);
  padding-left: 0.55rem;
  margin-left: 0.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.89rem;
  font-weight: 550;
  color: var(--ink-2);
}

.nav a {
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--saffron);
}

.plan-chip {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(11, 122, 99, 0.16);
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-chip.is-warn {
  color: #8a5300;
  background: var(--amber-soft);
  border-color: rgba(232, 135, 30, 0.28);
}

/* ------------------------------------------------------------------ hero --- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(2.8rem, 6vw, 4.5rem);
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(232, 135, 30, 0.14), transparent 65%),
    radial-gradient(700px 400px at 4% 0%, rgba(18, 44, 80, 0.09), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #f5f7fa 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 31, 58, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 58, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--saffron);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--navy);
  font-weight: 760;
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--saffron);
  letter-spacing: -0.01em;
}

.lede {
  margin-top: 1.15rem;
  max-width: 34rem;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.1rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-stats strong {
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  font-size: 0.76rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* hero visual */

.hero-card {
  border-radius: 16px;
  background: linear-gradient(160deg, #0d2442 0%, #091729 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  color: #dbe4f0;
  overflow: hidden;
  transform: rotate(0.6deg);
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.dot:first-child {
  background: #ff6b5e;
}

.dot:nth-child(2) {
  background: #ffc44d;
}

.dot:nth-child(3) {
  background: #4cd28a;
}

.hero-card-file {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(219, 228, 240, 0.5);
}

.hero-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.hc-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  color: #c9d5e5;
}

.hc-row.muted {
  color: rgba(201, 213, 229, 0.62);
}

.hc-row b {
  color: var(--saffron-2);
  font-weight: 650;
}

.hc-row.total {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.hc-row.total span:last-child {
  color: var(--saffron-2);
}

.hc-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

.hc-note {
  margin-top: 0.7rem;
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(219, 228, 240, 0.45);
}

/* --------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.72rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #16345c 0%, var(--navy) 100%);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(11, 31, 58, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1b3f6d 0%, #0e2749 100%);
}

.btn-outline {
  background: var(--paper);
  border-color: #d3dae5;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: #a9b6c8;
  background: #fbfcfe;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: var(--wash-2);
  color: var(--navy);
}

.btn-sm {
  padding: 0.48rem 0.8rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--saffron);
  font-weight: 650;
  font-size: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 135, 30, 0.35);
}

.link:hover {
  color: #b96308;
  border-bottom-color: #b96308;
}

/* --------------------------------------------------------------- section --- */

.section {
  padding: clamp(3rem, 6vw, 4.6rem) 0;
}

.section-tint {
  background: var(--wash);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--navy);
}

.lede-sm {
  margin-top: 0.8rem;
  color: var(--ink-2);
  font-size: 0.97rem;
  max-width: 42rem;
}

.text-link {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--navy);
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 2px solid var(--saffron);
  padding-bottom: 1px;
}

.text-link:hover {
  color: var(--saffron);
}

/* ------------------------------------------------------------ calculator --- */

.calculator-section {
  scroll-margin-top: 80px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.calc-card {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: visible;
}

.calc-form {
  padding: 1.7rem 1.6rem 1.5rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.calc-form-head h2 {
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.calc-form-head p {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 0.2rem;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.input {
  width: 100%;
  border: 1px solid #cfd7e3;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.66rem 0.75rem;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: inset 0 1px 1px rgba(16, 24, 40, 0.03);
}

.input::placeholder {
  color: #98a3b4;
}

.input:focus {
  outline: none;
  border-color: #7d93b3;
  box-shadow: 0 0 0 3px rgba(18, 44, 80, 0.12);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2rem;
}

.hint {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--ink-3);
  margin-top: 0.35rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.15rem;
}

.money {
  position: relative;
}

.money span {
  position: absolute;
  left: 0.72rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 0.9rem;
  pointer-events: none;
}

.money .input {
  padding-left: 1.55rem;
  font-variant-numeric: tabular-nums;
}

/* combobox */

.combo {
  position: relative;
}

.combo-input {
  padding-right: 2.2rem;
}

.combo::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 12px;
  height: 8px;
  margin-top: -4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
}

.combo-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 380px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 22px 48px -20px rgba(11, 31, 58, 0.35);
  padding: 0.3rem;
  overscroll-behavior: contain;
}

.combo-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.7rem;
  align-items: baseline;
}

.combo-option + .combo-option {
  border-top: 1px solid var(--line-2);
}

.combo-option:hover,
.combo-option.is-active {
  background: #f1f5fa;
}

.opt-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--navy);
  background: var(--wash-2);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
  white-space: nowrap;
}

.opt-desc {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.opt-rates {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.mini-stat {
  font-size: 0.68rem;
  color: var(--ink-3);
  background: var(--wash);
  border: 1px solid var(--line-2);
  padding: 0.05rem 0.32rem;
  border-radius: 4px;
  white-space: nowrap;
}

.mini-stat b {
  color: var(--ink-2);
  font-weight: 650;
}

.combo-empty {
  padding: 0.9rem 0.75rem;
  font-size: 0.84rem;
  color: var(--ink-2);
}

.combo-empty span {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 0.2rem;
}

/* selected row */

.selected-card {
  margin-top: -0.25rem;
  border: 1px solid #cfe0f5;
  background: linear-gradient(180deg, #f4f8fd 0%, #f8fbff 100%);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.selected-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.pill {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 650;
  color: #fff;
  background: var(--navy);
  border-radius: 5px;
  padding: 0.12rem 0.4rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.selected-main strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.selected-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* quick amounts */

.quick-amounts {
  display: flex;
  gap: 0.4rem;
  margin-top: -0.25rem;
}

.quick-amounts button {
  flex: 1;
  border: 1px solid #d9e0ea;
  background: #fff;
  border-radius: 7px;
  padding: 0.32rem 0.2rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.12s, border-color 0.12s;
}

.quick-amounts button:hover {
  background: var(--wash);
  border-color: #b9c5d5;
  color: var(--navy);
}

/* quota */

.quota {
  margin-top: 0.15rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
}

.quota-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.74rem;
  color: var(--ink-3);
}

.quota-row .link {
  font-size: 0.74rem;
}

.quota-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--wash-2);
  margin-top: 0.45rem;
  overflow: hidden;
}

.quota-bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #12a184);
  transition: width 0.35s ease;
}

.quota.is-empty .quota-bar span {
  background: linear-gradient(90deg, #c97a12, var(--saffron));
}

.calc-footnote {
  margin-top: 0.85rem;
  font-size: 0.73rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 70rem;
}

/* result panel */

.calc-result {
  padding: 1.7rem 1.7rem 1.5rem;
  min-width: 0;
  scroll-margin-top: 84px;
}

.result-empty {
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed #d7dee9;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 30%, rgba(18, 44, 80, 0.035), transparent 60%),
    #fbfcfe;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.result-empty h3 {
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.result-empty p {
  margin-top: 0.4rem;
  max-width: 30rem;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.empty-points {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--ink-2);
  text-align: left;
}

.empty-points li {
  position: relative;
  padding-left: 1.1rem;
}

.empty-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron);
}

#resultBody {
  animation: rise 0.28s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.result-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.result-title {
  min-width: 0;
  flex: 1 1 260px;
}

.result-title h3 {
  margin-top: 0.45rem;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.result-origin {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.result-total {
  text-align: right;
  padding-left: 1rem;
  border-left: 1px solid var(--line-2);
}

.result-total span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.result-total strong {
  display: block;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.result-total small {
  font-size: 0.7rem;
  color: var(--ink-3);
}

.banner {
  margin-top: 1rem;
  border-radius: 9px;
  padding: 0.65rem 0.8rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.banner strong {
  font-weight: 700;
}

.banner span {
  display: block;
  margin-top: 0.15rem;
  opacity: 0.8;
}

.banner-good {
  background: var(--teal-soft);
  border: 1px solid rgba(11, 122, 99, 0.2);
  color: #075e4c;
}

.banner-note {
  background: var(--amber-soft);
  border: 1px solid rgba(232, 135, 30, 0.24);
  color: #7a4800;
}

.table-wrap {
  margin-top: 0.9rem;
}

.duty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.duty-table thead th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 650;
  padding: 0.35rem 0.2rem 0.45rem;
  border-bottom: 1px solid var(--line);
}

.duty-table thead th:last-child,
.duty-table td.amount {
  text-align: right;
}

.duty-table tbody th {
  text-align: left;
  font-weight: 550;
  color: var(--ink-2);
  padding: 0.5rem 0.2rem;
  border-bottom: 1px solid var(--line-2);
}

.duty-table td {
  padding: 0.5rem 0.2rem;
  border-bottom: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}

.duty-table td.rate {
  color: var(--ink-3);
  font-size: 0.78rem;
  width: 30%;
}

.duty-table td.amount {
  font-weight: 550;
  color: var(--ink);
  white-space: nowrap;
}

.duty-table .cell-note {
  display: block;
  font-size: 0.68rem;
  font-weight: 450;
  color: var(--ink-3);
}

.duty-table tr.is-total th,
.duty-table tr.is-total td {
  border-top: 1px solid #c9d2df;
  border-bottom: 0;
  padding-top: 0.65rem;
  color: var(--navy);
  font-weight: 700;
}

.duty-table tr.is-total td.amount {
  font-weight: 750;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.chip {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--wash);
  border: 1px solid var(--line);
  padding: 0.16rem 0.45rem;
  border-radius: 5px;
}

.chip-good {
  color: var(--teal);
  background: var(--teal-soft);
  border-color: rgba(11, 122, 99, 0.18);
}

.chip-warn {
  color: #8a5300;
  background: var(--amber-soft);
  border-color: rgba(232, 135, 30, 0.26);
}

.chip-muted {
  color: var(--ink-3);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.result-fine {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ------------------------------------------------------------ how / steps --- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--saffron);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.step h3 {
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.84rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------- coverage --- */

.coverage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.coverage-grid h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--navy);
}

.coverage-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.coverage-stats div {
  background: #fff;
  padding: 1.1rem 1.15rem;
}

.coverage-stats dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
}

.coverage-stats dd {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- pricing --- */

.pricing-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.pricing-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.028em;
  color: var(--navy);
}

.tick-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.tick-list li {
  position: relative;
  padding-left: 1.55rem;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px rgba(11, 122, 99, 0.2);
}

.tick-list li::after {
  content: "";
  position: absolute;
  left: 0.31rem;
  top: 0.37em;
  width: 0.4rem;
  height: 0.22rem;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.price-card {
  position: relative;
  border: 1px solid #d5dce6;
  border-radius: 16px;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(232, 135, 30, 0.1), transparent 70%),
    #fff;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}

.price-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a5300;
  background: var(--amber-soft);
  border: 1px solid rgba(232, 135, 30, 0.25);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  margin-top: 0.8rem;
  font-size: 2.6rem;
  font-weight: 760;
  letter-spacing: -0.045em;
  color: var(--navy);
  line-height: 1;
}

.price > span {
  font-size: 1.3rem;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 0.35rem;
}

.price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}

.price-card > p {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.price-card .btn {
  margin-top: 1.1rem;
}

.price-note {
  margin-top: 0.55rem !important;
  font-size: 0.72rem !important;
  color: var(--ink-3) !important;
}

/* -------------------------------------------------------------------- faq --- */

.faq-section {
  background: var(--wash);
  border-top: 1px solid var(--line);
}

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  max-width: 62rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.95rem 1rem;
  align-self: start;
}

.faq summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-3);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ----------------------------------------------------------------- footer --- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding-top: 2.4rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.brand-footer .brand-mark {
  width: 28px;
  height: 28px;
  font-size: 0.95rem;
}

.footer-note {
  margin-top: 0.6rem;
  max-width: 24rem;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.82rem;
  color: var(--ink-2);
  align-items: flex-start;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer-links .link {
  border: 0;
  font-size: 0.82rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid var(--line-2);
  font-size: 0.72rem;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ modal --- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 28, 0.62);
  backdrop-filter: blur(3px);
}

.modal-card {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 2.4rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.7rem 1.6rem 1.5rem;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
  animation: pop 0.22s ease both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink-2);
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: var(--wash-2);
  color: var(--navy);
}

.modal-card h2 {
  margin-top: 0.8rem;
  font-size: 1.42rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.modal-card h2 span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}

.modal-lede {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.modal-price {
  font-size: 2.2rem;
  margin-top: 0.7rem;
}

.modal-card .tick-list {
  margin-top: 1rem;
  font-size: 0.83rem;
}

.notify-form {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
}

.notify-row {
  display: flex;
  gap: 0.45rem;
}

.notify-row .input {
  flex: 1;
  min-width: 0;
}

.notify-row .btn {
  padding-inline: 0.9rem;
}

.modal-fine {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ toast --- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 1.2rem);
  z-index: 90;
  max-width: min(92vw, 34rem);
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.7rem 1rem;
  border-radius: 9px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------- responsive --- */

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    max-width: 520px;
    transform: none;
  }

  .calc-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 1.2rem;
  }

  .calc-result {
    padding: 1.3rem 1.2rem;
  }

  .result-empty {
    min-height: 280px;
  }
}

@media (max-width: 860px) {
  .steps,
  .faq {
    grid-template-columns: 1fr;
  }

  .coverage-grid,
  .pricing-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-card {
    max-width: 420px;
  }

  .nav a:not(:first-child) {
    display: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 1.6rem, var(--wrap));
  }

  .header-inner {
    min-height: 60px;
    gap: 0.7rem;
  }

  .brand-tag,
  .nav {
    display: none;
  }

  .plan-chip {
    margin-left: auto;
    font-size: 0.68rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .hero-stats {
    gap: 1.3rem;
  }

  .hero-stats strong {
    font-size: 1.12rem;
  }

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

  .result-head {
    flex-direction: column;
  }

  .result-total {
    text-align: left;
    border-left: 0;
    border-top: 1px solid var(--line-2);
    padding: 0.7rem 0 0;
  }

  .duty-table {
    font-size: 0.78rem;
  }

  .duty-table td.rate {
    width: 34%;
    font-size: 0.72rem;
  }

  .notify-row {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero,
  .calc-form,
  .calc-footnote,
  .section:not(#calculator),
  .site-footer,
  .result-actions,
  .toast,
  .modal {
    display: none !important;
  }

  .calc-card {
    display: block;
    border: 0;
    box-shadow: none;
  }

  .calc-result {
    padding: 0;
  }
}
