/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --c-primary: #D97706;
  --c-primary-dark: #B45309;
  --c-primary-light: #FDE68A;
  --c-bg: #FFFBEB;
  --c-surface: #FFFFFF;
  --c-text: #1C1917;
  --c-text-muted: #57534E;
  --c-border: #E7E5E4;
  --c-danger: #DC2626;
  --c-success: #16A34A;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.1);
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1120px;
}
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--c-text); background: var(--c-bg); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--c-primary-dark); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--c-primary); color: #fff; padding: .5rem 1rem; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { top: 1rem; }

/* ===== HEADER ===== */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.25rem; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.1rem; color: var(--c-text); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.main-nav a { font-size: .9rem; font-weight: 500; color: var(--c-text-muted); }
.main-nav a:hover { color: var(--c-primary-dark); }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #92400E 0%, #D97706 50%, #F59E0B 100%); color: #fff; padding: 4rem 0 3.5rem; text-align: center; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero-sub { font-size: 1.1rem; opacity: .92; max-width: 560px; margin: 0 auto 1.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-note { font-size: .85rem; opacity: .75; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1.25rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; cursor: pointer; border: 2px solid transparent; transition: all .15s; font-family: var(--font); }
.btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: var(--c-primary-dark); border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary-light); text-decoration: none; }
.btn-danger { background: transparent; color: var(--c-danger); border-color: var(--c-danger); }
.btn-danger:hover { background: #FEE2E2; text-decoration: none; }
.btn-sm { padding: .4rem .85rem; font-size: .85rem; }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 1.25rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-val { display: block; font-size: 1.5rem; font-weight: 800; color: var(--c-primary-dark); }
.stat-label { font-size: .8rem; color: var(--c-text-muted); }

/* ===== SECTIONS ===== */
.section { padding: 3rem 0; }
.section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: .5rem; }
.section-desc { color: var(--c-text-muted); margin-bottom: 1.5rem; }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--c-surface); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.step { padding: 1.25rem; background: var(--c-bg); border-radius: var(--radius); border: 1px solid var(--c-border); }
.step-num { width: 32px; height: 32px; background: var(--c-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; margin-bottom: .75rem; }
.step h3 { font-size: 1rem; margin-bottom: .4rem; }
.step p { font-size: .9rem; color: var(--c-text-muted); }

/* ===== INVENTORY ===== */
.inventory-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }
.add-item-form { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group label { font-size: .85rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--c-text-muted); }
input[type="text"], input[type="number"], select { padding: .55rem .75rem; border: 1px solid var(--c-border); border-radius: var(--radius); font-size: .95rem; font-family: var(--font); background: var(--c-surface); color: var(--c-text); }
input:focus, select:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }

.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.inventory-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.inventory-table th { text-align: left; padding: .6rem .75rem; background: var(--c-primary-light); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.inventory-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--c-border); }
.inventory-table tr:last-child td { border-bottom: none; }
.inventory-table .numeric { text-align: right; }
.inventory-table .actions { width: 40px; text-align: center; }
.btn-delete { background: none; border: none; color: var(--c-danger); cursor: pointer; font-size: 1.1rem; padding: .2rem; }
.btn-delete:hover { opacity: .7; }
.empty-state { text-align: center; color: var(--c-text-muted); padding: 2rem; font-style: italic; }
.inventory-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ===== SIDEBAR ===== */
.inventory-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 80px; }
.sidebar-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.sidebar-hint { font-size: .8rem; color: var(--c-text-muted); margin-bottom: .75rem; }
.price-guide dt { font-weight: 600; font-size: .85rem; margin-top: .5rem; }
.price-guide dd { font-size: .85rem; color: var(--c-text-muted); }
.mistakes-list { list-style: disc; padding-left: 1.25rem; font-size: .85rem; color: var(--c-text-muted); }
.mistakes-list li { margin-bottom: .4rem; }

/* ===== PRICING ESTIMATOR ===== */
.pricing-section { background: var(--c-surface); }
.estimator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.estimator-controls { display: flex; flex-direction: column; gap: 1rem; }
.estimator-result { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.5rem; min-height: 120px; display: flex; flex-direction: column; justify-content: center; }
.est-placeholder { color: var(--c-text-muted); font-style: italic; }
.est-range { font-size: 2rem; font-weight: 800; color: var(--c-primary-dark); }
.est-label { font-size: .85rem; color: var(--c-text-muted); margin-top: .25rem; }
.est-tip { font-size: .85rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--c-border); }

/* ===== BOOTH LAYOUT ===== */
.layout-tools { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem; }
.layout-tools .form-group { min-width: 200px; }
.booth-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; background: var(--c-border); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 4px; margin-bottom: .75rem; }
.grid-cell { aspect-ratio: 1; background: var(--c-surface); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: .65rem; text-align: center; padding: 2px; cursor: pointer; transition: background .15s; min-height: 48px; }
.grid-cell:hover { background: var(--c-primary-light); }
.grid-cell.filled { background: #FEF3C7; border: 1px solid var(--c-primary); font-weight: 600; }
.grid-cell.front-row { background: #FEF9C3; }
.layout-hint { font-size: .85rem; color: var(--c-text-muted); }

/* ===== CHECKLIST ===== */
.checklist-section { background: var(--c-surface); }
.checklist-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.checklist-group h3 { font-size: 1rem; margin-bottom: .5rem; }
.checklist { list-style: none; }
.checklist li { margin-bottom: .4rem; }
.checklist label { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; cursor: pointer; }
.checklist input[type="checkbox"] { margin-top: .2rem; accent-color: var(--c-primary); }
.checklist-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== SCENARIO ===== */
.scenario-section { background: var(--c-bg); }
.scenario-steps { list-style: decimal; padding-left: 1.5rem; margin: 1rem 0; }
.scenario-steps li { margin-bottom: .75rem; font-size: .95rem; }

/* ===== MISTAKES ===== */
.mistakes-section { background: var(--c-surface); }
.mistakes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.mistake-card { background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius); padding: 1.25rem; }
.mistake-card h3 { font-size: 1rem; color: var(--c-danger); margin-bottom: .4rem; }
.mistake-card p { font-size: .9rem; color: var(--c-text-muted); }

/* ===== FAQ ===== */
.faq-list { margin-top: 1rem; }
.faq-list dt { font-weight: 700; font-size: 1rem; margin-top: 1.25rem; }
.faq-list dd { font-size: .95rem; color: var(--c-text-muted); margin-top: .25rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--c-text); color: #A8A29E; padding: 2rem 0; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: #D6D3D1; }
.site-footer a:hover { color: #fff; }

/* ===== PRINT ===== */
@media print {
  .site-header, .site-footer, .hero, .stats-bar, .inventory-sidebar, .layout-tools, .checklist-actions, .inventory-actions, .btn, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 1rem 0; break-inside: avoid; }
  .checklist-columns { grid-template-columns: 1fr; }
  .inventory-table { font-size: .8rem; }
  .booth-grid { display: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .inventory-layout { grid-template-columns: 1fr; }
  .inventory-sidebar { order: -1; }
  .sidebar-card { position: static; }
  .estimator-grid { grid-template-columns: 1fr; }
  .checklist-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav { gap: .75rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .checklist-columns { grid-template-columns: 1fr; }
  .booth-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
}



/* 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;
}
