/*
 * hulul.co -- the public site.
 *
 * Ahmed, 16 Sep 2026: "What if you create a proper website for this app and
 * uploaded it to hulul.co?" Static pages, no framework: a marketing page, the
 * privacy policy and a support page, in English and in Arabic. The look is the
 * product's own -- Inter and Tajawal over the teal (#0d9488) the platform has
 * carried since the old system -- so the site and the thing it describes are
 * recognisably one.
 */

:root {
  --paper: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --faint: #94a3b8;
  --rule: #e6e8f0;
  --accent: #0d9488;
  --accent-ink: #0f766e;
  --accent-deep: #134e4a;
  --accent-soft: #ecfdf9;
  --accent-line: #99e3da;
  --crit: #dc2626;
  --crit-soft: #fef2f2;
  --warn: #d97706;
  --ok: #16a34a;
  --ok-soft: #ecfdf3;
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --measure: 62ch;
}

html[lang='ar'] {
  --f-sans: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
}

html[lang='ar'] body {
  font-size: 17px;
}

a {
  color: var(--accent-ink);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3 {
  letter-spacing: 0;
}

p {
  margin: 0;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand svg {
  width: 84px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav .button {
  margin-inline-start: 8px;
}

/* ------------------------------------------------------------ buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: var(--accent-ink);
}

.button.quiet {
  background: transparent;
  border-color: var(--accent-line);
  color: var(--accent-ink);
}

.button.quiet:hover {
  background: var(--accent-soft);
}

.button.onDark {
  background: #fff;
  color: var(--accent-deep);
}

.button.onDark:hover {
  background: var(--accent-soft);
}

.button.onDark.quiet {
  background: transparent;
  border-color: rgb(255 255 255 / 0.45);
  color: #fff;
}

.button.onDark.quiet:hover {
  background: rgb(255 255 255 / 0.12);
}

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

.hero {
  background: var(--accent-deep);
  color: #fff;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 9vw, 112px);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
}

.hero .lede {
  margin-top: 20px;
  max-width: var(--measure);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgb(255 255 255 / 0.86);
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang='ar'] .eyebrow {
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--accent-line);
}

/* The one thing that is unmistakably this product: a risk log with its clock. */
.card {
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  box-shadow:
    0 30px 60px rgb(0 0 0 / 0.28),
    0 2px 6px rgb(0 0 0 / 0.12);
  overflow: hidden;
}

.card .strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--crit-soft);
  font-size: 13px;
}

.card .risk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--crit);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[lang='ar'] .card .risk {
  letter-spacing: 0;
}

.card .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.card .bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--rule);
  overflow: hidden;
}

.card .bar i {
  display: block;
  width: 78%;
  height: 100%;
  background: var(--ok);
}

.card .left {
  color: var(--muted);
  white-space: nowrap;
}

.card .ref {
  font-family: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
  color: var(--muted);
}

.card .pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-weight: 600;
}

.card .body {
  padding: 16px 16px 18px;
}

.card h3 {
  font-size: 1.1rem;
}

.card .meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.card .facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}

.card .facts div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card .facts dt {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[lang='ar'] .card .facts dt {
  letter-spacing: 0;
}

.card .facts dd {
  margin: 0;
  font-weight: 600;
}

.card .photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.card .photos span {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: linear-gradient(160deg, #cbd5e1, #94a3b8);
}

.card .photos span:nth-child(2) {
  background: linear-gradient(160deg, #99e3da, #0d9488);
}

.card .photos span:nth-child(3) {
  background: linear-gradient(160deg, #fde68a, #d97706);
}

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

.section {
  padding-block: clamp(48px, 7vw, 88px);
}

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

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
}

.section .lede {
  margin-top: 16px;
  max-width: var(--measure);
  font-size: 1.1rem;
  color: var(--muted);
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.tile {
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.tile h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.tile p {
  color: var(--muted);
  font-size: 15px;
}

.tile .who {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
}

/* The problem, told as the four places the truth lives today. */
.truths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.truths div {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed var(--faint);
  color: var(--muted);
  font-size: 15px;
}

.truths strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

/* A log's life: a real sequence, drawn as one. */
.life {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.life span {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-weight: 600;
  font-size: 15px;
}

.life span.now {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.life i {
  color: var(--faint);
  font-style: normal;
}

html[dir='rtl'] .life i {
  display: inline-block;
  transform: scaleX(-1);
}

/* Escalation: three stops on one line, and nobody has to push it. */
.ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
  counter-reset: stop;
}

.ladder div {
  position: relative;
  padding: 18px 18px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--rule);
}

.ladder div::before {
  counter-increment: stop;
  content: counter(stop);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.ladder strong {
  display: block;
}

.ladder p {
  color: var(--muted);
  font-size: 15px;
}

/* The phone. */
.phone {
  justify-self: center;
  width: 260px;
  padding: 14px;
  border-radius: 36px;
  background: #0f172a;
  box-shadow: 0 30px 60px rgb(15 23 42 / 0.25);
}

.phone .screen {
  border-radius: 24px;
  background: var(--paper);
  padding: 18px 14px;
  min-height: 420px;
}

.phone .appbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.phone .appbar img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.phone .appbar strong {
  font-size: 14px;
}

.phone .row {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-size: 12px;
}

.phone .row b {
  display: block;
  font-size: 13px;
}

.phone .row small {
  color: var(--muted);
}

.phone .row .tag {
  float: inline-end;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.phone .tag.crit {
  background: var(--crit-soft);
  color: var(--crit);
}

.phone .tag.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.phone .cta {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.stores span {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.stores span small {
  display: block;
  font-weight: 400;
  color: var(--faint);
  font-size: 11px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chips span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-size: 14px;
}

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

.band .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding-block: 40px;
}

.band strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.band p {
  color: var(--muted);
  font-size: 15px;
}

.closing {
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.closing .actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ------------------------------------------------------------ prose pages */

.prose {
  max-width: var(--measure);
  padding-block: clamp(32px, 5vw, 64px);
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.prose .updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.prose h2 {
  margin-top: 36px;
  font-size: 1.3rem;
}

.prose p,
.prose li {
  margin-top: 12px;
  color: #1e293b;
}

.prose ul {
  padding-inline-start: 1.3em;
}

.prose .note {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-size: 15px;
}

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

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 32px;
  color: var(--muted);
  font-size: 14px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
}

.foot svg {
  width: 64px;
  height: auto;
  color: var(--ink);
  display: block;
}

.foot .made {
  display: flex;
  align-items: center;
  gap: 12px;
}

:focus-visible {
  outline: 3px solid var(--accent-line);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ------------------------------------------------------------ narrow */

@media (max-width: 860px) {
  .hero .wrap,
  .two {
    grid-template-columns: 1fr;
  }

  .hero .card {
    max-width: 440px;
  }

  .ladder {
    grid-template-columns: 1fr;
  }

  .phone {
    width: 240px;
  }
}

@media (max-width: 480px) {
  .card .facts,
  .card .photos {
    grid-template-columns: repeat(2, 1fr);
  }

  .card .strip .left {
    display: none;
  }
}
