/*
 * Jobbmagnet marketing site — mobile-first, restrained. Built on the app's design
 * tokens (var(--brand) …; tokens.css generated from packages/ui/src/tokens.json).
 * Brand orange is used sparingly (logo, primary CTA, small accents); navy (--accent)
 * carries depth. The product screens are the REAL app, embedded from /app/.
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font), system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, iframe { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--text-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-dark);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--brand); }
.eyebrow.light { color: #ff9d85; }
.eyebrow.light::before { background: #ff7a58; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding-inline: 24px; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  box-shadow: 0 8px 20px -6px rgba(255, 77, 46, 0.5);
}
.btn-primary:hover { box-shadow: 0 12px 26px -6px rgba(255, 77, 46, 0.6); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-text { height: auto; padding: 12px 6px; color: var(--text); background: none; }
.btn-text:hover { color: var(--brand); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand-tile {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 10px rgba(255, 77, 46, 0.35);
}
.brand-tile svg { width: 17px; height: 17px; }
.brand-word { font-size: 18px; }
.nav-links { display: none; }
.nav-cta { display: flex; gap: 8px; margin-left: auto; }
.nav-cta .btn { height: 40px; padding-inline: 16px; font-size: 15px; }
.nav-cta .btn-ghost { display: none; }
.nav-toggle { display: none; }
@media (min-width: 900px) {
  .nav-links { display: flex; gap: 2px; margin-left: 8px; }
  .nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--text-2); }
  .nav-links a:hover { color: var(--text); background: var(--surface-2); }
  .nav-links a[aria-current="page"] { color: var(--brand); }
  .nav-cta .btn-ghost { display: inline-flex; }
}

/* ---------- rhythm ---------- */
.section { padding-block: 64px; }
.section-head { max-width: 620px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; margin-top: 16px; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--text-2); line-height: 1.5; }
@media (min-width: 900px) { .section { padding-block: 96px; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 22px; }

/* ---------- device frame (embeds the REAL app) ---------- */
.device {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 300 / 620;
  background: #14171d;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 40px 80px -30px rgba(15, 20, 35, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.device::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 40%; height: 22px; background: #14171d; border-radius: 0 0 14px 14px; z-index: 2; }
.device iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: var(--bg); }

/* ---------- hero ---------- */
.hero { padding-top: 44px; padding-bottom: 12px; }
.hero-grid { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
.hero-copy { width: 100%; }
.hero h1 { font-size: clamp(38px, 9vw, 62px); font-weight: 800; margin-top: 20px; letter-spacing: -0.035em; }
.hero-lead { margin-top: 20px; font-size: clamp(17px, 4.4vw, 21px); color: var(--text-2); max-width: 32ch; line-height: 1.45; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-3); }
.hero-device { align-self: center; }
@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero-grid { flex-direction: row; justify-content: space-between; gap: 48px; align-items: center; }
  .hero-copy { max-width: 540px; flex-shrink: 0; }
  .hero-device { align-self: auto; }
  .device { width: 320px; }
}

/* ---------- honest stat strip ---------- */
.strip { border-block: 1px solid var(--border); background: var(--surface); }
.strip-row { display: grid; gap: 4px 32px; padding-block: 26px; }
.stat b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.stat span { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }
@media (min-width: 720px) { .strip-row { grid-template-columns: repeat(3, 1fr); gap: 32px; } .stat { padding-right: 20px; } .stat + .stat { border-left: 1px solid var(--border); padding-left: 32px; } }

/* ---------- steps ---------- */
.steps { display: grid; gap: 14px; margin-top: 40px; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-1); }
.step-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.step-ico svg { width: 24px; height: 24px; }
.step-num { position: absolute; top: 22px; right: 24px; font-size: 13px; font-weight: 800; color: var(--text-3); letter-spacing: 0.05em; }
.step-card h3 { font-size: 18px; margin-top: 18px; }
.step-card p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ---------- trust band (dark, for depth + seriousness) ---------- */
.trust-band { background: var(--accent); color: #fff; border-radius: 0; }
.trust-band .section-head h2 { color: #fff; }
.trust-band .section-head p { color: rgba(255, 255, 255, 0.72); }
.trust-grid { display: grid; gap: 36px; }
.trust-points { display: grid; gap: 22px; }
.tp { display: flex; gap: 16px; align-items: flex-start; }
.tp-ico { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #ff9d85; }
.tp-ico svg { width: 22px; height: 22px; }
.tp h4 { font-size: 16px; font-weight: 700; }
.tp p { margin-top: 5px; font-size: 14px; color: rgba(255, 255, 255, 0.66); line-height: 1.5; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; } .trust-points { grid-template-columns: 1fr 1fr; gap: 28px 32px; } }

/* ---------- screens gallery ---------- */
.gallery { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 22px; margin-inline: -20px; padding-inline: 20px; }
.gallery::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: center; text-align: center; flex-shrink: 0; }
.shot figcaption { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--text-2); }
@media (min-width: 980px) { .gallery { justify-content: center; overflow: visible; } }

/* ---------- closing ---------- */
.closing { text-align: center; max-width: 560px; margin-inline: auto; padding: 20px 0; }
.closing .brand-tile { width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 20px; }
.closing .brand-tile svg { width: 26px; height: 26px; }
.closing h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 800; }
.closing p { margin-top: 12px; font-size: 17px; color: var(--text-2); }
.closing .btn { margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 4px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 4px 18px; color: var(--text-2); line-height: 1.55; }

/* ---------- prose / pricing ---------- */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(30px, 7vw, 44px); font-weight: 800; }
.prose h2 { font-size: 22px; font-weight: 800; margin-top: 36px; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; margin-top: 12px; line-height: 1.6; }
.prose ul { padding-left: 20px; } .lead { font-size: 19px; color: var(--text-2); margin-top: 16px; line-height: 1.5; }
.note { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border)); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; color: var(--brand-dark); margin-top: 22px; }

.plans { display: grid; gap: 18px; max-width: 720px; margin-inline: auto; margin-top: 36px; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-2); }
.plan h3 { font-size: 18px; } .price { font-size: 42px; font-weight: 800; margin-top: 8px; letter-spacing: -0.03em; } .price small { font-size: 15px; font-weight: 600; color: var(--text-3); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 11px; }
.plan li { font-size: 15px; color: var(--text-2); padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan .btn { margin-top: 24px; } .plan-tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }

/* ---------- style guide ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 22px; }
.sw { margin: 0; } .sw-chip { display: block; height: 62px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.sw figcaption { margin-top: 8px; font-size: 12px; } .sw figcaption b { display: block; } .sw code, .trow code { color: var(--text-3); font-size: 12px; }
.token-table { margin-top: 18px; display: grid; gap: 8px; }
.trow { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.type-scale > * { margin-top: 10px; } .demo-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 0; background: var(--surface); }
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-block: 48px; }
.foot-brand { grid-column: 1 / -1; } .foot-brand .muted { margin-top: 12px; font-size: 14px; max-width: 34ch; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 12px; }
.foot-col a { display: block; padding: 5px 0; font-size: 15px; color: var(--text-2); } .foot-col a:hover { color: var(--brand); }
.foot-base { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-block: 20px; border-top: 1px solid var(--border); font-size: 13px; }
@media (min-width: 720px) { .foot { grid-template-columns: 1.6fr repeat(3, 1fr); } .foot-brand { grid-column: auto; } }
