:root {
  --navy: #0b1630;
  --navy-2: #132447;
  --blue: #246bfd;
  --cyan: #59d8ff;
  --mint: #4dd7b3;
  --ink: #152038;
  --muted: #60708c;
  --line: #dce5f2;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --danger: #b83b55;
  --shadow: 0 18px 50px rgba(22, 42, 84, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 0%, rgba(89, 216, 255, 0.17), transparent 26rem),
    linear-gradient(180deg, #eef5ff 0, #f7f9fc 38rem, #f7f9fc 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: var(--blue); }

.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: relative;
  z-index: 20;
  background: #121212;
  color: white;
}
.site-header-inner {
  display: flex;
  width: min(calc(100% - 32px), 1320px);
  min-height: 82px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo img { display: block; width: min(210px, 48vw); height: auto; }
.site-navigation { display: flex; align-items: center; gap: 24px; }
.site-navigation > a,
.site-products-menu > summary {
  color: white;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}
.site-navigation a:hover,
.site-products-menu > summary:hover { color: var(--cyan); }
.site-products-menu { position: relative; }
.site-products-menu > summary { display: block; padding: 8px 0; cursor: pointer; list-style: none; }
.site-products-menu > summary::-webkit-details-marker { display: none; }
.site-products-menu > summary::after { content: " +"; color: var(--cyan); }
.site-products-menu[open] > summary::after { content: " −"; }
.site-products-menu > div {
  position: absolute;
  top: 100%;
  left: -18px;
  display: grid;
  width: 280px;
  padding: 10px;
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  background: #171717;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.site-products-menu > div a { padding: 8px 10px; border-radius: 7px; color: #f1f1f1; font-size: 0.8rem; text-decoration: none; }
.site-products-menu > div a:hover { background: #252525; }
.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #1b1b1b;
}
.site-menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: white; }

.calculator-shell {
  width: min(calc(100% - 24px), 780px);
  margin: 12px auto 40px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding: 10px 4px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: 0.95rem;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: var(--cyan);
  font-size: 1.15rem;
  font-weight: 900;
}

.brand-note {
  color: var(--muted);
  font-size:1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro {
  margin: 0 4px 22px;
}

.eyebrow {
  margin: 0 0 7px;
  color: #e5007d;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(1.8rem, 6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.intro > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.panel {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(211, 223, 239, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.section-heading.compact { margin-bottom: 14px; }

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.2;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.step {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--navy);
  color: var(--cyan);
  font-weight: 900;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.field > span, .choice-fieldset legend {
  color: #30405d;
  font-size: 0.84rem;
  font-weight: 750;
}

input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd7e7;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 10px 12px;
}

textarea { resize: vertical; }

input:focus, select:focus, textarea:focus, button:focus-visible, summary:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 107, 253, 0.15);
  outline: none;
}

.season-prices { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.subsection-heading { margin-bottom: 12px; }
.subsection-heading h3 { margin: 0; color: var(--navy); font-size: 1rem; font-weight: 500; }
.subsection-heading h3 strong { font-weight: 800; }
.subsection-heading p { margin: 4px 0 0; color: var(--muted); font-size: 0.8rem; }
.season-month-settings { display: grid; gap: 8px; }
.season-month-card {
  display: grid;
  grid-template-columns: minmax(86px, .75fr) minmax(140px, 1.25fr) auto;
  grid-template-areas:
    "month rate closed"
    "month occupancy closed";
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.season-month-card > strong { grid-area: month; align-self: center; color: var(--navy); }
.season-month-card.is-closed { opacity: .7; background: #f0f2f6; }
.season-rate-field, .season-occupancy-field { display: grid; gap: 4px; }
.season-rate-field { grid-area: rate; }
.season-occupancy-field { grid-area: occupancy; }
.season-rate-field > span:first-child, .season-occupancy-field > span:first-child { color: var(--muted); font-size: .72rem; font-weight: 750; }
.price-input { position: relative; display: block; }
.price-input input { min-height: 40px; padding: 7px 32px 7px 9px; }
.price-input b { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--muted); }
.percentage-input { position: relative; display: block; }
.percentage-input input { min-height: 40px; padding: 7px 32px 7px 9px; }
.percentage-input b { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--muted); }
.closed-toggle { grid-area: closed; display: flex; min-height: 40px; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; font-weight: 750; }
.closed-toggle input { width: 18px; min-height: 18px; margin: 0; }

.choice-fieldset {
  margin: 15px 0 0;
  padding: 0;
  border: 0;
}

.choice-fieldset legend { margin-bottom: 7px; }

.segmented {
  display: grid;
  gap: 7px;
  padding: 5px;
  border-radius: 14px;
  background: var(--soft);
}

.segmented.two { grid-template-columns: repeat(2, 1fr); }
.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}
.segmented span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
}
.segmented input:checked + span {
  border-color: #cbd8ef;
  background: white;
  color: var(--navy);
  box-shadow: 0 5px 14px rgba(29, 55, 102, 0.09);
}

.notice {
  margin-top: 12px;
  padding: 11px 12px;
  border-left: 4px solid #f0a83b;
  border-radius: 10px;
  background: #fff8e9;
  color: #68460f;
  font-size: 0.86rem;
}

.visibility-options {
  display: grid;
  gap: 9px;
}

.visibility-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-align: left;
}

.visibility-button:hover { border-color: #a9bce0; }
.visibility-button.active {
  border-color: var(--blue);
  background: #f1f6ff;
  box-shadow: 0 0 0 3px rgba(36, 107, 253, 0.10);
}

.visibility-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #a9b8cf;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff;
  background: #fff;
}

.visibility-button.active .visibility-radio { border-color: var(--blue); background: var(--blue); }
.visibility-copy strong { display: block; color: var(--navy); }
.visibility-copy small { display: block; margin-top: 2px; color: var(--muted); line-height: 1.35; }
.visibility-badge {
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 4px 7px;
  font-size: 0.7rem;
  font-weight: 800;
}
.visibility-button[data-level="medium"] .visibility-badge { background: #defaf2; color: #116b54; }

.results-panel {
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  color: white;
}

.results-panel .section-heading h2 { color: white; }
.results-panel .section-heading p { color: #afbdd7; }
.results-panel .step { background: rgba(89, 216, 255, 0.14); }

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.scenario-card {
  min-width: 0;
  padding: 12px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.scenario-card.expected {
  border-color: rgba(89, 216, 255, 0.55);
  background: rgba(89, 216, 255, 0.10);
}

.scenario-card span { display: block; color: #b7c3d9; font-size: 0.75rem; }
.scenario-card strong {
  display: block;
  margin: 5px 0 2px;
  color: white;
  font-size: clamp(1.05rem, 4vw, 1.48rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.scenario-card small { display: block; color: #8fa2c2; font-size: 0.72rem; line-height: 1.3; }
.scenario-card.negative strong { color: #ff9db0; }

.breakdown-wrap {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}
.breakdown-wrap > strong { color: #dce8fa; font-size: 0.82rem; }
.result-breakdown { display: grid; gap: 7px; margin-top: 9px; }
.result-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #afbdd7;
  font-size: 0.78rem;
}
.result-breakdown strong { flex: 0 0 auto; color: white; }
.result-breakdown .expense strong { color: #ffbdc9; }
.result-breakdown .total {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  font-weight: 850;
}
.result-breakdown .total.negative strong { color: #ff9db0; }

.result-disclaimer {
  margin: 12px 0 0;
  color: red;
    background-color: aliceblue;
    padding: .5rem;
    border-radius: 1rem;
  font-size: .8rem;
  line-height: 1.4;
}

.model-note {
  margin: 12px 0 0;
  padding: 9px 10px;
  border: 1px solid rgba(89, 216, 255, 0.22);
  border-radius: 10px;
  background: rgba(89, 216, 255, 0.07);
  color: #c0cee3;
  font-size: 0.75rem;
  line-height: 1.4;
}

.comparison {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 13px;
  background: white;
  color: var(--ink);
}
.comparison-kicker { color: var(--blue); font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }
.comparison strong { font-size: 0.9rem; }
.comparison a { font-size: 0.82rem; font-weight: 800; }

details.panel { padding: 0; }
details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  list-style: none;
  cursor: pointer;
}
details summary::-webkit-details-marker { display: none; }
details summary strong { display: block; color: var(--navy); }
details summary small { display: block; margin-top: 3px; color: var(--muted); }
.summary-icon {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
  font-size: 1.3rem;
  transition: transform 160ms ease;
}
details[open] .summary-icon { transform: rotate(45deg); }

.monthly-plan {
  display: grid;
  gap: 8px;
  padding: 0 12px 14px;
}

.month-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.month-card.closed { background: #f8f9fc; }

.month-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.month-top strong { display: block; color: var(--navy); }
.month-top small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.66rem; line-height: 1.3; }
.month-result { color: var(--muted); font-size: 0.74rem; text-align: right; }
.month-result b { color: var(--navy); }

.month-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 9px;
}
.month-breakdown span {
  padding: 5px 6px;
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 0.65rem;
  text-align: center;
}
.month-breakdown b { display: block; color: var(--navy); font-size: 0.72rem; }

.month-details { margin: 0 0 9px; }
.month-details > summary {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #d6e0ee;
  border-radius: 9px;
  background: white;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
}
.month-details[open] > summary { margin-bottom: 6px; }
.month-details-icon { font-size: 1rem; line-height: 1; transition: transform 160ms ease; }
.month-details[open] .month-details-icon { transform: rotate(45deg); }
.details-label-open { display: none; }
.month-details[open] .details-label-open { display: inline; }
.month-details[open] .details-label-closed { display: none; }

.room-night-breakdown {
  display: grid;
  gap: 5px;
}
.room-night-breakdown span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}
.room-night-breakdown b { flex: 0 0 auto; color: var(--navy); font-size: 0.76rem; }

.month-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mini-field { display: grid; gap: 4px; }
.mini-field > span { color: var(--muted); font-size: 0.7rem; font-weight: 750; }
.mini-field input { min-height: 40px; padding: 7px 9px; font-size: 0.9rem; }
.budget-control { grid-column: 1 / -1; }
.stepper {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #cbd7e7;
  border-radius: 11px;
  background: white;
}
.stepper button {
  border: 0;
  background: #edf3fc;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 900;
}
.stepper output { display: grid; min-height: 40px; place-items: center; color: var(--navy); font-weight: 850; }

.contact-grid { margin-bottom: 13px; }
.message-field { margin-bottom: 8px; }
.field small { color: var(--muted); font-weight: 500; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 9px;
  margin: 10px 0 15px;
  color: var(--muted);
  font-size: 0.78rem;
}
.consent input { width: 18px; min-height: 18px; margin-top: 2px; }
.include-plan { margin-top: 14px; margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.primary-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), #1f8dcc);
  color: white;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(36, 107, 253, 0.24);
}
.primary-button:disabled { cursor: wait; opacity: 0.65; }
.form-status { min-height: 1.3em; margin: 9px 0 0; color: var(--muted); font-size: 0.82rem; text-align: center; }
.form-status.success { color: #16705b; }
.form-status.error { color: var(--danger); }

.site-footer { margin-top: 48px; padding: 52px 0; background: #121212; color: #c8c8c8; }
.site-footer-inner { display: grid; width: min(calc(100% - 32px), 1180px); margin: 0 auto; grid-template-columns: 1.6fr .8fr 1fr; gap: 42px; }
.site-footer img { width: min(220px, 70%); height: auto; }
.site-footer p { max-width: 480px; color: #a9a9a9; font-size: .86rem; }
.site-footer h2 { margin: 0 0 14px; color: white; font-size: 1rem; }
.site-footer-inner > div:not(.site-footer-brand) { display: grid; align-content: start; gap: 9px; }
.site-footer a { color: #c8c8c8; font-size: .82rem; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.site-social-links { display: flex; gap: 16px; }

[hidden] { display: none !important; }

@media (min-width: 620px) {
  .calculator-shell { margin-top: 28px; }
  .panel { padding: 22px; }
  .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visibility-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .visibility-button { grid-template-columns: auto 1fr; align-content: start; }
  .visibility-badge { grid-column: 1 / -1; justify-self: start; }
  .monthly-plan { grid-template-columns: repeat(2, 1fr); padding: 0 18px 18px; }
  .season-month-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .site-header-inner { min-height: 72px; }
  .site-menu-toggle { display: block; }
  .site-navigation {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid #303030;
    border-radius: 0 0 14px 14px;
    background: #121212;
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
  }
  .site-navigation.is-open { display: grid; }
  .site-navigation > a,
  .site-products-menu > summary { padding: 10px; }
  .site-products-menu > div { position: static; width: auto; margin: 0 8px 8px; box-shadow: none; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .site-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 410px) {
  .scenario-grid { gap: 5px; }
  .scenario-card { padding-inline: 5px; }
  .month-controls { grid-template-columns: 1fr; }
  .budget-control { grid-column: auto; }
  .season-month-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "month closed"
      "rate rate"
      "occupancy occupancy";
  }
  .site-footer-inner { grid-template-columns: 1fr; }
  .site-footer-brand { grid-column: auto; }
}

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