/* =========================================================================
   Ihsan Land ERP — Marketing landing (demo.ihsanland.com)
   © Ihsan Land for programming | Eng. Iyad Abu Haibeh
   -------------------------------------------------------------------------
   Standalone stylesheet — deliberately NOT sharing style.css. Signup and
   admin pages keep their utilitarian look; the marketing page owns a
   richer visual language (bigger type, gradients, comparison tables).
   ========================================================================= */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Segoe UI", "Tahoma", "Arial", sans-serif;
  color: #1f1a10;
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #8a6d2c; }

/* Tokens */
:root {
  --gold-dark:  #8a6d2c;
  --gold:       #b58a3d;
  --gold-soft:  #f3e6c4;
  --gold-bg:    #fbf6e8;
  --green-dark: #2f5d1e;
  --green:      #4a8b30;
  --ink:        #1f1a10;
  --ink-soft:   #4a3f2a;
  --ink-mute:   #6e6047;
  --line:       #e8dcc0;
  --cream:      #f7f2e6;
}

/* -----------------------------------------------------------------------
   Layout primitives
   ----------------------------------------------------------------------- */
.mkt-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mkt-section { padding: 88px 0; }
.mkt-section.alt { background: var(--cream); }
.mkt-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-dark);
  padding: 5px 12px; border: 1px solid var(--gold-soft);
  border-radius: 999px; background: #fff;
  margin-bottom: 18px;
}
.mkt-h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15; color: var(--ink);
  margin: 0 0 20px; font-weight: 800; letter-spacing: -0.5px;
}
.mkt-h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.2; color: var(--ink);
  margin: 0 0 14px; font-weight: 800; letter-spacing: -0.3px;
}
.mkt-h3 { font-size: 18px; color: var(--gold-dark); margin: 0 0 8px; font-weight: 700; }
.mkt-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft); line-height: 1.65;
  margin: 0 0 24px;
}
.mkt-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }

/* -----------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------- */
.mkt-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.mkt-header .row {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px; max-width: 1160px; margin: 0 auto;
}
.mkt-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  margin-inline-end: auto;
  line-height: 1;
}
/* Ihsan Land wordmark — matches the visual weight of the logo on
   ihsanland.com itself (~40px). Adjust height and everything scales
   proportionally because width is auto. */
.mkt-brand__logo {
  display: block;
  height: 40px; width: auto;
  max-width: 220px;
}
/* "ERP" pill next to the wordmark — product qualifier, not a co-brand.
   Sized to sit alongside the wordmark comfortably. */
.mkt-brand__erp {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 4px 9px 3px;
  background: var(--gold-bg);
  border-radius: 5px;
  border: 1px solid var(--gold-soft);
}
.mkt-nav { display: flex; gap: 4px; }
.mkt-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 14px; padding: 8px 12px; border-radius: 6px;
  transition: color 0.15s;
}
.mkt-nav a:hover { color: var(--gold-dark); background: var(--gold-bg); }
.mkt-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: var(--green); color: #fff;
  text-decoration: none; border-radius: 6px; font-weight: 700; font-size: 14px;
  transition: background 0.15s, transform 0.1s;
}
.mkt-cta:hover { background: var(--green-dark); }
.mkt-cta:active { transform: translateY(1px); }
.mkt-cta.big {
  font-size: 16px; padding: 15px 32px; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(74, 139, 48, 0.25);
}
.mkt-cta.ghost {
  background: #fff; color: var(--ink-soft);
  border: 1px solid var(--line);
}
.mkt-cta.ghost:hover { background: var(--gold-bg); color: var(--gold-dark); }

/* -----------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */
.mkt-hero {
  padding: 84px 0 100px;
  background: linear-gradient(180deg, var(--gold-bg) 0%, #fff 65%);
  border-bottom: 1px solid var(--line);
}
.mkt-hero .row {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 60px; align-items: center;
}
.mkt-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.mkt-hero-note {
  margin-top: 20px; font-size: 13px; color: var(--ink-mute);
  display: flex; gap: 22px; flex-wrap: wrap;
}
.mkt-hero-note span::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* Hero visual — fake dashboard mock so a visitor sees "a real thing" */
.mkt-hero-mock {
  background: #fff; border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(138,109,44,0.15);
  overflow: hidden; transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
}
.mkt-hero-mock .mock-topbar {
  background: linear-gradient(90deg, #b58a3d, #a16207);
  padding: 10px 14px; color: #fff;
  display: flex; align-items: center; gap: 10px; font-size: 12px;
}
.mkt-hero-mock .mock-topbar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.mkt-hero-mock .mock-body { padding: 18px; }
.mkt-hero-mock .mock-h { font-size: 14px; color: var(--ink-soft); font-weight: 700; margin: 0 0 12px; }
.mkt-hero-mock .mock-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.mkt-hero-mock .mock-card {
  background: var(--gold-bg); border-radius: 6px;
  padding: 10px 12px; font-size: 11px;
}
.mkt-hero-mock .mock-card .label { color: var(--ink-mute); font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; }
.mkt-hero-mock .mock-card .val { color: var(--gold-dark); font-size: 16px; font-weight: 700; margin-top: 2px; }
.mkt-hero-mock .mock-card.g .val { color: var(--green); }
.mkt-hero-mock .mock-card.r .val { color: #b91c1c; }
.mkt-hero-mock .mock-row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 11px; color: var(--ink-soft); }

/* -----------------------------------------------------------------------
   Value props
   ----------------------------------------------------------------------- */
.mkt-values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.mkt-value {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 26px 24px; text-align: center;
}
.mkt-value .icon {
  font-size: 34px; color: var(--gold); line-height: 1;
  display: inline-flex; width: 60px; height: 60px;
  align-items: center; justify-content: center;
  background: var(--gold-bg); border-radius: 50%;
  margin-bottom: 14px;
}
.mkt-value h3 { color: var(--gold-dark); font-size: 18px; margin: 0 0 8px; }
.mkt-value p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* -----------------------------------------------------------------------
   Modules grid
   ----------------------------------------------------------------------- */
.mkt-modules {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.mkt-module {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 20px; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.mkt-module:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(138,109,44,0.12);
  border-color: var(--gold-soft);
}
.mkt-module .icon { font-size: 24px; margin-bottom: 10px; display: block; }
.mkt-module h3 { color: var(--gold-dark); font-size: 15px; margin: 0 0 4px; }
.mkt-module p { color: var(--ink-mute); font-size: 12px; margin: 0; line-height: 1.55; }

/* -----------------------------------------------------------------------
   How it works
   ----------------------------------------------------------------------- */
.mkt-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative;
}
.mkt-step {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 32px 26px; text-align: center; position: relative;
}
.mkt-step .num {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  box-shadow: 0 4px 12px rgba(138,109,44,0.3);
}
.mkt-step h3 { color: var(--gold-dark); font-size: 20px; margin: 12px 0 8px; }
.mkt-step p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* -----------------------------------------------------------------------
   Comparison table
   ----------------------------------------------------------------------- */
.mkt-compare-wrap { overflow-x: auto; }
.mkt-compare {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
  font-size: 14px;
}
.mkt-compare thead th {
  padding: 16px 18px; text-align: left;
  background: var(--gold-bg); color: var(--gold-dark); font-weight: 700;
  border-bottom: 2px solid var(--gold-soft);
}
.mkt-compare thead th.us {
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  color: #fff; text-align: center;
}
.mkt-compare tbody td {
  padding: 13px 18px; border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13px;
}
.mkt-compare tbody td:first-child { font-weight: 600; color: var(--ink); }
.mkt-compare tbody td.us {
  background: var(--gold-bg); text-align: center;
  border-left: 2px solid var(--gold); border-right: 2px solid var(--gold);
}
.mkt-compare tbody tr:last-child td.us {
  border-bottom: 2px solid var(--gold);
}
.mkt-compare .yes { color: var(--green); font-weight: 700; }
.mkt-compare .no  { color: #b91c1c; font-weight: 700; }
.mkt-compare .maybe { color: #d97706; font-weight: 700; }

/* -----------------------------------------------------------------------
   Compliance section
   ----------------------------------------------------------------------- */
.mkt-compliance {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.mkt-comp {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 26px 24px;
  border-top: 4px solid var(--gold);
}
.mkt-comp .flag { font-size: 32px; line-height: 1; margin-bottom: 10px; }
.mkt-comp h3 { color: var(--gold-dark); font-size: 17px; margin: 0 0 8px; }
.mkt-comp p { color: var(--ink-soft); font-size: 13px; margin: 0 0 12px; line-height: 1.6; }
.mkt-comp ul { padding-inline-start: 20px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.mkt-comp ul li { margin: 4px 0; }

/* -----------------------------------------------------------------------
   Pricing (the ownership model — no per-user pricing)
   ----------------------------------------------------------------------- */
.mkt-pricing {
  background: #fff; border: 2px solid var(--gold);
  border-radius: 12px; padding: 40px 44px;
  max-width: 780px; margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 50px rgba(138,109,44,0.15);
}
.mkt-pricing .badge {
  display: inline-block; padding: 6px 14px;
  background: var(--gold); color: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 16px;
}
.mkt-pricing h2 { color: var(--ink); font-size: 30px; margin: 0 0 14px; }
.mkt-pricing p.lead { color: var(--ink-soft); font-size: 16px; margin: 0 0 26px; }
.mkt-pricing .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left;
  margin: 30px 0;
}
.mkt-pricing .item {
  padding: 16px 18px; background: var(--gold-bg); border-radius: 8px;
}
.mkt-pricing .item strong { color: var(--gold-dark); display: block; margin-bottom: 4px; font-size: 14px; }
.mkt-pricing .item span { color: var(--ink-soft); font-size: 12px; }

/* -----------------------------------------------------------------------
   FAQ (native <details>)
   ----------------------------------------------------------------------- */
.mkt-faq { max-width: 780px; margin: 0 auto; }
.mkt-faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 0; margin-bottom: 10px; overflow: hidden;
  transition: box-shadow 0.15s;
}
.mkt-faq details[open] { box-shadow: 0 6px 18px rgba(138,109,44,0.08); }
.mkt-faq summary {
  padding: 16px 22px;
  cursor: pointer; list-style: none;
  color: var(--ink); font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.mkt-faq summary::-webkit-details-marker { display: none; }
.mkt-faq summary::after {
  content: "+"; color: var(--gold); font-size: 24px; font-weight: 400; line-height: 1;
  transition: transform 0.2s;
}
.mkt-faq details[open] summary::after { transform: rotate(45deg); }
.mkt-faq .a {
  padding: 0 22px 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.7;
}

/* -----------------------------------------------------------------------
   Final CTA banner
   ----------------------------------------------------------------------- */
.mkt-final {
  background: linear-gradient(120deg, var(--gold-dark), var(--gold));
  padding: 80px 24px;
  color: #fff; text-align: center;
}
.mkt-final h2 { color: #fff; font-size: 36px; margin: 0 0 12px; font-weight: 800; }
.mkt-final p { color: rgba(255,255,255,0.9); font-size: 17px; margin: 0 0 30px; }
.mkt-final .mkt-cta {
  background: #fff; color: var(--gold-dark);
  padding: 16px 36px; font-size: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.mkt-final .mkt-cta:hover { background: var(--gold-bg); }

/* -----------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */
.mkt-footer {
  background: #1f1a10; color: #d1c4a0;
  padding: 50px 24px 22px;
}
.mkt-footer .row {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.mkt-footer h4 { color: #f3e6c4; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 12px; }
.mkt-footer a { color: #d1c4a0; text-decoration: none; display: block; padding: 4px 0; font-size: 13px; }
.mkt-footer a:hover { color: #fff; }
.mkt-footer .brand {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.mkt-footer .brand__logo {
  display: block;
  height: 34px; width: auto;
  max-width: 180px;
  /* Green wordmark on transparent PNG — the dark footer background needs
     a slight brightness lift so the logo doesn't look muddy. */
  filter: brightness(1.1);
}
.mkt-footer .brand__erp {
  color: #d8b06b;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  background: rgba(216,176,107,0.08);
  border: 1px solid rgba(216,176,107,0.25);
  border-radius: 4px;
}
.mkt-footer .about { color: #93856b; font-size: 13px; line-height: 1.7; }
.mkt-footer .bottom {
  max-width: 1160px; margin: 40px auto 0; padding-top: 22px;
  border-top: 1px solid #3a2f1c;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 12px; color: #93856b;
}

/* -----------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */
@media (max-width: 960px) {
  .mkt-hero .row      { grid-template-columns: 1fr; gap: 40px; }
  .mkt-hero-mock      { transform: none; }
  .mkt-values         { grid-template-columns: 1fr; }
  .mkt-modules        { grid-template-columns: repeat(2, 1fr); }
  .mkt-steps          { grid-template-columns: 1fr; gap: 40px; }
  .mkt-compliance     { grid-template-columns: 1fr; }
  .mkt-pricing .grid  { grid-template-columns: 1fr; }
  .mkt-footer .row    { grid-template-columns: 1fr 1fr; }
  .mkt-nav            { display: none; }
  .mkt-section        { padding: 60px 0; }
}
@media (max-width: 540px) {
  .mkt-modules        { grid-template-columns: 1fr; }
  .mkt-footer .row    { grid-template-columns: 1fr; }
  .mkt-final h2       { font-size: 28px; }
  .mkt-pricing        { padding: 28px 22px; }
}

/* -----------------------------------------------------------------------
   RTL (Arabic) overrides — applied when <html dir="rtl">
   Most of the layout uses flex/grid + logical properties so it flips
   naturally. Only the bits that explicitly used left/right or text-align
   need to be told about the direction change.
   ----------------------------------------------------------------------- */
[dir="rtl"] {
  font-family: "Segoe UI", "Tahoma", "Cairo", "Amiri", sans-serif;
}
[dir="rtl"] .mkt-h1,
[dir="rtl"] .mkt-h2,
[dir="rtl"] .mkt-lead {
  letter-spacing: 0;    /* Arabic doesn't want negative letter-spacing */
}
[dir="rtl"] .mkt-compare thead th,
[dir="rtl"] .mkt-compare tbody td { text-align: right; }
[dir="rtl"] .mkt-compare thead th.us,
[dir="rtl"] .mkt-compare tbody td.us { text-align: center; }
/* Mirror the perspective transform on the hero mock so it tilts the other way */
[dir="rtl"] .mkt-hero-mock { transform: perspective(1400px) rotateY(3deg) rotateX(2deg); }
@media (max-width: 960px) {
  [dir="rtl"] .mkt-hero-mock { transform: none; }
}
/* Native <details> summary marker: put the +/× on the far end in RTL too */
[dir="rtl"] .mkt-faq summary::after { margin-inline-start: auto; }
