/* =====================================================================
   ONE STOP SHOP BD — DESIGN SYSTEM
   Palette: deep teal + turmeric gold + maroon accent (Bangladeshi market
   palette — not the generic cream/terracotta AI default).
   Type: Fraunces (display) / Manrope (body) / JetBrains Mono (money & IDs)
   ===================================================================== */

:root {
  /* ---- Color tokens ---- */
  --teal-900: #0A2E2A;
  --teal-800: #0E3B36;
  --teal-700: #14524A;
  --teal-100: #DCEAE7;
  --gold-500: #D9A441;
  --gold-600: #BE8A2C;
  --gold-100: #FBEED2;
  --maroon-700: #7A1E2B;
  --maroon-600: #93273A;
  --ink-900: #16231F;
  --ink-600: #4B5A55;
  --paper-0: #F3F5F2;
  --paper-100: #EAEEEA;
  --line-200: #CBD8D3;
  --white: #FFFFFF;
  --success: #1E7A4C;
  --danger: #B3261E;

  /* ---- Type ---- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* ---- Layout ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(10,46,42,0.06), 0 8px 24px rgba(10,46,42,0.08);
  --shadow-lift: 0 12px 32px rgba(10,46,42,0.16);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper-0);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; }
p { margin: 0 0 1em; color: var(--ink-600); }
a { color: inherit; text-decoration: none; }

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

/* Numbers/prices/IDs — mono utility face signals "this is data" */
.num, .price, .order-id, code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  text-align: center;
}
.btn-primary { background: var(--gold-500); color: var(--teal-900); }
.btn-primary:hover { background: var(--gold-600); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-outline { background: transparent; border-color: var(--teal-800); color: var(--teal-800); }
.btn-outline:hover { background: var(--teal-800); color: var(--white); }
.btn-dark { background: var(--teal-900); color: var(--white); }
.btn-dark:hover { background: var(--teal-800); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,245,242,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-200);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--teal-900); }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(155deg, var(--teal-800), var(--teal-900)); display: flex; align-items: center; justify-content: center; color: var(--gold-500); font-family: var(--font-display); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--ink-600); }
.nav-links a:hover { color: var(--teal-800); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--maroon-700); background: var(--gold-100); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* Signature element: live profit calculator card */
.calc-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px; border: 1px solid var(--line-200); }
.calc-card .calc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.calc-card .calc-head .tag { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-700); background: var(--teal-100); padding: 4px 10px; border-radius: 999px; }
.calc-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line-200); font-size: 0.95rem; }
.calc-row:last-of-type { border-bottom: none; }
.calc-row span:first-child { color: var(--ink-600); }
.calc-row span:last-child { font-family: var(--font-mono); font-weight: 600; }
.calc-total { margin-top: 14px; background: var(--teal-900); color: var(--white); border-radius: var(--radius-md); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.calc-total .label { font-size: 0.85rem; color: var(--teal-100); }
.calc-total .amount { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--gold-500); }

/* ---- Sections / cards ---- */
.section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-card); }
.card .icon-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-100); color: var(--teal-800); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.2rem; }
.plan-card { position: relative; }
.plan-card.featured { border-color: var(--gold-500); box-shadow: var(--shadow-lift); }
.plan-card .plan-price { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 700; color: var(--teal-900); margin: 10px 0; }
.plan-card .plan-price small { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--ink-600); }
.badge-featured { position: absolute; top: -12px; right: 20px; background: var(--gold-500); color: var(--teal-900); font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

/* ---- Auth pages ---- */
.auth-wrap { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { background: linear-gradient(165deg, var(--teal-900), var(--teal-700)); color: var(--white); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-visual .quote { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.4; max-width: 420px; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 1.9rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 7px; color: var(--teal-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-200); font-family: var(--font-body); font-size: 0.97rem;
  background: var(--white); color: var(--ink-900); transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-800); }
.field .error { color: var(--danger); font-size: 0.82rem; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.85rem; color: var(--ink-600); margin-top: 20px; text-align: center; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 18px; }
.alert-error { background: #FBE9E7; color: var(--danger); border: 1px solid #F3C7C2; }
.alert-success { background: #E6F4EC; color: var(--success); border: 1px solid #BFE3CD; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--ink-600); }

/* ---- Footer ---- */
.site-footer { background: var(--teal-900); color: var(--teal-100); padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.site-footer a { color: var(--teal-100); opacity: .85; display: block; margin-bottom: 10px; font-size: 0.92rem; }
.site-footer a:hover { opacity: 1; color: var(--gold-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; font-size: 0.82rem; opacity: .75; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .field-row { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Visible focus for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }
