/* Naoufal El Bekkali — Performance Email Marketing
   Shared stylesheet */

:root {
  --ink:        #101828;
  --ink-soft:   #475467;
  --ink-faint:  #667085;
  --line:       #e4e7ec;
  --line-soft:  #f2f4f7;
  --paper:      #ffffff;
  --paper-alt:  #f9fafb;
  --accent:     #0b5cab;
  --accent-dk:  #084484;
  --accent-wash:#eef4fb;
  --radius:     10px;
  --maxw:       1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 650; font-size: 15px; }
.brand-kind { font-size: 12px; color: var(--ink-faint); }

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

.site-nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 7px;
}

.site-nav a:hover { color: var(--ink); background: var(--line-soft); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- generic sections ---------- */

section { padding-block: 64px; }
section.tight { padding-block: 44px; }
section.alt { background: var(--paper-alt); border-block: 1px solid var(--line); }

.eyebrow {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.021em;
  margin: 0 0 18px;
  font-weight: 680;
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.62rem);
  line-height: 1.3;
  letter-spacing: -0.014em;
  margin: 0 0 16px;
  font-weight: 660;
}

h3 {
  font-size: 1.03rem;
  margin: 0 0 8px;
  font-weight: 650;
}

p { margin: 0 0 15px; color: var(--ink-soft); }
p.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.measure { max-width: 70ch; }

a { color: var(--accent); }
a:hover { color: var(--accent-dk); }

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

.hero { padding-block: 76px 64px; }
.hero h1 { max-width: 20ch; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { background: var(--line-soft); color: var(--ink); }

/* ---------- grids & cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card p { font-size: 14.8px; margin-bottom: 0; }

.card-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- partner list ---------- */

.partners { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.partner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--paper);
}

.partner-name { font-weight: 650; font-size: 15.5px; margin: 0 0 4px; }
.partner-role { font-size: 13.5px; color: var(--ink-faint); margin: 0; }

/* ---------- definition rows ---------- */

.rows {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.row {
  display: flex;
  gap: 18px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.row:last-child { border-bottom: none; }
.row:nth-child(odd) { background: var(--paper-alt); }

.row dt,
.row-label {
  margin: 0;
  flex: 0 0 170px;
  font-size: 13.5px;
  color: var(--ink-faint);
  font-weight: 500;
}

.row dd,
.row-value {
  margin: 0;
  flex: 1 1 240px;
  font-size: 15px;
  font-weight: 550;
  word-break: break-word;
}

.row-value a { font-weight: 550; }

/* ---------- legal / long copy ---------- */

.legal { padding-block: 56px 72px; }
.legal h2 { margin-top: 38px; font-size: 1.14rem; }
.legal h2:first-of-type { margin-top: 26px; }
.legal p, .legal li { font-size: 15px; }
.legal ul { padding-left: 22px; margin: 0 0 15px; color: var(--ink-soft); }
.legal li { margin-bottom: 7px; }

.updated {
  font-size: 13.5px;
  color: var(--ink-faint);
  padding: 10px 14px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-block;
}

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

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  border-radius: 8px;
  padding: 18px 22px;
}

.callout p { color: var(--ink); font-size: 15px; }

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

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding-block: 40px 32px;
  margin-top: 8px;
}

.foot-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 30px;
}

.foot-grid h4 {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
  font-weight: 650;
}

.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; font-size: 14.5px; }
.foot-grid a { color: var(--ink-soft); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid p { font-size: 14.5px; margin-bottom: 8px; }

.foot-base {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 13.5px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  section { padding-block: 48px; }
  .hero { padding-block: 52px 44px; }
  .row dt, .row-label { flex-basis: 100%; }
}

/* ---------- identity / verification panel ---------- */

.identity {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 26px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 26px 28px;
  margin-top: 34px;
}

.identity-photo {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: var(--accent-wash);
  border: 1px solid var(--line);
}

.identity-photo-empty {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  border: 1px dashed #b42318;
  background: #fef3f2;
  color: #b42318;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  padding: 10px;
}

.identity h2 { font-size: 1.22rem; margin-bottom: 4px; }
.identity-role { font-size: 14.5px; color: var(--ink-faint); margin: 0 0 16px; }

.identity-list { margin: 0; display: grid; gap: 9px; }

.identity-item {
  display: flex;
  gap: 12px;
  font-size: 15px;
  flex-wrap: wrap;
  align-items: baseline;
}

.identity-item .k {
  flex: 0 0 92px;
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 500;
}

.identity-item .v { flex: 1 1 220px; font-weight: 560; word-break: break-word; }

.todo {
  background: #fef3f2;
  border: 1px dashed #b42318;
  color: #b42318;
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 650;
  font-size: 13.5px;
  display: inline-block;
}

@media (max-width: 620px) {
  .identity { grid-template-columns: 1fr; gap: 20px; }
  .identity-item .k { flex-basis: 100%; }
}
