:root {
  --bg: #f8f3ec;
  --bg-deep: #e8d7c3;
  --surface: rgba(255, 251, 246, 0.82);
  --surface-strong: #fffaf4;
  --ink: #2e2a26;
  --muted: #66615a;
  --accent: #5e8fa8;
  --accent-strong: #44748e;
  --accent-soft: #b9d7ea;
  --warm-soft: #efd7b9;
  --line: rgba(46, 42, 38, 0.1);
  --shadow: 0 24px 70px rgba(72, 92, 108, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 35%),
    radial-gradient(circle at bottom right, rgba(94, 143, 168, 0.18), transparent 30%),
    linear-gradient(135deg, var(--bg), var(--bg-deep));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 28, 24, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 28, 24, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.hero-copy,
.hero-card,
.panel {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 32px;
  padding: 2.5rem;
}

.hero-card {
  border-radius: 32px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(185, 215, 234, 0.52), rgba(255, 255, 255, 0.7)),
    var(--surface);
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
}

h1,
h2,
h3,
strong {
  margin: 0;
}

h1,
h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.25rem, 7vw, 6.4rem);
  max-width: 9ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-text,
.info-list p,
.disclaimer-panel p,
.summary-box,
.result-card span,
label,
input,
select,
button {
  font-size: 1rem;
}

.hero-text {
  max-width: 60ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-notes span,
.hero-card-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-notes span {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(185, 215, 234, 0.2);
  border: 1px solid var(--line);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.hero-stat:last-of-type {
  border-bottom: 0;
}

.hero-stat span {
  color: var(--muted);
}

.hero-stat strong {
  font-size: 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.panel {
  border-radius: 28px;
  padding: 1.5rem;
}

.calculator-panel,
.results-panel {
  min-height: 100%;
}

.panel-heading {
  margin-bottom: 1.25rem;
}

.calculator-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

input,
select,
.input-suffix,
.primary-button {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 0.95rem 1rem;
  font: inherit;
}

input,
select,
.input-suffix {
  background: var(--surface-strong);
  color: var(--ink);
}

.input-suffix {
  display: grid;
  place-items: center;
  min-width: 88px;
}

.primary-button {
  margin-top: 0.5rem;
  cursor: pointer;
  color: #f7fbfd;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border: 0;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 18px 40px rgba(94, 143, 168, 0.3);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
}

.results-grid,
.info-list {
  display: grid;
  gap: 1rem;
}

.results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-card {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.result-card p {
  margin: 0 0 0.45rem;
  color: var(--muted);
}

.result-card strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.accent-card {
  background: linear-gradient(145deg, rgba(185, 215, 234, 0.42), rgba(255, 255, 255, 0.82));
}

.summary-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: rgba(245, 250, 252, 0.85);
  border-radius: 18px;
  line-height: 1.6;
}

.info-list article {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.info-list article:last-child {
  border-bottom: 0;
}

.info-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.info-list p,
.disclaimer-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.disclaimer-panel {
  background:
    linear-gradient(140deg, rgba(239, 215, 185, 0.4), rgba(255, 255, 255, 0.72)),
    var(--surface);
}

@media (max-width: 920px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
    padding-top: 0.5rem;
  }

  .hero-copy,
  .hero-card,
  .panel {
    border-radius: 24px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 1.2rem;
  }

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