/* HabeshaHire — design system v2
   Aesthetic: cal.com-style monochrome SaaS — gray page, inset white rounded panel,
   near-black ink, Inter typography, black 12px-radius buttons, hairline borders.
   TODO(perf): self-host Inter + Noto Sans Ethiopic woff2 subsets before launch —
   Google Fonts adds a third-party request that slows first paint in East Africa. */

:root {
  --bg-page: #F4F4F4;
  --panel: #FFFFFF;
  --ink: #242424;
  --text: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;
  --hairline: #ECECEC;
  --tint: #F9FAFB;
  --black: #111111;
  --gray-btn: #F3F4F6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--black); color: #fff; font-weight: 600;
  padding: 10px 18px; border-radius: 0 0 12px 0;
}
.skip:focus, .skip:focus-visible { left: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    "Noto Sans Ethiopic", "Kefa", "Nyala", sans-serif;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.12; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.5rem); }
:lang(am) h1, :lang(ti) h1, :lang(am) h2, :lang(ti) h2 { letter-spacing: normal; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: 0.6em; }
h3 { font-size: 1.1rem; margin-bottom: 0.4em; letter-spacing: -0.01em; }

p { margin-bottom: 1em; }
ul, ol { margin: 0 0 1em 1.3em; }
li { margin-bottom: 0.45em; }

section { padding: 72px 0; }
section.tint { background: var(--tint); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}

.lead { font-size: 1.13rem; color: var(--muted); max-width: 46em; line-height: 1.65; }

/* Header — full-bleed white above the inset panel */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 900px) { .site-head { backdrop-filter: blur(8px); } }
@media (max-width: 899px) { .site-head { background: #fff; } }
.head-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 24px; max-width: 1552px; margin: 0 auto; }
.brand { font-size: 1.3rem; font-weight: 700; color: var(--black); letter-spacing: -0.03em; }
.brand span { color: #B45309; font-weight: 700; }
.brand:hover { text-decoration: none; }
.site-head nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.site-head nav a {
  color: var(--muted); font-weight: 500; font-size: 0.92rem;
  display: inline-block; padding: 8px 12px; border-radius: 10px;
}
.site-head nav a.on, .site-head nav a:hover { color: var(--ink); background: var(--gray-btn); text-decoration: none; }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--tint); }
.langs a { padding: 7px 13px; border-radius: 999px; font-size: 0.83rem; font-weight: 600; color: var(--muted); }
.langs a.on { background: var(--black); color: #fff; }
.langs a:hover { text-decoration: none; color: var(--ink); }
.langs a.on:hover { color: #fff; }

/* The inset white panel — cal.com's signature framing */
main {
  display: block;
  max-width: 1552px;
  margin: 10px auto 16px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 24px;
}

/* Hero */
.hero { padding: 88px 0 72px; }
.hero .selam {
  display: inline-block; font-size: 0.88rem; color: #92610F; font-weight: 600;
  background: #FFF9EF; border: 1px solid #F3E4CB; border-radius: 999px;
  padding: 7px 16px; margin-bottom: 26px;
}
.hero h1 { max-width: 15em; margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.hero .kicker { margin-bottom: 18px; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 12px; font-weight: 600;
  background: var(--black); color: #fff; border: 1px solid var(--black);
  cursor: pointer; font-size: 0.97rem; letter-spacing: -0.01em;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: #2E2E2E; text-decoration: none; box-shadow: 0 4px 14px rgba(17, 17, 17, 0.18); }
.btn.ghost { background: var(--gray-btn); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--line); }
.btn.amber { background: #fff; color: var(--black); border: 1px solid #fff; }
.btn.amber:hover { background: var(--gray-btn); border-color: var(--gray-btn); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Trust strip */
.trust { display: flex; gap: 10px 26px; flex-wrap: wrap; margin-top: 32px; padding: 0; list-style: none; }
.trust li { font-size: 0.9rem; font-weight: 500; color: var(--muted); margin: 0; }
.trust li::before { content: "✓ "; content: "✓ " / ""; color: #15803D; font-weight: 700; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 10px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: #D1D5DB; box-shadow: 0 6px 24px rgba(17, 17, 17, 0.06); }
.card .ic {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; margin-bottom: 14px; border-radius: 12px;
  background: #FEF3E2; border: 1px solid #F5E3C8;
}
.cards .card:nth-child(3n+2) .ic { background: #E9F6EE; border-color: #D3EBDD; }
.cards .card:nth-child(3n) .ic { background: #EAF1FD; border-color: #D7E4FA; }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-2px); } }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .from { margin-top: auto; font-weight: 700; color: var(--ink); }
.card a.more { font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; counter-reset: step; margin-top: 10px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  background: #B45309; color: #fff; font-weight: 700; font-size: 0.9rem;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.steps .step:nth-child(2)::before { background: #15803D; }
.steps .step:nth-child(3)::before { background: #1D4ED8; }
.steps .step:nth-child(4)::before { background: #7C3AED; }
.step p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* Price cards */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 10px; }
.price {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.price:hover { box-shadow: 0 6px 24px rgba(17, 17, 17, 0.06); }
.price.hot { border: 2px solid #B45309; }
.price .amt { font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.price .per { font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; margin: 14px 0 20px; }
.price li { font-size: 0.92rem; color: var(--text); padding-left: 1.3em; position: relative; }
.price li::before { content: "✓"; content: "✓" / ""; position: absolute; left: 0; color: #15803D; font-weight: 700; }
.price .btn { margin-top: auto; text-align: center; }
.tag {
  display: inline-block; background: #B45309; color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px;
  margin-bottom: 12px; align-self: flex-start;
}

/* Tables */
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tint); color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
tr:last-child td { border-bottom: none; }
td strong { color: var(--ink); }

/* Callouts */
.note {
  background: var(--tint); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin: 22px 0; font-size: 0.94rem; color: var(--text);
}
.note strong { color: var(--ink); }
.draft-banner {
  background: #FFFBEB; border-bottom: 1px solid #FCD34D; color: #92400E;
  text-align: center; font-weight: 600; font-size: 0.88rem; padding: 9px 16px;
}

/* CTA band — dark rounded block inside the panel */
.cta-band {
  background: var(--black); color: #D4D4D4; text-align: center;
  padding: 72px 24px; margin: 32px; border-radius: 20px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #A3A3A3; max-width: 40em; margin: 0 auto 26px; }

/* Footer — full-bleed light */
footer { background: var(--panel); border-top: 1px solid var(--hairline); color: var(--muted); padding: 52px 0 34px; font-size: 0.9rem; }
footer .wrap { max-width: 1552px; padding: 0 24px; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; margin-bottom: 30px; }
footer h3 { color: var(--ink); font-size: 0.92rem; margin-bottom: 10px; }
footer a { color: var(--text); }
footer .fine { border-top: 1px solid var(--hairline); padding-top: 20px; font-size: 0.8rem; }
footer .dates { font-weight: 600; color: var(--ink); }

@media (max-width: 640px) {
  section { padding: 44px 0; }
  .hero { padding: 52px 0 44px; }
  main { margin: 6px; border-radius: 16px; }
  .cta-band { margin: 16px; padding: 52px 20px; }
  /* wrapped header would eat ~25% of a phone screen if sticky */
  .site-head { position: static; }
  .head-in { gap: 6px 10px; padding: 12px 16px; }
}
