/* WORK ENGINE — marketing landing pages · workenginehq.com */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #0E0E10;
  --surface: #17171A;
  --surface-2: #1F1F22;
  --surface-3: #2A2A2E;
  --line: rgba(255, 214, 10, 0.5);
  --line-soft: rgba(255, 214, 10, 0.22);
  --yellow: #FFD60A;
  --text: #FFFFFF;
  --text-mid: #C7C7CC;
  --text-dim: #8A8A8F;
  --accent: #FFFFFF;
  --steel: #C7C7CC;
  --safe: #46A758;
  --danger: #E5484D;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1140px;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

/* ── Nav ─────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,14,16,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 88px;
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700;
  font-size: 14px; letter-spacing: 0.14em;
  text-decoration: none;
}
.wordmark .mk {
  width: 68px; height: 68px;
  border-radius: 15px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.nav-links {
  display: flex; gap: 24px; margin-left: 12px;
}
.nav-links a {
  font-family: var(--display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Role switcher — two-way segmented toggle */
.role-toggle {
  display: flex; gap: 3px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.role-toggle a {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.role-toggle a:hover { color: var(--text); }
.role-toggle a[data-on="1"] {
  background: var(--accent);
  color: #0E0E10;
  font-weight: 700;
}

/* ── Buttons ─────────────────────────────────────── */

.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700;
  font-size: 14px; letter-spacing: 0.02em;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.06s, opacity 0.15s;
}
.l-btn:active { transform: translateY(1px); }
.l-btn svg { display: block; flex-shrink: 0; }
.l-btn.yellow { background: var(--accent); color: #0E0E10; }
.l-btn.yellow:hover { opacity: 0.9; }
.l-btn.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.l-btn.ghost:hover { border-color: var(--text-dim); }
.l-btn.sm { padding: 9px 16px; font-size: 12px; border-radius: 8px; }

/* ── Hero ────────────────────────────────────────── */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(255,255,255,0.04), transparent),
    var(--bg);
  /* No overflow:hidden — it clipped the iPhone install popover, which opens
     below the CTA row and extends past the hero's bottom edge. */
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 84px 0 88px;
}
.kicker {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
}
.kicker::before {
  content: ""; width: 8px; height: 8px;
  background: var(--yellow);
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal; color: var(--steel);
}
.hero-sub {
  font-size: 18px; line-height: 1.6;
  color: var(--text-mid);
  max-width: 52ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* iPhone setup popover */
.ios-howto { position: relative; }
.ios-howto summary { list-style: none; cursor: pointer; user-select: none; }
.ios-howto summary::-webkit-details-marker { display: none; }
.ios-howto[open] summary { border-color: var(--yellow); }
.ios-steps {
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 340px; z-index: 30;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 20px 60px -16px rgba(0,0,0,0.8);
}
.ios-steps-title {
  font-family: var(--display); font-weight: 700;
  font-size: 14px; margin: 0 0 12px;
}
.ios-steps ol {
  margin: 0; padding: 0 0 0 20px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; color: var(--text-mid);
}
.ios-steps ol li::marker {
  font-family: var(--mono); font-size: 12px;
  color: var(--steel);
}
.ios-steps-note {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.02em;
  margin: 14px 0 0;
}
.hero-note {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.04em;
  margin: 16px 0 0;
}

/* Hero app-card mock */
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8);
  max-width: 400px;
  justify-self: end;
  width: 100%;
}
.mock-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.mock-bar .t {
  font-family: var(--display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.06em;
}
.mock-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 9px; border-radius: 99px;
}
.mock-pill.live { background: var(--safe); color: #fff; }
.mock-pill.line { border: 1px solid var(--line); color: var(--text-mid); }
.mock-role {
  font-family: var(--display); font-weight: 700;
  font-size: 24px; letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.mock-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.02em;
  margin: 0 0 18px;
}
.mock-rows {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-soft);
  margin-bottom: 18px;
}
.mock-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.mock-row .k { color: var(--text-dim); }
.mock-row .v { font-family: var(--mono); font-size: 12px; }
.mock-row .v.acc { color: var(--accent); font-weight: 700; }
.mock-btn {
  display: block; text-align: center;
  background: var(--accent); color: #0E0E10;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px; border-radius: 10px;
}
.mock-foot {
  text-align: center;
  font-family: var(--mono); font-size: 10px;
  color: var(--text-dim); letter-spacing: 0.06em;
  margin: 12px 0 0;
}

/* ── Ticker strip ────────────────────────────────── */

.ticker-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 11px 0;
}
@keyframes lpTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-run {
  display: flex; gap: 36px; white-space: nowrap;
  width: max-content;
  animation: lpTicker 70s linear infinite;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--text-mid);
}
.ticker-run .it { display: flex; align-items: center; gap: 8px; }
.ticker-run .dot {
  width: 6px; height: 6px; border-radius: 99px; display: inline-block;
  background: var(--safe);
}
.ticker-run .dot.gone { background: var(--text-dim); }
.ticker-run .rate { color: var(--accent); font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .ticker-run { animation: none; }
}

/* ── Sections ────────────────────────────────────── */

.sect { padding: 88px 0; border-bottom: 1px solid var(--line-soft); }
.sect-head { max-width: 680px; margin-bottom: 48px; }
.sect-head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08; letter-spacing: -0.015em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.sect-head p {
  font-size: 16px; color: var(--text-mid);
  margin: 0; text-wrap: pretty;
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.l-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 26px;
}
.l-card h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 18px; letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.l-card p { font-size: 14px; color: var(--text-mid); margin: 0; text-wrap: pretty; }
.l-card .tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel);
  display: block; margin-bottom: 14px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 26px;
  position: relative;
}
.step .n {
  font-family: var(--mono); font-weight: 700;
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--steel);
  display: block; margin-bottom: 16px;
}
.step h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 17px; margin: 0 0 8px;
}
.step p { font-size: 13.5px; color: var(--text-mid); margin: 0; text-wrap: pretty; }

/* Trade chips */
.trades {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.trade {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 99px;
  padding: 10px 16px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
}
.trade .r {
  font-family: var(--mono); font-size: 12px;
  color: var(--steel);
}

/* Pricing */
.price-zero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}
.zero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.zero-card .big {
  font-family: var(--display); font-weight: 700;
  font-size: 88px; line-height: 1; letter-spacing: -0.03em;
  color: var(--accent);
  margin: 0 0 10px;
}
.zero-card .big-l {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
}
.zero-card p { font-size: 14px; color: var(--text-mid); margin: 0; text-wrap: pretty; }

.fee-table {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 10px 26px;
  display: flex; flex-direction: column;
}
.fee-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.fee-row:last-child { border-bottom: none; }
.fee-row .k { font-family: var(--display); font-weight: 600; font-size: 14px; }
.fee-row .v {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  text-align: right;
}
.fee-row .v.free { color: var(--safe); }
.fee-row .v.acc { color: var(--accent); }
.fee-row .s {
  grid-column: 1 / -1;
  font-size: 12px; color: var(--text-dim);
}

/* Pricing tiers (PM page) */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 0;
}
.tier[data-hot="1"] { border-color: var(--yellow); }
.tier .t-name {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
}
.tier[data-hot="1"] .t-name { color: var(--accent); }
.tier .t-price {
  font-family: var(--display); font-weight: 700;
  font-size: 34px; letter-spacing: -0.02em; line-height: 1;
  margin: 0 0 4px;
}
.tier .t-sub {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-dim);
  margin: 0 0 22px;
}
.tier ul {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13.5px; color: var(--text-mid);
}
.tier ul li { display: flex; gap: 10px; align-items: baseline; }
.tier ul li::before {
  content: "—"; color: var(--text-dim);
  font-family: var(--mono); flex-shrink: 0;
}
.tier .l-btn { margin-top: auto; }

/* Worked example */
.example {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 26px;
}
.example .ex-k {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  padding: 18px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono); font-size: 16px;
  color: var(--text-dim); flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0; padding: 0 0 20px;
  font-size: 14px; color: var(--text-mid);
  max-width: 64ch; text-wrap: pretty;
}

/* Footer CTA */
.foot-cta { padding: 96px 0; text-align: center; border-bottom: 1px solid var(--line-soft); }
.foot-cta h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 0 0 16px; text-wrap: balance;
}
.foot-cta p { color: var(--text-mid); margin: 0 0 30px; }
.foot-cta .hero-ctas { justify-content: center; }

/* Footer */
.footer { padding: 36px 0 44px; }
.footer-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
}
.footer .wordmark { font-size: 12px; }
.footer .wordmark .mk { width: 52px; height: 52px; border-radius: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 12px; color: var(--text-dim); text-decoration: none;
}
.footer-links a:hover { color: var(--text); }
.footer-meta {
  margin-left: auto;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.06em; color: var(--text-dim);
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding: 56px 0 64px; }
  .mock { justify-self: start; }
  .price-zero { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .sect { padding: 64px 0; }
}

/* ── Hero CTAs: all buttons on one row ───────────── */
/* Equal-width buttons that never wrap to a second row; labels may wrap
   inside the button on narrow screens instead. Scoped to the hero so the
   footer CTAs (button + long text link) keep their wrapping behavior. */

.hero .hero-ctas { flex-wrap: nowrap; align-items: stretch; }
.hero .hero-ctas > .l-btn,
.hero .hero-ctas .ios-howto { flex: 1 1 0; min-width: 0; }
.hero .hero-ctas .ios-howto summary.l-btn { width: 100%; }
.hero .hero-ctas .l-btn { text-align: center; padding-left: 12px; padding-right: 12px; }

/* Keep the iPhone popover on-screen — it opens from the rightmost button. */
.ios-steps { width: min(340px, calc(100vw - 48px)); }

@media (max-width: 560px) {
  .hero .hero-ctas { gap: 8px; }
  .hero .hero-ctas .l-btn { font-size: 12px; padding: 12px 8px; gap: 6px; }
  .hero .hero-ctas .l-btn svg { width: 14px; height: 14px; }
  .hero .hero-ctas .ios-steps { left: auto; right: 0; }
}
