:root {
  --kh-canvas:  #e7e0d0;
  --kh-card:    #f6f1e6;
  --kh-border:  #ded5c1;
  --kh-ink:     #1c1a16;
  --kh-body:    #3a352c;
  --kh-muted:   #5b5446;
  --kh-accent:  #c56a4b;
  --kh-accent-2:#b03e1f;
  --kh-btn-ink: #f6f1e6;
  --kh-panel:   #1b1a17;
  --kh-shadow:  0 1px 2px rgba(28,26,22,.07), 0 8px 24px rgba(28,26,22,.06);
  --kh-serif:   Domine, Georgia, 'Times New Roman', serif;
  --kh-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --kh-canvas:  #171613;
    --kh-card:    #201e1a;
    --kh-border:  #33302a;
    --kh-ink:     #f0ebe0;
    --kh-body:    #c9c3b6;
    --kh-muted:   #948d7e;
    --kh-accent:  #e2623e;
    --kh-accent-2:#f07a56;
    --kh-btn-ink: #16150f;
    --kh-panel:   #100f0d;
    --kh-shadow:  0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}

.kh-hero {
  box-sizing: border-box;
  background: var(--kh-canvas);
  color: var(--kh-body);
  font-family: var(--kh-sans);
  padding: 22px 20px 34px;
  display: grid;
  gap: 26px;
  -webkit-font-smoothing: antialiased;
}
.kh-hero *, .kh-hero *::before, .kh-hero *::after { box-sizing: border-box; }
.kh-hero p { margin: 0; }

/* ── wordmark row ─────────────────────────────────────────── */
.kh-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.kh-mark {
  display: flex; align-items: center; gap: 11px;
  font-size: 15px; font-weight: 600; letter-spacing: .5px; color: var(--kh-ink);
}
/* Primary mark — two overlapping stroke-only circles, per brand/logo.html.
   Never filled, never recolored to anything but terracotta or ink. */
.kh-mark svg { display: block; flex: 0 0 auto; }
.kh-mark svg circle { stroke: var(--kh-accent); }
.kh-lang {
  font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  color: var(--kh-muted); border: 1px solid var(--kh-border);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  display: flex; align-items: baseline; gap: 5px;
}
/* Arabic script must never take letter-spacing or uppercasing. */
.kh-lang .kh-fa {
  font-family: Vazirmatn, 'Segoe UI', Tahoma, sans-serif;
  font-size: 14px; font-weight: 500; letter-spacing: normal; text-transform: none;
  color: var(--kh-ink); direction: rtl; unicode-bidi: isolate;
}

/* ── the promise ──────────────────────────────────────────── */
.kh-lede { display: grid; gap: 14px; }
.kh-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--kh-accent-2);
}
.kh-h1 {
  margin: 0;
  font-family: var(--kh-serif);
  font-weight: 400;
  font-size: clamp(31px, 8.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -.4px;
  color: var(--kh-ink);
  text-wrap: pretty;
}
.kh-h1 em { font-style: normal; color: var(--kh-accent); }
.kh-sub { font-size: 16.5px; line-height: 1.6; max-width: 34em; text-wrap: pretty; }

/* ── CTA — stays inside the first thumb-length ────────────── */
.kh-cta { display: grid; gap: 11px; justify-items: start; }
.kh-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  background: var(--kh-accent); color: var(--kh-btn-ink);
  font: inherit; font-size: 17px; font-weight: 600; letter-spacing: .1px;
  border: 0; border-radius: 14px; text-decoration: none;
  box-shadow: var(--kh-shadow);
  transition: background .16s ease, transform .16s ease;
}
.kh-btn:hover { background: var(--kh-accent-2); }
.kh-btn:active { transform: translateY(1px); }
.kh-btn:focus-visible { outline: 2px solid var(--kh-ink); outline-offset: 3px; }
.kh-btn span[aria-hidden] { font-size: 19px; line-height: 1; }
.kh-meta { font-size: 14px; color: var(--kh-muted); }
.kh-meta b { color: var(--kh-ink); font-weight: 600; }
.kh-slots { font-size: 13.5px; color: var(--kh-accent-2); font-weight: 600; }

/* ── proof strip ──────────────────────────────────────────── */
.kh-proof {
  display: grid; gap: 1px;
  background: var(--kh-border);
  border: 1px solid var(--kh-border);
  border-radius: 16px; overflow: hidden;
}
.kh-proof div { background: var(--kh-card); padding: 13px 15px; display: grid; gap: 3px; }
.kh-proof dt, .kh-proof strong {
  font-family: var(--kh-serif); font-size: 19px; font-weight: 400; color: var(--kh-ink);
}
.kh-proof small { font-size: 12.5px; line-height: 1.45; color: var(--kh-muted); }

/* ── the hour ─────────────────────────────────────────────── */
.kh-hour {
  background: var(--kh-card); border: 1px solid var(--kh-border);
  border-radius: 18px; padding: 20px 18px; display: grid; gap: 18px;
  box-shadow: var(--kh-shadow);
}
.kh-hour > h2 {
  margin: 0; font-family: var(--kh-serif); font-weight: 400;
  font-size: 20px; line-height: 1.3; color: var(--kh-ink);
}
.kh-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.kh-steps li { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; }
.kh-steps b {
  font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--kh-accent);
  padding-top: 3px; font-variant-numeric: tabular-nums;
}
.kh-steps span { display: grid; gap: 3px; }
.kh-steps strong { font-size: 15.5px; font-weight: 600; color: var(--kh-ink); }
.kh-steps small { font-size: 14px; line-height: 1.55; color: var(--kh-body); text-wrap: pretty; }

/* ── photo ────────────────────────────────────────────────── */
.kh-photo { margin: 0; display: grid; gap: 8px; }
.kh-photo > div {
  aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 12%, color-mix(in oklab, var(--kh-accent) 12%, transparent), transparent 62%),
    var(--kh-card);
  border: 1px solid var(--kh-border);
  display: grid; place-items: center; padding: 18px; text-align: center;
}
.kh-photo > div > p {
  font-size: 13px; line-height: 1.5; color: var(--kh-muted); max-width: 22em;
}
.kh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kh-photo figcaption { font-size: 12.5px; line-height: 1.5; color: var(--kh-muted); }

/* ── fit / not fit ────────────────────────────────────────── */
.kh-fit { display: grid; gap: 10px; }
.kh-fit p { font-size: 14.5px; line-height: 1.6; text-wrap: pretty; }
.kh-fit p:last-child { color: var(--kh-muted); }
.kh-fit b { color: var(--kh-ink); font-weight: 600; }

.kh-safety {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; line-height: 1.5; color: var(--kh-body);
  border-top: 1px solid var(--kh-border); padding-top: 16px;
}
.kh-safety::before {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: #7fa05a;
}

/* ── wider screens ────────────────────────────────────────── */
@media (min-width: 700px) {
  .kh-hero {
    max-width: 1040px; margin: 0 auto; padding: 34px 40px 56px;
    grid-template-columns: 1.05fr .95fr;
    grid-template-areas:
      "top    top"
      "lede   photo"
      "cta    photo"
      "proof  hour"
      "fit    hour"
      "safety hour";
    column-gap: 48px; row-gap: 24px; align-content: start;
  }
  .kh-top    { grid-area: top; }
  .kh-lede   { grid-area: lede; align-content: end; }
  .kh-cta    { grid-area: cta; }
  .kh-proof  { grid-area: proof; grid-template-columns: 1fr 1fr 1fr; }
  .kh-hour   { grid-area: hour; align-self: start; }
  .kh-photo  { grid-area: photo; align-self: start; }
  .kh-fit    { grid-area: fit; }
  .kh-safety { grid-area: safety; align-self: start; }
  .kh-h1 { font-size: clamp(40px, 4.4vw, 50px); }
  .kh-sub { font-size: 17.5px; }
}
