/* ==========================================================================
   Mahaz Traders — shared stylesheet
   Single file, no external fonts, no third-party requests.
   Palette matches the Dastavez app: deep green + gold.
   ========================================================================== */

:root {
  --green-900: #0a3b24;
  --green-800: #0f5132;
  --green-700: #17603c;
  --green-050: #eef6f1;
  --gold-600: #b8860b;
  --gold-100: #f7ecd0;

  --ink: #16201b;
  --ink-muted: #55665e;
  --line: #dfe7e3;
  --surface: #ffffff;
  --surface-alt: #f6f9f7;
  --focus: #0b6bcb;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1060px;
  --shadow: 0 1px 2px rgba(16, 32, 24, .06), 0 8px 24px rgba(16, 32, 24, .06);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.68;
  /* Avoid layout shift on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------- skip link */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-800);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ header */

.site-header {
  background: var(--green-800);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.2px;
  margin-inline-end: auto;
}

.brand svg { display: block; width: 30px; height: 30px; flex: 0 0 30px; }
.brand .sub { display: block; font-size: 11.5px; font-weight: 500; opacity: .8; letter-spacing: 0; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }

.site-nav a {
  color: #e8f2ec;
  text-decoration: none;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .18); color: #fff; font-weight: 600; }

/* ------------------------------------------------------------------ layout */

main { flex: 1 0 auto; }

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

.narrow { max-width: 780px; margin: 0 auto; }

section { padding: 34px 0; }
section + section { padding-top: 0; }

h1, h2, h3 { line-height: 1.24; letter-spacing: -.35px; margin: 0 0 12px; }
h1 { font-size: 33px; }
h2 { font-size: 23px; margin-top: 34px; }
h3 { font-size: 17.5px; letter-spacing: -.15px; margin-top: 26px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-700); }
a:hover { color: var(--green-900); }

ul, ol { padding-inline-start: 22px; margin: 0 0 14px; }
li { margin: 6px 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 100%);
  color: #fff;
  padding: 52px 0 56px;
}
.hero h1 { font-size: 38px; max-width: 20ch; }
.hero p { font-size: 18px; color: #d7e8de; max-width: 56ch; }
.hero .actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: #fff; color: var(--green-900); }
.btn-primary:hover { background: var(--gold-100); color: var(--green-900); }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn-solid { background: var(--green-800); color: #fff; }
.btn-solid:hover { background: var(--green-900); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--green-800); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--green-900); }

/* ------------------------------------------------------------------ cards */

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card-flat { background: var(--surface-alt); border-color: transparent; }

/* ------------------------------------------------------------------ facts */

.facts { display: grid; grid-template-columns: 210px 1fr; gap: 0; border-top: 1px solid var(--line); margin: 18px 0 0; }
.facts dt, .facts dd {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.facts dt { color: var(--ink-muted); }
.facts dd { font-weight: 500; }

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; font-size: 13px; }
  .facts dd { padding-top: 2px; }
}

/* ------------------------------------------------------------------ notes */

.note {
  border-inline-start: 4px solid var(--gold-600);
  background: var(--gold-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }

.note-info {
  border-inline-start-color: var(--green-700);
  background: var(--green-050);
}

/* --------------------------------------------------------------- callout */

.callout {
  background: var(--green-050);
  border: 1px solid #cfe3d8;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
}
.callout h2 { margin-top: 0; }

/* ----------------------------------------------------------------- tables */

.table-scroll { overflow-x: auto; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
caption { caption-side: top; text-align: start; color: var(--ink-muted); font-size: 13.5px; padding-bottom: 8px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
th { background: var(--surface-alt); font-weight: 600; }

/* ------------------------------------------------------------------ steps */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 46px;
  margin: 0 0 18px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green-800);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { display: block; }

/* -------------------------------------------------------------- app promo */

.app-hero { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.app-icon { width: 84px; height: 84px; border-radius: 20px; display: block; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 22px; }
.shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-900);
  color: #fff;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 10px;
  min-height: 48px;
}
.play-badge:hover { background: #062418; color: #fff; }
.play-badge .lines { display: flex; flex-direction: column; line-height: 1.15; }
.play-badge .lines small { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.play-badge .lines strong { font-size: 15.5px; }

/* ------------------------------------------------------------------ policy */

.policy { padding: 30px 0 60px; }
.policy .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 26px; }
.policy .pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 12.5px;
}
.policy .pill strong { color: var(--ink); }
.policy h2 { font-size: 20px; margin-top: 34px; scroll-margin-top: 80px; }
.policy h3 { font-size: 16px; }
.policy .toc {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 30px;
}
.policy .toc h2 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.policy .toc ol { margin: 0; padding-inline-start: 20px; columns: 2; column-gap: 26px; }
.policy .toc li { font-size: 14.5px; margin: 5px 0; }
.policy .toc a { text-decoration: none; }
.policy .toc a:hover { text-decoration: underline; }
@media (max-width: 620px) { .policy .toc ol { columns: 1; } }

.summary-box {
  background: var(--green-050);
  border: 1px solid #cfe3d8;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 30px;
}
.summary-box h2 { margin: 0 0 10px; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; color: var(--green-800); }
.summary-box ul { margin: 0; }
.summary-box li { font-size: 15.5px; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--green-900);
  color: #c9dbd1;
  padding: 34px 0 26px;
  margin-top: auto;
  font-size: 14.5px;
}
.site-footer a { color: #e5f0ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.footer-grid h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 7px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 26px;
  padding-top: 16px;
  font-size: 13px;
  color: #a9c1b5;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .app-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 44px; }
  .hero h1 { font-size: 29px; }
  .hero p { font-size: 16.5px; }
  h1 { font-size: 27px; }
  h2 { font-size: 20px; }
  section { padding: 26px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .inner { padding: 12px 16px; gap: 10px; }
  .brand { font-size: 15.5px; }
  .brand .sub { display: none; }
  .site-nav a { padding: 8px 10px; font-size: 13.5px; min-height: 38px; }
  .wrap { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero .actions .btn { width: 100%; }
}

/* --------------------------------------------------------------- printing */

@media print {
  .site-header, .site-footer, .skip, .hero .actions, .toc { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .policy .toc { display: none; }
  h2 { page-break-after: avoid; }
}
