:root {
  color-scheme: light;
  --ink: #171817;
  --muted: #646861;
  --paper: #f4f1ea;
  --card: #ffffff;
  --lime: #c8ff35;
  --lime-dark: #91c500;
  --line: #dcded8;
  --error: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 8%, rgba(200, 255, 53, 0.32), transparent 24rem),
    var(--paper);
}

html.embed-mode,
html.embed-mode body {
  min-height: 0;
  background: #fff;
}

html.embed-mode .shell {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
}

html.embed-mode .intro {
  display: none;
}

html.embed-mode .calculator {
  max-width: 620px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: none;
}

button,
input {
  font: inherit;
}

.shell {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
  align-items: center;
  gap: 64px;
}

.intro {
  max-width: 560px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 72px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #111;
  background: var(--lime);
  font-size: 0.82rem;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 14px;
  color: #596053;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

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

h1 {
  max-width: 600px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.lead {
  max-width: 520px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
}

.included {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 490px;
  padding-top: 24px;
  border-top: 1px solid rgba(23, 24, 23, 0.18);
}

.included-icon {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-weight: 900;
}

.included p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.included strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.calculator {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(23, 24, 23, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(49, 52, 43, 0.13);
}

.calculator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.price-badge {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--lime);
  font-size: 0.8rem;
  font-weight: 850;
}

label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.9rem;
  font-weight: 750;
}

.input-wrap {
  position: relative;
}

input {
  width: 100%;
  height: 72px;
  padding: 0 72px 0 20px;
  border: 2px solid #bfc3ba;
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 1.8rem;
  font-weight: 750;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus {
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 4px rgba(200, 255, 53, 0.25);
}

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

.unit {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.field-help,
.field-error {
  margin: 9px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.field-help {
  color: var(--muted);
}

.field-error {
  min-height: 1.15em;
  color: var(--error);
  font-weight: 650;
}

.delivery-options {
  display: grid;
  gap: 10px;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}

.delivery-options legend {
  margin-bottom: 9px;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 750;
}

.delivery-card {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.delivery-card:has(input:checked) {
  border-color: var(--lime-dark);
  background: rgba(200, 255, 53, 0.1);
  box-shadow: inset 0 0 0 1px var(--lime-dark);
}

.delivery-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
}

.delivery-card:has(input:focus-visible) {
  outline: 3px solid rgba(145, 197, 0, 0.35);
  outline-offset: 2px;
}

.radio-dot {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #aeb3aa;
  border-radius: 50%;
  background: #fff;
}

.delivery-card input:checked + .radio-dot {
  border-color: var(--lime-dark);
}

.delivery-card input:checked + .radio-dot::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime-dark);
  content: "";
}

.delivery-copy {
  min-width: 0;
}

.delivery-copy strong,
.delivery-copy small {
  display: block;
}

.delivery-copy strong {
  margin-bottom: 2px;
  font-size: 0.88rem;
}

.delivery-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-price {
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.summary {
  margin-top: 18px;
  padding: 24px;
  border-radius: 19px;
  background: #f4f5f1;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.summary-row strong {
  font-variant-numeric: tabular-nums;
}

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

.divider {
  height: 1px;
  margin: 20px 0;
  background: var(--line);
}

.summary-row.total {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 800;
}

.summary-row.total strong {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  letter-spacing: -0.04em;
}

.calculation-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.copy-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 21px;
  border: 0;
  border-radius: 15px;
  color: #12140f;
  background: var(--lime);
  cursor: pointer;
  font-weight: 850;
  transition: transform 150ms ease, background 150ms ease;
}

.copy-button:hover {
  background: #bdf624;
  transform: translateY(-1px);
}

.copy-button:focus-visible {
  outline: 3px solid rgba(23, 24, 23, 0.75);
  outline-offset: 3px;
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.fine-print {
  margin: 16px 4px 0;
  color: #777b74;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  }
}

@media (max-width: 899px) {
  .shell {
    min-height: auto;
    padding: 26px 0 44px;
    gap: 42px;
  }

  .brand {
    margin-bottom: 54px;
  }

  .calculator {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 28px, 520px);
  }

  .brand {
    margin-bottom: 44px;
  }

  h1 {
    font-size: clamp(2.65rem, 13.5vw, 4rem);
  }

  .calculator {
    padding: 22px;
    border-radius: 22px;
  }

  .calculator-head {
    display: block;
    margin-bottom: 28px;
  }

  .price-badge {
    display: inline-block;
    margin-top: 16px;
  }

  .summary {
    padding: 20px;
  }

  .delivery-card {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 10px;
    padding-inline: 12px;
  }

  .delivery-copy small {
    max-width: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
