/* ==========================================================================
   NutriPlanMe Design System & Production Stylesheet
   Domain: https://nutriplanme.com
   Tagline: Your Nutrition. Your Plan. Your Way.
   Palette: Botanical Green, Deep Green, Soft Mint, Warm White, Light Orange, Charcoal
   ========================================================================== */

:root {
  --green-primary: #176B3A;
  --green-deep: #124C2D;
  --green-hover: #145B31;
  --mint-soft: #EAF5EC;
  --mint-tint: #F2F9F3;
  --warm-white: #FAFBF8;
  --surface-white: #FFFFFF;
  --orange-accent: #F2A65A;
  --orange-soft: #FEF4E8;
  --coral-avoid: #C94A38;
  --coral-soft: #FDEEEC;
  --charcoal: #202B25;
  --grey-secondary: #536159;
  --grey-muted: #68756D;
  --border-subtle: #DCE6DF;
  --border-strong: #C5D6CB;
  --shadow-sm: 0 2px 8px rgba(18, 76, 45, 0.05);
  --shadow-md: 0 12px 28px -6px rgba(18, 76, 45, 0.08), 0 4px 10px -2px rgba(18, 76, 45, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(18, 76, 45, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --max-width: 1180px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--green-deep);
}

:focus-visible {
  outline: 3px solid var(--orange-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-deep);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 76px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-mint {
  background-color: var(--mint-tint);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-white {
  background-color: var(--surface-white);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-deep {
  background-color: var(--green-deep);
  color: #FFFFFF;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--charcoal);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-deep h1,
.section-deep h2,
.section-deep h3 {
  color: #FFFFFF;
}

h1 { font-size: clamp(2.15rem, 4.4vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
h4 { font-size: 1rem; }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--grey-secondary);
  max-width: 64ch;
}

.section-deep .lead {
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-primary);
  background: var(--mint-soft);
  border: 1px solid var(--border-subtle);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-deep .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: #EAF5EC;
}

.section-header {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.muted {
  color: var(--grey-secondary);
}

.small-text {
  font-size: 0.86rem;
  color: var(--grey-muted);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 248, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--green-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-secondary);
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-deep);
  background: var(--mint-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-white);
  color: var(--charcoal);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background: var(--surface-white);
  border-top: 1px solid var(--border-subtle);
  padding: 16px 20px 24px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 11px 8px;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid var(--mint-tint);
}

.mobile-drawer .btn {
  margin-top: 14px;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease, color 0.18s ease;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--green-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--green-deep);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--surface-white);
  color: var(--green-deep);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--mint-soft);
  border-color: var(--green-primary);
  color: var(--green-deep);
}

.btn-accent {
  background: var(--orange-accent);
  color: var(--charcoal);
}

.btn-accent:hover {
  background: #E89643;
  color: var(--charcoal);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.86rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Grids & Cards */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card-mint {
  background: var(--mint-soft);
  border-color: var(--border-strong);
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-primary);
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 1.1rem;
}

/* Hero & Page Header */
.hero {
  padding: 64px 0 72px;
  background: radial-gradient(circle at 85% 15%, rgba(234, 245, 236, 0.95) 0%, rgba(250, 251, 248, 1) 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.page-hero {
  padding: 56px 0 44px;
  background: var(--mint-tint);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
  font-size: 0.86rem;
  color: var(--grey-secondary);
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Mobile-Inspired UI Preview Frames (Inspired by 44-Screen Master Sheet) */
.phone-preview {
  background: var(--surface-white);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: var(--grey-muted);
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--mint-soft);
  color: var(--green-deep);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.summary-banner {
  background: linear-gradient(135deg, var(--green-primary), var(--green-deep));
  color: #FFFFFF;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ring-badge {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: conic-gradient(var(--orange-accent) 0 78%, rgba(255,255,255,0.22) 78% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ring-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 800;
  color: #FFFFFF;
}

.macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.macro-tile {
  background: var(--warm-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.macro-tile strong {
  display: block;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.macro-tile span {
  font-size: 0.74rem;
  color: var(--grey-muted);
}

/* Status Pills (Eat / Limit / Avoid) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
}

.status-eat { background: var(--mint-soft); color: var(--green-deep); }
.status-limit { background: var(--orange-soft); color: #8A4F10; }
.status-avoid { background: var(--coral-soft); color: #9C2E1F; }

.food-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  margin-bottom: 10px;
}

.food-row:last-child {
  margin-bottom: 0;
}

.food-row h4 {
  font-size: 0.94rem;
  margin-bottom: 2px;
}

.food-row p {
  font-size: 0.82rem;
  color: var(--grey-secondary);
}

/* Interactive Tabs & Filter Pills */
.pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pill-btn {
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-white);
  color: var(--grey-secondary);
  cursor: pointer;
  transition: all 0.16s ease;
}

.pill-btn:hover {
  border-color: var(--green-primary);
  color: var(--green-deep);
}

.pill-btn.active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #FFFFFF;
}

.ai-insight-box {
  background: var(--mint-soft);
  border-left: 4px solid var(--green-primary);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin-top: 14px;
}

.disclaimer-box {
  background: var(--orange-soft);
  border: 1px solid #F2D2AE;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.86rem;
  color: #6B3C0A;
  margin-top: 16px;
}

.legal-draft-banner {
  background: var(--orange-soft);
  border: 1px solid var(--orange-accent);
  border-radius: 12px;
  padding: 16px 18px;
  color: #5C3408;
  font-weight: 600;
  margin-bottom: 28px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--mint-tint);
  color: var(--green-deep);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 22px 18px;
  color: var(--grey-secondary);
  font-size: 0.94rem;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--green-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface-white);
  color: var(--charcoal);
  transition: border-color 0.16s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green-primary);
  outline: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--grey-secondary);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green-primary);
  flex-shrink: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background: var(--mint-soft);
  color: var(--green-deep);
  border: 1px solid var(--green-primary);
}

.form-status.error {
  display: block;
  background: var(--coral-soft);
  color: #9C2E1F;
  border: 1px solid #E5A59C;
}

/* Grocery Checklist */
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--mint-tint);
  font-size: 0.92rem;
  cursor: pointer;
}

.check-item:last-child {
  border-bottom: none;
}

.check-item input:checked + span {
  text-decoration: line-through;
  color: var(--grey-muted);
}

/* Prose / Articles / Legal */
.prose {
  max-width: 780px;
}

.prose h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose p {
  margin-bottom: 14px;
  color: var(--grey-secondary);
}

.prose ul, .prose ol {
  margin: 0 0 18px 22px;
  color: var(--grey-secondary);
}

.prose li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--charcoal);
  color: #DCE6DF;
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-title {
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #C7D4CC;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.84rem;
  color: #A5B5AC;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .mobile-menu-btn { display: none; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
