/* ─────────────────────────────────────────────────────────────────────────
   CarcMail Outreach · Custom Enterprise Pricing Calculator
   Design tokens and component patterns from DESIGN.md
   (MiniMax-inspired system - stark monochrome + restrained product accents)
   Light theme only. No dark-mode overrides.
   ────────────────────────────────────────────────────────────────────── */

/* ── 1. Design Tokens ──────────────────────────────────────────────────── */

:root {
  /* Brand & Accent */
  --color-brand-coral:      #ff4433;
  --color-brand-magenta:    #d91e8c;
  --color-brand-blue:       #1a56db;
  --color-brand-blue-deep:  #1e40af;
  --color-brand-blue-700:   #1d4ed8;
  --color-brand-cyan:       #0891b2;
  --color-brand-blue-200:   #bfdbfe;
  --color-brand-purple:     #7c3aed;

  /* Surface */
  --color-primary:          #000000;
  --color-canvas:           #ffffff;
  --color-surface:          #f5f5f7;
  --color-surface-soft:     #fafafa;
  --color-hairline:         #e6e6e6;
  --color-hairline-soft:    #f0f0f0;

  /* Text */
  --color-ink:              #1a1a1a;
  --color-ink-strong:       #000000;
  --color-charcoal:         #333333;
  --color-slate:            #555555;
  --color-steel:            #777777;
  --color-stone:            #888888;
  --color-muted:            #aaaaaa;

  /* On-dark */
  --color-on-primary:       #ffffff;
  --color-on-dark:          #ffffff;

  /* Semantic */
  --color-success-bg:       #dcfce7;
  --color-success-text:     #166534;

  /* Footer */
  --color-footer-bg:        #111111;

  /* Typography - DM Sans, per DESIGN.md "Single typeface strategy" */
  --font: "DM Sans", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Border Radius */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-xxl:  20px;
  --r-xxxl: 24px;
  --r-hero: 32px;
  --r-full: 9999px;

  /* Spacing — 4px base unit */
  --s-xxs:        4px;
  --s-xs:         8px;
  --s-sm:         12px;
  --s-md:         16px;
  --s-lg:         20px;
  --s-xl:         24px;
  --s-xxl:        32px;
  --s-xxxl:       40px;
  --s-section-sm: 48px;
  --s-section:    64px;
  --s-section-lg: 80px;
  --s-hero:       96px;

  /* Elevation */
  --shadow-1: rgba(0, 0, 0, 0.04) 0px 1px 2px 0px;
  --shadow-2: rgba(0, 0, 0, 0.08) 0px 4px 6px 0px;
  --shadow-3: rgba(0, 0, 0, 0.08) 0px 0px 22px 0px;
  --shadow-4: rgba(36, 36, 36, 0.08) 0px 12px 16px -4px;
}

/* ── 2. Base / Reset ───────────────────────────────────────────────────── */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  min-width: 320px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-charcoal);
  background: var(--color-canvas);
}

a {
  color: var(--color-brand-blue-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── 3. Top Navigation ─────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-hairline-soft);
}

.nav__inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--s-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
}

.nav__logo {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--color-ink);
  text-decoration: none;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex: none;
}

.nav__logo img {
  display: block;
  width: auto;
  height: 34px;
  max-width: min(260px, 52vw);
  object-fit: contain;
}

/* button-tertiary pill */
.nav__link {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-ink);
  text-decoration: none;
  padding: 8px var(--s-lg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--r-full);
  background: var(--color-canvas);
  transition: border-color 0.15s ease;
  flex: none;
  white-space: nowrap;
}

.nav__link:hover {
  text-decoration: none;
  border-color: var(--color-ink);
}

/* ── 4. Hero ───────────────────────────────────────────────────────────── */

.hero {
  background: var(--color-canvas);
  padding: var(--s-section-lg) 20px var(--s-section);
  text-align: center;
  border-bottom: 1px solid var(--color-hairline-soft);
}

.hero__inner {
  max-width: 640px;
  margin: 0 auto;
  min-width: 0;
}

/* badge-new pattern */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-on-dark);
  background: var(--color-brand-coral);
  padding: 4px 10px;
  border-radius: var(--r-full);
  margin: 0 0 var(--s-lg);
}

/* heading-lg: 40px, 600, 1.20 lh */
.hero__title {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.20;
  letter-spacing: 0;
  color: var(--color-ink);
  margin: 0 0 var(--s-md);
}

/* subtitle: 18px, 500, 1.50 lh */
.hero__subtitle {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--color-slate);
  margin: 0;
}

/* ── 5. Calculator Layout ──────────────────────────────────────────────── */

.calculator-section {
  background: var(--color-surface);
  padding: var(--s-section) 20px var(--s-hero);
}

/* card-base: white, rounded-xl, hairline border, subtle shadow */
.calculator-card {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--color-canvas);
  border-radius: var(--r-xl);
  border: 1px solid var(--color-hairline);
  box-shadow: var(--shadow-1);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  min-width: 0;
}

/* Left panel - colorful input cards */
.calculator-card__inputs {
  padding: var(--s-xxl);
  border-right: 1px solid var(--color-hairline);
  min-width: 0;
}

/* Right panel - quiet quote summary */
.calculator-card__output {
  padding: var(--s-xxl);
  background:
    linear-gradient(145deg, rgba(26, 86, 219, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(217, 30, 140, 0.09), transparent 44%),
    var(--color-surface-soft);
  display: flex;
  flex-direction: column;
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  min-width: 0;
}

/* card-title: 20px, 600, 1.40 lh */
.panel-title {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--color-ink);
  margin: 0 0 var(--s-xl);
}

.calculator-card__output .panel-title {
  color: var(--color-ink);
}

.panel-title--addons {
  margin-top: var(--s-xxxl);
  padding-top: var(--s-xxl);
  border-top: 1px solid var(--color-hairline);
}

/* ── 6. Fields & Sliders ───────────────────────────────────────────────── */

.field {
  margin-bottom: var(--s-xxl);
  padding: var(--s-xl);
  border: 1px solid var(--color-hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
  min-width: 0;
}

.field:last-of-type {
  margin-bottom: 0;
}

.field:nth-of-type(1) {
  background: linear-gradient(135deg, rgba(255, 68, 51, 0.16), #ffffff 72%);
}

.field:nth-of-type(2) {
  background: linear-gradient(135deg, rgba(217, 30, 140, 0.14), #ffffff 72%);
}

.field:nth-of-type(3) {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.14), #ffffff 72%);
}

.field:nth-of-type(4) {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.15), #ffffff 72%);
}

.field:nth-of-type(5) {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.13), #ffffff 72%);
}

.field__label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-xs);
  gap: var(--s-xs);
  min-width: 0;
}

/* body-sm-medium: 14px, 500 */
.field label {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-charcoal);
  min-width: 0;
}

/* value chip — code-chip style */
.field__value {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--color-hairline);
  padding: 1px var(--s-xs);
  border-radius: var(--r-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--r-full);
  background: var(--color-hairline);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid var(--color-canvas);
  box-shadow: var(--shadow-2);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-canvas);
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-2);
}

input[type="range"]:focus-visible {
  outline: 2px solid var(--color-brand-blue-deep);
  outline-offset: 4px;
  border-radius: var(--r-full);
}

.field--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-md);
  align-items: start;
}

.field--split label {
  display: block;
  margin-bottom: var(--s-xs);
}

/* text-input: 40px height, hairline border, md radius */
.field__number {
  width: 100%;
  height: 40px;
  padding: 0 var(--s-md);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--r-md);
  outline: none;
  transition: border 0.15s ease;
  -moz-appearance: textfield;
}

.field__number::-webkit-outer-spin-button,
.field__number::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* text-input-focused: 2px brand-blue-deep */
.field__number:focus {
  border: 2px solid var(--color-brand-blue-deep);
}

/* ── 7. Add-on Toggles ─────────────────────────────────────────────────── */

.toggle-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}

/* card-recommendation tile wrapping the toggle */
.toggle {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  cursor: pointer;
  padding: var(--s-sm) var(--s-md);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--r-xl);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.toggle-list .toggle:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 68, 51, 0.16), #ffffff 72%);
  border-color: rgba(255, 68, 51, 0.24);
}

.toggle-list .toggle:nth-child(2) {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.15), #ffffff 72%);
  border-color: rgba(26, 86, 219, 0.24);
}

.toggle-list .toggle:nth-child(3) {
  background: linear-gradient(135deg, rgba(217, 30, 140, 0.14), #ffffff 72%);
  border-color: rgba(217, 30, 140, 0.22);
}

.toggle-list .toggle:nth-child(4) {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), #ffffff 72%);
  border-color: rgba(124, 58, 237, 0.22);
}

.toggle:hover {
  border-color: var(--color-steel);
  box-shadow: var(--shadow-1);
}

.toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.toggle__switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: var(--r-full);
  background: var(--color-hairline);
  transition: background 0.15s ease;
}

.toggle__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-canvas);
  box-shadow: var(--shadow-2);
  transition: transform 0.15s ease;
}

.toggle input:checked + .toggle__switch {
  background: var(--color-primary);
}

.toggle input:checked + .toggle__switch::after {
  transform: translateX(16px);
}

.toggle input:focus-visible + .toggle__switch {
  outline: 2px solid var(--color-brand-blue-deep);
  outline-offset: 2px;
}

/* body-sm: 14px, 400 */
.toggle__label {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-charcoal);
  min-width: 0;
}

/* ── 8. Price Display ──────────────────────────────────────────────────── */

.price-display {
  position: relative;
  text-align: center;
  padding: var(--s-xxl) var(--s-md);
  margin-bottom: var(--s-xl);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, var(--color-brand-coral), var(--color-brand-magenta) 58%, var(--color-brand-purple));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--r-hero);
  box-shadow: rgba(217, 30, 140, 0.16) 0px 18px 36px -24px;
  min-width: 0;
}

.price-display__blurscope {
  transition: filter 0.25s ease;
}

.price-display__amount {
  font-family: var(--font);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: 0;
  color: var(--color-on-dark);
  margin: 0;
  overflow-wrap: anywhere;
}

.price-display__period {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin: var(--s-xs) 0 0;
}

.price-display--locked .price-display__blurscope {
  filter: blur(10px);
  user-select: none;
  pointer-events: none;
}

.price-display__lock {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-md);
  padding: var(--s-md);
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--r-hero);
}

.price-display--locked .price-display__lock {
  display: flex;
}

.price-display__lock-text {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
  margin: 0;
  max-width: 200px;
  text-align: center;
}

/* ── 9. Billing Toggle ─────────────────────────────────────────────────── */

.billing-toggle {
  margin-bottom: var(--s-xl);
  display: flex;
  justify-content: center;
}

.calculator-card__output .billing-toggle .toggle {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.16), #ffffff 72%);
  border-color: rgba(26, 86, 219, 0.24);
}

.calculator-card__output .billing-toggle .toggle:hover {
  border-color: var(--color-steel);
  box-shadow: var(--shadow-1);
}

.calculator-card__output .billing-toggle .toggle__switch {
  background: var(--color-hairline);
}

.calculator-card__output .billing-toggle .toggle input:checked + .toggle__switch {
  background: var(--color-primary);
}

.calculator-card__output .billing-toggle .toggle__label {
  color: var(--color-charcoal);
  font-weight: 500;
}

/* ── 10. Included Features List ────────────────────────────────────────── */

.included-list {
  list-style: none;
  margin: 0 0 var(--s-xl);
  padding: var(--s-md);
  flex: 1;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
}

.included-list li {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-charcoal);
  padding: var(--s-xs) 0;
  border-top: 1px solid var(--color-hairline-soft);
  display: flex;
  align-items: flex-start;
  gap: var(--s-xs);
  overflow-wrap: anywhere;
}

.included-list li:first-child {
  border-top: none;
}

.included-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--color-brand-coral);
  font-size: 12px;
  font-weight: 700;
  flex: none;
  margin-top: 8px;
}

/* ── 11. Disclaimer ────────────────────────────────────────────────────── */

.disclaimer {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-stone);
  text-align: center;
  margin: 0;
}

/* ── 12. Buttons ───────────────────────────────────────────────────────── */

/* button-md: 14px, 600, 1.40 lh; always rounded-full */
.btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  padding: 11px var(--s-xl);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-align: center;
}

/* button-primary: black pill */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn--primary:disabled {
  background: var(--color-hairline);
  border-color: var(--color-hairline);
  color: var(--color-muted);
  cursor: not-allowed;
}

.btn--block {
  width: 100%;
}

.price-display .btn--primary {
  background: var(--color-canvas);
  border-color: var(--color-canvas);
  color: var(--color-brand-coral);
}

.price-display .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

/* ── 13. Footer ────────────────────────────────────────────────────────── */

.footer {
  text-align: center;
  padding: var(--s-xxl) 20px var(--s-section-sm);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-muted);
  background: var(--color-canvas);
  border-top: 1px solid var(--color-hairline-soft);
}

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

.footer a:hover {
  color: var(--color-slate);
  text-decoration: none;
}

/* ── 14. Modal ─────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay[hidden] {
  display: none;
}

/* card-base: white, hairline border, xl radius, shadow-4 */
.modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--color-canvas);
  border-radius: var(--r-xl);
  border: 1px solid var(--color-hairline);
  box-shadow: var(--shadow-4);
  padding: var(--s-xxl);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

/* button-icon-circular */
.modal__close {
  position: absolute;
  top: var(--s-sm);
  right: var(--s-sm);
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-hairline);
  background: var(--color-canvas);
  border-radius: var(--r-full);
  font-size: 18px;
  line-height: 1;
  color: var(--color-steel);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.modal__close:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

/* heading-sm: 24px, 600, 1.30 lh */
.modal__title {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--color-ink);
  margin: 0 0 var(--s-xs);
  padding-right: var(--s-xxl);
}

/* body-sm */
.modal__subtitle {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-slate);
  margin: 0 0 var(--s-xl);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: var(--s-xxs);
}

/* caption: 13px, 500 */
.modal__field span {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-charcoal);
}

/* text-input: 40px, hairline border, md radius */
.modal__field input {
  height: 40px;
  padding: 0 var(--s-md);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--r-md);
  outline: none;
  width: 100%;
  transition: border 0.15s ease;
}

/* text-input-focused: 2px brand-blue-deep */
.modal__field input:focus {
  border: 2px solid var(--color-brand-blue-deep);
}

/* Error color from DESIGN.md: #d45656 */
.modal__error {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #d45656;
  margin: 0;
}

/* ── 15. Responsive ────────────────────────────────────────────────────── */

/* Wide tablets and compact laptops */
@media (max-width: 1180px) {
  .calculator-section {
    padding-left: var(--s-xxl);
    padding-right: var(--s-xxl);
  }

  .calculator-card {
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }
}

/* Tablet — < 1024px */
@media (max-width: 1023px) {
  .calculator-card {
    grid-template-columns: 1fr;
    border-radius: var(--r-xl);
  }

  .calculator-card__inputs {
    border-right: none;
    border-bottom: 1px solid var(--color-hairline);
  }

  .calculator-card__output {
    border-radius: 0 0 var(--r-xl) var(--r-xl);
  }

  .hero__title {
    font-size: 32px;
  }

  .hero {
    padding: var(--s-section) 20px var(--s-section-sm);
  }

  .price-display {
    max-width: 520px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile — < 768px */
@media (max-width: 767px) {
  .nav {
    height: auto;
    min-height: 64px;
  }

  .nav__inner {
    padding: 0 var(--s-md);
    min-height: 64px;
  }

  .hero__title {
    font-size: 28px;
    letter-spacing: 0;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .calculator-section {
    padding: var(--s-xl) var(--s-md) var(--s-section);
  }

  .calculator-card__inputs,
  .calculator-card__output {
    padding: var(--s-xl);
  }

  .field {
    padding: var(--s-lg);
    margin-bottom: var(--s-lg);
  }

  .field__label-row {
    align-items: flex-start;
  }

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

  .toggle {
    align-items: flex-start;
  }

  .toggle__switch {
    margin-top: 1px;
  }

  .price-display {
    padding: var(--s-xl) var(--s-lg);
  }

  .price-display__amount {
    font-size: 40px;
  }

  .included-list {
    padding: var(--s-sm) var(--s-md);
  }

  .modal-overlay {
    align-items: flex-start;
    padding: var(--s-md);
  }

  .modal {
    margin: var(--s-xl) 0;
    padding: var(--s-xl);
    max-height: none;
  }
}

/* Small Mobile — < 480px */
@media (max-width: 479px) {
  .nav__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--s-sm);
    padding-bottom: var(--s-sm);
  }

  .nav__link {
    width: 100%;
  }

  .nav__logo img {
    max-width: 100%;
  }

  .hero {
    padding: var(--s-xxxl) var(--s-md) var(--s-xxl);
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .calculator-card__inputs,
  .calculator-card__output {
    padding: var(--s-md);
  }

  .panel-title {
    font-size: 18px;
    margin-bottom: var(--s-md);
  }

  .panel-title--addons {
    margin-top: var(--s-xl);
    padding-top: var(--s-xl);
  }

  .field {
    padding: var(--s-md);
  }

  .field__label-row {
    flex-direction: column;
    gap: var(--s-xxs);
  }

  .field__value {
    align-self: flex-start;
  }

  .field__number,
  .modal__field input {
    height: 44px;
  }

  .toggle {
    padding: var(--s-sm);
  }

  .price-display__amount {
    font-size: 36px;
  }

  .price-display__lock {
    gap: var(--s-sm);
  }

  .price-display .btn--primary,
  .btn--block {
    width: 100%;
  }

  .footer {
    padding-left: var(--s-md);
    padding-right: var(--s-md);
  }
}

/* Extra-small phones */
@media (max-width: 359px) {
  .calculator-section {
    padding-left: var(--s-sm);
    padding-right: var(--s-sm);
  }

  .calculator-card__inputs,
  .calculator-card__output,
  .field,
  .modal {
    padding: var(--s-sm);
  }

  .hero__title {
    font-size: 22px;
  }

  .price-display {
    padding: var(--s-lg) var(--s-sm);
    border-radius: var(--r-xl);
  }

  .price-display__amount {
    font-size: 32px;
  }

  .toggle {
    gap: var(--s-xs);
  }
}
