/* Hirova landing page.
   Plain CSS, no frameworks, no external requests, no inline styles (the CSP in _headers
   forbids them). Colours are tokens so light/dark and later theming change one place.
   Motion is gentle and turned off for people who ask for reduced motion. */

:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --text: #1c1c1a;
  --muted: #5f5e5a;
  --accent: #0f6e56;
  --accent-soft: #e1f5ee;
  --accent-text: #ffffff;
  --warm: #d85a30;
  --border: #e4e2da;
  --error: #a32d2d;
  --focus: #185fa5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 28, 26, 0.04), 0 8px 24px rgba(28, 28, 26, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161715;
    --surface: #1f201d;
    --text: #f1efe8;
    --muted: #b4b2a9;
    --accent: #5dcaa5;
    --accent-soft: #15332a;
    --accent-text: #04342c;
    --warm: #f0997b;
    --border: #3a3b37;
    --error: #f09595;
    --focus: #85b7eb;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --bg: #161715;
  --surface: #1f201d;
  --text: #f1efe8;
  --muted: #b4b2a9;
  --accent: #5dcaa5;
  --accent-soft: #15332a;
  --accent-text: #04342c;
  --warm: #f0997b;
  --border: #3a3b37;
  --error: #f09595;
  --focus: #85b7eb;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main, .top, .foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); }
a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}
.mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--warm));
}
.top-cta {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.top-cta:hover { background: var(--accent-soft); }

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

.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding: 48px 0 24px;
}
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding-top: 72px; }
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}
h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.lede {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}

/* signup card */
.signup {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 560px;
}
.row {
  display: grid;
  gap: 16px;
}
@media (min-width: 560px) {
  .row { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 14px; }

input[type="email"], input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input::placeholder { color: var(--muted); opacity: 0.8; }
input:focus { border-color: var(--accent); }
input[aria-invalid="true"] { border-color: var(--error); }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }

button.cta {
  padding: 15px 20px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 6px 16px -6px var(--accent);
}
button.cta:hover { transform: translateY(-1px); }
button.cta:active { transform: translateY(0); }
button:disabled { opacity: 0.6; cursor: wait; }

/* Bot-trap field: off-screen rather than display:none, since some bots skip hidden inputs. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.error { margin: 0; color: var(--error); font-size: 14px; }
.status { margin: 0; font-size: 15px; min-height: 1.5em; }

/* ---------- digest illustration ---------- */

.hero-visual { position: relative; }

.digest {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
  max-width: 480px;
  justify-self: center;
}

.digest-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.digest-title { font-weight: 700; }
.digest-time { margin-left: auto; color: var(--muted); }

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.job {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.job h3 {
  font-size: 15px;
  line-height: 1.3;
  margin: 0 0 2px;
}
.job p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
}
.job:nth-of-type(2) .logo { color: var(--warm); background: color-mix(in srgb, var(--warm) 14%, transparent); }
.job:nth-of-type(4) .logo { color: var(--focus); background: color-mix(in srgb, var(--focus) 14%, transparent); }

.chip {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
}
.fresh {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Cards slide in one after another, starting when the panel scrolls into view
   (script.js adds .is-visible), so phone users see it too.
   :nth-of-type counts only the <article> cards, not the header row before them. */
.job {
  opacity: 0;
  transform: translateY(14px);
}
.hero-visual.is-visible .job {
  animation: slide-in 0.6s var(--ease) forwards;
}
.job:nth-of-type(1) { animation-delay: 0.15s; }
.job:nth-of-type(2) { animation-delay: 0.32s; }
.job:nth-of-type(3) { animation-delay: 0.49s; }
.job:nth-of-type(4) { animation-delay: 0.66s; }
.job:nth-of-type(5) { animation-delay: 0.83s; }

@keyframes slide-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.steps, .price, .disclaimer {
  padding: 56px 0 8px;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .step-list { grid-template-columns: repeat(3, 1fr); }
}
.step-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-list p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
}

.price-card {
  max-width: 460px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.price-card p { margin: 0 0 8px; }
.price-amount { font-size: 18px; margin-bottom: 4px; }
.amount { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.per { color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }

.disclaimer p { max-width: 62ch; color: var(--muted); font-size: 15px; }

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

.foot {
  margin-top: 56px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.foot p { margin: 6px 0; }

/* ---------- phones ---------- */

@media (max-width: 480px) {
  .top-cta { display: none; }
  .digest-time { display: none; }
}

/* ---------- reduced motion: show everything, no movement ---------- */

@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;
  }
  .reveal { opacity: 1; transform: none; }
  .job { opacity: 1; transform: none; }
}
