/* HireMeBuddy waitlist landing page: full-bleed Windhoek hero and frosted
   glass surfaces. Mobile first. */
:root {
  --teal: #008b80;
  --teal-2: #00b8a9;
  --mint: #7ff5e3;
  --deep: #063431;
  --deep-2: #0b4a45;
  --orange: #e64a19;
  --orange-2: #ff7a45;
  --ink: #0b1514;
  --muted: #3d4a49;
  --line: rgba(15, 29, 28, 0.1);
  --bg: #ffffff;
  --soft: #f2f5f5;
  --r: 24px;
  --nav-h: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* author display rules must not un-hide */
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4.8vw, 50px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
p { margin: 0 0 12px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.section { padding: 68px 0; position: relative; }
.sub { color: var(--muted); font-size: 17px; max-width: 620px; margin-bottom: 30px; }

/* ------------------------------------------------------------------ glass */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(11, 21, 20, 0.08);
  box-shadow: 0 1px 2px rgba(11, 21, 20, 0.05), 0 14px 34px -20px rgba(11, 21, 20, 0.28);
  border-radius: var(--r);
}
.glass-dark {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 24px 48px -24px rgba(0, 0, 0, 0.55);
  border-radius: var(--r);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.94); }
  .glass-dark { background: rgba(6, 52, 49, 0.86); }
}

/* ------------------------------------------------------------------ icons */
.ico-box {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px;
  margin-bottom: 14px; border-radius: 14px; background: var(--teal); color: #fff;
}
.ico { width: 24px; height: 24px; }
.glass-dark .ico-box { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 12px 22px;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff; box-shadow: 0 10px 24px -8px rgba(230, 74, 25, 0.6);
}
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(230, 74, 25, 0.7); }
.btn-secondary {
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 139, 128, 0.55);
}
.btn-glass {
  color: #fff; background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------- nav */
.nav { position: fixed; top: 10px; left: 0; right: 0; z-index: 30; padding: 0 12px; }
.nav-inner {
  max-width: 1180px; margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 10px 0 12px; border-radius: 20px; color: #fff;
  background: rgba(6, 40, 38, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nav.scrolled .nav-inner {
  color: var(--ink); background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px -16px rgba(6, 52, 49, 0.35);
}
.nav.scrolled .btn-glass { color: var(--teal); background: rgba(0, 139, 128, 0.1); border-color: transparent; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: inherit; text-decoration: none; }
/* White badge so the logo's dark ring reads on dark backgrounds too. */
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: inherit; opacity: 0.86; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; gap: 8px; }
.nav-join { display: none; }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--deep);
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  /* minmax(0, 1fr): the swipeable strip must not widen the column (and push text off-screen). */
  grid-template-columns: minmax(0, 1fr);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 30%; }
/* Phones: the church sits up top, text on a deeper base. */
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 30, 28, 0.5) 0%, rgba(4, 30, 28, 0.08) 18%, rgba(4, 30, 28, 0.7) 40%, rgba(4, 30, 28, 0.9) 58%, rgba(4, 30, 28, 0.97) 100%);
}
.hero-content { position: relative; z-index: 1; align-self: end; padding-top: 120px; padding-bottom: 22px; }
.kicker { font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, 0.88); margin-bottom: 14px; }
.hero h1 { font-size: clamp(44px, 11vw, 92px); font-weight: 800; line-height: 1.0; letter-spacing: -0.04em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.lead { font-size: 17.5px; color: rgba(255, 255, 255, 0.9); max-width: 560px; margin: 16px 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stores-note { font-size: 13.5px; color: rgba(255, 255, 255, 0.78); }
.store {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 12px;
  font-weight: 700; font-size: 14px; color: #fff;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.store svg { width: 18px; height: 18px; fill: currentColor; }

.hero-strip-wrap { position: relative; z-index: 1; padding-bottom: 22px; }
/* Phones: swipe sideways; the strip scrolls, never the page. */
.hero-strip {
  list-style: none; margin: 0; padding: 4px 0 6px; display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hero-strip::-webkit-scrollbar { display: none; }
@media (max-width: 719px) {
  /* Let the strip run to the screen edge so it reads as swipeable. */
  .hero-strip-wrap { width: 100%; padding-left: 16px; }
  .hero-strip { padding-right: 16px; }
}
.hero-strip li {
  flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.hero-strip .ico-box { width: 40px; height: 40px; border-radius: 12px; margin: 0; background: rgba(255, 255, 255, 0.16); }
.hero-strip .ico { width: 20px; height: 20px; }
.hero-strip strong { display: block; font-size: 14.5px; }
/* Text only: the icon square is a span too and must keep its centred grid. */
.hero-strip li > div span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.8); }

/* --------------------------------------------------------------- services */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Photo tiles: real work, white type on a dark fade at the bottom. */
.ptile {
  position: relative; display: flex; align-items: flex-end; min-height: 190px; overflow: hidden;
  border-radius: var(--r); color: #fff; text-decoration: none; background: var(--deep);
  box-shadow: 0 14px 30px -18px rgba(11, 21, 20, 0.5);
}
.ptile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ptile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 20, 19, 0) 35%, rgba(5, 20, 19, 0.85) 100%); }
.ptile:hover img { transform: scale(1.04); }
.ptile:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 3px; }
.ptile-copy { position: relative; z-index: 1; padding: 16px; }
.ptile-copy strong { display: block; font-size: 17px; }
.ptile-copy span { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.ptile-big { grid-column: 1 / -1; min-height: 260px; }
.ptile-big .ptile-copy strong { font-size: 22px; }
.more-services { color: var(--muted); margin: 22px 0 0; max-width: 820px; }

/* ------------------------------------------------------------ trust (dark) */
.section-dark {
  color: #fff;
  background:
    radial-gradient(700px 460px at 0% 100%, rgba(0, 184, 169, 0.22), transparent 65%),
    linear-gradient(160deg, #052926, #0a3f3b);
}
.trust { display: grid; gap: 16px; margin-top: 28px; }
.trust-item { padding: 24px; }
.trust-item p { color: rgba(255, 255, 255, 0.78); margin: 0; }

/* ------------------------------------------------------------ photo cards */
.cards { display: grid; gap: 18px; }
.photo-card { position: relative; border-radius: 30px; overflow: hidden; min-height: 470px; display: flex; align-items: flex-end; box-shadow: 0 24px 50px -24px rgba(6, 52, 49, 0.45); }
.photo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.4)); }
.photo-card-copy { position: relative; z-index: 1; margin: 14px; padding: 20px; border-radius: 22px; background: linear-gradient(135deg, rgba(10, 30, 28, 0.42), rgba(10, 30, 28, 0.22)); }
.photo-card-copy p { color: rgba(255, 255, 255, 0.9); }
.photo-card h3 { font-size: 25px; }

/* ------------------------------------------------------------------ steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { padding: 24px; }
#how { background: var(--soft); }
.steps p { color: var(--muted); margin: 0; }

/* --------------------------------------------- waitlist (photo backdrop) */
.section-photo { overflow: hidden; color: #fff; isolation: isolate; }
.photo-backdrop {
  position: absolute; inset: -60px; z-index: -1;
  background: url('assets/stock/hero-windhoek-1280.jpg') center / cover;
  filter: blur(30px) saturate(140%);
}
.photo-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(4, 34, 32, 0.82), rgba(4, 34, 32, 0.62)); }
.section-photo .sub { color: rgba(255, 255, 255, 0.86); }
.waitlist { display: grid; gap: 28px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: 12px; color: rgba(255, 255, 255, 0.9); }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(127, 245, 227, 0.18); color: var(--mint); font-weight: 800; font-size: 13px; display: grid; place-items: center;
}
.form { padding: 22px; color: var(--ink); background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78)); border-radius: 28px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: rgba(15, 29, 28, 0.06); border-radius: 16px; padding: 4px; margin-bottom: 18px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 11px 8px; border-radius: 12px; font-weight: 700; color: var(--muted); transition: background .15s, color .15s; }
.segmented input:checked + span { background: var(--teal); color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 139, 128, 0.7); }
.segmented input:focus-visible + span { outline: 3px solid var(--orange-2); }
.form.provider .segmented input:checked + span { background: var(--orange); box-shadow: 0 6px 14px -6px rgba(230, 74, 25, 0.7); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field em { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.9); color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 139, 128, 0.14); }
.field input[aria-invalid='true'], .field select[aria-invalid='true'] { border-color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-msg { margin: 12px 0 0; font-weight: 700; text-align: center; }
.form-msg.ok { color: var(--teal); }
.form-msg.err { color: #dc2626; }

/* -------------------------------------------------------------------- faq */
details { padding: 17px 20px; margin-bottom: 10px; border-radius: 18px; }
summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: -3px; font-size: 24px; color: var(--teal); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 10px 0 0; }

/* ----------------------------------------------------------------- footer */
.footer { background: #051f1d; color: #c3d2d0; padding: 56px 0 96px; }
.footer-grid { display: grid; gap: 26px; }
.footer .brand { color: #fff; margin-bottom: 10px; }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer-grid a, .footer-grid span { display: block; color: #c3d2d0; text-decoration: none; margin-bottom: 6px; }
.footer-grid .brand { display: inline-flex; }
.footer-grid .brand span { display: inline; color: #fff; margin: 0; }
.footer-grid .brand .brand-mark { display: grid; }
.footer-grid a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 28px; padding-top: 18px; font-size: 13px; }
.credits a { color: #c3d2d0; }

/* -------------------------------------------- phone bar (after the hero) */
.mobile-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  padding: 8px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 16px 34px -14px rgba(6, 52, 49, 0.4);
  transform: translateY(160%); transition: transform .3s ease;
}
body.scrolled .mobile-bar { transform: none; }

/* ------------------------------------------------------------------ modal */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(5, 31, 29, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(380px, 100%); padding: 28px 24px 24px; text-align: center; background: rgba(255, 255, 255, 0.88); }
.modal-card p { color: var(--muted); }
.modal-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(15, 29, 28, 0.06); font-size: 22px; cursor: pointer; }
.qr { width: 196px; height: 196px; margin: 0 auto 16px; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }

/* ---------------------------------------------------------- bigger screens */
@media (min-width: 720px) {
  .section { padding: 88px 0; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .ptile-big { grid-column: span 2; grid-row: span 2; min-height: 392px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .hero-strip { overflow: visible; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .nav { top: 16px; }
  .nav-links { display: flex; }
  .nav-join { display: inline-flex; }
  .footer { padding-bottom: 28px; }
  .mobile-bar { display: none; }
  /* The sunset is a wide strip: a slightly shorter hero means less zoom. */
  .hero { min-height: 88vh; min-height: 88svh; }
  .hero-bg { object-position: 46% 40%; }
  /* Desktop: a deep teal fade from the left keeps the text crisp over the sky. */
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(14, 12, 16, 0.78) 0%, rgba(14, 12, 16, 0.6) 30%, rgba(14, 12, 16, 0.22) 48%, rgba(14, 12, 16, 0) 64%),
      linear-gradient(180deg, rgba(14, 12, 16, 0.4) 0%, rgba(14, 12, 16, 0) 22%, rgba(14, 12, 16, 0) 64%, rgba(14, 12, 16, 0.75) 100%);
  }
  .hero-content { align-self: center; padding-top: 110px; padding-bottom: 10px; }
  .hero h1 { max-width: 760px; }
  .hero-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); padding-bottom: 14px; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .waitlist { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mobile-bar, .nav-inner { transition: none; }
}
