:root {
  --paper: #EFE9E0;
  --paper-warm: #E6D9CC;
  --ink: #26261C;
  --ink-muted: #464735;
  --ink-soft: #6E6B60;
  --ink-faint: #A8A294;
  --hairline: #C9BFB2;
  --overlay: rgba(38, 38, 28, .62);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
}

body {
  font-family: 'Jost', Helvetica, Arial, sans-serif;
  color: var(--ink);
}

.page {
  max-width: 1400px;
  margin: 0 auto;
}

a { color: var(--ink); }
a:hover { color: var(--ink-muted); }

img { max-width: 100%; }

h1, h2 { font-family: 'Jost', Helvetica, Arial, sans-serif; font-weight: 300; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font: 500 14px/1 'Jost', sans-serif;
  letter-spacing: .06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-outline {
  border: 1px solid rgba(38, 38, 28, .45);
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: rgba(38, 38, 28, .07); }
.btn-light { background: var(--paper); color: var(--ink); min-height: 50px; }
.btn-outline-light {
  border: 1px solid rgba(239, 233, 224, .5);
  color: var(--paper);
  min-height: 50px;
}
.btn-text {
  min-height: 44px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font: 400 13px/1 'Jost', sans-serif;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
.topbar-tag {
  font: 400 11px/1.3 'Jost', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  background: var(--paper-warm);
  border-bottom: 1px solid rgba(70, 71, 53, .25);
}
.hero-left {
  box-sizing: border-box;
  flex: 1 1 380px;
  min-width: min(100%, 340px);
  max-width: 100%;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 44px);
  justify-content: space-between;
}
.hero-logo {
  height: clamp(44px, 6vw, 64px);
  width: auto;
  align-self: flex-start;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-kicker-line {
  width: 34px;
  height: 1px;
  background: var(--ink-soft);
  display: block;
  flex: none;
}
.hero-kicker span:last-child {
  font: 500 11px/1.3 'Jost', sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.hero-copy p {
  margin-top: 20px;
  font: 400 clamp(14px, 1.6vw, 16px)/1.6 Helvetica, Arial, sans-serif;
  color: var(--ink-muted);
  max-width: 30em;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-right {
  box-sizing: border-box;
  flex: 1 1 420px;
  min-width: min(100%, 320px);
  max-width: 100%;
  position: relative;
  min-height: clamp(240px, 32vw, 560px);
}
.hero-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .5) 26%, #000 56%),
    linear-gradient(to bottom, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .5) 26%, #000 56%),
    linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-composite: intersect;
}

/* Calculator */
.calc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}
.calc-options {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(28px, 3.5vw, 44px) clamp(20px, 4vw, 40px);
}
.calc-options h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.06;
}
.calc-desc {
  font: 400 15px/1.6 Helvetica, Arial, sans-serif;
  color: var(--ink-muted);
  max-width: 32em;
}
.groups {
  margin-top: 30px;
  display: grid;
  gap: 24px;
}
.group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 11px;
}
.group-num {
  font: 400 12px/1 'Jost', sans-serif;
  color: var(--ink-faint);
}
.group-title {
  font: 500 12px/1 'Jost', sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.group-options {
  display: grid;
  gap: 6px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 15px;
  cursor: pointer;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .5);
  font: inherit;
  text-align: left;
  width: 100%;
}
.option:hover { border-color: var(--ink); }
.option.selected {
  border-color: var(--ink);
  background: #E4DBD2;
}
.option-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px var(--ink);
  background: transparent;
}
.option.selected .option-dot { background: var(--ink); }
.option-label {
  flex: 1;
  font: 400 14px/1.4 Helvetica, Arial, sans-serif;
  color: var(--ink);
}
.option-price {
  font: 400 14px/1.4 'Jost', sans-serif;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Summary panel */
.calc-summary {
  box-sizing: border-box;
  min-width: 0;
  background: var(--ink-muted);
  color: var(--paper);
  padding: clamp(28px, 3.5vw, 44px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
}
.summary-label {
  font: 500 11px/1 'Jost', sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 14px;
}
.summary-list {
  display: grid;
  gap: 0;
  font: 400 14px/1.5 Helvetica, Arial, sans-serif;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(239, 233, 224, .22);
}
.summary-row span:first-child { opacity: .8; }
.summary-row span:last-child { white-space: nowrap; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 22px;
}
.total-label {
  font: 400 13px/1 'Jost', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .6;
}
.total-value {
  font: 300 clamp(34px, 5vw, 44px)/1 'Jost', sans-serif;
}
.summary-footer { margin-top: 28px; }
.summary-note {
  font: 400 12px/1.6 Helvetica, Arial, sans-serif;
  opacity: .5;
  margin: 0 0 16px;
}
.summary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.summary-actions .btn-light { flex: 1 1 220px; }
.summary-actions .btn-outline-light { flex: 1 1 150px; }

/* Footer */
.site-footer {
  padding: 20px clamp(20px, 4vw, 40px);
  border-top: 1px solid var(--hairline);
  font: 400 12px/1.6 Helvetica, Arial, sans-serif;
  color: var(--ink-soft);
}

/* Dialog */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: 20px;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.overlay.open { display: flex; }
.dialog {
  width: min(440px, 100%);
  max-height: 100%;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: clamp(22px, 3vw, 30px);
}
.dialog-kicker {
  font: 500 11px/1 'Jost', sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.dialog-title {
  font: 300 clamp(22px, 3vw, 28px)/1.2 'Jost', sans-serif;
  margin-bottom: 8px;
  text-wrap: pretty;
}
.dialog-desc {
  font: 400 14px/1.6 Helvetica, Arial, sans-serif;
  color: var(--ink-muted);
  margin: 0 0 20px;
}
.dialog-summary {
  border-top: 1px solid var(--hairline);
  font: 400 13.5px/1.5 Helvetica, Arial, sans-serif;
}
.dialog-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(70, 71, 53, .16);
}
.dialog-summary-row span:first-child { color: var(--ink-muted); }
.dialog-summary-row span:last-child { white-space: nowrap; }
.dialog-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}
.dialog-total-label {
  font: 400 12px/1 'Jost', sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dialog-total-value { font: 300 32px/1 'Jost', sans-serif; }
.dialog-actions {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

/* Mobile */
@media (max-width: 700px) {
  .topbar { display: none; }

  .hero-right {
    min-height: 0;
    aspect-ratio: 933 / 1301;
  }
}
