/* ==========================================================================
   Landbrugstal — folha de estilo unica. Cluster: site_landbrugstal
   Personality: pratico-terreno (John Deere) + clareza Linear/Vercel.
   Paleta: verde-floresta solido + ocre/dourado-colheita, paper warm.
   Atualizado: 2026-06-10
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

/* ============== Tokens ============== */
:root {
  /* Cor — paleta agraria solida */
  --c-primary:        #2F6B3A;
  --c-primary-dark:   #245530;
  --c-primary-darker: #1F4A28;
  --c-primary-soft:   #E8F1E5;
  --c-primary-soft2:  #CFE2C7;

  --c-secondary:      #6B5B3E;
  --c-accent:         #E0A93B;
  --c-accent-dark:    #B8721B;
  --c-accent-soft:    #F8E9C4;

  --c-ink:    #16201A;
  --c-text:   #2C3A30;
  --c-muted:  #5F6B62;
  --c-bg:     #FAF8F3;
  --c-paper:  #FAF8F3;
  --c-soft:   #F2EEE3;
  --c-softer: #F6F2E8;
  --c-line:   #DCD6C5;
  --c-line-strong: #C7BFA9;

  --c-success:        #3B7D3E;
  --c-success-strong: #2F6B3A;
  --c-success-bg:     #E8F1E5;
  --c-success-border: #CFE2C7;

  --c-danger:         #A8341E;
  --c-danger-strong:  #862516;
  --c-danger-bg:      #FBEDE8;
  --c-danger-border:  #F1C6BB;

  --c-warning:        #B8721B;
  --c-warning-strong: #8C5612;
  --c-warning-bg:     #FBF1DC;
  --c-warning-border: #F0DCAA;

  /* Spacing — escala 4/8/12/16/20/24/32/40/56/72 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 56px;
  --sp-10: 72px;

  /* Radii — escalonado por hierarquia */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --radius-sm: var(--r-sm);
  --radius:    var(--r-md);
  --radius-lg: var(--r-lg);

  /* Shadows — discretas, profundidade por empilhamento */
  --sh-0: inset 0 -1px 0 rgba(31, 74, 40, .05);
  --sh-1: 0 1px 2px rgba(22, 32, 26, .06);
  --sh-2: 0 4px 12px rgba(22, 32, 26, .08), 0 1px 3px rgba(22, 32, 26, .05);
  --sh-3: 0 16px 40px -8px rgba(31, 74, 40, .18);
  --sh-focus: 0 0 0 3px rgba(224, 169, 59, .35);
  --shadow-sm: var(--sh-1);
  --shadow:    var(--sh-2);
  --shadow-lg: var(--sh-3);

  /* Type stacks */
  --font:      'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-head: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;

  /* Layout */
  --container: 1140px;
  --header-h:  68px;
}

/* ============== Reset ============== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  font-size: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga', 'calt';
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ============== Typography ============== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--c-ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.018em;
}
h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { font-size: 1.0625rem; line-height: 1.6; }
a {
  color: var(--c-primary-dark);
  text-decoration: none;
  text-underline-offset: 2px;
  transition: color .15s ease;
}
a:hover { color: var(--c-primary-darker); text-decoration: underline; }
a:visited { color: var(--c-accent-dark); }
strong, b { color: var(--c-ink); font-weight: 700; }
em, i { font-style: italic; }
blockquote {
  border-left: 3px solid var(--c-accent);
  padding-left: var(--sp-4);
  color: var(--c-muted);
  font-style: italic;
}
ul, ol { padding-left: 1.3rem; }
li { margin-top: 0; }
code, kbd, samp {
  font-family: var(--font-mono);
  font-size: .92em;
  background: var(--c-soft);
  padding: .12em .35em;
  border-radius: var(--r-xs);
  color: var(--c-primary-darker);
}
pre {
  font-family: var(--font-mono);
  background: var(--c-soft);
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  overflow-x: auto;
  border: 1px solid var(--c-line);
}
pre code { background: none; padding: 0; }
hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin-block: var(--sp-6);
}
sub, sup { font-size: .72em; line-height: 0; }

::selection { background: color-mix(in srgb, var(--c-accent) 35%, transparent); color: var(--c-ink); }

/* Numeros tabulares por padrao em qualquer lugar que precisar */
.num, .tnum, [class*='__value'], [class*='__main'] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
}

/* ============== Layout primitives ============== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.section { padding-block: var(--sp-9); }
.section--soft { background: var(--c-soft); }
.section--paper { background: var(--c-paper); }
.section--ink { background: var(--c-ink); color: #cbd5d0; }
.narrow { max-width: 760px; margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-primary);
  color: #fff;
  padding: .65rem 1rem;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; outline: none; box-shadow: var(--sh-focus); }

/* ============== Focus ring — dourado-colheita ============== */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--sh-focus);
  border-radius: var(--r-sm);
}

/* ============== Header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--c-paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--sh-0);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--c-ink); }
.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--c-primary);
}
.brand__name span { color: var(--c-primary); }
.brand__tagline {
  font-family: var(--font);
  font-size: .8rem;
  color: var(--c-muted);
  font-weight: 500;
  margin-left: .8rem;
  padding-left: .85rem;
  border-left: 1px solid var(--c-line);
  line-height: 1.3;
  max-width: 240px;
  letter-spacing: 0;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-paper);
  color: var(--c-ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.nav-toggle:hover { background: var(--c-soft); border-color: var(--c-line-strong); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__close { display: block; }

.main-nav { display: none; }
.main-nav.is-open {
  display: block;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--sh-2);
}
.main-nav ul {
  list-style: none;
  padding: var(--sp-2) var(--sp-5) var(--sp-4);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.main-nav a {
  display: block;
  padding: .7rem .7rem;
  border-radius: var(--r-sm);
  color: var(--c-ink);
  font-weight: 600;
  font-size: .98rem;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary-darker);
  text-decoration: none;
}
.main-nav a.is-active {
  color: var(--c-primary-darker);
  background: var(--c-primary-soft);
  box-shadow: inset 3px 0 0 var(--c-primary);
}

/* ============== Footer — dark ink + brand mark + 4-col grid ============== */
.site-footer {
  background: var(--c-ink);
  color: #b5beb7;
  padding-block: var(--sp-10) var(--sp-6);
  margin-top: var(--sp-10);
  font-size: .95rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary) 60%, var(--c-accent) 60%, var(--c-accent) 100%);
}
.site-footer h3 {
  color: #fff;
  font-family: var(--font-head);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--sp-3);
  font-weight: 700;
}
.footer-grid {
  display: grid;
  gap: var(--sp-6) var(--sp-5);
  grid-template-columns: 1fr;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.site-footer a { color: #b5beb7; transition: color .15s ease; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand,
.site-footer .brand__name { color: #fff; }
.site-footer .brand__mark { color: var(--c-accent); width: 96px; height: 96px; }
.footer-brand p {
  margin-top: var(--sp-3);
  color: #8a948c;
  font-size: .92rem;
  max-width: 360px;
  line-height: 1.55;
}
.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid #2a3530;
  color: #8a948c;
  font-size: .84rem;
}
.footer-bottom p + p { margin-top: .35rem; }
.footer-bottom strong { color: #dbe1dc; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: .85rem 1.4rem;
  min-height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .08s ease, box-shadow .18s ease;
  user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn--primary:hover {
  background: var(--c-primary-darker);
  border-color: var(--c-primary-darker);
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--c-primary-darker);
  border-color: var(--c-line);
}
.btn--ghost:hover {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
  color: var(--c-primary-darker);
}

.btn--light {
  background: #fff;
  color: var(--c-primary-darker);
  border-color: var(--c-line);
}
.btn--light:hover {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
}

.btn--accent {
  background: var(--c-accent);
  color: var(--c-ink);
  border-color: var(--c-accent);
}
.btn--accent:hover {
  background: color-mix(in srgb, var(--c-accent) 88%, black);
  border-color: color-mix(in srgb, var(--c-accent) 88%, black);
}

.btn--block { width: 100%; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.06rem; min-height: 52px; }
.btn--sm { padding: .5rem .85rem; font-size: .9rem; min-height: 36px; }

/* ============== Hero ============== */
.hero {
  background: var(--c-paper);
  padding-block: var(--sp-9) var(--sp-8);
  border-bottom: 1px solid var(--c-line);
  text-align: center;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: var(--c-primary);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  background: var(--c-accent-soft);
  padding: .35rem .8rem;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-4);
  border: 1px solid color-mix(in srgb, var(--c-accent) 30%, transparent);
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--c-ink);
  max-width: 820px;
  margin-inline: auto;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--c-text);
  margin: var(--sp-4) auto 0;
  max-width: 640px;
  line-height: 1.55;
}

/* ============== Page head — internal pages ============== */
.page-head {
  background: var(--c-paper);
  padding-block: var(--sp-6) var(--sp-7);
  border-bottom: 1px solid var(--c-line);
  position: relative;
}
.page-head::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--c-primary);
}
.page-head h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: var(--sp-3);
  color: var(--c-ink);
}
.page-head p.lead {
  font-size: 1.08rem;
  color: var(--c-text);
  margin-top: var(--sp-3);
  max-width: 680px;
  line-height: 1.55;
}

.breadcrumb { font-size: .88rem; color: var(--c-muted); }
.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.breadcrumb a { color: var(--c-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--c-primary-darker); }
.breadcrumb li::after {
  content: '/';
  margin-left: .4rem;
  color: var(--c-line-strong);
}
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb li:last-child { color: var(--c-ink); font-weight: 600; }

.section-title { text-align: center; margin-bottom: var(--sp-6); }
.section-title h2 { font-size: clamp(1.5rem, 3.6vw, 1.9rem); letter-spacing: -0.022em; }
.section-title p { color: var(--c-muted); margin-top: var(--sp-2); font-size: 1.02rem; }

/* ============== Search ============== */
.search-box {
  position: relative;
  max-width: 560px;
  margin: 0 auto var(--sp-6);
}
.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--c-muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  font-family: var(--font);
  font-size: 1.04rem;
  color: var(--c-ink);
  padding: .9rem 1rem .9rem 2.85rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: #fff;
  min-height: 52px;
  box-shadow: var(--sh-1);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-box input::placeholder { color: var(--c-muted); }
.search-box input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: var(--sh-focus);
}
.search-empty {
  display: none;
  text-align: center;
  color: var(--c-muted);
  padding: var(--sp-6);
  font-size: .98rem;
}

/* ============== Area cards (home) ============== */
.area-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  margin-top: var(--sp-7);
}
.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-5);
  box-shadow: var(--sh-1);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  overflow: hidden;
}
.area-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 56px;
  height: 3px;
  background: var(--c-primary);
}
.area-card:hover {
  text-decoration: none;
  box-shadow: var(--sh-3);
  transform: translateY(-2px);
  border-color: var(--c-primary);
}
.area-card__icon {
  width: 76px;
  height: 76px;
  border-radius: var(--r-lg);
  background: var(--c-primary-soft);
  color: var(--c-primary-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  border: 1px solid color-mix(in srgb, var(--c-primary) 18%, transparent);
}
.area-card__icon svg { width: 40px; height: 40px; }
.area-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.018em;
}
.area-card p {
  color: var(--c-muted);
  font-size: .98rem;
  margin-top: var(--sp-2);
  line-height: 1.5;
}
.area-card__cta {
  margin-top: var(--sp-4);
  font-weight: 700;
  color: var(--c-primary-darker);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .95rem;
}
.area-card__cta::after {
  content: '→';
  transition: transform .2s ease;
}
.area-card:hover .area-card__cta::after { transform: translateX(3px); }

/* ============== Calc list / category ============== */
.calc-category { margin-bottom: var(--sp-7); }
.calc-category > h2 {
  font-size: 1.2rem;
  padding-bottom: .6rem;
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--c-ink);
  font-weight: 700;
  letter-spacing: -0.018em;
}
.calc-category > h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--c-primary);
}
.calc-category > h2 svg {
  width: 22px;
  height: 22px;
  color: var(--c-primary);
}

.calc-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}
.calc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--sh-1);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  overflow: hidden;
}
.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px;
  height: 3px;
  background: var(--c-primary);
  opacity: 0;
  transition: opacity .18s ease;
}
a.calc-card:hover {
  text-decoration: none;
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
  border-color: var(--c-primary);
}
a.calc-card:hover::before { opacity: 1; }
.calc-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.015em;
}
.calc-card p {
  color: var(--c-muted);
  font-size: .92rem;
  margin-top: .3rem;
  line-height: 1.5;
}
.calc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: var(--sp-3);
}

.tag {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: var(--r-xs);
  background: var(--c-soft);
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid var(--c-line);
}
.tag--common {
  background: var(--c-primary-soft);
  color: var(--c-primary-darker);
  border-color: color-mix(in srgb, var(--c-primary) 22%, transparent);
}

/* ============== Generic cards ============== */
.card-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--sh-1);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
a.card:hover {
  text-decoration: none;
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
  border-color: var(--c-primary);
}
.card h3 {
  font-size: 1.1rem;
  color: var(--c-ink);
  font-weight: 700;
  letter-spacing: -0.018em;
}
.card p {
  color: var(--c-muted);
  font-size: .95rem;
  margin-top: .4rem;
  flex: 1;
  line-height: 1.55;
}
.card__cta {
  margin-top: var(--sp-4);
  font-weight: 700;
  color: var(--c-primary-darker);
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.card__cta::after { content: '→'; transition: transform .2s ease; }
a.card:hover .card__cta::after { transform: translateX(3px); }

/* ============== Disclaimer / disclaimer-bar ============== */
.disclaimer {
  background: var(--c-warning-bg);
  border: 1px solid var(--c-warning-border);
  border-left: 3px solid var(--c-warning);
  border-radius: var(--r-sm);
  padding: .95rem 1.1rem;
  margin-block: var(--sp-5);
  font-size: .94rem;
  color: var(--c-warning-strong);
  display: flex;
  gap: .65rem;
  align-items: flex-start;
}
.disclaimer svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--c-warning);
  margin-top: .1rem;
}
.disclaimer strong { color: var(--c-warning-strong); }

.disclaimer-bar {
  background: var(--c-accent-soft);
  color: var(--c-warning-strong);
  font-size: .88rem;
  text-align: center;
  padding: .55rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--c-accent) 30%, transparent);
  font-weight: 500;
}
.disclaimer-bar strong { color: var(--c-warning-strong); font-weight: 700; }

/* ============== Calculator widget ============== */
.calculator {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: var(--sp-6);
  margin-block: var(--sp-6);
  position: relative;
}
.calculator__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.25rem;
  margin-bottom: .3rem;
  color: var(--c-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.calculator__title svg {
  width: 24px;
  height: 24px;
  color: var(--c-primary);
}
.calculator__hint {
  color: var(--c-muted);
  font-size: .96rem;
  margin-bottom: var(--sp-5);
  line-height: 1.55;
}

/* Field group — bloco de formulario tecnico com pill legend + border-left */
.field-group {
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
  background: var(--c-paper);
  position: relative;
}
.field-group > legend,
.field-group__title {
  display: inline-block;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--c-primary-darker);
  background: var(--c-primary-soft);
  font-size: .85rem;
  padding: .25rem .65rem;
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
  margin-bottom: var(--sp-2);
  border: 1px solid color-mix(in srgb, var(--c-primary) 18%, transparent);
}
.field-row {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  margin-top: var(--sp-3);
}
.field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.field label {
  font-weight: 600;
  color: var(--c-ink);
  font-size: .96rem;
}
.field .help {
  font-size: .84rem;
  color: var(--c-muted);
  line-height: 1.45;
}

.input, select.input, textarea.input {
  font-family: var(--font);
  font-size: 1.04rem;
  color: var(--c-ink);
  padding: .75rem .85rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: #fff;
  width: 100%;
  min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  font-variant-numeric: tabular-nums;
}
.input:hover { border-color: var(--c-line-strong); }
.input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: var(--sh-focus);
}
.input::placeholder { color: var(--c-muted); }
select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='%235F6B62'><path d='M5 8l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.2rem;
}

.input-affix { position: relative; }
.input-affix .input { padding-right: 3.2rem; }
.input-affix__unit {
  position: absolute;
  right: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .9rem;
  pointer-events: none;
  background: var(--c-soft);
  padding: .15rem .4rem;
  border-radius: var(--r-xs);
}

/* Segmented — feel de seletor app nativo */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: .2rem;
  padding: var(--sp-1);
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
}
.segmented label { cursor: pointer; }
.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  font-weight: 600;
  font-size: .94rem;
  color: var(--c-text);
  background: transparent;
  transition: all .15s ease;
}
.segmented label:hover span { color: var(--c-primary-darker); }
.segmented input:checked + span {
  background: #fff;
  border-color: var(--c-line);
  color: var(--c-primary-darker);
  box-shadow: var(--sh-1);
  font-weight: 700;
}
.segmented input:checked + span::before {
  content: '';
  width: 14px; height: 14px;
  background: var(--c-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--c-primary);
}
.segmented input:focus-visible + span {
  outline: 3px solid var(--c-accent);
  outline-offset: 1px;
}
.field-group > .segmented { margin-top: var(--sp-3); }

.field-error {
  display: none;
  color: var(--c-danger);
  font-size: .9rem;
  font-weight: 600;
  margin-top: .25rem;
}
.field-error.is-visible { display: block; }
.input[aria-invalid='true'] { border-color: var(--c-danger); }
.input[aria-invalid='true']:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-danger) 30%, transparent);
}

.calculator__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

/* ============== Result card ============== */
.result {
  margin-top: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-1);
}
.result[hidden] { display: none; }
.result__banner {
  padding: 1.1rem 1.2rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border-bottom: 1px solid currentColor;
  border-bottom-color: color-mix(in srgb, currentColor 18%, transparent);
}
.result__banner svg {
  width: 26px;
  height: 26px;
  flex: none;
  margin-top: .1rem;
}
.result__headline {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.018em;
}
.result__sub {
  font-size: .96rem;
  margin-top: .2rem;
  color: var(--c-text);
  line-height: 1.5;
}

.result--ok { border-color: var(--c-success-border); }
.result--ok .result__banner { background: var(--c-success-bg); }
.result--ok .result__headline,
.result--ok .result__banner svg { color: var(--c-success-strong); }

.result--alert { border-color: var(--c-danger-border); }
.result--alert .result__banner { background: var(--c-danger-bg); }
.result--alert .result__headline,
.result--alert .result__banner svg { color: var(--c-danger-strong); }

.result--warn { border-color: var(--c-warning-border); }
.result--warn .result__banner { background: var(--c-warning-bg); }
.result--warn .result__headline,
.result--warn .result__banner svg { color: var(--c-warning-strong); }

.result--neutral { border-color: var(--c-primary-soft2); }
.result--neutral .result__banner { background: var(--c-primary-soft); }
.result--neutral .result__headline,
.result--neutral .result__banner svg { color: var(--c-primary-darker); }

.result__body {
  padding: var(--sp-5) var(--sp-5);
  background: #fff;
}
.result__main {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 2.4rem);
  font-weight: 600;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.result__main small {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-accent-dark);
  margin-left: .35em;
  letter-spacing: 0;
}

.metric-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--sp-4);
}
.metric {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: .75rem .85rem;
  position: relative;
}
.metric__label {
  font-family: var(--font-head);
  font-size: .72rem;
  color: var(--c-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.metric__value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
  margin-top: .2rem;
  letter-spacing: -0.01em;
}
.metric__note {
  font-size: .82rem;
  color: var(--c-muted);
  margin-top: .15rem;
  line-height: 1.4;
}

.result__interpretation {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--c-line);
  font-size: .98rem;
  line-height: 1.55;
  color: var(--c-text);
}
.result__interpretation strong { color: var(--c-ink); }

/* Sticky result no desktop (>= 960px) */
@media (min-width: 960px) {
  .calculator:has(.result) {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: var(--sp-6);
    align-items: start;
  }
  .calculator > .calculator__title,
  .calculator > .calculator__hint {
    grid-column: 1 / -1;
  }
  .calculator > .result {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
    margin-top: 0;
  }
}

/* ============== Long content / prose ============== */
.prose { font-size: 1.0625rem; line-height: 1.65; color: var(--c-text); }
.prose h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
  margin-top: var(--sp-7);
  scroll-margin-top: calc(var(--header-h) + var(--sp-4));
  color: var(--c-ink);
  letter-spacing: -0.022em;
}
.prose h3 {
  font-size: 1.15rem;
  margin-top: var(--sp-5);
  color: var(--c-ink);
  letter-spacing: -0.015em;
}
.prose p { margin-top: var(--sp-3); }
.prose ul, .prose ol { margin-top: var(--sp-3); padding-left: 1.4rem; }
.prose li { margin-top: .4rem; }
.prose li::marker { color: var(--c-primary); font-weight: 700; }
.prose h2 + p, .prose h3 + p { margin-top: var(--sp-2); }
.prose a {
  color: var(--c-primary-darker);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--c-primary) 40%, transparent);
}
.prose a:hover { text-decoration-color: var(--c-primary); }

.formula {
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-sm);
  padding: var(--sp-4) var(--sp-5);
  margin-block: var(--sp-4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--c-ink);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.formula .formula__where {
  display: block;
  margin-top: .55rem;
  font-family: var(--font);
  font-size: .88rem;
  color: var(--c-muted);
}

.callout {
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-secondary);
  border-radius: var(--r-sm);
  padding: var(--sp-4) var(--sp-5);
  margin-block: var(--sp-5);
  background: var(--c-paper);
}
.callout__title {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: .4rem;
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.callout__title svg { width: 19px; height: 19px; }
.callout p { margin-top: .45rem; }
.callout p:first-of-type { margin-top: 0; }

.callout--example {
  border-left-color: var(--c-primary);
  background: var(--c-primary-soft);
}
.callout--example .callout__title { color: var(--c-primary-darker); }
.callout--tip {
  border-left-color: var(--c-success);
  background: var(--c-success-bg);
}
.callout--tip .callout__title { color: var(--c-success-strong); }
.callout--warning {
  border-left-color: var(--c-warning);
  background: var(--c-warning-bg);
}
.callout--warning .callout__title { color: var(--c-warning-strong); }

/* ============== Tables ============== */
.table-wrap {
  overflow-x: auto;
  margin-block: var(--sp-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: #fff;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
  min-width: 360px;
}
table.data th,
table.data td {
  padding: .7rem .85rem;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
}
table.data thead th {
  background: var(--c-soft);
  color: var(--c-ink);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 2px solid var(--c-line-strong);
}
table.data tbody tr { transition: background .12s ease; }
table.data tbody tr:nth-child(even) { background: var(--c-softer); }
table.data tbody tr:hover { background: var(--c-primary-soft); }
table.data td.num,
table.data th.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
table.data tbody tr:last-child td { border-bottom: 0; }

/* ============== FAQ ============== */
.faq {
  margin-top: var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}
.faq details {
  border-bottom: 1px solid var(--c-line);
  background: #fff;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 700;
  color: var(--c-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 1rem;
  letter-spacing: -0.012em;
  transition: background .15s ease, color .15s ease;
}
.faq summary:hover { background: var(--c-soft); color: var(--c-primary-darker); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.faq details[open] summary { background: var(--c-soft); }
.faq .faq__answer {
  padding: 0 1.1rem 1.1rem;
  color: var(--c-text);
  line-height: 1.6;
}
.faq .faq__answer p { margin-top: .6rem; }
.faq .faq__answer p:first-child { margin-top: .2rem; }

/* ============== Ads ============== */
.ad-slot {
  margin-block: var(--sp-6);
  text-align: center;
}
.ad-slot:empty { display: none; }
.ad-slot:not(:empty)::before {
  content: 'Publicidade';
  display: block;
  font-family: var(--font-head);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-muted);
  margin-bottom: .35rem;
  font-weight: 600;
}

/* ============== Related ============== */
.related { margin-top: var(--sp-9); }
.related h2 {
  font-size: 1.35rem;
  margin-bottom: var(--sp-4);
  color: var(--c-ink);
  letter-spacing: -0.02em;
}

/* ============== Donate ============== */
.donate-card { text-align: center; }
.donate-card h3 { font-size: 1.2rem; }
.donate-qr {
  width: 200px;
  height: 200px;
  margin: var(--sp-4) auto 0;
  display: block;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 10px;
  background: #fff;
  box-shadow: var(--sh-1);
}
.pix-key {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--c-primary-darker);
  background: var(--c-primary-soft);
  padding: .35rem .65rem;
  border-radius: var(--r-xs);
  border: 1px solid color-mix(in srgb, var(--c-primary) 20%, transparent);
  font-size: .92rem;
}
.pix-code {
  display: block;
  width: 100%;
  margin-top: var(--sp-3);
  padding: .8rem .9rem;
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.55;
  word-break: break-all;
  color: var(--c-ink);
  text-align: left;
}

/* ============== Criteria list (escores) ============== */
.criteria-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-3) 0 0;
  display: grid;
  gap: .55rem;
}
.criteria {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  cursor: pointer;
  padding: .75rem .9rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.criteria:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}
.criteria input {
  margin: .15rem 0 0;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--c-primary);
  flex-shrink: 0;
}
.criteria > span:first-of-type {
  flex: 1;
  color: var(--c-ink);
  font-size: .96rem;
  line-height: 1.45;
}
.criteria input:checked ~ span:first-of-type { font-weight: 600; }
.criteria__pts {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-accent-dark);
  background: var(--c-accent-soft);
  padding: .15rem .5rem;
  border-radius: var(--r-xs);
  border: 1px solid color-mix(in srgb, var(--c-accent) 30%, transparent);
}

/* ============== References ============== */
.ref-list {
  font-size: .9rem;
  color: var(--c-muted);
  padding-left: 1.3rem;
  margin: var(--sp-3) 0 0;
  line-height: 1.55;
}
.ref-list li { margin-bottom: .55rem; }
.ref-list cite { font-style: italic; color: var(--c-text); }

/* ============== Widget cards (Noteringer DK / TradingView) ==============
 * Note: cot-* class names are kept (legacy "cot" jargon) to avoid a broad
 * CSS reflow when the JS module was renamed to noteringer-dk.
 */
.widget-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.widget-card:hover {
  box-shadow: var(--sh-2);
  border-color: var(--c-line-strong);
}
.widget-card + .widget-card { margin-top: var(--sp-4); }
.widget-card__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.15rem;
  background: var(--c-soft);
  border-bottom: 1px solid var(--c-line);
}
.widget-card__head svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--c-primary-darker);
}
.widget-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-ink);
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.widget-card__tag {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: var(--c-accent);
  padding: .22rem .6rem;
  border-radius: var(--r-xs);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.widget-card__tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--c-ink);
  border-radius: 50%;
  display: inline-block;
}
.widget-card__body {
  padding: 0;
  background: #fff;
  overflow-x: auto;
}
.widget-card__body iframe { display: block; width: 100%; border: 0; }
.widget-card__body .tradingview-widget-container { width: 100%; }
.widget-card__source {
  padding: .6rem 1.15rem;
  border-top: 1px solid var(--c-line);
  background: var(--c-paper);
  font-size: .78rem;
  color: var(--c-muted);
  font-family: var(--font-mono);
}
.widget-card__source a {
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.widget-card__source a:hover { color: var(--c-primary-darker); }

.widget-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 760px) {
  .widget-grid--2 { grid-template-columns: 1fr 1fr; }
}

/* Ticker band — banda solida com borda dupla */
.ticker-band {
  border-top: 1px solid var(--c-line);
  border-bottom: 2px solid var(--c-primary);
  background: var(--c-soft);
  position: relative;
}
.ticker-band .container { padding-block: var(--sp-2); }

.widget-placeholder {
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  color: var(--c-muted);
}
.widget-placeholder strong { color: var(--c-ink); font-family: var(--font-head); }
.widget-placeholder__note {
  font-size: .85rem;
  margin-top: .5rem;
  font-family: var(--font-mono);
}

/* ============== CTAs row ============== */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin: var(--sp-5) 0 var(--sp-8);
}
.cta-row .btn { min-width: 220px; }

.section-intro {
  margin: var(--sp-7) 0 var(--sp-3);
  text-align: center;
}
.section-intro h2 {
  margin-bottom: .35rem;
  font-size: clamp(1.4rem, 3.2vw, 1.75rem);
  letter-spacing: -0.022em;
}
.section-intro p {
  color: var(--c-muted);
  font-size: 1.02rem;
  max-width: 580px;
  margin-inline: auto;
}

/* ============== Utilities ============== */
.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.text-sm { font-size: .92rem; }
.text-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.text-accent { color: var(--c-accent-dark); }
.text-primary { color: var(--c-primary-darker); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.u-mt-sm { margin-top: var(--sp-3); }
.u-mt-md { margin-top: var(--sp-5); }
.u-mt-lg { margin-top: var(--sp-7); }
.u-text-center { text-align: center; }
.u-text-left { text-align: left; }
.u-my-md { margin-block: var(--sp-5); }

/* ============== Responsive ============== */
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row--single { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .calculator { padding: var(--sp-7); }
  .section { padding-block: var(--sp-10); }
  .hero { padding-block: var(--sp-10) var(--sp-9); }
}

@media (min-width: 960px) {
  .calc-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-toggle { display: none; }
  .main-nav {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
  }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: var(--sp-1);
  }
  .main-nav a { padding: .55rem .85rem; font-size: .96rem; }
}

@media (max-width: 760px) {
  .brand__tagline { display: none; }
}

/* ============== Print ============== */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .ad-slot,
  .skip-link,
  .calculator__actions,
  .cta-row,
  .ticker-band,
  .disclaimer-bar { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .container { max-width: 100%; padding: 0; }
  .calculator,
  .result,
  .card,
  .area-card,
  .widget-card {
    box-shadow: none;
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  a { color: #000; text-decoration: underline; }
  .prose h2, .prose h3 { page-break-after: avoid; }
}

/* ============== Reduced motion ============== */
@media (prefers-reduced-motion: reduce) {
  .area-card:hover,
  .calc-card:hover,
  .card:hover { transform: none; }
  .area-card__cta::after,
  .card__cta::after { transition: none; }
}


/* === Quick-fix: forcar renderizacao do widget Noteringer DK === */
.widget-card__body {
  min-height: 120px;
  overflow: visible;
}
.widget-card__body > table,
.widget-card__body > div {
  width: 100% !important;
  max-width: 100%;
}
.widget-card__body table {
  background: transparent !important;
  font-family: inherit !important;
}
.widget-card__body td,
.widget-card__body th {
  padding: 0.4rem 0.6rem !important;
}

/* === Noteringer spot DK (widget proprio via JSON) === */
.cot-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.cot-card--loading,
.cot-card--err {
  padding: 1.25rem;
  text-align: center;
  color: var(--c-muted);
}
.cot-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body, Inter, sans-serif);
}
.cot-table thead th {
  background: var(--c-primary-soft);
  color: var(--c-primary-darker);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .55rem .85rem;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
}
.cot-table tbody td {
  padding: .8rem .85rem;
  border-bottom: 1px solid var(--c-line);
  font-size: .96rem;
  vertical-align: middle;
}
.cot-table tbody tr:last-child td { border-bottom: none; }
.cot-cell-prod {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 160px;
}
.cot-cell-prod strong {
  color: var(--c-ink);
  font-weight: 700;
  font-size: 1.0rem;
}
.cot-unit {
  color: var(--c-muted);
  font-size: .82rem;
}
.cot-cell-val {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 700;
  color: var(--c-primary-darker);
  font-size: 1.04rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.cot-cell-date {
  color: var(--c-muted);
  font-size: .9rem;
  white-space: nowrap;
  text-align: right;
}
.cot-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-soft);
  color: var(--c-primary-darker);
  border-radius: 8px;
  flex-shrink: 0;
}
.cot-icon svg { width: 18px; height: 18px; }
.cot-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .7rem .85rem;
  background: var(--c-softer, #F6F2E8);
  font-size: .82rem;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line);
}
.cot-footer a {
  color: var(--c-primary-darker);
  text-decoration: none;
  font-weight: 600;
}
.cot-footer a:hover { text-decoration: underline; }
@media (max-width: 540px) {
  .cot-table thead th:last-child,
  .cot-table tbody td.cot-cell-date { display: none; }
  .cot-cell-prod { min-width: 0; }
}
