/* JobThread landing page. Same tokens as the app. */
:root {
  --ink: #1b1f1d;
  --page: #eef0ee;
  --card: #ffffff;
  --border: #d3d8d4;
  --muted: #565e59;
  --accent: #1f4fd1;
  --accent-hover: #163a9c;
  --approved: #0f6b5c;
  --approved-bg: #eaf4f1;
  --hot: #b4530a;
  --font: 'Archivo', Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.05;
  font-weight: 800;
  font-stretch: 75%;
  text-wrap: balance;
}
h1 {
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(32px, 4.6vw, 48px);
}
h3 {
  font-size: 26px;
  line-height: 1.1;
}
p {
  margin: 0 0 12px;
}
a {
  color: var(--accent);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.small {
  font-size: 15px;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
  font-weight: 600;
}
.hot {
  color: var(--hot);
  font-weight: 600;
  margin: 8px 0 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

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

.site-header {
  background: var(--ink);
  color: #fff;
  padding-top: env(safe-area-inset-top);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 24px;
  min-height: 44px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.header-nav a:not(.sign-in) {
  opacity: 0.85;
}
.sign-in {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0 18px;
}
@media (max-width: 520px) {
  .header-nav a:not(.sign-in) {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-hover);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn.ghost:hover {
  border-color: var(--ink);
}
.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.hero {
  padding: 56px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}
.lede {
  font-size: 20px;
  max-width: 34em;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.phone {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 22px 18px 18px;
  box-shadow: 0 30px 60px -30px rgba(27, 31, 29, 0.35);
  max-width: 400px;
  margin-left: auto;
}
.phone-meta {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  margin-bottom: 6px;
}
.bubble.out {
  background: var(--accent);
  color: #fff;
  border-radius: 20px 20px 6px 20px;
  padding: 12px 16px;
  font-size: 15px;
  margin-left: 24px;
  margin-bottom: 16px;
}
.bubble .link {
  text-decoration: underline;
}
.approval {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}
.approval p {
  margin: 0;
}
.approval-title {
  font-weight: 800;
  font-stretch: 75%;
  font-size: 24px;
  line-height: 1.1;
  margin: 4px 0 10px !important;
}
.approval-line {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--page);
  font-variant-numeric: tabular-nums;
}
.approval-line.total {
  font-weight: 700;
  border-bottom: 0;
}
.approved-stamp {
  margin-top: 10px;
  background: var(--approved-bg);
  color: var(--approved);
  border: 1px solid var(--approved);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 15px;
}

/* ---------------------------------------------------------------- how */

.how {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}
.steps h3 {
  font-size: 23px;
  margin-bottom: 6px;
}
.steps p {
  color: var(--muted);
  margin: 0;
}

/* ---------------------------------------------------------------- features */

.features {
  padding: 80px 0;
}
.section-lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 36em;
  margin-bottom: 40px;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.feature-copy p {
  font-size: 18px;
  max-width: 32em;
  margin: 0;
}
.mini {
  padding: 18px;
}
.mini p {
  margin: 0 0 4px;
}
.pkg,
.pay,
.sched,
.left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
}
.pkg {
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.pkg strong {
  font-stretch: 75%;
  font-size: 21px;
}
.pkg.on {
  border: 2px solid var(--accent);
}
.pay {
  padding: 9px 2px;
  border-bottom: 1px solid var(--page);
  border-radius: 0;
  font-size: 15px;
}
.pay span:last-child {
  font-weight: 700;
  color: var(--muted);
}
.pay.paid span:last-child {
  color: var(--approved);
}
.pay.due span:last-child {
  color: var(--accent);
}
.left {
  padding: 12px 2px 2px;
  font-weight: 700;
}
.left strong {
  font-size: 30px;
  font-stretch: 75%;
}
.sched {
  justify-content: flex-start;
  padding: 8px 0;
  font-size: 15px;
}
.chip {
  flex-shrink: 0;
  min-width: 92px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--page);
  font-weight: 600;
  font-size: 14px;
}
.chip.now {
  background: var(--approved-bg);
  color: var(--approved);
}
.mini.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.mini.dark .small {
  color: #cfd4d1;
}
.code {
  font-size: 30px;
  letter-spacing: 0.3em;
  margin: 6px 0 !important;
}
.also {
  list-style: none;
  margin: 24px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.also li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 15px;
}

/* ---------------------------------------------------------------- clients */

.clients {
  background: var(--ink);
  color: #fff;
  padding: 72px 0;
}
.clients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.clients h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}
.clients p {
  color: #d6dad7;
  font-size: 18px;
  margin: 0;
}

/* ---------------------------------------------------------------- signup */

.signup {
  padding: 80px 0;
}
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: start;
}
.signup-grid > div p {
  font-size: 19px;
  max-width: 30em;
}
.form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form .btn {
  width: 100%;
}
.form p {
  margin: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > span {
  font-weight: 600;
  font-size: 15px;
}
.field input,
.field select {
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 50px;
  width: 100%;
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.hidden-field {
  position: absolute;
  left: -9999px;
}

/* ---------------------------------------------------------------- faq */

.faq {
  padding: 0 0 80px;
}
.faq .wrap {
  max-width: 820px;
}
.faq details {
  border-top: 1px solid var(--border);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  font-weight: 700;
  font-size: 19px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 28px;
  font-weight: 400;
  color: var(--muted);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 40em;
}

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

.site-footer {
  background: var(--ink);
  color: #d6dad7;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}
.footer-row a {
  color: #fff;
}

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

@media (max-width: 900px) {
  .hero {
    padding: 36px 0 56px;
  }
  .hero-grid,
  .signup-grid,
  .clients-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .phone {
    margin: 0 auto;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li {
    flex-direction: row;
    align-items: flex-start;
  }
  .step-num {
    flex-shrink: 0;
  }
  .lede {
    font-size: 18px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}
