/* MapleCheck Styles */
:root {
  --color-bg: #FDF8F3;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F5EDE3;
  --color-text: #2C1810;
  --color-text-secondary: #6B5344;
  --color-text-muted: #9A8578;
  --color-primary: #8B4513;
  --color-primary-light: #A0522D;
  --color-primary-dark: #6B3410;
  --color-accent: #D2691E;
  --color-accent-light: #E8A317;
  --color-success: #2E7D32;
  --color-success-bg: #E8F5E9;
  --color-warning: #E65100;
  --color-warning-bg: #FFF3E0;
  --color-danger: #C62828;
  --color-danger-bg: #FFEBEE;
  --color-border: #D4C4B5;
  --color-border-light: #EDE4DA;
  --shadow-sm: 0 1px 3px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 24, 16, 0.1);
  --shadow-lg: 0 8px 24px rgba(44, 24, 16, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1120px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 100;
  height: var(--header-height);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.logo-icon {
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-list a:hover {
  background: var(--color-surface-alt);
  color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 60px 0 48px;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  border-bottom: 1px solid var(--color-border-light);
}

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

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-surface-alt);
  color: var(--color-primary-dark);
}

/* Bottle Comparison Visual */
.bottle-comparison {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.bottle {
  width: 140px;
  height: 200px;
  border-radius: 12px 12px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 12px;
  position: relative;
  text-align: center;
}

.bottle-real {
  background: linear-gradient(180deg, #E8A317 0%, #C68600 100%);
  border: 3px solid #A07200;
}

.bottle-fake {
  background: linear-gradient(180deg, #8B6914 0%, #6B4F10 100%);
  border: 3px solid #4A3608;
}

.bottle-label {
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
  width: 100%;
}

.bottle-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.bottle-ingredient {
  display: block;
  font-size: 0.55rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
  line-height: 1.3;
}

.bottle-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.badge-real {
  background: var(--color-success);
}

.badge-fake {
  background: var(--color-danger);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section:nth-child(even) {
  background: var(--color-surface);
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
  max-width: 640px;
}

/* Decoder */
.decoder-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.scenario-picker h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text-secondary);
}

.scenario-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scenario-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: all 0.15s;
  width: 100%;
}

.scenario-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-alt);
}

.scenario-btn.active {
  border-color: var(--color-primary);
  background: var(--color-surface-alt);
  box-shadow: var(--shadow-sm);
}

.scenario-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.scenario-label {
  font-weight: 500;
  line-height: 1.3;
}

.decoder-result {
  min-height: 200px;
}

.result-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  margin-bottom: 16px;
}

.result-verdict {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.verdict-good {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.verdict-warn {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.verdict-bad {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.result-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.result-body p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.result-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.verify-list {
  list-style: none;
  margin-bottom: 16px;
}

.verify-list li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.verify-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.result-tip {
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Grading */
.grading-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.grade-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.grade-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 3px solid rgba(0,0,0,0.1);
}

.grade-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.grade-flavor {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: 8px;
}

.grade-use {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.grading-note {
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: 24px;
}

.grading-note h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.grading-note p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Red Flags */
.redflags-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.redflag-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-left: 4px solid var(--color-danger);
  border-radius: var(--radius-md);
  padding: 24px;
}

.redflag-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.redflag-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.redflag-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Checklist */
.checklist-wrapper {
  max-width: 720px;
}

.checklist-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.checklist {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.checklist-group {
  margin-bottom: 28px;
}

.checklist-group:last-child {
  margin-bottom: 0;
}

.checklist-group h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border-light);
  color: var(--color-primary);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  transition: opacity 0.15s;
}

.checklist-item:hover {
  opacity: 0.85;
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checklist-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.4;
}

.checklist-item.checked .checklist-text {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.checklist-score {
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.score-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  display: block;
  margin-bottom: 10px;
}

.score-bar {
  height: 8px;
  background: var(--color-border-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.score-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.score-verdict {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* FAQ */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text);
  background: var(--color-surface);
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--color-surface-alt);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 18px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Storage */
.storage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.storage-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.storage-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.storage-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  margin-top: 32px;
}

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

.footer-about h3,
.footer-links h3 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
}

.footer-links a:hover {
  color: white;
}

.footer-meta {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
}

.footer-meta a {
  color: rgba(255,255,255,0.8);
}

.footer-meta a:hover {
  color: white;
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .checklist-controls,
  .checklist-score,
  .nav-toggle {
    display: none !important;
  }
  .checklist {
    border: 2px solid #333;
  }
  body {
    background: white;
    color: black;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .decoder-layout {
    grid-template-columns: 1fr;
  }
  .grading-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .redflags-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .storage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
    flex-direction: column;
    padding: 12px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-list.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    padding: 40px 0 32px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .bottle-comparison {
    flex-direction: column;
    align-items: center;
  }
  .section {
    padding: 48px 0;
  }
  .section h2 {
    font-size: 1.6rem;
  }
  .grading-grid,
  .redflags-grid,
  .storage-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .checklist-controls {
    flex-direction: column;
  }
  .checklist-controls .btn {
    width: 100%;
  }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
