/* site.css - Styles for the extension info webpage */
:root {
  --bg: #f6fafb;
  --surface: #ffffff;
  --surface-soft: #f4f7f9;
  --accent: #16a34a;
  --accent-soft: #ecfdf5;
  --text: #0f172a;
  --muted: #617083;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #eef8f1 0%, #e4f5e9 55%, #eef8f1 100%);
  color: var(--text);
}

main {
  position: relative;
  z-index: 1;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav.hidden {
  display: none;
}


.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #34d399);
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.22);
}

.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(22, 163, 74, 0.08);
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  margin-left: auto;
}

.nav-action:hover,
.nav-action:focus-visible {
  background: #15803d;
  transform: translateY(-1px);
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-block;
  object-fit: cover;
}

.nav-links a:hover {
  color: var(--text);
}

/* Header eyebrow: a small uppercase label ABOVE the real headline.
   Kept on its own <p>, separate from the <h1>, so it can never be
   overridden by .site-header h1's specificity (a class-only selector
   like .header-label always loses to .site-header h1 on the same
   element — that was silently breaking the eyebrow style before). */
.header-label {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-header {
  max-width: 100%;
  margin: 0;
  padding: 60px 18px;
  /* min-height ensures the banner has a consistent, deliberate shape
     regardless of how much text sits on top of it — without this, a
     short subtitle would make the header (and therefore the visible
     slice of the photo) shrink unpredictably between pages. */
  min-height: 380px;
  box-sizing: border-box;
  /* Light green fade (same tone as the page background) layered over the
     photo — opaque enough near the left/text side to guarantee contrast,
     fading out toward the right where the grocery basket sits. */
  background-image:
    linear-gradient(100deg, rgba(238, 248, 241, 0.97) 0%, rgba(232, 247, 237, 0.88) 46%, rgba(232, 247, 237, 0.5) 100%),
    url('assets/header-groceries.jpg');
  background-size: cover;
  /* Image is a wide 2.5:1 banner with the basket sitting right-of-center
     and low in the frame — biasing the crop right and slightly down
     keeps the basket in view instead of centering on empty blurred
     background, which is what a plain "center" position would do here. */
  background-position: 72% 62%;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 12px;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  max-width: 760px;
}

.header-subtitle {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  max-width: 580px;
  line-height: 1.6;
}

.page-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  max-width: 100%;
}

.sidebar {
  padding: 32px 18px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.4);
  position: sticky;
  /* Matches the ~64px rendered height of .site-nav (14px top/bottom
     padding + 38px logo mark), so the sidebar stops flush below the nav
     bar instead of tucking a sliver of itself underneath it. */
  top: 64px;
  height: auto;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-nav {
  display: grid;
  gap: 24px;
}

.nav-section h4 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.nav-section a {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-section a:hover {
  color: var(--text);
  background: rgba(22, 163, 74, 0.08);
}

.main-content {
  padding: 32px 18px;
  max-width: 100%;
}

.section-label {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.spotlight {
  margin-bottom: 42px;
  scroll-margin-top: 100px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.spotlight-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 16px;
  color: white;
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(22, 163, 74, 0.18);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-header h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.spotlight-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card-footer {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
}

.site-header .tag {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}


.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #34d399);
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.18);
}

/* Sign Up / Sign In / Sign Out button group above the health form.
   Sign Up (new account) keeps the solid, primary-styled cta-button.
   Sign In (existing account) uses a lighter, secondary look so the two
   actions are visually distinguishable rather than identical buttons. */
.account-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 20px 0 4px;
}

.account-panel .cta-button {
  margin-top: 0;
}

.cta-button--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cta-button--secondary:hover,
.cta-button--secondary:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.account-panel .save-btn {
  margin-top: 0;
}

.health-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(22, 163, 74, 0.08);
  background: linear-gradient(180deg, rgba(236,253,245,0.95), rgba(255,255,255,0.95));
  margin-top: 20px;
  box-shadow: 0 8px 30px rgba(22,163,74,0.06);
}

.health-panel label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

/* All fieldsets on this page get the same clean reset — previously only
   .health-conditions had this, so .health-profile, .health-allergies,
   .health-goals, and .dietary-preferences were silently showing the
   browser's default gray fieldset border/padding instead. */
.health-panel fieldset {
  border: none;
  padding: 0;
  margin: 0 0 20px 0;
}

/* Chip-style toggle for Health conditions / Dietary preferences, replacing
   the plain checkbox list. Each chip is a real checkbox + label underneath
   (so health.js's existing input[name="condition"/"diet"] queries keep
   working unchanged) — only the visual presentation changes. */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-group .chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip-group .chip:hover {
  border-color: var(--accent);
}

/* The actual checkbox stays in the DOM (keeps it a real, accessible form
   control) but is visually hidden — the label itself is the clickable
   pill, styled based on the checkbox's checked state via :has(). */
.chip-group .chip input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chip-group .chip .chip-check {
  display: none;
}

.chip-group .chip:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.chip-group .chip:has(input:checked) .chip-check {
  display: inline;
}

.chip-group .chip:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.health-panel legend {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  padding: 0;
  margin-bottom: 10px;
}

.health-panel label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.health-panel input[type="number"],
.health-panel select,
.health-panel textarea {
  width: 100%;
  min-height: 48px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
}

.health-panel textarea {
  min-height: 100px;
  resize: vertical;
}

.health-panel input[type="number"]:focus,
.health-panel select:focus,
.health-panel textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.health-note {
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.7);
  margin: 0;
}

.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background-color: #16a34a;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.save-btn:hover {
  background-color: #15803d;
  transform: translateY(-1px);
}

.save-btn:active {
  background-color: #166534;
}

.save-btn:focus-visible {
  outline: 2px solid #166534;
  outline-offset: 2px;
}

.save-btn:disabled {
  background-color: rgba(22, 163, 74, 0.35);
  cursor: not-allowed;
}

.health-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tag {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.site-footer small {
  color: var(--muted);
}

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  scroll-margin-top: 75px;
}

section h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

section p,
section li {
  color: black;
  line-height: 1.75;
}

.features-grid,
.stores-grid {
  display: grid;
  gap: 16px;
}

#features {
  text-align: center;
}

#features h2 {
  margin-left: auto;
  margin-right: auto;
}

#features > p {
  max-width: 520px;
  margin: 0 auto;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 28px;
  text-align: left;
}

.feature-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(22, 163, 74, 0.12);
  background: var(--accent-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.12);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.plan-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(22, 163, 74, 0.12);
  background: var(--accent-soft);
}

.plan-card-premium {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.35);
}

.plan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-card-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.plan-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
}

.plan-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.plan-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.plan-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-feature-list i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.example-panel {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.product-sample,
.overlay-sample {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.6), #ffffff 60px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.product-sample-top,
.overlay-sample-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
}

.sample-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.product-sample h3,
.overlay-sample h3 {
  margin: 0;
  font-size: 1.15rem;
}

.sample-meta,
.sample-copy {
  margin: 0;
  color: var(--muted);
}

.sample-copy {
  margin-top: 10px;
}

.nutri-badge,
.nutri-pill,
.overlay-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  min-width: 48px;
  min-height: 48px;
  font-weight: 800;
  color: white;
  font-size: 1rem;
  padding: 0 14px;
  background-color: #16a34a;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(23, 37, 29, 0.16), 0 0 0 4px rgba(29, 107, 69, 0.1);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nutri-badge:hover,
.nutri-pill:hover,
.overlay-grade:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 12px 22px rgba(23, 37, 29, 0.2), 0 0 0 5px rgba(29, 107, 69, 0.14);
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.nutri-pill {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(22, 163, 74, 0.1);
  color: var(--accent);
  border-color: rgba(29, 107, 69, 0.2);
  text-shadow: none;
}

.badge-a { background: linear-gradient(135deg, #16a34a, #3fbd68); color: #ffffff; box-shadow: 0 8px 18px rgba(22, 163, 74, 0.24), 0 0 0 4px rgba(22, 163, 74, 0.12); }
.badge-b { background: linear-gradient(135deg, #65a30d, #8fbd35); color: #ffffff; box-shadow: 0 8px 18px rgba(101, 163, 13, 0.24), 0 0 0 4px rgba(101, 163, 13, 0.12); }
.badge-c { background: linear-gradient(135deg, #f59e0b, #f8c24c); color: #17251d; text-shadow: none; box-shadow: 0 8px 18px rgba(245, 158, 11, 0.24), 0 0 0 4px rgba(245, 158, 11, 0.12); }
.badge-d { background: linear-gradient(135deg, #f97316, #fb9a54); color: #ffffff; box-shadow: 0 8px 18px rgba(249, 115, 22, 0.24), 0 0 0 4px rgba(249, 115, 22, 0.12); }
.badge-e { background: linear-gradient(135deg, #ef4444, #f47777); color: #ffffff; box-shadow: 0 8px 18px rgba(239, 68, 68, 0.24), 0 0 0 4px rgba(239, 68, 68, 0.12); }

.overlay-grade {
  font-size: 1rem;
  min-width: 56px;
  height: 56px;
}

.nutrient-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.nutrient-item {
  display: grid;
  grid-template-columns: 70px 60px 1fr;
  align-items: center;
  gap: 12px;
}

.nutrient-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.nutrient-item strong {
  color: var(--text);
  font-size: 0.98rem;
}

.nutrient-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.nutrient-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.9), rgba(74, 222, 128, 0.9));
}

/* Dashboard example section (#dashboard) — two chart cards showing the
   same shape of data as the extension's own dashboard.html: a basket
   quality donut and a nutrient trends line chart. Built on the same
   soft-green card treatment as .product-sample / .overlay-sample so it
   reads as part of the same page, not a bolted-on widget. */
.dashboard-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.chart-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.6), #ffffff 60px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.chart-card h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.chart-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.chart-wrap {
  position: relative;
  height: 200px;
}

.chart-wrap--donut {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.chart-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
}

.feature-card i {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(22, 163, 74, 0.15);
  color: var(--accent);
  font-size: 1.25rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 1rem;
}

.install-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.install-steps li {
  position: relative;
  padding: 18px 20px 18px 58px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.6), #ffffff 60px);
}

.install-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.15);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.install-steps strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.stores-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 20px;
}

.stores-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.6), #ffffff 60px);
  color: var(--text);
  font-weight: 700;
}

.stores-grid i {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--accent);
}

/* FAQ section — was entirely missing from this file even though
   index.html's FAQ items use .faq-item, so they were rendering as bare
   unstyled text. Matches the card language used elsewhere on the page. */
.faq-item {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.6), #ffffff 60px);
  margin-bottom: 14px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--accent);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* Team section (#team) — supervisor / contributor cards. Same soft-green
   card language as .feature-card, with an initials avatar like the nav's
   .nav-avatar but square, per the crisp-edge rule below. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(22, 163, 74, 0.12);
  background: var(--accent-soft);
}

.team-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(22, 163, 74, 0.18);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
}

.team-card h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.team-role {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.team-affiliation {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Supervisor card gets a slightly stronger border + solid avatar fill so
   it reads as distinct from the student dev-team cards below it, without
   introducing a new color. */
.team-card-supervisor {
  border: 1px solid rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.1);
}

.team-card-supervisor .team-avatar {
  background: var(--accent);
  color: #ffffff;
}

.appreciate-box {
  display: grid;
  gap: 18px;
  grid-template-columns: 64px 1fr;
  align-items: center;
  padding: 20px;
  border-radius: 22px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.12);
}

.appreciate-box i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(22, 163, 74, 0.18);
  color: var(--accent);
  font-size: 1.6rem;
}

.appreciate-box h3 {
  margin: 0 0 6px;
}

.appreciate-box p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-footer {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0 18px;
  color: var(--muted);
  text-align: center;
}

.footer-partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.footer-partners-label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-partner-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: grayscale(15%);
  opacity: 0.9;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.footer-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

code {
  background: #f1f5f9;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 0.95em;
}

/* --- Square / crisp override (matches extension/popup.html's look) ---
   popup-theme-override.css zeroes every corner in the popup except the
   round avatar photo. Mirrored here: every card, button, pill, and badge
   goes square-edged; only .nav-avatar (an actual photo) stays circular. */
.logo-mark,
.logo-badge,
.nav-action,
.nav-section a,
.spotlight-card,
.card-tag,
.cta-button,
.cta-button--secondary,
.health-panel,
.health-panel input[type="number"],
.health-panel select,
.health-panel textarea,
.chip-group .chip,
.save-btn,
section,
.product-sample,
.overlay-sample,
.chart-card,
.nutri-badge,
.nutri-pill,
.overlay-grade,
.feature-card,
.feature-card i,
.plan-card,
.plan-card-tag,
.install-steps li,
.install-steps li::before,
.stores-grid li,
.stores-grid i,
.faq-item,
.team-card,
.team-card-supervisor,
.team-avatar,
.appreciate-box,
.appreciate-box i,
code {
  border-radius: 0 !important;
}

@media (max-width: 900px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }

  /* Previously `display: none` here removed ALL section navigation on
     tablet/mobile, since the top nav no longer carries those links
     either (they moved into the sidebar). Converted to a horizontal,
     non-sticky scrolling strip instead, so navigation still exists. */
  .sidebar {
    position: static;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 14px 18px;
  }

  .nav-section h4 {
    display: none;
  }

  .nav-section ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-section a {
    white-space: nowrap;
    padding: 8px 12px;
    background: var(--surface-soft);
  }

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

@media (max-width: 700px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-header {
    padding: 40px 18px 30px;
    min-height: 280px;
    background-position: 65% 55%;
  }

  .site-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }

  .appreciate-box {
    grid-template-columns: 1fr;
  }

  .account-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .spotlight-card {
    padding: 20px;
  }
}

:root {
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --surface-soft: #e9f3e5;
  --accent: #1d6b45;
  --accent-soft: #e4f1df;
  --text: #17251d;
  --muted: #607064;
  --border: rgba(23, 37, 29, 0.14);
  --shadow: 0 18px 45px rgba(31, 55, 39, 0.09);
  --coral: #e36f4f;
  --sun: #f3b84b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 8% 4%, rgba(227, 111, 79, 0.12), transparent 24rem),
    radial-gradient(circle at 92% 30%, rgba(29, 107, 69, 0.1), transparent 28rem),
    var(--bg);
  color: var(--text);
}

.site-nav {
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  padding: 16px 28px;
}

.nav-logo {
  color: var(--text);
  letter-spacing: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 4px 4px 0 var(--sun);
}

.logo-badge {
  border-radius: 4px;
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-action,
.cta-button,
.save-btn {
  border-radius: 6px;
  background: var(--accent);
  box-shadow: 3px 3px 0 rgba(227, 111, 79, 0.45);
}

.nav-action:hover,
.nav-action:focus-visible,
.save-btn:hover,
.cta-button:hover {
  background: #155638;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(227, 111, 79, 0.45);
}

.site-header {
  min-height: 430px;
  padding: clamp(56px, 9vw, 112px) max(28px, calc((100% - 1124px) / 2));
  background-image:
    linear-gradient(90deg, rgba(245, 241, 232, 0.98) 0%, rgba(245, 241, 232, 0.9) 45%, rgba(245, 241, 232, 0.25) 100%),
    url('assets/header-groceries.jpg');
  border-bottom: 1px solid var(--border);
}

.header-label,
.sample-label,
.section-label {
  color: var(--coral);
}

.site-header h1 {
  max-width: 700px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.header-subtitle {
  max-width: 560px;
  color: #405247;
  font-weight: 600;
}

.page-wrapper {
  max-width: 1180px;
  margin: 0 auto;
}

.sidebar {
  padding: 42px 20px 42px 0;
  border-right: 1px solid var(--border);
  background: transparent;
}

.nav-section h4 {
  color: var(--coral);
}

.nav-section a {
  border-radius: 4px;
  color: var(--muted);
}

.nav-section a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.main-content {
  padding: 42px 0 42px 42px;
}

section {
  border-radius: 8px;
  border-color: var(--border);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}

section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--accent);
}

section p,
section li {
  color: #405247;
}

.feature-card,
.plan-card,
.team-card,
.chart-card,
.install-steps li,
.stores-grid li,
.faq-item,
.product-sample,
.overlay-sample {
  border-radius: 6px;
  border-color: rgba(29, 107, 69, 0.18);
  background: #f9f7ef;
}

.feature-card:hover,
.spotlight-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
}

.feature-card i,
.stores-grid i,
.team-avatar,
.appreciate-box i {
  border-radius: 6px;
  background: #dcebd5;
  color: var(--accent);
}

.feature-card i {
  color: var(--coral);
}

.plan-card-premium,
.team-card-supervisor {
  border-color: rgba(227, 111, 79, 0.45);
  background: #fff0e9;
}

.plan-card-tag {
  border-radius: 4px;
  background: var(--coral);
}

.health-panel {
  border-radius: 8px;
  border-color: rgba(29, 107, 69, 0.2);
  background: #f9f7ef;
  box-shadow: var(--shadow);
}

.cta-button--secondary {
  border-radius: 6px;
  border-color: var(--accent);
  color: var(--accent);
}

.cta-button--secondary:hover,
.cta-button--secondary:focus-visible {
  background: var(--accent-soft);
}

.health-panel input[type="number"],
.health-panel select,
.health-panel textarea {
  border-radius: 5px;
  border-color: var(--border);
  background: #fffdf8;
  font-family: inherit;
}

.chip-group .chip {
  border-radius: 5px;
  border-color: var(--border);
}

.chip-group .chip:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
}

.site-footer {
  max-width: 1180px;
  margin-bottom: 48px;
}

code {
  border-radius: 4px;
  background: #e7eee2;
  color: var(--accent);
}

@media (max-width: 900px) {
  .sidebar {
    padding: 14px 0;
    border-right: none;
  }

  .main-content {
    padding: 28px 0;
  }
}

@media (max-width: 700px) {
  .nav-inner {
    padding: 14px 18px;
  }

  .site-header {
    min-height: 360px;
    padding: 56px 18px 42px;
    background-position: 68% 55%;
  }

  .site-header h1 {
    font-size: clamp(2.45rem, 13vw, 3.8rem);
  }

  .main-content {
    padding: 18px 0 28px;
  }

  section {
    padding: 24px 20px;
  }
}

.main-content {
  display: flex;
  flex-direction: column;
}

#premium {
  order: 8;
}

#team {
  order: 9;
}