/* DukaanKit — Landing + Tools Shared Styles */
/* Simple, clean, POS-level clarity */
/* Brand: Teal #14B8A6, warm neutrals */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #14B8A6;
  --brand-dark: #0D9488;
  --brand-light: #F0FDFA;
  --brand-subtle: #CCFBF1;
  --text: #1C1917;
  --text-secondary: #57534E;
  --text-muted: #A8A29E;
  --bg: #FAFAF9;
  --white: #FFFFFF;
  --border: #E7E5E4;
  --red: #EF4444;
  --green: #22C55E;
  --orange: #F97316;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

.container { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* NAV */
.nav { background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 50; }
.nav-logo { font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; }
.nav-logo span { color: var(--brand); }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { background: var(--brand); color: white; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }

/* TOOL PAGE */
.tool-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 32px 20px; text-align: center; }
.tool-header .badge { display: inline-block; background: var(--brand-light); color: var(--brand-dark); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.tool-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.5px; }
.tool-header p { font-size: 14px; color: var(--text-secondary); max-width: 480px; margin: 0 auto; }

/* TOOL CARD */
.tool-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 20px auto; max-width: 560px; box-shadow: var(--shadow); }
.tool-card label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.tool-card input, .tool-card select, .tool-card textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px; font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); margin-bottom: 14px; transition: border-color 0.2s; }
.tool-card input:focus, .tool-card select:focus, .tool-card textarea:focus { outline: none; border-color: var(--brand); background: var(--white); }
.tool-card input::placeholder { color: var(--text-muted); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.btn-primary { display: block; width: 100%; padding: 14px; background: var(--brand); color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary { display: block; width: 100%; padding: 12px; background: var(--bg); color: var(--text); border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; margin-top: 8px; }

/* RESULT */
.result { background: var(--brand-light); border: 1px solid var(--brand-subtle); border-radius: var(--radius); padding: 20px; margin-top: 16px; display: none; }
.result.show { display: block; }
.result h3 { font-size: 14px; font-weight: 700; color: var(--brand-dark); margin-bottom: 8px; }
.result-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--brand-subtle); font-size: 14px; }
.result-row:last-child { border-bottom: none; }
.result-row .label { color: var(--text-secondary); }
.result-row .value { font-weight: 700; color: var(--text); }
.result-total { display: flex; justify-content: space-between; padding: 12px 0 0; font-size: 18px; font-weight: 800; color: var(--brand-dark); border-top: 2px solid var(--brand); margin-top: 8px; }

/* CTA BANNER */
.cta-banner { background: var(--white); border: 2px solid var(--brand); border-radius: var(--radius); padding: 24px; margin: 24px auto; max-width: 560px; text-align: center; }
.cta-banner h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.cta-banner p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.cta-banner .btn-primary { max-width: 280px; margin: 0 auto; }

/* HOW IT WORKS */
.how-section { padding: 32px 20px; max-width: 560px; margin: 0 auto; }
.how-section h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; text-align: center; }
.how-step { display: flex; gap: 12px; margin-bottom: 16px; }
.how-num { width: 32px; height: 32px; background: var(--brand); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.how-text h4 { font-size: 14px; font-weight: 700; }
.how-text p { font-size: 13px; color: var(--text-secondary); }

/* TOOLS GRID (for landing page) */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px 20px; max-width: 560px; margin: 0 auto; }
.tool-tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); transition: all 0.2s; box-shadow: var(--shadow); }
.tool-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.tool-tile .icon { font-size: 28px; margin-bottom: 8px; }
.tool-tile h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.tool-tile p { font-size: 12px; color: var(--text-muted); }
.tool-tile .free-tag { display: inline-block; background: var(--green); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-top: 6px; }

/* FOOTER */
.footer { padding: 24px 20px; text-align: center; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 40px; }
.footer a { color: var(--brand); text-decoration: none; }

/* INVOICE PREVIEW */
.invoice-preview { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 16px; font-size: 13px; display: none; }
.invoice-preview.show { display: block; }
.invoice-preview .inv-header { display: flex; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--text); }
.invoice-preview .inv-biz { font-weight: 700; font-size: 16px; }
.invoice-preview .inv-label { font-size: 11px; color: var(--text-muted); }
.invoice-preview table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.invoice-preview th { text-align: left; font-size: 11px; font-weight: 600; color: var(--text-secondary); padding: 6px 0; border-bottom: 1px solid var(--border); }
.invoice-preview td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.invoice-preview .inv-total { text-align: right; font-size: 16px; font-weight: 800; margin-top: 12px; }

/* PRINT — Only show invoice/bill/result, hide everything else */
@media print {
  body { background: white; color: black; }
  .nav, .topbar, .tool-header, .tool-card > h3,
  .tool-card label, .tool-card input, .tool-card select, .tool-card textarea,
  .tool-card .row, .tool-card .item-row, .tool-card .sale-row, .tool-card .exp-row, .tool-card .bill-row,
  .btn-primary, .btn-secondary, .btn-form,
  .cta-banner, .how-section, .footer, .brands, .trust, .products, .stats,
  .test-ride, .store-info, .hero, .form-section, .form-card, .form-urgency,
  .tools-grid, #tools, #features,
  [onclick], button { display: none !important; }

  .tool-card { border: none; box-shadow: none; padding: 0; margin: 0; max-width: 100%; }
  .result { display: block !important; border: none; background: white; padding: 0; margin: 0 0 20px; }
  .result h3 { color: black; }
  .result-row .label, .result-row .value { color: black; }
  .result-total { color: black; border-top-color: black; }

  .invoice-preview { display: block !important; border: none; box-shadow: none; padding: 20px; margin: 0; max-width: 100%; }
  .invoice-preview .inv-header { border-bottom-color: black; }
  .invoice-preview th, .invoice-preview td { border-bottom-color: #ddd; }
  .invoice-preview .inv-total { color: black; }

  #billPreview { display: block !important; border: 1px solid #ddd; margin: 0 auto; }

  #labelOutput { display: block !important; }
  #labelsContainer { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-header h1 { font-size: 22px; }
}
