/* ============================================================================
   Smart Glove — thesmartglove.com
   Design system: headspace ("clinical calm"), hue-shifted to the brand brief:
   warm ivory ground, deep teal primary, golden-amber accent, one dark warm
   anchor surface. Big friendly radii (16–32px), soft single-tier shadows,
   generous 4px-grid spacing, rounded-warm sans (Sora + Plus Jakarta Sans).
   Accessibility is the brand: AA minimum, AAA where possible, visible 2px
   focus outlines, 44×44 touch targets, prefers-reduced-motion respected.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Tokens
---------------------------------------------------------------------------- */
:root {
  /* color */
  --bg: #faf6ef;              /* warm ivory ground */
  --bg-soft: #f3ecdd;         /* soft band */
  --bg-cream: #f6f0e2;        /* cream band */
  --card: #ffffff;
  --dark: #24332e;            /* warm dark teal-charcoal anchor */
  --dark-2: #2c3d37;          /* raised surface on dark */
  --dark-border: #3d534d;

  --primary: #0d5c55;         /* deep teal — actions, links, marks */
  --primary-deep: #0a4740;    /* hover / pressed */
  --primary-tint: #e2ece7;    /* tinted chips on light */

  --amber: #b97a10;           /* golden amber, text-safe on ivory only at 18px+ bold */
  --amber-bright: #e8a23d;    /* amber for graphics & dark surfaces */
  --amber-tint: #f7e8cd;

  --ink: #1d312c;             /* headings ≈ 12:1 on ivory */
  --body: #43504b;            /* body ≈ 7.6:1 on ivory (AAA) */
  --muted: #5a655f;           /* secondary text ≈ 5.4:1 */
  --on-dark: #f3ede1;         /* warm white on dark ≈ 12:1 */
  --on-dark-muted: #b8c4bf;   /* ≈ 6.9:1 on --dark */

  --border: #e3dac5;
  --border-strong: #cfc4a9;

  --focus: #0d5c55;
  --focus-on-dark: #ffc46b;
  --error: #a02c22;           /* ≈ 6.9:1 on white */

  /* shape & elevation (headspace: big friendly radii, one soft tier) */
  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 32px;
  --shadow: 0 1px 8px rgba(20, 19, 19, 0.16);
  --shadow-lift: 0 2px 14px rgba(20, 19, 19, 0.18);

  /* type */
  --font-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  /* motion: organic settle, never bouncy */
  --ease: cubic-bezier(0.32, 0.94, 0.6, 1);
  --t-micro: 100ms;
  --t-base: 300ms;
  --t-large: 400ms;

  /* layout */
  --container: 76rem;
}

/* ----------------------------------------------------------------------------
   2. Reset & base
---------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;             /* headspace: never light/thin body type */
  line-height: 1.6;
  letter-spacing: -0.12px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.16;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  letter-spacing: -0.96px;
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  letter-spacing: -0.72px;
  max-width: 26ch;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.4px;
}

h4 {
  font-size: 1.0625rem;
  letter-spacing: -0.2px;
}

p {
  margin: 0 0 16px;
  max-width: 62ch;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol, dl {
  margin: 0;
  padding: 0;
}

/* Body links: underlined — never color-only meaning */
main a:not(.btn):not(.wordmark),
.site-footer a:not(.wordmark) {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  border-radius: 4px;
  transition: color var(--t-micro) var(--ease);
}

main a:not(.btn):not(.wordmark):hover {
  color: var(--primary-deep);
}

::selection {
  background: var(--primary);
  color: #ffffff;
}

/* Visible focus everywhere — 2px outline, 2px offset (AAA habit) */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.band--dark :focus-visible,
.site-footer :focus-visible,
.aside-card--dark :focus-visible,
.callout :focus-visible {
  outline-color: var(--focus-on-dark);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------------------------
   3. Utilities
---------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--dark);
  color: var(--on-dark);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--t-base) var(--ease);
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--focus-on-dark);
  outline-offset: 2px;
}

.mark {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--primary);
}

.mini {
  width: 15px;
  height: 15px;
  flex: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.eyebrow .mark {
  width: 18px;
  height: 18px;
}

.lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.1875rem);
  line-height: 1.62;
  color: var(--body);
  max-width: 58ch;
}

.fine {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 66ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
}

.badge--outline {
  color: var(--primary);
  border: 1.5px solid var(--primary);
  background: var(--primary-tint);
  align-self: flex-start;
}

/* ----------------------------------------------------------------------------
   4. Buttons — radius 16, ≥44px targets, full-width on small screens
---------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.12px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-micro) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: var(--primary-deep);
  box-shadow: var(--shadow-lift);
}

.btn--secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--secondary:hover {
  background: var(--primary-tint);
  color: var(--primary-deep);
}

/* on the dark teal callout */
.btn--on-primary {
  background: var(--amber-bright);
  color: #2a2416;
}

.btn--on-primary:hover {
  background: #f0b45c;
}

.btn--on-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--on-dark);
}

.btn--on-dark:hover {
  background: rgba(243, 237, 225, 0.12);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  border-radius: 4px;
  transition: color var(--t-micro) var(--ease);
}

.text-link:hover {
  color: var(--primary-deep);
}

.text-link .arrow {
  flex: none;
  transition: transform var(--t-base) var(--ease);
}

.text-link:hover .arrow {
  transform: translateX(3px);
}

@media (max-width: 560px) {
  .btn-row .btn {
    width: 100%;
  }
}

/* ----------------------------------------------------------------------------
   5. Header & navigation
---------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

.wordmark .mark {
  width: 28px;
  height: 28px;
}

.nav__menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-inline: auto;
}

.nav__menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color var(--t-micro) var(--ease),
              color var(--t-micro) var(--ease);
}

.nav__menu a:hover {
  background: var(--primary-tint);
  color: var(--primary-deep);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav__actions .btn {
  min-height: 44px;
  padding-block: 8px;
}

.nav__actions .text-link[aria-current="page"] {
  color: var(--primary-deep);
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu,
  .nav__actions {
    display: none;
    width: 100%;
  }

  .site-header.is-open .nav__menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0 0;
  }

  .site-header.is-open .nav__menu a {
    width: 100%;
  }

  .site-header.is-open .nav__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 0 12px;
    margin: 8px 0 0;
    border-top: 1px solid var(--border);
  }

  .site-header.is-open .nav__actions .btn {
    width: 100%;
  }
}

/* ----------------------------------------------------------------------------
   6. Bands & layout primitives
---------------------------------------------------------------------------- */
.band {
  padding-block: clamp(64px, 9vw, 112px);
}

.band--tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.band--soft {
  background: var(--bg-soft);
}

.band--cream {
  background: var(--bg-cream);
}

.band--dark {
  background: var(--dark);
  color: var(--on-dark-muted);
}

.band--dark h2,
.band--dark h3 {
  color: var(--on-dark);
}

.band--dark .lede,
.band--dark p {
  color: var(--on-dark-muted);
}

.band--dark .eyebrow {
  color: var(--amber-bright);
}

.band--dark .eyebrow .mark {
  color: var(--amber-bright);
}

.band--dark a:not(.btn) {
  color: var(--amber-bright);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(40px, 6vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split--wide-art {
  grid-template-columns: 0.92fr 1.08fr;
}

.split__text,
.split__art {
  min-width: 0; /* keep wide SVG figures from stretching the grid track */
}

@media (max-width: 900px) {
  .split,
  .split--wide-art {
    grid-template-columns: 1fr;
  }

  .split--wide-art .split__art {
    order: 2; /* art follows text when stacked */
  }
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.span-all {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------------------
   7. Hero
---------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(56px, 8vw, 96px);
}

.hero__arabic {
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  font-weight: 600;
  color: var(--primary);
  margin: -4px 0 20px;
  letter-spacing: 0;
}

.hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 32px;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}

.hero__meta svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex: none;
}

.hero-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-scene {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
}

.hero-card__caption {
  padding: 14px 8px 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ----------------------------------------------------------------------------
   8. Rule list (problem section)
---------------------------------------------------------------------------- */
.rule-list {
  list-style: none;
  display: grid;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rule-list li {
  padding: 24px 28px;
}

.rule-list li + li {
  border-top: 1px solid var(--border);
}

.rule-list h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.rule-list p {
  font-size: 0.9375rem;
  line-height: 1.58;
  color: var(--body);
}

/* ----------------------------------------------------------------------------
   9. Flow diagram & dark band points
---------------------------------------------------------------------------- */
.flow {
  margin: 0 0 clamp(40px, 6vw, 56px);
  background: var(--dark-2);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-lg);
  padding: clamp(16px, 3vw, 32px);
  overflow-x: auto;
}

.flow svg {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

.flow figcaption {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--on-dark-muted);
  text-align: center;
}

.dark-points {
  gap: 24px;
}

.dark-points article {
  background: var(--dark-2);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  padding: 28px;
}

.dark-points h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.dark-points p {
  font-size: 0.9375rem;
  line-height: 1.58;
}

/* ----------------------------------------------------------------------------
   9b. Glove anatomy
---------------------------------------------------------------------------- */
.anatomy {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}

.anatomy svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
}

.anatomy figcaption {
  padding: 14px 8px 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.anatomy-list {
  list-style: none;
  counter-reset: part;
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.anatomy-list li {
  counter-increment: part;
  position: relative;
  padding-left: 52px;
}

.anatomy-list li::before {
  content: counter(part);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber-bright);
  color: #2a2416;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
}

.anatomy-list h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.anatomy-list p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ----------------------------------------------------------------------------
   9c. Accessibility statement note
---------------------------------------------------------------------------- */
.access-note {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 48px;
  background: var(--primary-tint);
  border: 1.5px solid var(--primary);
  border-radius: var(--r-md);
  padding: clamp(24px, 4vw, 40px);
}

.access-note__icon {
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--primary);
  margin-top: 4px;
}

.access-note h3 {
  margin-bottom: 8px;
}

.access-note p {
  max-width: 78ch;
  color: var(--ink);
}

@media (max-width: 620px) {
  .access-note {
    flex-direction: column;
  }
}

/* ----------------------------------------------------------------------------
   10. Companion app phone mockup
---------------------------------------------------------------------------- */
.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}

.check-list svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 5px;
  color: var(--primary);
}

.phone {
  margin: 0 auto;
  max-width: 400px;
  position: relative;
}

.phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
  z-index: 2;
}

.phone__body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 36px;
  box-shadow: var(--shadow-lift);
  padding: 40px 20px 20px;
}

.phone__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 4px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.phone__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}

.phone__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.phone__status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

.convo {
  list-style: none;
  display: grid;
  gap: 12px;
}

.convo__msg {
  border-radius: 20px;
  padding: 14px 16px;
  max-width: 92%;
}

.convo__msg--signed {
  background: var(--primary-tint);
  border: 1px solid #cbdcd3;
  justify-self: start;
  border-bottom-left-radius: 6px;
}

.convo__msg--heard {
  background: var(--amber-tint);
  border: 1px solid #ecd9b2;
  justify-self: end;
  border-bottom-right-radius: 6px;
}

.convo__who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.71875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin: 0 0 6px;
}

.convo__msg--heard .convo__who {
  color: #7c5406;
}

.convo__who .mini {
  width: 13px;
  height: 13px;
}

.convo__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.convo__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.71875rem;
  font-weight: 600;
  color: var(--muted);
  margin: 8px 0 0;
}

.convo__meta .mini {
  color: var(--primary);
}

.convo__live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--dark);
  color: var(--on-dark);
  font-size: 0.875rem;
  font-weight: 600;
}

.convo__live .mini {
  color: var(--amber-bright);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--amber-bright);
  animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .caret {
    animation: none;
  }
}

.phone__caption {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* ----------------------------------------------------------------------------
   11. Cards (features, audiences, outlines)
---------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--primary-tint);
  color: var(--primary);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 30px;
  height: 30px;
}

.card__icon--amber {
  background: var(--amber-tint);
  color: #8a5e0b;
}

.card--wide {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.card--wide > div {
  max-width: 46rem;
}

.card--audience p {
  max-width: 52ch;
}

.card--outline {
  background: transparent;
  box-shadow: none;
  border: 1.5px solid var(--border-strong);
}

.card--outline:hover {
  transform: none;
  box-shadow: none;
}

/* ----------------------------------------------------------------------------
   12. Timeline (how it works)
---------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.timeline li {
  position: relative;
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}

.timeline__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 20px;
}

.timeline__step::before {
  content: counter(step);
}

.timeline h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.timeline p {
  font-size: 0.9375rem;
  line-height: 1.58;
}

@media (max-width: 1020px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

.callout-quiet {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: clamp(40px, 6vw, 56px);
  background: var(--card);
  border-left: 4px solid var(--amber-bright);
  border-radius: var(--r-sm);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.callout-quiet__mark {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--primary);
  margin-top: 2px;
}

.callout-quiet p {
  max-width: 72ch;
  color: var(--ink);
}

.callout-quiet strong {
  font-family: var(--font-display);
}

/* ----------------------------------------------------------------------------
   13. Scoreboard (credibility)
---------------------------------------------------------------------------- */
.score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.score > div {
  background: var(--dark);
  border-radius: var(--r-md);
  padding: 32px 28px;
}

.score dt {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--on-dark);
  margin-bottom: 12px;
}

.score dd {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amber-bright);
}

.score p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

@media (max-width: 900px) {
  .score {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------------------
   14. Closing callout
---------------------------------------------------------------------------- */
.callout {
  position: relative;
  overflow: hidden;
  background: var(--primary-deep);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px);
}

.callout__art {
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: clamp(180px, 26vw, 300px);
  height: auto;
  color: #ffffff;
  opacity: 0.14;
  pointer-events: none;
}

.callout__inner {
  position: relative;
  max-width: 46rem;
}

.callout h2 {
  color: #ffffff;
}

.callout p {
  color: #d9e5df;
}

.callout .eyebrow {
  color: var(--amber-bright);
}

.callout .eyebrow .mark {
  color: var(--amber-bright);
}

/* ----------------------------------------------------------------------------
   15. Footer
---------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  padding: clamp(48px, 7vw, 80px) 0 32px;
  margin-top: 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dark-border);
}

.footer__brand .wordmark {
  color: var(--on-dark);
}

.footer__brand .wordmark .mark {
  color: var(--amber-bright);
}

.footer__brand p {
  margin-top: 16px;
  font-size: 0.9375rem;
  max-width: 34ch;
}

.footer__col h4 {
  color: var(--on-dark);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: grid;
  gap: 4px;
}

.footer__col a,
.footer__brand a:not(.wordmark) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-micro) var(--ease);
}

.footer__col a:hover,
.footer__brand a:not(.wordmark):hover {
  color: var(--on-dark);
}

.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 24px;
  font-size: 0.8125rem;
}

.footer__base p {
  margin: 0;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------------------
   16. Contact page
---------------------------------------------------------------------------- */
.page-head {
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
}

.page-head__arabic {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: var(--primary);
  margin: -4px 0 16px;
  letter-spacing: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 48px);
}

.form-card__title {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.form-card__sub {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.field .opt {
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--t-micro) var(--ease),
              background-color var(--t-micro) var(--ease);
}

.field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.55;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.5 7 9.5 11 5.5' fill='none' stroke='%231d312c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--primary);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--primary);
  background: #ffffff;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field .hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 8px 0 0;
}

.field .error {
  display: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--error);
  margin: 8px 0 0;
}

.field .error.is-shown {
  display: block;
}

.field .error.is-shown::before {
  content: "⚠ ";
}

.form-status {
  display: none;
  gap: 14px;
  align-items: flex-start;
  background: var(--primary-tint);
  border: 1.5px solid var(--primary);
  border-radius: var(--r-sm);
  padding: 20px;
  margin-bottom: 32px;
}

.form-status.is-shown {
  display: flex;
}

.form-status svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--primary);
}

.form-status p {
  margin: 0 0 4px;
  color: var(--ink);
}

.form-status .fine {
  color: var(--body);
}

.aside-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 40px);
}

.aside-card + .aside-card {
  margin-top: 24px;
}

.aside-card h2 {
  font-size: 1.375rem;
  letter-spacing: -0.4px;
  margin-bottom: 24px;
}

.aside-card--dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--on-dark-muted);
}

.aside-card--dark h2 {
  color: var(--on-dark);
}

.aside-card--dark .fine {
  color: var(--on-dark-muted);
}

.contact-list {
  display: grid;
  gap: 24px;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 4px 14px;
}

.contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  grid-row: span 2;
  margin-top: 2px;
}

.contact-list dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}

.contact-list dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.steps {
  list-style: none;
  display: grid;
  gap: 20px;
  counter-reset: contact-step;
}

.steps li {
  counter-increment: contact-step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.steps li::before {
  content: counter(contact-step);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber-bright);
  color: #2a2416;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ----------------------------------------------------------------------------
   17. Print
---------------------------------------------------------------------------- */
@media print {
  .site-header,
  .skip-link,
  .nav__toggle,
  .btn,
  .callout {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .band--dark,
  .site-footer {
    background: #ffffff;
    color: #000000;
  }
}
