/**
 * baratas.pt — Estilos principais
 * Visual moderno, limpo e orientado à tarefa (leitura + assistente).
 */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

/* ========== Tokens ========== */
:root {
  --color-bg: #f3f4f6;
  --color-bg-elevated: #ffffff;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-accent: #0f766e;
  --color-accent-hover: #0d5c56;
  --color-accent-soft: rgba(15, 118, 110, 0.1);
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-warning: #b45309;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-body: 1.0625rem;
  --text-sm: 0.875rem;
  --text-xs: 0.8125rem;
  --leading-body: 1.65;
  --leading-tight: 1.22;
  --space-xs: 0.375rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 2.75rem;
  --space-2xl: 4rem;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-input: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 40px -12px rgba(15, 23, 42, 0.12);
  --max-content: 42rem;
  --max-wide: 1040px;
  --header-h: 3.5rem;
}

/* ========== Reset leve + base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 0.85rem + 0.35vw, var(--text-body));
  line-height: var(--leading-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: break-word;
}

/* Preenche a altura útil quando o conteúdo é curto (evita faixa clara por baixo do rodapé) */
main {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

::selection {
  background: var(--color-accent-soft);
  color: var(--color-text);
}

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

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(15, 118, 110, 0.35);
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration-color: currentColor;
}

.site-nav a,
.btn,
.card__link {
  text-decoration: none;
}

/* ========== Utilitários ========== */
.u-text-center {
  text-align: center;
}

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

.u-small {
  font-size: var(--text-sm);
  line-height: 1.55;
}

.u-xs {
  font-size: var(--text-xs);
  line-height: 1.5;
}

.u-mt-md {
  margin-top: var(--space-md);
}

.u-mt-lg {
  margin-top: var(--space-lg);
}

.u-mt-xl {
  margin-top: var(--space-xl);
}

.u-mb-md {
  margin-bottom: var(--space-md);
}

.u-mb-lg {
  margin-bottom: var(--space-lg);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
}

.page-header {
  margin-bottom: var(--space-lg);
  max-width: 65ch;
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.wizard-page-title {
  margin-bottom: var(--space-md);
}

.wizard-intro {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 52ch;
}

.wizard-hint {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-md);
}

.wizard-lead-block {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.wizard-lead-block h2 {
  margin-bottom: var(--space-xs);
}

.article-footnote {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
}

.nav-back {
  margin-top: var(--space-lg);
}

/* ========== Cabeçalho ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-sm) max(var(--space-md), env(safe-area-inset-right, 0px)) var(--space-sm) max(var(--space-md), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  row-gap: var(--space-xs);
}

.site-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--color-text);
  background: rgba(15, 23, 42, 0.06);
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.site-nav__cta {
  background: var(--color-accent);
  color: #fff !important;
}

.site-nav__cta:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
}

.site-nav__cta[aria-current="page"] {
  background: var(--color-accent-hover);
  color: #fff !important;
}

/* ========== Rodapé ========== */
.site-footer {
  flex-shrink: 0;
  margin-top: var(--space-2xl);
  padding: var(--space-xl) max(var(--space-md), env(safe-area-inset-right, 0px)) max(var(--space-md), env(safe-area-inset-bottom, 0px)) max(var(--space-md), env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #94a3b8;
  font-size: var(--text-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
  max-width: var(--max-wide);
  margin: 0 auto;
  text-align: center;
  line-height: 1.55;
}

.site-footer__legal {
  margin-top: var(--space-sm);
  max-width: var(--max-wide);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: var(--text-xs);
  color: #94a3b8;
}

.site-footer__legal a {
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__legal a:hover {
  color: #f1f5f9;
}

.site-footer__sep {
  opacity: 0.75;
}

/* ========== Layout ========== */
.container {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 max(var(--space-md), env(safe-area-inset-right, 0px)) 0 max(var(--space-md), env(safe-area-inset-left, 0px));
}

.container--narrow {
  max-width: var(--max-content);
}

.section {
  padding: var(--space-xl) 0;
}

.section--hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 70% -30%, rgba(15, 118, 110, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(14, 165, 233, 0.08), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.section--hero .container--narrow {
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 1;
}

/* ========== Hero (início) ========== */
.hero-kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin: 0 0 var(--space-sm);
}

/* ========== Tipografia ========== */
h1,
h2,
h3 {
  line-height: var(--leading-tight);
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 1.2rem + 2.8vw, 2.75rem);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(1.2rem, 0.5vw + 1.1rem, 1.4rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1rem, 0.92rem + 0.28vw, 1.0625rem);
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.2rem);
  font-weight: 500;
  color: var(--color-text-muted);
  max-width: 36ch;
  margin: 0 0 var(--space-lg);
  line-height: 1.5;
}

/* ========== Botões ========== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  line-height: 1.35;
  touch-action: manipulation;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px -2px rgba(15, 118, 110, 0.45);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 4px 20px -4px rgba(15, 118, 110, 0.5);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-accent);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: #f8fafc;
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn--block {
  display: block;
  width: 100%;
}

/* ========== Cartões ========== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(15, 118, 110, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-grid .card {
  min-height: 100%;
}

.card__title {
  margin: 0 0 var(--space-xs);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.card__title a:hover {
  color: var(--color-accent);
}

.card__meta {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  margin: 0 0 var(--space-sm);
}

.card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
  flex-grow: 1;
  line-height: 1.6;
}

.card__link {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ========== AdSense / afiliados ========== */
.adsense-slot:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
  min-height: 0;
}

.adsense-slot:not(:empty) {
  margin: var(--space-lg) auto;
  max-width: 728px;
  text-align: center;
}

.adsense-slot--vertical:not(:empty) {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.affiliate-block:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
}

.affiliate-block:not(:empty) {
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-sm);
}

.affiliate-block:not(:empty) h3 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  font-weight: 700;
}

.affiliate-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.affiliate-list li {
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.affiliate-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.affiliate-list a {
  font-weight: 600;
}

.wizard-sidebar:not(:has(> :not(:empty))) {
  display: none;
}

/* ========== Wizard ========== */
.wizard-layout {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 900px) {
  .wizard-layout {
    grid-template-columns: 1fr;
  }

  .wizard-layout:has(.wizard-sidebar > :not(:empty)) {
    grid-template-columns: 1fr 280px;
  }
}

.wizard-main {
  min-width: 0;
}

.wizard-sidebar {
  position: static;
}

@media (min-width: 900px) {
  .wizard-sidebar {
    position: sticky;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + var(--space-sm));
  }
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
}

.wizard-step h2 {
  margin-bottom: var(--space-md);
}

.field-group {
  margin-bottom: var(--space-md);
}

.field-group label,
.option-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  font-size: var(--text-sm);
}

.checkbox-list,
.radio-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkbox-list li,
.radio-list li {
  margin-bottom: var(--space-sm);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.checkbox-list li:hover,
.radio-list li:hover {
  border-color: var(--color-border-strong);
}

.checkbox-list li:has(input:checked),
.radio-list li:has(input:checked) {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, #fff 100%);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.checkbox-list label,
.radio-list label {
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  cursor: pointer;
  font-size: var(--text-body);
  padding: var(--space-sm) var(--space-md);
  margin: 0;
}

.checkbox-list input,
.radio-list input {
  margin-top: 0.35rem;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--color-accent);
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.wizard-error {
  color: #be123c;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-sm);
}

/* ========== Resultados wizard ========== */
.result-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.result-box:last-of-type {
  margin-bottom: var(--space-lg);
}

.result-box h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.result-box p,
.result-box .measures-list {
  color: var(--color-text);
}

.badge {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.badge--inicial {
  background: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
}

.badge--moderado {
  background: #fffbeb;
  color: #b45309;
  border-color: #fcd34d;
}

.badge--grave {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.measures-list {
  padding-left: 1.2rem;
  margin: var(--space-sm) 0 0;
}

.measures-list li {
  margin-bottom: var(--space-xs);
  padding-left: 0.2rem;
}

.measures-list li::marker {
  color: var(--color-accent);
}

/* ========== Lead form ========== */
.lead-form {
  margin-bottom: var(--space-lg);
}

.lead-form .field {
  margin-bottom: var(--space-md);
}

.lead-form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.lead-form input[type="text"],
.lead-form input[type="tel"] {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: max(16px, var(--text-body));
  background: var(--color-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lead-form input:hover {
  border-color: #94a3b8;
}

.lead-form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.consent {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

.consent label {
  font-weight: 400;
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.consent label a {
  color: var(--color-accent);
  text-decoration: underline;
}

.consent label a:hover {
  color: var(--color-accent-hover);
}

.consent label > span {
  min-width: 0;
  flex: 1;
}

/* ========== Artigos ========== */
.article-header {
  padding: 0 0 var(--space-md);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.article-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  font-weight: 500;
}

.article-body {
  max-width: 65ch;
}

.article-body p {
  margin-bottom: var(--space-md);
}

.article-body h2 {
  margin-top: var(--space-xl);
}

.cta-banner {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #0f766e 100%);
  color: #f1f5f9;
  padding: var(--space-lg) var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: left;
  margin: var(--space-xl) 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 45%);
  pointer-events: none;
}

.cta-banner h2,
.cta-banner p,
.cta-banner .btn {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.cta-banner p {
  color: rgba(241, 245, 249, 0.92);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 44ch;
}

.cta-banner .btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.cta-banner .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  color: #fff;
}

/* ========== Landing ========== */
.feature-list {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  max-width: 46ch;
}

.feature-list li {
  position: relative;
  margin-bottom: var(--space-md);
  padding-left: 2rem;
  color: var(--color-text);
  font-weight: 500;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  box-shadow: 0 2px 8px -2px rgba(15, 118, 110, 0.5);
}

.feature-list li::after {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.52em;
  width: 0.35rem;
  height: 0.6rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

code {
  font-size: 0.9em;
  background: #f1f5f9;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  border: 1px solid var(--color-border);
  word-break: break-word;
}

/* ========== Responsividade (ecrãs estreitos, toque, paisagem) ========== */
@media (max-width: 32rem) {
  .section {
    padding: clamp(1.5rem, 4vw, var(--space-xl)) 0;
  }

  .section--hero {
    padding-top: clamp(1.75rem, 5vw, 4rem);
    padding-bottom: clamp(1.25rem, 4vw, 3rem);
  }

  .card {
    padding: var(--space-sm) var(--space-md);
  }

  .cta-banner {
    padding: var(--space-md);
    border-radius: var(--radius);
  }

  .section--hero .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    line-height: 1.45;
  }

  .site-footer__sep {
    display: none;
  }

  .site-footer__legal a:not(:last-child)::after {
    content: " · ";
    text-decoration: none;
    pointer-events: none;
    color: #64748b;
  }
}

@media (max-width: 30rem) {
  .wizard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-actions .btn,
  .wizard-actions a.btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (pointer: coarse) {
  .site-nav a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .checkbox-list label,
  .radio-list label {
    padding-top: max(var(--space-sm), 0.65rem);
    padding-bottom: max(var(--space-sm), 0.65rem);
  }

  .checkbox-list input,
  .radio-list input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.4rem;
  }
}

@media (max-height: 32rem) and (orientation: landscape) {
  .section--hero {
    padding-top: 1.25rem;
    padding-bottom: 1rem;
  }

  .section {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
  }

  .site-header__inner {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
}

@media (min-width: 90rem) {
  :root {
    --max-wide: min(1120px, 92vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .btn--primary:hover,
  .btn--secondary:hover,
  .card:hover {
    transform: none;
  }
}
