:root {
  --navy-950: #281811;
  --navy-900: #35241d;
  --navy-800: #49342a;
  --navy-700: #624a3e;
  --slate-600: #6b594e;
  --slate-500: #8a7669;
  --slate-400: #b7a69a;
  --slate-300: #dacdc2;
  --slate-200: #ebdfd5;
  --slate-100: #f6eee7;
  --slate-50: #fcf8f4;
  --white: #ffffff;
  --orange: #b95832;
  --orange-dark: #8f3d20;
  --orange-soft: #f7e4d9;
  --green: #b95832;
  --green-dark: #8f3d20;
  --green-soft: #f8e8de;
  --blue: #b95832;
  --blue-soft: #faece4;
  --purple: #926047;
  --purple-soft: #f4e9df;
  --yellow: #95601b;
  --yellow-soft: #fbefdc;
  --red: #c9362b;
  --red-soft: #fff1f0;
  --shadow-sm: 0 1px 2px rgba(71, 43, 29, 0.06);
  --shadow-md: 0 14px 34px rgba(71, 43, 29, 0.09);
  --shadow-lg: 0 26px 64px rgba(71, 43, 29, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--slate-50);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--navy-900);
  background:
    radial-gradient(circle at 4% 9%, rgba(185, 88, 50, 0.12), transparent 23rem),
    radial-gradient(circle at 94% 24%, rgba(214, 180, 151, 0.22), transparent 27rem),
    var(--slate-50);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
label,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  border: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.brand-rail {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 120%, rgba(255, 255, 255, 0.12), transparent 16rem),
    linear-gradient(112deg, #71301c, var(--orange-dark) 45%, var(--orange));
}

.brand-rail::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: -85px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  pointer-events: none;
}

.brand-rail-inner {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 48px));
  min-height: 104px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.profile-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 17px;
}

.profile-avatar-ring {
  width: 80px;
  height: 80px;
  padding: 0;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.13),
    0 10px 24px rgba(53, 25, 15, 0.24);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.55);
  transform-origin: 52% 28%;
}

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

.profile-eyebrow {
  display: block;
  color: #ffe5d7;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.profile-name {
  margin: 2px 0 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 880;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.profile-role {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  font-weight: 620;
  line-height: 1.35;
}

.brand-contact-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-contact-link {
  min-height: 48px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 15px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 760;
  text-decoration: none;
  transition:
    color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.brand-contact-link svg,
.floating-whatsapp svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-contact-link .icon-dot {
  fill: currentColor;
  stroke: none;
}

.contact-copy strong,
.contact-copy small {
  display: block;
  white-space: nowrap;
}

.contact-copy strong {
  font-size: 0.8rem;
  line-height: 1.2;
}

.contact-copy small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1.15;
}

.brand-contact-link.whatsapp {
  border-color: var(--white);
  color: var(--orange-dark);
  background: var(--white);
}

.brand-contact-link.whatsapp .contact-copy small {
  color: rgba(143, 61, 32, 0.78);
}

.brand-contact-link:hover {
  background: rgba(255, 255, 255, 0.17);
  transform: translateY(-1px);
}

.brand-contact-link.whatsapp:hover {
  color: var(--navy-900);
  background: var(--orange-soft);
}

.brand-contact-link:focus-visible,
.floating-whatsapp:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(208, 213, 221, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  width: min(1400px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px 4px 13px 13px;
  color: var(--white);
  background: linear-gradient(145deg, var(--orange), #d27a52);
  box-shadow: 0 8px 18px rgba(143, 61, 32, 0.25);
  font-size: 1.35rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: -1px;
  color: var(--slate-500);
  font-size: 0.75rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-button,
.nav-link {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--slate-600);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.nav-button:hover,
.nav-link:hover {
  color: var(--navy-900);
  background: var(--slate-100);
}

.page-shell {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 40px;
}

.intro {
  max-width: 1100px;
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 50px;
}

.eyebrow,
.section-kicker {
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.intro h1 {
  margin: 12px 0 0;
  color: var(--navy-900);
  font-size: clamp(2.65rem, 5.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.intro h1 span {
  color: var(--green);
}

.intro-copy {
  max-width: 490px;
  margin: 0 0 8px;
  color: var(--slate-600);
  font-size: 1.05rem;
  line-height: 1.7;
}

.intro-side {
  display: grid;
  gap: 18px;
}

.install-button {
  width: fit-content;
  min-height: 50px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  box-shadow: 0 10px 24px rgba(143, 61, 32, 0.23);
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.install-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(143, 61, 32, 0.3);
}

.install-button:focus-visible {
  outline: 3px solid rgba(196, 79, 35, 0.3);
  outline-offset: 3px;
}

.install-button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(430px, 520px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.form-panel {
  padding: 0 26px 24px;
}

.panel-heading {
  margin: 0 -26px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--slate-200);
  background:
    linear-gradient(130deg, rgba(22, 134, 106, 0.08), transparent 50%),
    var(--white);
}

.panel-heading h2 {
  margin: 5px 0 0;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.year-badge {
  padding: 7px 10px;
  border: 1px solid rgba(22, 134, 106, 0.2);
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.form-section {
  padding: 25px 0;
  border-bottom: 1px solid var(--slate-200);
}

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

.section-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-size: 0.7rem;
  font-weight: 850;
}

.section-title h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.section-title p {
  margin: 3px 0 0;
  color: var(--slate-500);
  font-size: 0.8125rem;
}

.segmented {
  display: grid;
  gap: 9px;
}

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

.segmented > label {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  color: var(--slate-600);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.segmented > input:checked + label {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-soft);
  box-shadow: 0 0 0 1px var(--green);
}

.segmented > input:focus-visible + label,
.mini-segmented > input:focus-visible + label {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

.mode-selector {
  grid-template-columns: repeat(3, 1fr);
}

.mode-selector > label {
  min-height: 96px;
  padding: 13px 8px;
  flex-direction: column;
  text-align: center;
}

.mode-selector label > span {
  min-height: 22px;
  margin-bottom: 3px;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 850;
}

.mode-selector label strong,
.mode-selector label small {
  display: block;
}

.mode-selector label strong {
  font-size: 0.8125rem;
}

.mode-selector label small {
  margin-top: 2px;
  color: var(--slate-500);
  font-size: 0.6875rem;
  font-weight: 500;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  display: block;
  color: var(--navy-800);
}

.field > span {
  min-height: 21px;
  margin: 0 0 7px;
  display: block;
  font-size: 0.8125rem;
  font-weight: 680;
}

.field > span b,
.required-note b {
  color: var(--red);
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  background: var(--white);
  outline: 0;
  font-size: 0.9375rem;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.field input {
  padding: 0 13px;
}

.field select {
  padding: 0 38px 0 13px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--slate-500) 50%),
    linear-gradient(135deg, var(--slate-500) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input::placeholder {
  color: var(--slate-400);
}

.field input:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 134, 106, 0.12);
}

.field input[aria-invalid="true"] {
  border-color: var(--red);
  background: var(--red-soft);
}

.field > small,
.field-help {
  min-height: 17px;
  margin: 5px 0 0;
  display: block;
  color: var(--slate-500);
  font-size: 0.7rem;
}

.money-input,
.suffix-input {
  position: relative;
}

.money-input i,
.suffix-input i {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--slate-500);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 750;
  pointer-events: none;
}

.money-input i {
  left: 13px;
}

.money-input input {
  padding-left: 39px;
}

.suffix-input i {
  right: 13px;
}

.suffix-input input {
  padding-right: 35px;
}

.featured-field {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid rgba(22, 134, 106, 0.18);
  border-radius: 13px;
  background: var(--green-soft);
}

.featured-field input {
  border-color: rgba(22, 134, 106, 0.35);
}

.featured-field .field-help {
  color: var(--green-dark);
  font-weight: 650;
}

.check-row {
  position: relative;
  margin-top: 15px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  cursor: pointer;
}

.check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1.5px solid var(--slate-300);
  border-radius: 6px;
  background: var(--white);
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.check-box::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) scale(0);
  transition: transform 150ms ease;
}

.check-row input:checked + .check-box {
  border-color: var(--green);
  background: var(--green);
}

.check-row input:checked + .check-box::after {
  transform: rotate(-45deg) scale(1);
}

.check-row input:focus-visible + .check-box {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row strong {
  color: var(--navy-800);
  font-size: 0.8125rem;
}

.check-row small {
  margin-top: 1px;
  color: var(--slate-500);
  font-size: 0.7rem;
}

.warning-row {
  border-color: #f2d6a2;
  background: var(--yellow-soft);
}

.compact {
  margin-top: 0;
}

.marketing-box {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: var(--white);
}

.marketing-box summary {
  min-height: 70px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

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

.marketing-box summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 11px;
}

.summary-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--purple);
  background: var(--purple-soft);
  font-weight: 850;
}

.marketing-box summary strong,
.marketing-box summary small {
  display: block;
}

.marketing-box summary strong {
  font-size: 0.875rem;
}

.marketing-box summary small {
  color: var(--slate-500);
  font-size: 0.7rem;
}

.chevron {
  color: var(--slate-500);
  font-size: 1.25rem;
  transition: transform 180ms ease;
}

.marketing-box[open] .chevron {
  transform: rotate(180deg);
}

.marketing-content {
  padding: 18px 15px;
  display: grid;
  gap: 15px;
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
}

.mini-segmented {
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border: 0;
}

.mini-segmented label {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  color: var(--slate-500);
  background: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.mini-segmented input:checked + label {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-soft);
}

.calculate-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(120deg, var(--orange-dark), var(--orange));
  box-shadow: 0 12px 24px rgba(143, 61, 32, 0.24);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.calculate-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(143, 61, 32, 0.3);
}

.calculate-button:active:not(:disabled) {
  transform: translateY(0);
}

.calculate-button:disabled {
  color: rgba(255, 255, 255, 0.8);
  background: var(--slate-300);
  box-shadow: none;
  cursor: not-allowed;
}

.required-note {
  margin: 10px 0 0;
  color: var(--slate-500);
  font-size: 0.7rem;
  text-align: center;
}

.results-column {
  min-width: 0;
  position: sticky;
  top: 104px;
}

.empty-result {
  min-height: 580px;
  padding: 70px 40px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: var(--slate-500);
  text-align: center;
}

.empty-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  color: var(--slate-400);
  background: var(--slate-100);
  font-size: 2rem;
}

.empty-result h2 {
  margin: 0;
  color: var(--navy-800);
  font-size: 1.2rem;
}

.empty-result p {
  max-width: 370px;
  margin: 8px auto 24px;
  font-size: 0.875rem;
}

.empty-rule {
  width: min(360px, 75%);
  height: 9px;
  margin-top: 10px;
  border-radius: 99px;
  background: var(--slate-100);
}

.empty-rule.short {
  width: min(240px, 55%);
}

.result-stack {
  display: grid;
  gap: 18px;
  animation: reveal 300ms ease-out;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 255, 255, 0.12), transparent 16rem),
    linear-gradient(145deg, var(--navy-950), #1c2c46);
  box-shadow: var(--shadow-lg);
}

.result-hero::after {
  content: "";
  position: absolute;
  right: -85px;
  bottom: -85px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.result-label {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.price-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-line strong {
  font-size: clamp(2.55rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.profit-pill {
  width: fit-content;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #d5fff2;
  background: rgba(22, 134, 106, 0.3);
  font-size: 0.82rem;
  font-weight: 750;
}

.profit-pill.negative {
  color: #ffd8d4;
  background: rgba(201, 54, 43, 0.3);
}

.margin-alert {
  width: fit-content;
  margin: 12px 0 0;
  padding: 6px 9px;
  border-radius: 7px;
  color: #fff1c8;
  background: rgba(180, 83, 9, 0.32);
  font-size: 0.72rem;
  font-weight: 700;
}

.customer-price {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.customer-price span,
.customer-price small,
.customer-price strong {
  display: block;
}

.customer-price span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
}

.customer-price strong {
  margin-top: 2px;
  font-size: 1.4rem;
}

.customer-price small {
  max-width: 230px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
  text-align: right;
}

.result-card {
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.result-card-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.result-card-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.result-card-heading span {
  color: var(--slate-500);
  font-size: 0.72rem;
}

.marketing-instructions {
  border-color: #dcd2fc;
  background: var(--purple-soft);
}

.marketing-instructions h3 {
  color: #5b21b6;
}

.marketing-instructions ul {
  margin: 0;
  padding-left: 20px;
  color: #5b21b6;
  font-size: 0.84rem;
}

.marketing-instructions li + li {
  margin-top: 7px;
}

.cost-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 13px;
  background: var(--slate-200);
}

.cost-row {
  min-height: 48px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--slate-600);
  background: var(--white);
  font-size: 0.82rem;
}

.cost-row span:last-child {
  color: var(--navy-900);
  font-weight: 720;
  text-align: right;
}

.cost-row.platform {
  background: var(--slate-50);
}

.cost-row.platform span:first-child {
  color: var(--navy-800);
  font-weight: 720;
}

.cost-row.optional {
  background: #fcfcfd;
}

.cost-row.discount {
  color: var(--purple);
  background: var(--purple-soft);
}

.cost-row.discount span:last-child {
  color: var(--purple);
}

.cost-totals {
  margin-top: 16px;
  padding-top: 16px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--slate-200);
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--slate-600);
  font-size: 0.85rem;
}

.total-row strong {
  color: var(--navy-900);
}

.total-row.profit {
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 800;
}

.total-row.profit strong {
  color: var(--green);
  font-size: 1.18rem;
}

.total-row.profit.negative strong {
  color: var(--red);
}

.fee-details {
  margin-top: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 11px;
}

.fee-details summary {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--slate-600);
  background: var(--slate-50);
  font-size: 0.76rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.fee-inner {
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--slate-200);
}

.fee-inner div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--slate-500);
  font-size: 0.74rem;
}

.distribution {
  margin-top: 22px;
}

.distribution h4 {
  margin: 0 0 10px;
  font-size: 0.8rem;
}

.stacked-bar {
  height: 15px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: var(--slate-100);
}

.stacked-bar span {
  min-width: 0;
}

.stacked-bar span:first-child {
  border-radius: 999px 0 0 999px;
}

.stacked-bar span:last-child {
  border-radius: 0 999px 999px 0;
}

.legend {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.legend-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--slate-500);
  font-size: 0.69rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-item b {
  color: var(--slate-600);
  font-size: 0.68rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mini-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.mini-card h3 {
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.status-badge {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.status-badge.competitive {
  color: var(--green-dark);
  background: var(--green-soft);
}

.status-badge.neutral {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.status-badge.risky {
  color: var(--red);
  background: var(--red-soft);
}

.analysis-copy {
  margin: 9px 0 14px;
  color: var(--slate-500);
  font-size: 0.74rem;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.comparison div {
  padding: 10px;
  border-radius: 10px;
  background: var(--slate-50);
}

.comparison span,
.comparison strong {
  display: block;
}

.comparison span {
  color: var(--slate-500);
  font-size: 0.66rem;
}

.comparison strong {
  margin-top: 3px;
  font-size: 0.83rem;
}

.market-simulation {
  margin: 13px 0 0;
  color: var(--slate-600);
  font-size: 0.72rem;
}

.market-simulation b.positive {
  color: var(--green);
}

.market-simulation b.negative {
  color: var(--red);
}

.projection-list {
  display: grid;
  gap: 9px;
}

.projection-row {
  padding: 10px 11px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-radius: 10px;
  color: var(--slate-600);
  background: var(--slate-50);
  font-size: 0.72rem;
}

.projection-row strong {
  color: var(--navy-900);
}

.projection-row.projection-profit {
  color: var(--green-dark);
  background: var(--green-soft);
}

.projection-row.projection-profit strong {
  color: var(--green-dark);
}

.share-card p {
  margin: 0 0 14px;
  color: var(--slate-500);
  font-size: 0.8rem;
}

.share-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  color: var(--white);
  background: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.share-button:hover {
  background: var(--green-dark);
}

.disclaimer {
  max-width: 850px;
  margin: 24px auto 0;
  color: var(--slate-500);
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: center;
}

.spreadsheet-download {
  padding: 24px max(24px, calc((100% - 1400px) / 2));
  border-top: 1px solid rgba(196, 79, 35, 0.14);
  background: linear-gradient(135deg, #fff8f1, #f6e8db);
}

.spreadsheet-download-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.spreadsheet-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(145deg, var(--orange-dark), var(--orange));
  box-shadow: 0 10px 24px rgba(143, 61, 32, 0.2);
}

.spreadsheet-icon svg,
.spreadsheet-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spreadsheet-copy h2 {
  margin: 3px 0 2px;
  color: var(--navy-900);
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.spreadsheet-copy p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.86rem;
  line-height: 1.45;
}

.spreadsheet-button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  box-shadow: 0 10px 24px rgba(143, 61, 32, 0.2);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.spreadsheet-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(143, 61, 32, 0.27);
}

.spreadsheet-button:focus-visible {
  outline: 3px solid rgba(196, 79, 35, 0.3);
  outline-offset: 3px;
}

.access-footer {
  padding: 18px max(24px, calc((100% - 1400px) / 2)) 0;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}

.footer {
  min-height: 76px;
  padding: 12px max(24px, calc((100% - 1400px) / 2)) 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--slate-500);
  background: var(--white);
  font-size: 0.75rem;
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 8px;
}

.access-counter {
  min-height: 34px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(196, 79, 35, 0.2);
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
}

.access-counter-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-counter strong {
  color: var(--orange-dark);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.brand-footer {
  color: var(--orange-dark);
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  min-height: 56px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  box-shadow: 0 16px 36px rgba(92, 42, 24, 0.3);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(92, 42, 24, 0.36);
}

.rules-dialog {
  width: min(660px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  color: var(--navy-900);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(16, 24, 40, 0.3);
}

.install-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  color: var(--navy-900);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(16, 24, 40, 0.3);
}

.install-dialog::backdrop {
  background: rgba(11, 18, 32, 0.64);
  backdrop-filter: blur(4px);
}

.install-dialog-content {
  padding: 24px;
}

.install-device-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.install-steps {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--slate-700);
}

.install-steps li {
  margin: 0 0 13px;
  padding-left: 5px;
  line-height: 1.5;
}

.install-note {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-radius: 12px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-size: 0.82rem;
  line-height: 1.5;
}

.rules-dialog::backdrop {
  background: rgba(11, 18, 32, 0.64);
  backdrop-filter: blur(4px);
}

.dialog-heading {
  padding: 21px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-200);
}

.dialog-heading h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.dialog-heading button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--slate-500);
  background: var(--slate-100);
  font-size: 1.5rem;
  cursor: pointer;
}

.dialog-content {
  max-height: calc(100vh - 150px);
  padding: 22px;
  overflow-y: auto;
}

.dialog-content > p {
  margin: 0 0 17px;
  color: var(--slate-600);
  font-size: 0.84rem;
}

.rules-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.rules-table-wrap table {
  width: 100%;
  min-width: 470px;
  border-collapse: collapse;
  font-size: 0.77rem;
}

.rules-table-wrap th,
.rules-table-wrap td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
}

.rules-table-wrap th {
  color: var(--slate-600);
  background: var(--slate-100);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rules-table-wrap tr:last-child td {
  border-bottom: 0;
}

.rules-list {
  margin: 18px 0;
  padding-left: 20px;
  color: var(--slate-600);
  font-size: 0.8rem;
}

.rules-list li + li {
  margin-top: 7px;
}

.official-button {
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 94px;
  z-index: 50;
  max-width: min(360px, calc(100% - 44px));
  padding: 12px 15px;
  border-radius: 11px;
  color: var(--white);
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .calculator-layout {
    grid-template-columns: minmax(380px, 470px) minmax(0, 1fr);
  }

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

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

@media (max-width: 880px) {
  .brand-rail-inner {
    gap: 14px;
  }

  .profile-role {
    max-width: 390px;
  }

  .brand-contact-link {
    width: 46px;
    padding: 0;
  }

  .brand-contact-link .contact-copy {
    display: none;
  }

  .page-shell {
    padding-top: 42px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
  }

  .intro-copy {
    margin: 0;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .results-column {
    position: static;
  }

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

@media (max-width: 620px) {
  .brand-rail-inner,
  .topbar-inner,
  .page-shell {
    width: min(100% - 28px, 1400px);
  }

  .brand-rail-inner {
    min-height: 84px;
    padding: 10px 0;
    gap: 10px;
  }

  .profile-lockup {
    min-width: 0;
    gap: 11px;
  }

  .profile-avatar-ring {
    width: 62px;
    height: 62px;
    border-width: 3px;
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.12),
      0 8px 18px rgba(53, 25, 15, 0.2);
  }

  .profile-eyebrow {
    display: none;
  }

  .profile-name {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.1;
  }

  .profile-role {
    max-width: 230px;
    margin-top: 3px;
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .brand-contact-links {
    gap: 6px;
  }

  .brand-contact-link {
    width: 42px;
    min-height: 42px;
  }

  .topbar-inner {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .top-actions {
    gap: 2px;
  }

  .nav-link {
    display: none;
  }

  .nav-button {
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .page-shell {
    padding-top: 34px;
  }

  .intro h1 {
    font-size: clamp(2.5rem, 14vw, 3.65rem);
  }

  .intro-copy {
    font-size: 0.94rem;
  }

  .install-button {
    width: 100%;
    min-height: 52px;
  }

  .spreadsheet-download {
    padding: 24px 14px;
  }

  .spreadsheet-download-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
  }

  .spreadsheet-icon {
    width: 48px;
    height: 48px;
  }

  .spreadsheet-copy h2 {
    font-size: 1.05rem;
  }

  .spreadsheet-button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .form-panel {
    padding: 0 18px 20px;
  }

  .panel-heading {
    margin: 0 -18px;
    padding: 20px 18px;
  }

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

  .mode-selector {
    gap: 6px;
  }

  .mode-selector > label {
    min-height: 90px;
    padding-inline: 4px;
  }

  .mode-selector label small {
    display: none;
  }

  .result-hero,
  .result-card {
    padding: 21px;
  }

  .price-line strong {
    font-size: clamp(2.45rem, 14vw, 3.5rem);
  }

  .customer-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .customer-price small {
    text-align: left;
  }

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

  .analysis-grid {
    gap: 12px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .footer-branding {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 56px;
    min-height: 56px;
    padding: 0;
  }

  .floating-whatsapp span {
    display: none;
  }

  .toast {
    right: 16px;
    bottom: 84px;
  }
}

@media (max-width: 420px) {
  .brand-contact-links {
    flex-direction: column;
    gap: 4px;
  }

  .profile-role {
    max-width: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
