:root {
  color-scheme: light;
  --bg: #f5efe6;
  --bg-deep: #d9e7df;
  --ink: #102a2a;
  --muted: #4f5f5f;
  --accent: #f26a4f;
  --accent-dark: #c7533b;
  --teal: #2a9d8f;
  --card: #ffffff;
  --border: rgba(16, 42, 42, 0.1);
  --shadow: 0 25px 45px rgba(16, 42, 42, 0.12);
  --radius: 24px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff8ef 0%, var(--bg) 45%, #e7f0ea 100%);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", serif;
  margin: 0 0 0.6rem;
  line-height: 1.1;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.container.narrow {
  width: min(760px, 90vw);
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.35;
  z-index: -1;
}

.bg-orb--one {
  background: radial-gradient(circle, rgba(242, 106, 79, 0.45) 0%, rgba(242, 106, 79, 0) 70%);
  top: -120px;
  left: -120px;
}

.bg-orb--two {
  background: radial-gradient(circle, rgba(42, 157, 143, 0.35) 0%, rgba(42, 157, 143, 0) 70%);
  bottom: -160px;
  right: -120px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 239, 230, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.hero {
  padding: 3rem 0 2rem;
}

.hero-copy {
  max-width: 480px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.btn {
  border: none;
  cursor: pointer;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 20px rgba(242, 106, 79, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(16, 42, 42, 0.08);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(16, 42, 42, 0.15);
}

.btn-block {
  width: 100%;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.muted {
  color: var(--muted);
}

.fine-print {
  font-size: 0.85rem;
  color: var(--muted);
}

.calculator-section {
  padding: 2rem 0 4rem;
}

.calculator-shell {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 1fr);
  grid-template-areas:
    "calculator copy"
    "results results";
}

.calculator-card {
  grid-area: calculator;
}

.hero-copy {
  grid-area: copy;
}

.results-wrap {
  grid-area: results;
  margin-top: 0;
}

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

.toggle-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 999px;
  background: rgba(16, 42, 42, 0.1);
  padding: 0.3rem;
}

.toggle {
  border: none;
  background: transparent;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.toggle.active {
  background: var(--ink);
  color: #fff;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.label-text {
  font-weight: 600;
}

.time-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

input,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
}

.input-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.unit {
  font-size: 0.9rem;
  color: var(--muted);
}

.results-card {
  padding: 2rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.badge {
  background: rgba(42, 157, 143, 0.15);
  color: var(--teal);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.results-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.result {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fffdf9;
  display: grid;
  gap: 0.3rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.result strong {
  font-size: 1.2rem;
}

.result.recommended {
  border-color: rgba(242, 106, 79, 0.4);
  box-shadow: 0 10px 25px rgba(242, 106, 79, 0.15);
}

.result:hover {
  transform: translateY(-2px);
}

.info-section,
.faq-section {
  padding: 3rem 0 4rem;
}

.info-intro {
  margin-bottom: 1.5rem;
}

.info-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
  background: rgba(255, 255, 255, 0.9);
}

.faq-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 2fr);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.policy-main {
  padding: 2.5rem 0 4rem;
}

.policy-hero {
  padding: 1.5rem 0 2rem;
}

.policy-content h2 {
  margin-top: 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.1s;
}

.reveal:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 3rem;
  }
  .calculator-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "calculator"
      "results"
      "copy";
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .time-row {
    grid-template-columns: 1fr;
  }
  .results-header {
    align-items: flex-start;
  }
  .card {
    padding: 1.6rem;
  }
  .header-grid {
    align-items: flex-start;
  }
}
