/* Eqaat landing page. Colours come from tokens.css, a copy of docs/design/tokens.css (check.mjs keeps them equal).
   Rose (--brand-accent) is decoration only. */

@font-face {
  font-family: 'Kufam';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/kufam-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Kufam';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/kufam-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-arabic-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

:root {
  --display: 'Kufam', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible,
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.on-dark a:focus-visible,
.on-dark .btn:focus-visible { outline-color: var(--focus-on-dark); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--primary); line-height: 1.45; margin: 0; }
h1 { font-size: clamp(2rem, 5.5vw, 3rem); text-wrap: balance; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 4vw, 2.125rem); }
h3 { font-size: 1.1875rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--primary); color: var(--surface); padding: 10px 16px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; }

/* Rhythm tick: the brand's decorative rose stroke, never a signal on its own. */
.tick::before {
  content: '';
  display: block;
  width: 28px; height: 4px; border-radius: 2px;
  background: var(--brand-accent);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 12px;
  font: 600 1rem/1.4 var(--body); text-decoration: none; text-align: center;
  border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--text-on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--surface-tint); }
.btn-light { background: var(--bg); color: var(--primary); }
.btn-light:hover { background: var(--surface); }
.btn-outline-light { color: var(--text-on-dark); border-color: var(--text-on-dark-muted); }
.btn-outline-light:hover { background: var(--dark-surface); }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-header .logo { display: block; padding: 16px; margin-inline-start: -16px; }
.site-header .logo img { width: 140px; }
.site-nav { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 0.9375rem; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-nav a:not(.btn):hover { color: var(--link); text-decoration: underline; }
.site-nav .btn { min-height: 44px; padding: 8px 16px; white-space: nowrap; }
/* The logo never shrinks, and stays at the brand minimum of 120 px on phones. */
.site-header .logo { flex: none; }
@media (max-width: 720px) {
  .site-nav a.nav-section { display: none; }
  .site-header .logo img { width: 120px; }
  .site-nav { gap: 12px; }
}

/* Hero */
.hero {
  background: var(--bg) url('assets/rhythm-tint6-on-ivory.svg') repeat;
  background-size: 400px 400px;
  padding-block: 56px 64px;
}
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding-block: 88px 96px; }
}
.eyebrow { font-weight: 600; color: var(--link); margin-bottom: 12px; }
.hero .lead { font-size: 1.1875rem; color: var(--text); margin-top: 18px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art img { width: 100%; }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding-block: 64px; }
@media (min-width: 900px) { .section { padding-block: 88px; } }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--text-muted); margin-top: 12px; }


/* Product screenshots: real owner screens from demo data, in a plain frame (no fake browser chrome). */
.shot { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.shot-narrow { max-width: 520px; justify-self: center; }
.shot-phone { max-width: 340px; justify-self: center; }

/* Feature rows: text and screenshot side by side, alternating; stacked on phones. */
.rows { display: grid; gap: 56px; }
.row { display: grid; gap: 24px; align-items: center; }
.row > * { align-self: center; }
.row-text p { color: var(--text-muted); margin-top: 8px; max-width: 30em; }
.row-text h3 { font-size: 1.375rem; }
@media (min-width: 900px) {
  .rows { gap: 80px; }
  .row { grid-template-columns: 1fr 1.4fr; gap: 56px; }
  .row-flip .row-text { order: 2; }
  .row-text-only { grid-template-columns: 1fr; }
}

/* Plum band */
.band {
  background: var(--primary);
  color: var(--text-on-dark);
}
.band h2 { color: var(--bg); }
.band p { color: var(--text-on-dark-muted); }
.band .section-head { margin-bottom: 0; }

/* Pilot steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; }
.steps li::before {
  content: counter(step) '.';
  grid-row: span 2;
  font: 700 1.5rem/1 var(--display);
  color: var(--primary);
}
.steps p { color: var(--text-muted); margin-top: 8px; }
.pilot-note { margin-top: 24px; color: var(--text-muted); }

/* Customers */
.customers { background: var(--surface); border-block: 1px solid var(--border); }
.customers .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .customers .wrap { grid-template-columns: 1fr 1fr; } }
.customers .slogan { border-radius: var(--radius); border: 1px solid var(--border); }
@media (max-width: 720px) { .customers .slogan { max-width: 320px; margin-inline: auto; } }
.customers p { color: var(--text-muted); margin-top: 12px; }
.customers .cta-row { margin-top: 24px; }

/* Contact */
.contact { text-align: center; }
.contact .section-head { margin-inline: auto; }
.contact .cta-row { justify-content: center; }

/* English */
.english { background: var(--surface-tint); border-top: 1px solid var(--border); }
.english .wrap { max-width: 760px; }
.english h2 { font-size: 1.5rem; }
.english p { margin-top: 12px; color: var(--text); }
.english ul { margin: 16px 0 0; padding-inline-start: 20px; color: var(--text); }
.english .cta-row { margin-top: 24px; }

/* Footer */
.site-footer { background: var(--dark-surface); color: var(--text-on-dark-muted); padding-block: 40px; font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .logo { padding: 16px; margin-inline-start: -16px; }
.site-footer img { width: 140px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-on-dark); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer small { display: block; width: 100%; color: var(--text-on-dark-muted); }
