/* Calculadora do Camarão - site estático, mobile-first e sem framework. */

:root {
  color-scheme: light;
  --bg: #f7fbf8;
  --surface: #ffffff;
  --surface-soft: #edf7f1;
  --surface-strong: #0b5963;
  --ink: #102c33;
  --muted: #587076;
  --text-primary: #0d2c32;
  --text-secondary: #294b52;
  --background-main: #f7fbf8;
  --card-background: #ffffff;
  --primary: #0b5963;
  --primary-strong: #073942;
  --accent: #df6f3d;
  --accent-strong: #a84621;
  --accent-soft: #fff0e6;
  --line: #d9e8e1;
  --line-strong: #b7d0ca;
  --focus: #f7b84b;
  --button-bg: #073942;
  --button-text: #ffffff;
  --button-secondary-bg: #ffffff;
  --button-secondary-text: #073942;
  --drawer-bg: #ffffff;
  --result-bg: #fff7ed;
  --result-ink: #3d1b0f;
  --result-card-bg: #fffefb;
  --result-muted: #415b62;
  --result-line: rgba(6, 31, 38, 0.12);
  --approved-bg: #eafaf1;
  --approved-ink: #12492c;
  --approved-line: #97d4b2;
  --reproved-bg: #fff1d7;
  --reproved-ink: #512e05;
  --reproved-line: #e3ad5b;
  --super-bg: #e7f8f6;
  --super-ink: #0d4a4b;
  --super-line: #9ad0ce;
  --footer-bg: #061f26;
  --footer-ink: #f5fbf8;
  --footer-muted: rgba(245, 251, 248, 0.76);
  --shadow-sm: 0 8px 22px rgba(10, 70, 77, 0.08);
  --shadow-md: 0 22px 60px rgba(10, 70, 77, 0.14);
  --radius: 14px;
  --container: 1160px;
  --header-h: 68px;
  --tap: 48px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d171c;
  --surface: #13242b;
  --surface-soft: #182e36;
  --surface-strong: #286772;
  --ink: #eef7f3;
  --muted: #a7bbc0;
  --text-primary: #eef7f3;
  --text-secondary: #dbe7e9;
  --background-main: #0d171c;
  --card-background: #13242b;
  --primary: #8ac1c4;
  --primary-strong: #c4e1e0;
  --accent: #ef9a6f;
  --accent-strong: #f2b28f;
  --accent-soft: #2f231d;
  --line: #28414a;
  --line-strong: #41626c;
  --button-bg: #286772;
  --button-text: #ffffff;
  --button-secondary-bg: #0f1f26;
  --button-secondary-text: #eef7f3;
  --drawer-bg: #101d24;
  --result-bg: #182a31;
  --result-ink: #eef7f3;
  --result-card-bg: #10222a;
  --result-muted: #c1d2d5;
  --result-line: rgba(255, 255, 255, 0.14);
  --approved-bg: #173526;
  --approved-ink: #d9f9e5;
  --approved-line: #3c7a56;
  --reproved-bg: #392718;
  --reproved-ink: #ffe5bd;
  --reproved-line: #a66d25;
  --super-bg: #173336;
  --super-ink: #dff8f7;
  --super-line: #427f80;
  --footer-bg: #071116;
  --footer-ink: #f5fbf8;
  --footer-muted: rgba(245, 251, 248, 0.74);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 22px 60px rgba(0, 0, 0, 0.32);
}

:root[data-font-scale="-1"] {
  font-size: 93.75%;
}

:root[data-font-scale="0"] {
  font-size: 100%;
}

:root[data-font-scale="1"] {
  font-size: 106.25%;
}

:root[data-font-scale="2"] {
  font-size: 112.5%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#biometria {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(223, 111, 61, 0.13), transparent 28rem),
    var(--background-main);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: min(100% - 28px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -90px;
  z-index: 90;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary-strong);
  color: #fff;
  font-weight: 900;
  transition: top 0.18s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  font-weight: 950;
  text-decoration: none;
}

.site-header .brand,
.mobile-drawer-header .brand {
  flex: 1 1 auto;
  max-width: calc(100% - 112px);
}

.brand-logo {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.brand-text {
  min-width: 0;
  overflow: visible;
  font-size: 0.94rem;
  line-height: 1.08;
  white-space: normal;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.91rem;
}

.main-nav a {
  border-radius: 999px;
  padding: 8px 10px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--surface-soft);
  color: var(--primary-strong);
}

.header-tools {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.font-tools {
  display: none;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.font-tools button,
.drawer-tool-row button,
.theme-toggle,
.menu-toggle,
.menu-close {
  display: inline-grid;
  min-width: var(--tap);
  min-height: var(--tap);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.font-tools button {
  min-width: 40px;
  min-height: 38px;
  border-color: transparent;
  border-radius: 999px;
  box-shadow: none;
}

.font-tools button:hover,
.drawer-tool-row button:hover,
.theme-toggle:hover,
.menu-toggle:hover,
.menu-close:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.theme-toggle,
.menu-toggle {
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  gap: 4px;
  color: var(--primary-strong);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 16, 20, 0.58);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity 0.24s ease;
}

.menu-overlay[hidden],
.mobile-drawer[hidden] {
  display: none !important;
}

.menu-overlay.is-open {
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  display: grid;
  width: clamp(288px, 84vw, 660px);
  max-width: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid var(--line);
  background: var(--drawer-bg);
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.24);
  transform: translateX(-105%);
  transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
}

.menu-close {
  font-size: 1.55rem;
  line-height: 1;
}

.mobile-nav {
  display: grid;
  align-content: start;
  overflow-y: auto;
  padding: 10px 0;
}

.mobile-nav a {
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--surface-soft);
  color: var(--primary-strong);
  padding-left: 24px;
}

.mobile-drawer-tools {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 14px 18px 18px;
}

.mobile-drawer-tools p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-tool-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.drawer-tool-row button {
  min-height: 42px;
  font-size: 0.9rem;
}

.section {
  padding: 52px 0;
}

.section-alt,
.tool-section,
.promotions-section {
  background: var(--surface-soft);
}

.hero {
  padding-top: 34px;
}

.hero-grid,
.tool-grid,
.faq-layout,
.article-grid,
.promo-grid,
.footer-grid,
.split-card,
.video-box {
  display: grid;
  gap: 18px;
}

.hero-grid > *,
.tool-grid > *,
.faq-layout > *,
.article-grid > *,
.promo-grid > *,
.footer-grid > *,
.split-card > *,
.video-box > * {
  min-width: 0;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--text-primary);
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 10vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.62rem, 7.2vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.13rem;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

.lead,
.section-heading p,
.article-lead {
  color: var(--text-secondary);
  font-size: 1.06rem;
}

.support-copy {
  margin: 16px 0 0;
  color: var(--text-primary);
  font-weight: 850;
}

.social-proof {
  display: inline-flex;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 12px;
  color: var(--primary-strong);
  font-size: 0.93rem;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.actions,
.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--button-bg);
  border-radius: 12px;
  background: var(--button-bg);
  color: var(--button-text) !important;
  padding: 0 18px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.button:hover,
.button:focus {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text) !important;
  box-shadow: none;
}

.text-link {
  color: var(--primary-strong);
  font-weight: 900;
  text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
  text-underline-offset: 3px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.hero-card,
.calculator,
.article-card,
.promo-card,
.brand-panel,
.video-box,
.final-cta-box,
.article,
.formula-box,
.related-box,
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-card {
  display: none;
  overflow: hidden;
}

.hero-grid > .hero-card {
  display: none;
}

.app-preview-screen {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(7, 57, 66, 0.94), rgba(11, 89, 99, 0.92)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 9rem);
  color: #fff;
  text-align: center;
}

.brand-hero-media {
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
}

.brand-hero-media > img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.brand-hero-badge {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: rgba(6, 31, 38, 0.84);
  padding: 12px;
  color: #ffffff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.brand-hero-badge img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: transparent;
  object-fit: contain;
  padding: 0;
}

.brand-hero-badge span {
  color: #ffffff;
  font-weight: 950;
  line-height: 1.22;
}

.app-preview-screen span,
.app-preview-screen small {
  display: block;
  opacity: 0.9;
}

.app-preview-screen strong {
  display: block;
  margin: 18px 0;
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 1.02;
}

.metric-list {
  display: none;
  margin: 0;
  padding: 16px;
}

.metric-list div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.metric-list div:last-child {
  border-bottom: 0;
}

.metric-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.tool-copy {
  align-self: center;
}

.calculator {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.calculator-primary {
  border-color: color-mix(in srgb, var(--accent-strong) 50%, var(--line));
  background:
    linear-gradient(145deg, #a84621 0%, #843617 58%, #5f2714 100%);
  color: #fff;
  box-shadow: 0 22px 58px rgba(95, 38, 18, 0.28);
}

.calculator-primary p,
.calculator-primary label {
  color: #fff;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field-grid label {
  display: grid;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 900;
}

.field-grid em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.calculator-primary .field-grid em {
  color: rgba(255, 255, 255, 0.78);
}

.calculator-primary .field-grid label {
  color: #ffffff;
}

.input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.input-wrap input,
.input-wrap select {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #143039;
  outline: none;
  padding: 14px;
}

.input-wrap select {
  min-height: 52px;
  border-left: 1px solid #dbe7e2;
  cursor: pointer;
}

.input-wrap small {
  padding-right: 12px;
  color: #5c6e73;
  font-weight: 850;
}

.calculator-result {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--result-bg);
  padding: 12px;
  color: var(--result-ink);
  font-weight: 950;
}

.calculator-primary .calculator-result {
  border-color: var(--result-line);
  background: var(--result-bg);
  color: var(--result-ink);
}

.biometry-result {
  color: #26393f;
  font-weight: 700;
  line-height: 1.42;
}

.biometry-result p {
  margin: 0;
  color: inherit;
  line-height: 1.42;
}

.impact-card {
  display: grid;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px;
}

.impact-card.is-approved {
  border-color: var(--approved-line);
  background: var(--approved-bg);
  color: var(--approved-ink);
}

.impact-card.is-reproved {
  border-color: var(--reproved-line);
  background: var(--reproved-bg);
  color: var(--reproved-ink);
}

.impact-card.is-super {
  border-color: var(--super-line);
  background: var(--super-bg);
  color: var(--super-ink);
}

.impact-title {
  color: inherit;
  font-size: clamp(1.24rem, 5.4vw, 1.8rem);
  font-weight: 1000;
  line-height: 1.08;
  text-transform: uppercase;
}

.impact-card p {
  color: inherit;
  font-weight: 850;
  line-height: 1.38;
}

.result-summary {
  display: grid;
  gap: 8px;
  border: 1px solid var(--result-line);
  border-radius: 14px;
  background: var(--result-card-bg);
  padding: 12px;
  color: var(--result-ink);
}

:root[data-theme="dark"] .result-summary {
  color: var(--result-ink);
}

.result-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.result-summary div {
  display: grid;
  grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1.28fr);
  gap: 7px;
  align-items: start;
}

.result-summary dt {
  color: var(--result-muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.16;
  text-transform: uppercase;
}

.result-summary dd {
  margin: 0;
  color: var(--result-ink);
  font-weight: 950;
  line-height: 1.24;
}

.gramature-scale {
  display: grid;
  gap: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

:root[data-theme="dark"] .gramature-scale {
  background: rgba(255, 255, 255, 0.08);
}

.scale-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8a149, #71bd85 45%, #71bd85 55%, #5cbac1);
}

.scale-marker {
  position: absolute;
  top: 50%;
  left: var(--position, 50%);
  width: 26px;
  height: 26px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: #073942;
  box-shadow: 0 10px 24px rgba(7, 57, 66, 0.22);
  transform: translate(-50%, -50%);
}

.scale-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  color: #3b555b;
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
}

:root[data-theme="dark"] .scale-labels {
  color: #d8e7e5;
}

.technical-details,
.education-box,
.conversion-box,
.share-box,
.finance-box {
  display: grid;
  gap: 5px;
  border: 1px solid var(--result-line);
  border-radius: 14px;
  background: var(--result-card-bg);
  padding: 10px;
  color: var(--result-ink);
  font-size: 0.92rem;
}

:root[data-theme="dark"] .technical-details,
:root[data-theme="dark"] .education-box,
:root[data-theme="dark"] .conversion-box,
:root[data-theme="dark"] .share-box,
:root[data-theme="dark"] .finance-box {
  color: var(--result-ink);
}

.technical-details strong,
.education-box strong,
.conversion-box strong,
.share-box strong,
.finance-box strong {
  color: inherit;
}

.technical-details ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
}

.technical-details li,
.education-box p,
.conversion-box p,
.share-box p,
.finance-box p {
  margin: 0;
  color: inherit;
  font-weight: 780;
  line-height: 1.34;
}

.share-feedback {
  min-height: 1.3em;
  color: #2d6650;
  font-size: 0.9rem;
  font-weight: 900;
}

:root[data-theme="dark"] .share-feedback {
  color: #b8ead5;
}

.conversion-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.biometry-result .share-box p,
.biometry-result .conversion-box p {
  display: none;
}

.conversion-actions .button,
.share-box .button {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 0.88rem;
  line-height: 1.16;
}

.calculator-note,
.source-note {
  margin: 0;
  font-size: 0.92rem;
}

.info-list,
.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.nutrition-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nutrition-results div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 14px;
}

.nutrition-results strong,
.nutrition-results span {
  display: block;
}

.nutrition-results strong {
  color: var(--primary-strong);
  font-size: 1.34rem;
}

.nutrition-results span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.brand-section {
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.split-card,
.video-box,
.final-cta-box {
  padding: 22px;
}

.brand-panel {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(7, 57, 66, 0.96), rgba(11, 89, 99, 0.9)),
    var(--primary-strong);
  color: #fff;
}

.brand-panel > img {
  width: min(210px, 70%);
  height: auto;
  justify-self: center;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  padding: 0;
}

.brand-panel figure {
  overflow: hidden;
  margin: 0;
  border-radius: 12px;
  aspect-ratio: 16 / 8;
  max-height: 230px;
}

.brand-panel figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.video-placeholder {
  display: grid;
  min-height: 210px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(11, 89, 99, 0.12), rgba(223, 111, 61, 0.12)),
    var(--surface-soft);
  color: var(--primary-strong);
  font-weight: 950;
}

.promo-card {
  overflow: hidden;
}

.promo-card img,
.promo-image {
  display: grid;
  width: 100%;
  min-height: 210px;
  aspect-ratio: 4 / 3;
  place-items: center;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-strong), var(--surface-strong));
  color: #fff;
  font-weight: 950;
}

.promo-card > div:last-child {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.promo-date {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.promo-actions .button {
  width: 100%;
}

.article-grid {
  grid-template-columns: 1fr;
}

.article-card {
  display: block;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.article-card:hover,
.article-card:focus {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.article-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  padding: 16px;
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 950;
}

details p {
  margin: 12px 0 0;
}

.final-cta {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 18rem),
    linear-gradient(135deg, var(--primary-strong), var(--surface-strong));
  color: #fff;
}

.final-cta .eyebrow,
.final-cta h2,
.final-cta p {
  color: #fff;
}

.final-cta-box {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--footer-bg);
  color: var(--footer-ink);
}

.site-footer .brand {
  color: var(--footer-ink);
}

.footer-grid p {
  margin-bottom: 0;
  color: var(--footer-muted);
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-grid a {
  color: var(--footer-ink);
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 3px;
}

.copyright {
  font-size: 0.92rem;
}

.article-main {
  padding: 28px 0 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--primary-strong);
  font-weight: 900;
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.article {
  max-width: 880px;
  padding: 22px;
}

.article h1 {
  font-size: clamp(2rem, 9vw, 3rem);
}

.article section {
  margin-top: 32px;
}

.formula-box {
  margin: 18px 0;
  padding: 18px;
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent-strong) 78%, var(--ink));
  font-size: 1.12rem;
  font-weight: 950;
}

.related-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--surface-soft);
}

.related-box h2 {
  margin-bottom: 4px;
  font-size: 1.3rem;
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .button,
  .actions .button {
    width: 100%;
  }

  .brand-text {
    max-width: 220px;
    font-size: 0.92rem;
  }

  .nutrition-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {
  .brand-text {
    max-width: 174px;
    font-size: 0.86rem;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .result-summary div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .theme-toggle,
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .calculator,
  .article-card,
  .promo-card > div:last-child,
  .split-card,
  .video-box,
  .final-cta-box,
  .article {
    padding: 18px;
  }
}

@media (min-width: 700px) {
  .container {
    width: min(100% - 40px, var(--container));
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-text {
    max-width: none;
    font-size: 1rem;
  }

  .section {
    padding: 74px 0;
  }

  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(2.8rem, 7vw, 4.4rem);
  }

  h2 {
    font-size: 2.34rem;
  }

  .brand-hero-media > img {
    aspect-ratio: 16 / 10;
  }

  .metric-list {
    display: block;
    padding: 20px;
  }

  .brand-panel > img {
    width: min(260px, 70%);
  }

  .field-grid,
  .article-grid,
  .promo-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-field {
    grid-column: 1 / -1;
  }

  .nutrition-results {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .footer-grid {
    align-items: start;
  }

  .copyright {
    grid-column: 1 / -1;
  }

  .article {
    padding: 42px;
  }
}

@media (min-width: 980px) {
  .hero {
    padding-top: 82px;
  }

  .hero-card {
    display: block;
  }

  .hero-grid > .hero-card {
    display: block;
  }

  .hero-grid,
  .tool-grid,
  .faq-layout,
  .split-card,
  .video-box {
    grid-template-columns: minmax(0, 0.96fr) minmax(400px, 1.04fr);
    align-items: center;
    gap: 44px;
  }

  .tool-grid.reverse {
    grid-template-columns: minmax(400px, 1.04fr) minmax(0, 0.96fr);
  }

  .tool-grid.reverse .tool-copy {
    order: 2;
  }

  .tool-grid.reverse .calculator {
    order: 1;
  }

  .article-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .promo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .promo-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .site-header .brand {
    flex: 0 0 auto;
    max-width: none;
  }

  .main-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
  }

  .menu-toggle,
  .menu-overlay,
  .mobile-drawer {
    display: none;
  }

  .font-tools {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
