:root {
  --color-ink: #132125;
  --color-ink-strong: #0b1619;
  --color-cream: #fbf7ef;
  --color-sand: #f4e9d8;
  --color-mist: #ecf4f2;
  --color-accent: #f26a4b;
  --color-accent-strong: #d4563c;
  --color-mint: #24b59b;
  --color-mute: #607277;
  --color-border: rgba(19, 33, 37, 0.12);
  --shadow-sm: 0 12px 30px rgba(11, 22, 25, 0.12);
  --shadow-md: 0 20px 40px rgba(11, 22, 25, 0.16);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

body {
  font-family: "Source Serif 4", serif;
  color: var(--color-ink);
  background: radial-gradient(1200px 700px at 12% -10%, #f3d6c6 0%, transparent 60%),
    radial-gradient(900px 650px at 90% 0%, #d6efe9 0%, transparent 55%),
    var(--color-cream);
  min-height: 100vh;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background: linear-gradient(135deg, var(--color-accent), var(--color-mint));
  top: 18%;
  left: -140px;
}

body::after {
  background: linear-gradient(135deg, #f2c6b3, #bfe4dc);
  bottom: -120px;
  right: -160px;
}

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

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

button,
input,
select {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

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

.site-header {
  padding: 26px 0 10px;
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--color-accent), var(--color-mint));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--color-mute);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-ink);
  background: rgba(19, 33, 37, 0.08);
}

.site-nav a.is-active {
  color: var(--color-ink);
  background: rgba(19, 33, 37, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--color-ink);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn.outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.btn.ghost {
  background: rgba(19, 33, 37, 0.08);
  color: var(--color-ink);
}

.hero {
  padding: 52px 0 30px;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(242, 106, 75, 0.15);
  color: var(--color-accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 18px 0 16px;
}

.hero p {
  font-size: 1.05rem;
  color: var(--color-mute);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 12px;
}

.hero-note {
  font-size: 0.95rem;
  color: var(--color-mute);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}

.stat-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.stat {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-mist);
}

.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-mute);
}

.section {
  padding: 50px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 26px;
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-mute);
}

.section-subheader {
  margin: 24px 0 14px;
  font-family: "Space Grotesk", sans-serif;
}

.section-subheader h3 {
  font-size: 1.2rem;
}

.section-subheader p {
  color: var(--color-mute);
  font-size: 0.95rem;
  margin-top: 4px;
}

.filter-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
}

.filter-group {
  display: grid;
  gap: 12px;
}

.filter-fields {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
}

.filter-field span {
  font-size: 0.9rem;
  color: var(--color-mute);
}

.filter-field input {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
}

.filter-field input:focus {
  outline: none;
  border-color: rgba(242, 106, 75, 0.6);
}

.filter-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  color: var(--color-mute);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.filter-chip input {
  display: none;
}

.filter-chip.is-active {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}

.filter-reset {
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-ink);
  background: transparent;
  color: var(--color-ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.filter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--color-mute);
  flex-wrap: wrap;
}

.filter-empty {
  color: var(--color-accent-strong);
}

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

.card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.card p {
  color: var(--color-mute);
  flex: 1;
}

.card-link {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--color-accent-strong);
}

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

.step-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
}

.step-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--color-mute);
}

.ad-slot {
  position: relative;
  border: 1px dashed rgba(19, 33, 37, 0.35);
  border-radius: var(--radius-md);
  padding: 28px;
  min-height: 160px;
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.ad-slot.small {
  padding: 18px;
  min-height: 110px;
}

.ad-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-mute);
}

.ad-placeholder {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--color-ink);
}

.ad-slot.is-ready {
  border-style: solid;
}

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(1080px, 92vw);
  z-index: 30;
}

.consent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.consent-text h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.consent-text p {
  color: var(--color-mute);
  max-width: 560px;
}

.consent-link {
  display: inline-flex;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--color-accent-strong);
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.consent-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--color-ink);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.consent-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.consent-btn.ghost {
  background: rgba(19, 33, 37, 0.08);
  color: var(--color-ink);
}

.converter-section {
  padding-top: 20px;
}

.converter-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.9);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.converter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.converter-header h1,
.converter-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 8px;
}

.converter-header p {
  color: var(--color-mute);
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(36, 181, 155, 0.15);
  color: var(--color-mint);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
}

.field span {
  font-size: 0.9rem;
  color: var(--color-mute);
}

.field input,
.field select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  transition: border 0.2s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(242, 106, 75, 0.6);
}

.converter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.swap-btn {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(19, 33, 37, 0.08);
  border: 1px solid transparent;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
}

.result {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
}

.result-label {
  font-size: 0.9rem;
  color: var(--color-mute);
}

.result-value {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
}

.result-unit {
  font-size: 1rem;
  color: var(--color-mute);
}

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

.quick-buttons button {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--color-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.info-text p {
  color: var(--color-mute);
  font-size: 1.05rem;
}

.unit-list {
  list-style: none;
  display: grid;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--color-ink);
}

.unit-list li {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.faq-grid {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
}

.faq-item h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--color-mute);
}

.cta-section {
  padding-bottom: 60px;
}

.cta-box {
  border-radius: var(--radius-lg);
  padding: 30px;
  background: linear-gradient(120deg, rgba(36, 181, 155, 0.16), rgba(242, 106, 75, 0.16));
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-box h2 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 8px;
}

.site-footer {
  padding: 40px 0 50px;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand p {
  color: var(--color-mute);
  margin-top: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

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

@media (max-width: 800px) {
  .converter-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .converter-actions {
    align-items: flex-start;
  }

  .cta-box {
    align-items: flex-start;
  }

  .consent-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .consent-actions {
    width: 100%;
  }

  .consent-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .site-nav {
    width: 100%;
  }

  .btn.ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    width: 100%;
  }
}
