:root{
  --bg:#f5f1eb;
  --paper:#fbf9f6;
  --ink:#1e1b1b;
  --muted:#6d6664;
  --line:rgba(30,27,27,.12);
  --dark:#1d1a1b;
  --red:#A62122;
  --red-deep:#86191C;
  --soft:#efe4df;
  --purple:#6a57d2;
  --blue:#3977d6;
  --green:#4e8f54;
  --orange:#d69236;
  --yellow:#d7b741;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Montserrat",sans-serif;
  font-weight:300;
}

a{color:inherit}

main{overflow:hidden}

.hero{
  min-height:480px;
  padding:108px clamp(24px,9vw,136px) 92px;
  border-bottom:1px solid var(--line);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background:linear-gradient(180deg,#faf6f1 0%, var(--paper) 100%);
}

.eyebrow{
  margin:0 0 22px;
  font-size:10px;
  letter-spacing:.18em;
  font-weight:500;
  text-transform:uppercase;
  color:var(--red-deep);
}

h1,h2,h3{
  margin:0;
  font-family:"Italiana",serif;
  font-weight:400;
  color:var(--ink);
}

h1{
  font-size:clamp(48px,8vw,108px);
  line-height:.92;
}

h2{
  font-size:clamp(40px,5vw,72px);
  line-height:.96;
}

h3{
  font-size:clamp(28px,3.5vw,48px);
  line-height:1.02;
}

.intro{
  max-width:700px;
  margin:32px 0 0;
  line-height:1.8;
  color:var(--muted);
  font-size:15px;
}

.calculator{
  background:var(--dark);
  color:#fff;
  padding:84px clamp(24px,9vw,136px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

form{max-width:980px;margin:0 auto}
.form-kicker{
  margin:0 0 18px;
  font-size:10px;
  letter-spacing:.18em;
  font-weight:500;
  color:#e1b6b3;
}
.form-title{
  color:#fff;
  font-size:clamp(38px,5vw,66px);
  line-height:1;
  margin-bottom:18px;
}
.form-intro{
  max-width:700px;
  margin:0 0 36px;
  line-height:1.8;
  color:rgba(255,255,255,.74);
}

.gender{
  display:flex;
  gap:10px;
  margin:0 0 34px;
}
.gender button{
  min-width:95px;
  padding:13px 20px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:999px;
  background:transparent;
  color:#fff;
  font:inherit;
  cursor:pointer;
  transition:.18s ease;
}
.gender .active{
  background:var(--red);
  border-color:var(--red);
}

.fields{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:34px;
  align-items:start;
}

label>span,.date-label{
  display:block;
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,255,255,.74);
}

input{
  width:100%;
  margin-top:10px;
  padding:15px 2px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.42);
  background:transparent;
  color:#fff;
  font:inherit;
  font-size:18px;
  border-radius:0;
}
input::placeholder{color:rgba(255,255,255,.18)}
input:focus{outline:none;border-color:#fff}

.date-fields{
  display:grid;
  grid-template-columns:1fr 1fr 1.35fr;
  gap:16px;
  margin-top:10px;
}
.date-fields label>span{font-size:9px;color:rgba(255,255,255,.58)}
.date-fields input{margin-top:8px}

#error{
  min-height:20px;
  margin:18px 0 14px;
  color:#ffc9c6;
  font-size:12px;
}

.calc-btn,.booking{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:16px 28px;
  border-radius:999px;
  border:1px solid var(--red);
  background:var(--red);
  color:#fff;
  font:inherit;
  font-size:10px;
  letter-spacing:.16em;
  text-decoration:none;
  cursor:pointer;
  transition:.18s ease;
}
.calc-btn:hover,.booking:hover{
  background:#fff;
  border-color:#fff;
  color:var(--ink);
}

.results{
  padding:108px clamp(18px,7vw,110px);
}

.matrix-wrap{max-width:820px;margin:44px auto 0}
.matrix{
  background:var(--paper);
  border:1px solid rgba(166,33,34,.16);
  border-radius:30px;
  padding:20px;
  box-shadow:0 18px 60px rgba(38,24,24,.06);
}
.matrix svg{display:block;width:100%}

.cards{
  max-width:1120px;
  margin:46px auto 0;
  display:grid;
  gap:14px;
}
.cards.four{grid-template-columns:repeat(4,1fr)}
.cards.three{grid-template-columns:repeat(3,1fr)}

.card{
  background:rgba(251,249,246,.82);
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px;
}
.large-card{padding:42px}
.card small{
  display:block;
  margin-bottom:14px;
  font-size:9px;
  letter-spacing:.16em;
  color:var(--red-deep);
}
.strong-card strong{
  display:block;
  font-family:"Italiana",serif;
  font-size:70px;
  font-weight:400;
  line-height:1;
}

.mini-split{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  font-family:"Italiana",serif;
  font-size:20px;
}
.mini-split b{
  display:block;
  margin-top:4px;
  font-family:"Montserrat",sans-serif;
  font-size:14px;
  font-weight:500;
}

.stat-list{
  margin:0;
  padding:0;
  list-style:none;
}
.stat-list li{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(30,27,27,.08);
  font-size:13px;
  line-height:1.45;
}
.stat-list li:last-child{border-bottom:0}
.stat-list b{font-weight:600}

.tail-row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.tail-node{
  min-width:58px;
  height:58px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:"Italiana",serif;
  font-size:28px;
  border:1px solid rgba(30,27,27,.12);
}
.tail-node.main{background:var(--red);color:#fff;border-color:var(--red)}
.tail-node.mid{background:#f3e2c5;color:#674414}
.tail-node.light{background:#fff;color:var(--ink)}
.tail-arrow{color:var(--red-deep);font-size:18px}

.preview p:last-child{
  max-width:760px;
  line-height:1.85;
  color:var(--muted);
}

.section-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:end;
  margin-bottom:26px;
}
.section-note{
  max-width:420px;
  line-height:1.7;
  color:var(--muted);
  margin:0;
  font-size:13px;
}

.table-wrap{
  overflow:auto;
  border:1px solid rgba(30,27,27,.08);
  border-radius:20px;
}
.chakra-table{
  width:100%;
  border-collapse:collapse;
  min-width:640px;
  table-layout:fixed;
}
.chakra-table th,
.chakra-table td{
  padding:16px 18px;
  border-bottom:1px solid rgba(30,27,27,.08);
  font-size:13px;
  vertical-align:middle;
  font-variant-numeric: tabular-nums;
}
.chakra-table th:first-child,
.chakra-table td:first-child{
  text-align:left;
  width:34%;
}
.chakra-table th:not(:first-child),
.chakra-table td:not(:first-child){
  text-align:center;
  width:22%;
}
.chakra-table tbody tr:last-child td{border-bottom:none}
.chakra-table td{
  color:var(--ink);
}
.chakra-table td:not(:first-child){
  font-weight:500;
}
.chakra-table th{
  font-size:10px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--red-deep);
  font-weight:500;
}
.chakra-table td b{font-weight:600}

.locked{
  max-width:1120px;
  margin:84px auto 0;
  background:linear-gradient(180deg,#f7efe9 0%, #fbf7f3 100%);
  color:var(--ink);
  border-radius:28px;
  border:1px solid rgba(166,33,34,.14);
  border-top:3px solid var(--red);
  padding:64px;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:42px;
  align-items:end;
}
.locked h2{color:var(--ink)}
.locked p{margin:0;line-height:1.8;color:var(--muted)}
.locked .booking{grid-column:2}

.clarity-note{
  max-width:1120px;
  margin:24px auto 0;
  color:#6b6563;
  font-size:12px;
  line-height:1.75;
}

footer{
  background:var(--dark);
  color:#fff;
  border-top:1px solid rgba(255,255,255,.12);
  padding:34px clamp(24px,5vw,70px);
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:10px;
  letter-spacing:.14em;
}
footer a{text-decoration:none;color:#f0c1be}

@media (max-width: 980px){
  .cards.four,.cards.three{grid-template-columns:1fr 1fr}
  .fields{grid-template-columns:1fr}
  .locked{grid-template-columns:1fr}
  .locked .booking{grid-column:auto}
  .section-head{flex-direction:column;align-items:start}
}

@media (max-width: 700px){
  .hero{min-height:420px;padding-top:76px}
  .calculator{padding:70px 24px}
  .results{padding:82px 18px}
  .cards.four,.cards.three{grid-template-columns:1fr}
  .date-fields{grid-template-columns:1fr 1fr 1.15fr;gap:10px}
  .gender{justify-content:center}
  .large-card,.card{padding:24px}
  .locked{padding:34px 24px}
  .strong-card strong{font-size:58px}
  footer{flex-direction:column}
}
