:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #221f20;
  background: #f7f5f3;
  line-height: 1.5;
  --ink: #221f20;
  --muted: #645e60;
  --red: #bc1727;
  --border: #e6dfdc;
  --paper: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--border); }
.topbar .wrap, .footer {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.logo { display: block; width: 157px; height: auto; }
.topbar-label, .eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.topbar-label { color: var(--muted); text-align: right; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 41px 33px;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 62%;
  opacity: .55;
  background: repeating-linear-gradient(132deg, transparent 0 15px, #c510221c 15px 16px);
  mask-image: linear-gradient(to right, transparent, black);
  pointer-events: none;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 17px; height: 2px; background: currentColor; }
h1 { margin: 0; font-size: clamp(2.15rem, 5.6vw, 4.15rem); line-height: 1; letter-spacing: -.06em; }
.hero .intro { margin: 14px 0 0; color: var(--muted); max-width: 55ch; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.panel {
  min-width: 0;
  border-radius: 22px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px #331b1710;
}
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 1.18rem; letter-spacing: -.025em; }
.section-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--red);
  background: #fff0f1;
}
.section-icon svg { width: 19px; height: 19px; }

.modes {
  min-inline-size: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 17px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f7f4f3;
}
.modes label { position: relative; display: block; cursor: pointer; }
.modes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.modes span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 6px;
  color: var(--muted);
  text-align: center;
  font-size: .87rem;
  font-weight: 750;
}
.modes input:checked + span { background: var(--ink); color: #fff; }
.modes input:focus-visible + span, .field input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.field { display: block; min-width: 0; margin-top: 12px; font-size: .86rem; font-weight: 720; }
.field input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid #cfc6c4;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.field input::placeholder { color: var(--muted); opacity: 1; font-weight: 550; }
.primary-field input { font-size: 1.26rem; min-height: 50px; background: #fffaf9; }
.fees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
small, .note { display: block; color: var(--muted); font-size: .78rem; margin: 7px 0 0; font-weight: 450; }
.error { color: #9c1423; font-size: .86rem; margin: 12px 0 0; }
.error:empty { display: none; }

.result { background: #211b1d; color: #fff8f8; border-color: #211b1d; }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.result-top .eyebrow { color: #ff9ca7; margin: 0; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #e0d2d5; font-size: .72rem; }
.live::before { content: ""; background: #f77585; width: 6px; height: 6px; border-radius: 50%; }
.result h2 { margin: 15px 0 1px; color: #e0d2d5; font-size: .95rem; font-weight: 600; }
.price {
  display: block;
  font-size: clamp(2.3rem, 5.1vw, 4rem);
  font-weight: 830;
  line-height: 1.05;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
dl { margin: 17px 0 0; }
.line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #ffffff25;
  padding: 8px 0;
  font-size: .84rem;
}
.line dt { color: #e0d2d5; }
.line dd { margin: 0; text-align: right; font-weight: 720; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.net { padding: 10px 12px; margin: 0 0 7px; border: 1px solid #ffffff22; background: #ffffff10; border-radius: 10px; }
.net dd { font-size: 1.22rem; color: #fff; }
.result .note { color: #d3c2c6; }

.footer { margin-top: 24px; min-height: 66px; border-top: 1px solid var(--border); }
.footer > span { color: var(--muted); font-size: .78rem; }
.credit { display: flex; gap: 9px; align-items: center; }
.credit .logo { width: 100px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 760px) {
  .wrap { width: min(540px, calc(100% - 32px)); }
  .topbar .wrap { min-height: 62px; }
  .logo { width: 132px; }
  .topbar-label { font-size: .62rem; }
  .hero { padding-block: 26px 23px; }
  .hero::after { inset-inline-start: 48%; }
  .hero .intro { margin-top: 10px; font-size: .9rem; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .panel { padding: 17px; border-radius: 17px; }
  .footer { margin-top: 16px; }
}
@media (max-width: 370px) {
  .fees { grid-template-columns: 1fr 1fr; }
  .fees .field:last-child { grid-column: 1 / -1; }
  .footer { flex-wrap: wrap; gap: 8px; padding-block: 12px; }
}
