/* GetMacros premium visual system — restrained motion, consistent type and clear UI. */
:root {
  --premium-paper: #f5f7f3;
  --premium-paper-warm: #fbfcf8;
  --premium-ink: #10231b;
  --premium-muted: #53665d;
  --premium-forest: #123f2d;
  --premium-forest-deep: #092c20;
  --premium-lime: #dfff76;
  --premium-mint: #bdeecf;
  --premium-line: #d5e0d9;
  --premium-radius: 18px;
  --premium-radius-sm: 12px;
  --premium-shadow: 0 18px 50px rgba(16, 35, 27, .09);
  --premium-shadow-soft: 0 8px 24px rgba(16, 35, 27, .07);
}

html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  max-width: 100%;
  overflow-x: clip;
  color: var(--premium-ink);
  background: var(--premium-paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 8%, rgba(189, 238, 207, .18), transparent 25rem),
    radial-gradient(circle at 94% 38%, rgba(223, 255, 118, .09), transparent 28rem),
    var(--premium-paper);
}

.container { width: min(1180px, calc(100% - 40px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 10px 18px;
  background: linear-gradient(to bottom, rgba(245,247,243,.84), rgba(245,247,243,.28)) !important;
  border-bottom: 0 !important;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  transition: padding .32s cubic-bezier(.22,1,.36,1), background .3s ease;
}
.is-scrolled .site-header {
  padding-block: 6px;
  background: linear-gradient(to bottom, rgba(245,247,243,.94), rgba(245,247,243,.62)) !important;
}
.full-nav {
  min-height: 68px;
  max-width: 1260px !important;
  gap: 22px;
  padding-inline: 18px !important;
  border: 1px solid rgba(18,63,45,.1);
  border-radius: 20px;
  background: rgba(251,252,248,.82);
  box-shadow: 0 12px 34px rgba(9,44,32,.08), inset 0 1px rgba(255,255,255,.82);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  transition: min-height .32s cubic-bezier(.22,1,.36,1), border-radius .32s ease, box-shadow .32s ease;
}
.is-scrolled .full-nav {
  min-height: 60px;
  border-radius: 17px;
  box-shadow: 0 16px 40px rgba(9,44,32,.12), inset 0 1px rgba(255,255,255,.9);
}
.full-nav-links {
  display: flex !important;
  align-items: center;
  gap: clamp(16px, 1.8vw, 28px) !important;
  margin-left: auto;
  min-width: 0;
}
.nav-action { flex: 0 0 auto; }
.modern-brand { letter-spacing: -.035em; }
.brand-mark {
  border-radius: 11px 15px 11px 14px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 20px rgba(18, 63, 45, .16);
  transform: rotate(-2deg);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-radius .3s ease;
}
.modern-brand:hover .brand-mark {
  transform: rotate(2deg) translateY(-1px);
  border-radius: 15px 11px 14px 11px !important;
}
.full-nav-links a {
  position: relative;
  padding: 25px 0 23px;
  font-weight: 650;
  color: #314a3f !important;
  text-decoration: none !important;
  transition: color .2s ease;
}
.full-nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--premium-forest);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.full-nav-links a:hover,
.full-nav-links a[aria-current="page"] { color: var(--premium-forest-deep) !important; }
.full-nav-links a:hover::after,
.full-nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-action {
  border-radius: 11px !important;
  box-shadow: 0 5px 18px rgba(18, 63, 45, .12);
  transition: transform .2s ease, box-shadow .2s ease !important;
}
.nav-action:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(18, 63, 45, .17); }

h1, h2, h3 { color: var(--premium-ink); text-wrap: balance; }
p, li { text-wrap: pretty; }
.focus-hero h1,
.focus-page-hero h1,
.finder-hero h1,
.calc-hub-hero h1,
.guide-hub-hero h1,
.search-hero h1,
.article-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.65rem, 5.35vw, 4.85rem) !important;
  line-height: .98 !important;
  letter-spacing: -.06em !important;
}
.calc-hub-hero h1 { max-width: 12ch; }
.eyebrow {
  letter-spacing: .13em !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
}
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.35rem) !important; line-height: 1.03 !important; letter-spacing: -.045em !important; }
.section-head > p:last-child { max-width: 65ch; color: var(--premium-muted); font-size: 1.05rem; }

.btn, .button, button[type="submit"], .calc-submit {
  position: relative;
  overflow: hidden;
  border-radius: 12px !important;
  box-shadow: 0 7px 20px rgba(9, 44, 32, .12);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background-color .22s ease !important;
}
.btn:hover, .button:hover, button[type="submit"]:hover, .calc-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(9, 44, 32, .17);
}
.btn:active, .button:active, button[type="submit"]:active, .calc-submit:active { transform: translateY(0) scale(.985); }
.btn-primary { background: var(--premium-lime) !important; color: var(--premium-forest-deep) !important; }
.btn-outline, .btn-ghost { border-color: rgba(255, 255, 255, .34) !important; }

.premium-liquid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--premium-forest-deep) !important;
}
.premium-liquid::before,
.premium-liquid::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  filter: saturate(1.05);
  will-change: transform, border-radius;
}
.premium-liquid::before {
  width: min(54vw, 720px);
  aspect-ratio: 1;
  right: -11%;
  top: -45%;
  border-radius: 43% 57% 64% 36% / 45% 35% 65% 55%;
  background: radial-gradient(circle at 35% 35%, rgba(223, 255, 118, .27), rgba(105, 198, 139, .11) 42%, transparent 70%);
  transform: translate3d(0, calc(var(--liquid-shift, 0) * 1px), 0);
  animation: liquidMorph 18s ease-in-out infinite alternate;
}
.premium-liquid::after {
  width: min(34vw, 460px);
  aspect-ratio: 1;
  left: -12%;
  bottom: -58%;
  border-radius: 60% 40% 38% 62% / 47% 60% 40% 53%;
  background: radial-gradient(circle, rgba(189, 238, 207, .18), transparent 68%);
  animation: liquidDrift 22s ease-in-out infinite alternate;
}
.premium-liquid > * { position: relative; z-index: 1; }
@keyframes liquidMorph {
  0% { border-radius: 43% 57% 64% 36% / 45% 35% 65% 55%; transform: translate3d(0, 0, 0) rotate(0); }
  50% { border-radius: 59% 41% 38% 62% / 57% 63% 37% 43%; transform: translate3d(-2%, 4%, 0) rotate(6deg); }
  100% { border-radius: 35% 65% 52% 48% / 63% 42% 58% 37%; transform: translate3d(3%, -2%, 0) rotate(-4deg); }
}
@keyframes liquidDrift {
  from { transform: translate3d(-4%, 0, 0) scale(.94); }
  to { transform: translate3d(9%, -7%, 0) scale(1.08); }
}

.sample-card, .finder-photo, .calc-photo-card {
  transition: box-shadow .28s ease;
  box-shadow: var(--premium-shadow) !important;
}
.sample-card h2 { color: var(--premium-ink) !important; }
.sample-card p { color: #52685d !important; }
.calc-hub-hero figcaption, .finder-hero figcaption { color: #eef6f1 !important; }
.result-meal-link { display: inline-block; margin-top: 10px; color: #e9ff9d !important; font-weight: 800; }

.goal-card, .tool-card, .guide-card, .chain-card, .ranking-card, .pick-card,
.panel, .meal-card, .result-card, .explore-card, .source-box, .advice-card,
.tool-group, .calculator-card, .calc-card {
  border-radius: var(--premium-radius) !important;
  border-color: var(--premium-line) !important;
  box-shadow: var(--premium-shadow-soft);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease !important;
}
a.goal-card:hover, a.tool-card:hover, a.guide-card:hover, a.chain-card:hover,
a.pick-card:hover, a.explore-card:hover, .meal-card:hover {
  transform: translateY(-4px);
  border-color: #a9c5b4 !important;
  box-shadow: var(--premium-shadow);
}
.goal-card > span, .tool-card > span, .calc-nav-icon, .icon-badge {
  border-radius: 11px !important;
}
.goal-card p, .tool-card p, .guide-card p, .chain-card b { color: var(--premium-muted) !important; }

input, select, textarea {
  min-height: 52px;
  border: 1px solid #c9d8cf !important;
  border-radius: 11px !important;
  background-color: #fff !important;
  color: var(--premium-ink) !important;
  box-shadow: inset 0 1px 2px rgba(16, 35, 27, .03);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='m5 7 4 4 4-4' stroke='%23123f2d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 18px 18px !important;
}
input:hover, select:hover, textarea:hover { border-color: #9fb9aa !important; }
input:focus, select:focus, textarea:focus {
  border-color: var(--premium-forest) !important;
  box-shadow: 0 0 0 4px rgba(18, 63, 45, .12) !important;
  outline: none !important;
}
label { color: #263e33 !important; font-weight: 700 !important; }
.hint, .calc-fineprint, figcaption { color: #607269 !important; }

table { border-collapse: separate !important; border-spacing: 0; font-variant-numeric: tabular-nums; }
thead th { background: #eaf0eb !important; color: #213b30 !important; border-color: #d7e2db !important; }
tbody tr:nth-child(even) { background: rgba(232, 239, 234, .48); }
tbody tr:hover { background: rgba(223, 255, 118, .13); }
td, th { border-color: #dce5df !important; }

.breadcrumb { background: rgba(245, 247, 243, .92) !important; border-bottom-color: var(--premium-line) !important; }
.breadcrumb a { color: #315a47 !important; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.modern-footer {
  position: relative;
  background: var(--premium-forest-deep) !important;
  border-top: 4px solid var(--premium-lime);
}
.modern-footer::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: 4%;
  top: -120px;
  border-radius: 48% 52% 62% 38%;
  background: radial-gradient(circle, rgba(223,255,118,.1), transparent 68%);
  pointer-events: none;
}
.modern-footer a { text-underline-offset: 4px; }
.modern-footer a:hover { color: var(--premium-lime) !important; }

/* Homepage product composition: varied rhythm without changing content order. */
.modern-site .bento-grid,
.modern-site .bento-tools {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}
.modern-site .bento-grid > *,
.modern-site .bento-tools > * { grid-column: span 4; min-height: 182px; }
.modern-site .bento-grid > :first-child {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 82% 12%, rgba(223,255,118,.7), transparent 9rem),
    linear-gradient(145deg, #e5f5e9, #ffffff 68%);
}
.modern-site .bento-grid > :nth-child(2),
.modern-site .bento-grid > :nth-child(3) { grid-column: span 3; }
.modern-site .bento-grid > :nth-child(4) {
  grid-column: span 6;
  background: linear-gradient(135deg, #123f2d, #1b6748);
}
.modern-site .bento-grid > :nth-child(4) :is(h3,p) { color: #fff !important; }
.modern-site .bento-grid > :nth-child(4) > span { color: var(--premium-lime); }
.modern-site .bento-tools > :first-child,
.modern-site .bento-tools > :nth-child(5) { grid-column: span 6; }
.modern-site .bento-tools > :first-child {
  background: linear-gradient(135deg, #eff9f1, #fff);
  border-color: #bcd8c6 !important;
}

/* The restaurant directory behaves like a product rail instead of a link dump. */
.restaurant-rail-section { overflow: hidden; }
.rail-heading { display: grid; grid-template-columns: minmax(0,.8fr) minmax(280px,1fr); gap: 32px; align-items: end; max-width: none; }
.rail-heading > p { margin-bottom: .35rem; }
.chain-rail {
  display: flex !important;
  gap: 14px;
  overflow-x: auto;
  padding: 5px 5px 22px;
  margin-inline: -5px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #9ebaa9 transparent;
  scrollbar-width: thin;
}
.chain-rail .chain-card {
  flex: 0 0 clamp(230px, 25vw, 305px);
  min-height: 124px;
  scroll-snap-align: start;
  align-items: flex-end;
  background: linear-gradient(150deg, #fff, #edf5ef);
}
.chain-rail .chain-card span { font-size: 1.16rem; }

/* A useful ring, not a decorative score: it visualizes the displayed meal math. */
.sample-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sample-source { color: #486458; font-size: .72rem; font-weight: 750; }
.sample-visual { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 16px; align-items: center; margin-top: 20px; }
.sample-macros { margin-top: 0 !important; }
.macro-ring {
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: conic-gradient(var(--premium-forest) calc(var(--protein-share) * 1%), #dfe9e2 0);
  box-shadow: inset 0 0 0 1px rgba(18,63,45,.08), 0 12px 28px rgba(9,44,32,.1);
}
.macro-ring::before { content: ""; position: absolute; inset: 9px; border-radius: inherit; background: #fff; }
.macro-ring::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  mix-blend-mode: soft-light;
  animation: ringGlint 5.8s ease-in-out infinite;
}
.macro-ring strong, .macro-ring span { position: relative; z-index: 1; }
.macro-ring strong { font-size: 1.35rem; letter-spacing: -.04em; }
.macro-ring span { font-size: .65rem; color: #5c7066; }
@keyframes ringGlint { 0%,55%,100% { transform: rotate(-55deg); opacity: 0; } 68% { opacity: .8; } 82% { transform: rotate(305deg); opacity: 0; } }

/* One contained sticky story adds depth without turning every section into an effect. */
.story-section { padding-block: clamp(70px,10vw,132px) !important; }
.story-band { align-items: start; gap: clamp(28px,7vw,92px); padding: clamp(30px,6vw,66px); }
.story-copy { position: sticky; top: 106px; }
.story-points { padding: clamp(20px,4vw,40px); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.055); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.story-index { display: inline-block; margin-bottom: 26px; color: var(--premium-lime); font: 800 .72rem/1 Inter, sans-serif; letter-spacing: .14em; }

/* Calm editorial surfaces across long pages. */
.site-v3.article-page main > article,
.site-v3 .article-container { font-size: 1.02rem; }
.site-v3.article-page main > article > p:first-of-type,
.site-v3 .article-container > p:first-of-type { font-size: clamp(1.12rem,2vw,1.28rem); line-height: 1.72; color: #40594d; }
.site-v3.article-page main > article :is(h2,h3),
.site-v3 .article-container :is(h2,h3) { scroll-margin-top: 110px; }
.site-v3 main details { border: 1px solid var(--premium-line); border-radius: 14px; background: #fff; padding: 16px 18px; box-shadow: 0 6px 18px rgba(16,35,27,.05); }
.site-v3 main details + details { margin-top: 10px; }
.site-v3 main details summary { cursor: pointer; font-weight: 800; color: var(--premium-ink); }

@media (max-width: 900px) {
  .container { width: min(100% - 28px, 1180px); }
  .full-nav { min-height: 66px; }
  .full-nav-links a { padding-block: 20px; }
  .full-nav-links a::after { bottom: 13px; }
  .focus-hero h1, .focus-page-hero h1, .finder-hero h1, .calc-hub-hero h1,
  .guide-hub-hero h1, .search-hero h1, .article-hero h1 { max-width: 15ch; font-size: clamp(2.45rem, 10vw, 4.2rem) !important; }
  .modern-site .bento-grid > *, .modern-site .bento-tools > * { grid-column: span 6; min-height: 172px; }
  .modern-site .bento-grid > :first-child { grid-column: span 12; grid-row: auto; min-height: 250px; }
  .modern-site .bento-grid > :nth-child(2), .modern-site .bento-grid > :nth-child(3),
  .modern-site .bento-grid > :nth-child(4) { grid-column: span 6; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 22px, 1180px); }
  .site-header { position: relative; padding: 7px; background: var(--premium-paper-warm) !important; }
  .full-nav { border-radius: 16px; padding-inline: 12px !important; }
  .full-nav { flex-wrap: wrap !important; padding-block: 10px; gap: 8px 12px; }
  .modern-brand { font-size: 1.05rem !important; }
  .full-nav-links {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    margin-left: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .full-nav-links::-webkit-scrollbar { display: none; }
  .full-nav-links a { flex: 0 0 auto; padding-block: 8px 10px; white-space: nowrap; }
  .full-nav-links a::after { bottom: 3px; }
  .nav-action { min-height: 42px; }
  .focus-hero h1, .focus-page-hero h1, .finder-hero h1, .calc-hub-hero h1,
  .guide-hub-hero h1, .search-hero h1, .article-hero h1 { font-size: clamp(2.35rem, 12vw, 3.45rem) !important; }
  .premium-liquid::before { width: 110vw; right: -60%; top: -20%; opacity: .72; }
  .premium-liquid::after { width: 80vw; left: -44%; bottom: -32%; }
  .btn, .button, button[type="submit"], .calc-submit { min-height: 50px; }
  .modern-site .bento-grid, .modern-site .bento-tools { grid-template-columns: 1fr; }
  .modern-site .bento-grid > *, .modern-site .bento-tools > *,
  .modern-site .bento-grid > :first-child, .modern-site .bento-grid > :nth-child(2),
  .modern-site .bento-grid > :nth-child(3), .modern-site .bento-grid > :nth-child(4) { grid-column: 1; min-height: auto; }
  .rail-heading { grid-template-columns: 1fr; gap: 8px; }
  .chain-rail .chain-card { flex-basis: min(82vw, 286px); min-height: 112px; }
  .sample-visual { grid-template-columns: 1fr; }
  .macro-ring { width: 104px; }
  .story-copy { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sample-card, .finder-photo, .calc-photo-card { transform: none !important; }
  .macro-ring::after { animation: none !important; display: none; }
}
