@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f7f2ea;
  --ink: #1f1a17;
  --muted: #6d625b;
  --accent: #d1623d;
  --accent-2: #2a7a6f;
  --card: #fffdf9;
  --stroke: rgba(31, 26, 23, 0.12);
  --shadow: 0 18px 40px rgba(31, 26, 23, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.print-header,
.print-footer,
.print-summary {
  display: none;
}

.print-header {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: #fff;
}

.print-logo {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
}

.print-meta {
  color: var(--muted);
  font-weight: 600;
}

.print-summary {
  margin-top: 16px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.print-summary table {
  width: 100%;
  border-collapse: collapse;
}

.print-summary td {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(31, 26, 23, 0.12);
}

.print-summary td:last-child {
  text-align: right;
  font-weight: 600;
}

.print-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  border: 1px solid var(--stroke);
  z-index: 10;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 20;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.cookie-title {
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-actions button {
  touch-action: manipulation;
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.02em;
}

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}

.blob-a {
  background: #f0b08e;
  top: -120px;
  left: -140px;
  animation: float 12s ease-in-out infinite;
}

.blob-b {
  background: #9ed6c3;
  bottom: -160px;
  right: -120px;
  animation: float 16s ease-in-out infinite reverse;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(31, 26, 23, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 26, 23, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.7), transparent 65%);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(26px);
  }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.2rem, 2.5vw + 1.5rem, 3.6rem);
  margin-bottom: 16px;
}

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

.hero-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card__inner {
  padding: 28px;
  display: grid;
  gap: 8px;
}

.hero-card__media {
  width: 100%;
  height: 140px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(209, 98, 61, 0.2), rgba(42, 122, 111, 0.25));
  border: 1px solid rgba(31, 26, 23, 0.1);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #2a3b36;
}

.hero-card__media::after {
  content: "";
  position: absolute;
  inset: 18px 22px 22px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1));
}

.hero-tag {
  z-index: 1;
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.65);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(31, 26, 23, 0.12);
}

.small {
  font-size: 0.9rem;
}

.big {
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.calculator {
  background: rgba(255, 253, 249, 0.85);
  border-radius: 28px;
  border: 1px solid var(--stroke);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 28px;
  backdrop-filter: blur(6px);
}

.calculator ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(42, 122, 111, 0.08);
  border: 1px solid rgba(42, 122, 111, 0.25);
  padding: 14px 18px;
  border-radius: 18px;
}

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

.cta-button {
  background: var(--accent-2);
  color: #fff;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 12px 20px rgba(42, 122, 111, 0.25);
}

.field {
  display: grid;
  gap: 8px;
}

input {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-size: 1rem;
}

input:focus {
  outline: 2px solid rgba(209, 98, 61, 0.35);
  border-color: rgba(209, 98, 61, 0.6);
}


.divider-title {
  display: grid;
  gap: 6px;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

button,
.ghost {
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(31, 26, 23, 0.55);
  outline-offset: 3px;
}

.primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(209, 98, 61, 0.28);
}

.ghost {
  background: transparent;
  border: 1px solid var(--stroke);
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--ink);
}

.example-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(42, 122, 111, 0.12);
  color: var(--accent-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
}

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

.result-card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--stroke);
  padding: 18px;
  display: grid;
  gap: 8px;
}

.result {
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
}

.error {
  color: #b42318;
  font-weight: 600;
}

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.note-card {
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.ad-slot {
  display: grid;
  place-items: center;
}

.ad-top {
  margin-top: 8px;
}

.ad-bottom {
  margin-bottom: 8px;
}

.ad-card {
  width: min(900px, 100%);
  border: 1px dashed rgba(31, 26, 23, 0.25);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 8px;
}

.ad-box {
  width: 100%;
  height: 90px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31, 26, 23, 0.08), rgba(31, 26, 23, 0.02));
  border: 1px solid rgba(31, 26, 23, 0.12);
}

.footer {
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 16px;
}

.legal {
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .page {
    padding: 32px 18px 48px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary, .ghost {
    width: 100%;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff;
  }

  .ambient,
  .skip-link,
  .example-buttons,
  .cta-row,
  .hero,
  .ad-slot,
  .notes,
  .footer {
    display: none;
  }

  .print-header,
  .print-footer,
  .print-summary {
    display: flex;
  }

  .print-summary {
    display: block;
  }

  .calc-form,
  .form-actions {
    display: none;
  }

  .page {
    padding: 0;
    gap: 18px;
    padding-bottom: 22mm;
  }

  .calculator {
    gap: 16px;
    page-break-inside: avoid;
  }

  .results {
    gap: 10px;
  }

  .result {
    font-size: 1.4rem;
  }

  .print-summary {
    margin-top: 10px;
  }

  .calculator {
    box-shadow: none;
    border: 1px solid #ccc;
    padding: 16px;
  }

  .print-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 8mm;
  }
}
