:root {
  --rowa-blue: #0b5ca8;
  --rowa-blue-dark: #063d70;
  --rowachol: #021d35;
  --rowachol-soft: #eef4f9;
  --rowatinex: #143804;
  --rowatinex-soft: #f0f5ec;
  --ink: #17232e;
  --muted: #5b6975;
  --line: #dce3e8;
  --surface: #f5f7f8;
  --white: #ffffff;
  --warning: #7a3f00;
  --warning-soft: #fff5e8;
  --shadow-sm: 0 12px 30px rgba(15, 42, 64, 0.08);
  --shadow-lg: 0 24px 70px rgba(15, 42, 64, 0.13);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid #f3a712;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--rowachol);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 227, 232, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand img {
  width: 132px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  position: relative;
  color: #283b4b;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--rowa-blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
}

.intro {
  position: relative;
  overflow: hidden;
  padding: 92px 0 88px;
  background:
    radial-gradient(circle at 8% 12%, rgba(11, 92, 168, 0.1), transparent 28%),
    linear-gradient(135deg, #f7fafc 0%, #ffffff 56%, #f3f7fa 100%);
}

.intro::after {
  position: absolute;
  right: -8%;
  bottom: -60%;
  width: 620px;
  aspect-ratio: 1;
  border: 1px solid rgba(11, 92, 168, 0.12);
  border-radius: 50%;
  content: "";
}

.intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rowa-blue);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--rowachol);
  font-size: clamp(2.5rem, 5vw, 4.75rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.05rem, 4vw, 3.55rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.lead {
  max-width: 680px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.22rem);
}

.product-switcher {
  display: grid;
  gap: 16px;
}

.switcher-card {
  position: relative;
  display: grid;
  min-height: 186px;
  padding: 26px 74px 28px 28px;
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

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

.switcher-rowachol {
  background: linear-gradient(135deg, #021d35, #0b426c);
}

.switcher-rowatinex {
  background: linear-gradient(135deg, #143804, #346d1c);
}

.switcher-index {
  align-self: start;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.switcher-name {
  align-self: end;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.switcher-topic {
  color: rgba(255, 255, 255, 0.77);
  font-size: 0.91rem;
}

.switcher-arrow {
  position: absolute;
  right: 28px;
  bottom: 28px;
  font-size: 1.5rem;
}

.product-section {
  padding: 104px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.rowachol-section h2,
.rowachol-section h3,
.rowachol-section h4 {
  color: var(--rowachol);
}

.hero-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-frame img {
  width: 100%;
}

.content-stack {
  display: grid;
  gap: 88px;
  padding-top: 88px;
}

.subsection-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.subsection-heading h3,
.recommendation-header h3 {
  margin-bottom: 0;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subsection-heading > .section-kicker {
  margin: 0 0 6px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 260px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15, 42, 64, 0.05);
}

.feature-number {
  display: block;
  margin-bottom: 52px;
  color: #8a99a4;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card h4 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.rowachol-section .feature-card {
  border-top: 4px solid var(--rowachol);
}

.rowatinex-section .feature-card {
  border-top: 4px solid var(--rowatinex);
}

.ingredient-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.31fr) minmax(0, 1fr);
  gap: 42px;
  padding: 42px;
  border-radius: var(--radius-lg);
}

.rowachol-section .ingredient-panel {
  background: var(--rowachol);
}

.rowatinex-section .ingredient-panel {
  background: var(--rowatinex);
}

.ingredient-panel .compact-heading {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.ingredient-panel .section-kicker,
.ingredient-panel h3 {
  color: var(--white);
}

.ingredient-panel .section-kicker {
  opacity: 0.64;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  list-style: none;
}

.ingredient-grid li {
  display: grid;
  min-height: 96px;
  align-content: center;
  gap: 3px;
  padding: 18px 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
}

.ingredient-grid li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.ingredient-grid strong {
  font-size: 1.01rem;
}

.ingredient-grid span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  line-height: 1.45;
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.education-visual {
  position: sticky;
  top: 120px;
}

.education-visual img {
  width: 100%;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  object-fit: cover;
}

.education-visual h3 {
  margin-bottom: 12px;
}

.education-visual p:last-child {
  margin: 0;
  color: var(--muted);
}

.details-list {
  border-top: 1px solid var(--line);
}

.details-list details {
  border-bottom: 1px solid var(--line);
}

.details-list summary {
  position: relative;
  padding: 22px 48px 22px 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.details-list summary::-webkit-details-marker {
  display: none;
}

.details-list summary::after {
  position: absolute;
  top: 21px;
  right: 4px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}

.rowachol-section .details-list summary::after {
  background: var(--rowachol);
}

.rowatinex-section .details-list summary::after {
  background: var(--rowatinex);
}

.details-list details[open] summary::after {
  content: "−";
}

.details-list details p {
  margin: -4px 52px 22px 0;
  color: var(--muted);
}

.medical-alert {
  margin-top: 24px;
  padding: 20px 22px;
  color: #5f3604;
  background: var(--warning-soft);
  border: 1px solid #efd5ad;
  border-radius: var(--radius-sm);
}

.medical-alert p {
  margin: 6px 0 0;
}

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

.medicine-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.medicine-image {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 20px;
  background: var(--surface);
}

.medicine-image img {
  width: 100%;
  object-fit: contain;
}

.medicine-content {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
}

.medicine-type {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.medicine-content h4 {
  margin-bottom: 18px;
  font-size: 1.42rem;
}

.medicine-content > p:not(.medicine-type, .medicine-note) {
  color: var(--muted);
  font-size: 0.92rem;
}

.medicine-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.dose-block {
  display: grid;
  gap: 3px;
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-sm);
}

.rowachol-section .dose-block {
  color: var(--rowachol);
  background: var(--rowachol-soft);
}

.rowatinex-section .dose-block {
  color: var(--rowatinex);
  background: var(--rowatinex-soft);
}

.dose-block span {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dose-block strong {
  font-size: 1.04rem;
}

.dose-block small {
  margin-top: 3px;
  font-size: 0.82rem;
}

.spc-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 14px 16px;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.dose-block + .spc-button,
.medicine-note + .spc-button {
  margin-top: 24px;
}

.rowachol-section .spc-button {
  color: var(--rowachol);
  background: var(--rowachol-soft);
}

.rowatinex-section .spc-button {
  color: var(--rowatinex);
  background: var(--rowatinex-soft);
}

.rowachol-section .spc-button:hover,
.rowachol-section .spc-button:focus-visible {
  color: var(--white);
  background: var(--rowachol);
}

.rowatinex-section .spc-button:hover,
.rowatinex-section .spc-button:focus-visible {
  color: var(--white);
  background: var(--rowatinex);
}

.spc-button:hover {
  transform: translateY(-2px);
}

.spc-button-meta {
  flex: 0 0 auto;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.recommendation-section {
  padding: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.recommendation-header {
  max-width: 830px;
  margin-bottom: 30px;
}

.recommendation-header > p:last-child:not(.section-kicker) {
  margin: 16px 0 0;
  color: var(--muted);
}

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

.list-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.list-card-wide {
  grid-column: 1 / -1;
}

.list-card h4 {
  margin-bottom: 18px;
  font-size: 1.15rem;
}

.list-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.list-card li {
  padding-left: 6px;
  color: var(--muted);
}

.food-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.food-list div {
  padding: 18px;
  background: var(--white);
}

.food-list div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.food-list dt {
  margin-bottom: 4px;
  color: var(--rowachol);
  font-size: 0.88rem;
  font-weight: 800;
}

.food-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rowatinex-section {
  background: linear-gradient(180deg, #f7f9f6 0%, #ffffff 13%, #ffffff 88%, #f7f9f6 100%);
  border-top: 1px solid var(--line);
}

.rowatinex-section h2,
.rowatinex-section h3,
.rowatinex-section h4 {
  color: var(--rowatinex);
}

.rowatinex-section .eyebrow {
  color: #347318;
}

.safety-callout {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 32px;
  color: #4e320d;
  background: var(--warning-soft);
  border: 1px solid #ead0a9;
  border-radius: var(--radius-md);
}

.safety-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  background: var(--warning);
  border-radius: 50%;
  font-size: 1.65rem;
  font-weight: 900;
}

.safety-callout .section-kicker {
  color: var(--warning);
}

.safety-callout h3 {
  margin-bottom: 10px;
  color: #4e320d;
}

.safety-callout p:last-child {
  margin: 0;
}

.rowatinex-recommendations {
  background: var(--rowatinex-soft);
  border-color: #d6e0d0;
}

.diet-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.diet-facts article {
  padding: 24px;
  background: var(--white);
  border: 1px solid #d6e0d0;
  border-radius: var(--radius-md);
}

.diet-facts span {
  display: block;
  margin-bottom: 20px;
  color: var(--rowatinex);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diet-facts p {
  margin: 0;
  color: var(--muted);
}

.diet-facts strong {
  color: var(--rowatinex);
}

.calcium-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
  padding: 22px 24px;
  color: #39522d;
  background: rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-sm);
}

.calcium-note p {
  margin: 0;
}

.legal-section {
  padding: 84px 0;
  color: var(--white);
  background: var(--rowachol);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.66fr) minmax(0, 1.34fr);
  gap: 70px;
  align-items: start;
}

.legal-section .eyebrow {
  color: #75b9ef;
}

.legal-section h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

.legal-statements {
  display: grid;
  gap: 14px;
}

.legal-statement {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
}

.legal-statement h3 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.legal-statement p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.spc-library {
  margin-top: 54px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
}

.spc-library-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 24px;
}

.spc-library .section-kicker {
  color: #75b9ef;
}

.spc-library h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.spc-library-header > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.spc-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.spc-resource {
  position: relative;
  display: grid;
  min-height: 154px;
  align-content: space-between;
  gap: 10px;
  overflow: hidden;
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.spc-resource::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--rowachol);
  content: "";
}

.spc-resource-rowatinex::before {
  background: var(--rowatinex);
}

.spc-resource:hover,
.spc-resource:focus-visible {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  transform: translateY(-3px);
}

.spc-resource-product {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spc-resource strong {
  align-self: center;
  color: var(--rowachol);
  font-size: 1.08rem;
}

.spc-resource-rowatinex strong {
  color: var(--rowatinex);
}

.spc-resource-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.spc-resource-meta b {
  font-size: 1rem;
}

.site-footer {
  padding: 54px 0 24px;
  background: #f1f4f6;
}

.footer-top {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  align-items: center;
  padding-bottom: 42px;
}

.footer-rowa {
  width: 176px;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #d4dde3;
}

.footer-bottom > span {
  color: #6d7a84;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-logos img:first-child {
  width: 70px;
}

.footer-logos img:last-child {
  width: 205px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 960px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

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

  .switcher-card {
    min-height: 205px;
  }

  .ingredient-panel {
    grid-template-columns: 1fr;
  }

  .medicine-card {
    grid-template-columns: 1fr;
  }

  .medicine-image {
    min-height: 250px;
  }

  .medicine-image img {
    max-height: 260px;
  }

  .diet-facts {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 800px) {
  .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 112px;
  }

  .nav-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--rowachol);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
  }

  .nav-toggle-icon {
    display: grid;
    width: 18px;
    gap: 5px;
  }

  .nav-toggle-icon span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 160ms ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .primary-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 20px 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 200ms ease, visibility 200ms ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .primary-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid,
  .dosage-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 220px;
  }

  .education-layout,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .education-visual {
    position: static;
    display: grid;
    grid-template-columns: minmax(210px, 0.65fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
  }

  .education-visual img {
    margin: 0;
  }

  .recommendation-section {
    padding: 30px;
  }

  .recommendation-grid,
  .calcium-note {
    grid-template-columns: 1fr;
  }

  .legal-grid {
    gap: 30px;
  }

  .spc-library-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-top {
    grid-template-columns: 150px 1fr;
  }

}

@media (max-width: 639px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .intro {
    padding: 64px 0;
  }

  .product-switcher {
    grid-template-columns: 1fr;
  }

  .switcher-card {
    min-height: 166px;
  }

  .product-section {
    padding: 78px 0;
  }

  .hero-frame {
    border-radius: 18px;
  }

  .content-stack {
    gap: 64px;
    padding-top: 62px;
  }

  .subsection-heading {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-number {
    margin-bottom: 34px;
  }

  .ingredient-panel,
  .recommendation-section {
    padding: 24px;
    border-radius: 20px;
  }

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

  .ingredient-grid li {
    min-height: 86px;
  }

  .education-visual {
    grid-template-columns: 1fr;
  }

  .medicine-card {
    border-radius: 18px;
  }

  .medicine-image {
    min-height: 220px;
  }

  .medicine-content {
    padding: 26px 22px;
  }

  .food-list {
    grid-template-columns: 1fr;
  }

  .safety-callout {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .legal-section {
    padding: 64px 0;
  }

  .legal-statement {
    padding: 20px;
  }

  .spc-library {
    margin-top: 38px;
    padding: 22px;
  }

  .spc-resource-grid {
    grid-template-columns: 1fr;
  }

  .spc-resource {
    min-height: 132px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-logos {
    width: 100%;
    justify-content: space-between;
  }

  .footer-logos img:last-child {
    width: min(190px, 62vw);
  }

}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
