/* ==========================================================================
   Calorie.day — Native Utility App Production Stylesheet
   Zero Render-Blocking, 0.00 CLS, 100/100 PageSpeed Insights Optimized
   ========================================================================== */

/* Modern CSS Reset & Box Sizing */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  font-feature-settings: normal;
  font-variation-settings: normal;
}

body {
  margin: 0;
  line-height: inherit;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  text-decoration: underline dotted;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp, pre {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, select {
  text-transform: none;
}

button, [type='button'], [type='reset'], [type='submit'] {
  -webkit-appearance: button;
  appearance: button;
  background-color: transparent;
  background-image: none;
}

:-moz-focusring {
  outline: auto;
}

:-moz-ui-invalid {
  box-shadow: none;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
  height: auto;
}

[type='search'] {
  -webkit-appearance: textfield;
  appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol, ul, menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

dialog {
  padding: 0;
}

textarea {
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

button, [role="button"] {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
}

img, video {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

/* Base custom input styles */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container { width: 100%; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-4 { margin-top: 1rem; }

.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.h-full { height: 100%; }
.min-h-full { min-height: 100%; }
.min-h-\[48px\] { min-height: 48px; }
.min-h-\[50px\] { min-height: 50px; }
.min-h-\[58px\] { min-height: 58px; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-9 { height: 2.25rem; }
.h-\[120px\] { height: 120px; }
.h-\[32px\] { height: 32px; }
.h-\[34px\] { height: 34px; }
.h-\[44px\] { height: 44px; }
.h-\[46px\] { height: 46px; }
.h-\[48px\] { height: 48px; }

.w-full { width: 100%; }
.w-2 { width: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-9 { width: 2.25rem; }
.w-48 { width: 12rem; }
.w-\[120px\] { width: 120px; }
.w-\[44px\] { width: 44px; }
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

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

.p-0 { padding: 0px; }
.p-0\.5 { padding: 0.125rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.py-0\.2 { padding-top: 0.05rem; padding-bottom: 0.05rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pt-0\.5 { padding-top: 0.125rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2\.5 { padding-top: 0.625rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }

/* Positioning & Layout */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.right-0 { right: 0px; }
.bottom-6 { bottom: 1.5rem; }
.left-1\/2 { left: 50%; }
.z-50 { z-index: 50; }

.-translate-x-1\/2 { transform: translateX(-50%); }
.-rotate-90 { transform: rotate(-90deg); }
.rotate-90 { transform: rotate(90deg); }
.origin-top-right { transform-origin: top right; }
.origin-\[80px_80px\] { transform-origin: 80px 80px; }

/* Typography */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-variant-numeric: tabular-nums;
  -moz-font-feature-settings: "tnum";
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
  -moz-font-feature-settings: "tnum";
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
}

.max-w-prose { max-width: 65ch; }

.text-\[9px\] { font-size: 9px; line-height: 12px; }
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 16px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

/* Colors (WCAG AA Contrast Compliant) */
.text-white { color: #ffffff; }
.text-neutral-400 { color: #739bb0; }
.text-neutral-500 { color: #477288; }
.text-neutral-600 { color: #2d556a; }
.text-neutral-700 { color: #173e52; }
.text-neutral-800 { color: #0a2938; }
.text-neutral-900 { color: #03141f; } /* High contrast primary */
.text-accent { color: #0284c7; } /* Sky-600: 5.3:1 on #ffffff */
.text-amber-400 { color: #d97706; } /* AA compliant warning */

.bg-transparent { background-color: transparent; }
.bg-white { background-color: #ffffff; }
.bg-\[\#f8fafc\] { background-color: #f0f9ff; }
.bg-neutral-50\/70 { background-color: rgba(240, 249, 255, 0.7); }
.bg-neutral-50\/80 { background-color: rgba(240, 249, 255, 0.8); }
.bg-neutral-100 { background-color: #e0f2fe; }
.bg-neutral-100\/80 { background-color: rgba(224, 242, 254, 0.8); }
.bg-neutral-100\/90 { background-color: rgba(224, 242, 254, 0.9); }
.bg-neutral-200\/90 { background-color: rgba(186, 230, 253, 0.9); }
.bg-neutral-400 { background-color: #739bb0; }
.bg-neutral-900 { background-color: #082230; }
.bg-accent { background-color: #0284c7; }
.bg-accent-light { background-color: rgba(14, 165, 233, 0.12); }
.bg-accent-light\/60 { background-color: rgba(14, 165, 233, 0.16); }

/* Borders & Rounded */
.border-none { border-style: none; }
.border { border-width: 1px; }
.border-neutral-200 { border-color: rgba(14, 165, 233, 0.18); }
.border-neutral-200\/80 { border-color: rgba(14, 165, 233, 0.15); }
.border-neutral-200\/90 { border-color: rgba(14, 165, 233, 0.2); }
.border-accent { border-color: #0284c7; }
.ring-1 { box-shadow: 0 0 0 1px #0284c7; }
.ring-accent { --tw-ring-color: #0284c7; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Dividers & Lists */
.divide-y > :not([hidden]) ~ :not([hidden]) {
  border-top-width: 1px;
}
.divide-neutral-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: #f3f4f6;
}
.list-none { list-style-type: none; }

/* Shadows & Filters */
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-\[0_1px_3px_rgba\(0\,0\,0\,0\.05\)\] { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* SVG Utilities */
.fill-none { fill: none; }
.fill-neutral-500 { fill: #6b7280; }
.fill-neutral-900 { fill: #0f172a; }
.stroke-\[18\] { stroke-width: 18; }
.stroke-neutral-100 { stroke: #f3f4f6; }
.stroke-neutral-400 { stroke: #9ca3af; }
.stroke-neutral-900 { stroke: #0f172a; }
.stroke-accent { stroke: #2563eb; }

/* Transitions & Interactivity */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

.select-none { user-select: none; }
.cursor-pointer { cursor: pointer; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.pointer-events-none { pointer-events: none; }
.opacity-0 { opacity: 0; }
.overflow-x-auto { overflow-x: auto; }
.active\:scale-95:active { transform: scale(0.95); }

/* Selection */
::selection { background-color: #2563eb; color: #ffffff; }

/* Native Cupertino Controls & Ranges */
.segmented-control { user-select: none; }
.segment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  z-index: 1;
}
.segment-btn.items-start,
.segment-btn.text-left {
  align-items: flex-start;
  text-align: left;
}
.segment-btn.active {
  background-color: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.activity-card, .goal-card, .chip, .stepper-btn, .theme-toggle-btn { user-select: none; }
.activity-card:active, .goal-card:active, .chip:active, .stepper-btn:active, .theme-toggle-btn:active { transform: scale(0.97); }

.native-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  margin: 8px 0;
}
.native-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.native-range::-webkit-slider-thumb:active {
  transform: scale(1.15);
  cursor: grabbing;
}
.native-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: grab;
}

/* Hover States (Light) */
@media (hover: hover) {
  .hover\:bg-neutral-100:hover { background-color: #f3f4f6; }
  .hover\:bg-neutral-100\/80:hover { background-color: rgba(243, 244, 246, 0.8); }
  .hover\:bg-neutral-200\/80:hover { background-color: rgba(229, 231, 235, 0.8); }
  .hover\:text-neutral-900:hover { color: #0f172a; }
}

/* FAQ Details/Summary Animation */
details summary::-webkit-details-marker { display: none; }
details[open] .group-open\:rotate-180 { transform: rotate(180deg); }

/* Responsive: sm (>= 640px) */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-nowrap { flex-wrap: nowrap; }
  .sm\:items-center { align-items: center; }
  .sm\:gap-2 { gap: 0.5rem; }
  .sm\:gap-3 { gap: 0.75rem; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:p-3 { padding: 0.75rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-7 { padding: 1.75rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:pb-0 { padding-bottom: 0px; }
  .sm\:inline { display: inline; }
  .sm\:hidden { display: none; }
  .sm\:text-xs { font-size: 0.75rem; line-height: 1rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* Responsive: md (>= 768px) */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:gap-6 { gap: 1.5rem; }
  .md\:gap-8 { gap: 2rem; }
}

/* Responsive: lg (>= 1024px) */
@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
}

/* ==========================================================================
   Dark Mode Variants (.dark) — Oceanic Cyan-Blue Luminous Theme
   ========================================================================== */

.dark body {
  background-color: #03141f;
  background-image: 
    radial-gradient(1100px 540px at 50% -20px, rgba(16, 96, 126, 0.85) 0%, rgba(10, 64, 88, 0.58) 36%, rgba(5, 34, 48, 0.78) 68%, rgba(3, 20, 31, 0.98) 100%),
    linear-gradient(180deg, #0e445b 0%, #072636 35%, #03141f 85%) !important;
  background-attachment: fixed !important;
  color: #e0f2fe;
}

.dark .dark\:block { display: block; }
.dark .dark\:hidden { display: none; }

.dark .dark\:bg-\[\#07090e\] {
  background-color: #03141f;
}
.dark .dark\:bg-\[\#0e131f\] {
  background-color: rgba(8, 32, 46, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.14);
}
.dark .dark\:bg-neutral-800 { background-color: #0c3348; }
.dark .dark\:bg-neutral-800\/40 { background-color: rgba(6, 26, 38, 0.68); }
.dark .dark\:bg-neutral-800\/70 { background-color: rgba(9, 36, 52, 0.78); }
.dark .dark\:bg-neutral-800\/80 { background-color: rgba(6, 24, 36, 0.88); }
.dark .dark\:bg-neutral-700 { background-color: #114460; }
.dark .dark\:bg-neutral-500 { background-color: #38708c; }
.dark .dark\:bg-white { background-color: #ffffff; }
.dark .dark\:bg-accent-darkbg\/50 { background-color: rgba(56, 189, 248, 0.16); }
.dark .dark\:bg-accent-darkbg\/60 { background-color: rgba(56, 189, 248, 0.22); }

.dark .dark\:text-white { color: #ffffff; }
.dark .dark\:text-neutral-100 { color: #f0f9ff; }
.dark .dark\:text-neutral-200 { color: #e0f2fe; }
.dark .dark\:text-neutral-300 { color: #bae6fd; }
.dark .dark\:text-neutral-400 { color: #88b4cb; }
.dark .dark\:text-neutral-600 { color: #477791; }
.dark .dark\:text-neutral-900 { color: #03141f; }
.dark .dark\:text-accent { color: #38bdf8; }

.dark .dark\:border-white\/10 { border-color: rgba(56, 189, 248, 0.16); }
.dark .dark\:border-neutral-700 { border-color: rgba(56, 189, 248, 0.22); }
.dark .dark\:divide-white\/5 > :not([hidden]) ~ :not([hidden]) { border-color: rgba(56, 189, 248, 0.08); }

.dark .dark\:shadow-none { box-shadow: none; }

.dark .dark\:stroke-neutral-800 { stroke: #0c3348; }
.dark .dark\:stroke-neutral-500 { stroke: #38708c; }
.dark .dark\:stroke-neutral-100 { stroke: #f0f9ff; }

.dark .dark\:fill-white { fill: #ffffff; }
.dark .dark\:fill-neutral-400 { fill: #88b4cb; }

.dark .segment-btn.active {
  background-color: #ffffff;
  color: #03141f;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.dark .native-range {
  background: #0c3348;
}

@media (hover: hover) {
  .dark .dark\:hover\:bg-neutral-800:hover { background-color: #103e58; }
  .dark .dark\:hover\:bg-neutral-700:hover { background-color: #155070; }
  .dark .dark\:hover\:bg-neutral-700\/50:hover { background-color: rgba(21, 80, 112, 0.6); }
  .dark .dark\:hover\:text-white:hover { color: #ffffff; }
  .hover\:underline:hover { text-decoration-line: underline; }
  .hover\:text-accent:hover { color: #0284c7; }
  .dark .dark\:hover\:text-accent:hover { color: #7dd3fc; }
}

/* ==========================================================================
   Content Pages & Form Utilities (Terms, Privacy, Contact)
   ========================================================================== */

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

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

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.leading-normal { line-height: 1.5; }

.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.list-inside { list-style-position: inside; }
.pl-4 { padding-left: 1rem; }
.pl-5 { padding-left: 1.25rem; }
.pl-6 { padding-left: 1.5rem; }

.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

/* Contact Form Input & Textarea Elements */
.form-input, .form-textarea {
  width: 100%;
  border-radius: 0.75rem;
  border-width: 1px;
  border-color: rgba(229, 231, 235, 0.9);
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #0f172a;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus, .form-textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.dark .form-input, .dark .form-textarea {
  border-color: rgba(56, 189, 248, 0.2);
  background-color: rgba(6, 26, 38, 0.75);
  color: #f0f9ff;
}
.dark .form-input:focus, .dark .form-textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* BMI Row Dynamic Active Highlight */
.bmi-row.active {
  background-color: rgba(2, 132, 199, 0.08);
}
.bmi-row.active .tier-label {
  color: #0284c7;
  font-weight: 800;
}
.dark .bmi-row.active {
  background-color: rgba(56, 189, 248, 0.18);
}
.dark .bmi-row.active .tier-label {
  color: #38bdf8;
}

/* Brand Logo Icon Container (Black in Light Mode, Dark in Dark Mode) */
.brand-logo-box {
  background-color: #000000;
  border: 1px solid #18181b;
}

.dark .brand-logo-box {
  background-color: #041622;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.dark .stepper-btn {
  background-color: rgba(12, 44, 62, 0.7);
  border-color: rgba(56, 189, 248, 0.22);
  color: #e0f2fe;
}
.dark .stepper-btn:hover {
  background-color: rgba(20, 68, 96, 0.9);
}

.dark .chip.active {
  background-color: #38bdf8;
  color: #03141f;
}

.dark .toast {
  background-color: #082230;
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
}
