/* ============================================================
   JobTab — Field Ledger brand system
   Fonts: Gotham (display/body), DIN Pro (figures/money)
   ============================================================ */

:root {
  --paper:        #F3EDE1;
  --card:         #FBF8F2;
  --white:        #FFFFFF;
  --ink:          #1F1B16;
  --panel-dark:   #1F1B16;   /* offline field section */
  --on-dark-muted:#C8C0B2;
  --ink-soft:     #4A4338;
  --muted:        #6F6656;
  --cobalt:       #2F54DB;
  --cobalt-strong:#1D3AAE;
  --amber:        #E07B1A;
  --amber-ink:    #C0650A;   /* amber as large text on paper (3.5:1) */
  --amber-meta:   #9E560C;   /* amber as small/meta text on paper (4.75:1) */
  --amber-deep:   #B35E08;   /* amber behind white text (4.6:1) */
  --green:        #1F7A4D;
  --red:          #C0392B;
  --hairline:     #DDD5C5;

  --font-display: "Gotham", "Helvetica Neue", sans-serif;
  --font-mono:    "DIN Pro", ui-monospace, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

:root { color-scheme: light; --header-bg: rgba(243,237,225,0.86); }

/* Dark theme — OPT-IN ONLY via the header toggle ([data-theme="dark"]).
   Light is the default in every case: fresh visit, OS dark preference, and
   no-JS. The OS-preference auto-dark block was removed because the brief
   requires a light-default site; a visitor who explicitly chooses dark keeps
   it via localStorage. */
:root[data-theme="dark"] {
  --paper:#161310; --card:#201c17; --white:#1b1814; --ink:#F3EDE1; --ink-soft:#cbc2b2;
  --panel-dark:#1F1B16; --on-dark-muted:#C8C0B2;
  --muted:#9a8f7d; --hairline:#36302a; --header-bg: rgba(22,19,16,0.88);
  --cobalt:#6d86f0; --cobalt-strong:#8499f5; --amber:#f0922f; --amber-ink:#f0922f; --amber-meta:#f0922f; --amber-deep:#B35E08; --green:#36a36c; --red:#e0584a;
  color-scheme: dark;
}

/* Skip link (added in audit) */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; font-weight: 500; text-decoration: none;
  transition: top 120ms ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* Theme toggle (added in audit) — 44px touch target, never flex-squashed
   (it measured 30x38 at 320px before). */
.theme-toggle {
  width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--card); color: var(--cobalt); cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease;
}
.theme-toggle:hover { border-color: var(--cobalt); transform: translateY(-1px); }
.theme-toggle__mark {
  width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-display);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: 17px;
  overflow-x: hidden;
  font-synthesis: none;
}

strong { font-weight: 500; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typographic helpers ----------
   Marketing preset: Regular/Medium body + controls, one Bold hero headline.
   Eyebrows are sentence case at 500 with a hair of tracking — not tracked
   all-caps (a template tell). */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.cobalt { color: var(--cobalt); }
.amber  { color: var(--amber-ink); }
.green  { color: var(--green); }
.red    { color: var(--red); }

/* Weight discipline: the single display-sized hero h1 is the only Bold;
   h2/h3 are Medium. Sizes follow the Marketing preset (body 16-17px,
   section headings 22-26px, interior page titles 28-32px). */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-weight: 700; }
h2, h3 { font-weight: 500; }
h2 { font-size: clamp(22px, 2.9vw, 26px); }
h3 { font-size: 18px; letter-spacing: -0.008em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(56px, 8vw, 104px); }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { margin-top: 12px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  padding: 14px 22px; min-height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--ink); color: var(--paper);
  cursor: pointer; transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid  { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn--solid:hover { background: var(--cobalt-strong); border-color: var(--cobalt-strong); }
.btn--cobalt { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn--cobalt:hover { background: var(--cobalt-strong); border-color: var(--cobalt-strong); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* App Store badge button (placeholder labeled badge) */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 4px;
  padding: 9px 18px; min-height: 48px;
  transition: transform .12s ease;
}
.appstore:hover { transform: translateY(-2px); }
.appstore .glyph { font-size: 24px; line-height: 1; }
.appstore .lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore .lines small { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; opacity: .8; }
.appstore .lines strong { font-size: 17px; font-weight: 500; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .name { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand .name b { color: var(--cobalt); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 16px; }

/* Mobile disclosure menu — the replacement for the header nav that
   display:none's below 640px. A separate <details> (not a wrapper around
   .nav) so the desktop row never depends on the details' open state. */
.nav-menu { display: none; }
.nav-menu > summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary .bars { position: relative; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: background 150ms ease; }
.nav-menu > summary .bars::before,
.nav-menu > summary .bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform 150ms ease;
}
.nav-menu > summary .bars::before { top: -6px; }
.nav-menu > summary .bars::after { top: 6px; }
.nav-menu[open] > summary .bars { background: transparent; }
.nav-menu[open] > summary .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-menu[open] > summary .bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  /* The one Bold, display-sized hero headline on the page. */
  font-size: clamp(36px, 4.6vw, 44px);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.02em;
}
.hero h1 .l2 { color: var(--cobalt); }
.hero h1 .l3 { color: var(--amber-ink); }
.hero .sub { font-size: clamp(16.5px, 1.6vw, 18px); color: var(--ink-soft); margin: 22px 0 14px; max-width: 520px; }
.hero .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.tag {
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  border: 1px solid var(--hairline); background: var(--card);
  padding: 6px 12px; border-radius: 2px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-money {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hairline);
  display: flex; gap: 40px; flex-wrap: wrap;
}
.hero-money .stat .k {
  font-family: var(--font-mono); font-weight: 500; font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em; color: var(--ink);
}
.hero-money .stat .k.cobalt,
.hero-money .stat .k.amber,
.hero-money .stat .k.green { color: var(--ink); }
.hero-money .stat { flex: 1 1 0; min-width: 0; }
.hero-money .stat .lab { font-size: 13px; letter-spacing: 0.02em; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* Phone frame */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone {
  width: min(310px, 78vw);
  border: 10px solid var(--ink);
  border-radius: 44px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(31,27,22,0.45);
  overflow: hidden;
  position: relative;
}
.phone img { border-radius: 34px; }
.phone-tag {
  position: absolute; right: -8px; bottom: 48px;
  background: var(--amber-deep); color: #fff;
  font-family: var(--font-mono); font-weight: 500; font-size: 15px;
  padding: 10px 14px; border-radius: 2px;
  box-shadow: 0 10px 24px -8px rgba(224,123,26,0.6);
  border: 2px solid var(--ink);
}

/* ============================================================
   TRADES STRIP
   ============================================================ */
.trades { background: var(--card); border-block: 1px solid var(--hairline); }
.trades-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.trade-card {
  background: var(--white); border: 1px solid var(--hairline);
  padding: 22px 18px; border-radius: 3px;
}
.trade-card .num { font-family: var(--font-mono); font-weight: 500; color: var(--cobalt); font-size: 13px; }
.trade-card .nm { font-weight: 500; font-size: 17px; margin-top: 10px; letter-spacing: -0.01em; }
.trade-card .ds { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ============================================================
   FLOW
   ============================================================ */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--hairline); background: var(--card); }
.flow-step { padding: 32px 26px; border-right: 1px solid var(--hairline); position: relative; }
.flow-step:last-child { border-right: none; }
.flow-step .step-n {
  font-family: var(--font-mono); font-weight: 500; font-size: 14px;
  color: var(--paper); background: var(--ink);
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.flow-step:nth-child(1) .step-n { background: var(--cobalt); }
.flow-step:nth-child(4) .step-n { background: var(--green); }
.flow-step h3 { margin: 18px 0 8px; }
.flow-step p { font-size: 14px; color: var(--ink-soft); }
.flow-step .arrow { position: absolute; top: 44px; right: -11px; z-index: 2; color: var(--muted); font-weight: 400; background: var(--paper); padding: 0 2px; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: var(--card); border: 1px solid var(--hairline);
  padding: 26px 24px; border-radius: 3px;
}
.feat .ftag { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.feat h3 { margin: 12px 0 8px; font-size: 18px; }
.feat p { font-size: 14px; color: var(--ink-soft); }
.feat .fig { font-family: var(--font-mono); font-weight: 500; color: var(--cobalt); }

/* ============================================================
   FIELD / OFFLINE
   ============================================================ */
.field { background: var(--panel-dark); color: var(--paper); }
.field .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.field .eyebrow { color: #F0922F; } /* bright amber for the dark panel (7.2:1) */
.field h2 { color: var(--paper); margin-top: 14px; }
.field p { color: var(--on-dark-muted); font-size: 17px; margin-top: 16px; }
.field-list { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.field-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--paper); }
.field-list .mk { font-family: var(--font-mono); color: #7DD4A8; font-weight: 500; flex-shrink: 0; }
.field-panel { border: 1px solid #3a352c; background: #25211b; border-radius: 4px; padding: 30px; }
.field-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid #3a352c; }
.field-row:last-child { border-bottom: none; }
.field-row .lab { color: #C8C0B2; font-size: 14px; }
.field-row .val { font-family: var(--font-mono); font-weight: 500; font-size: 18px; font-variant-numeric: tabular-nums; }
.badge { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .02em; padding: 4px 10px; border-radius: 2px; }
.field-row .val.green { color: #6FCF97; }
.field-row .val.red { color: #E58579; }
.badge--sent { background: rgba(47,84,219,0.18); color: #9FB4F5; border: 1px solid rgba(47,84,219,0.4); }
.badge--paid { background: rgba(31,122,77,0.18); color: #6FD39C; border: 1px solid rgba(31,122,77,0.4); }
.badge--over { background: rgba(192,57,43,0.18); color: #EE9A8E; border: 1px solid rgba(192,57,43,0.4); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--card); border-block: 1px solid var(--hairline); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--white); border: 1px solid var(--hairline);
  padding: 32px 28px; border-radius: 3px; display: flex; flex-direction: column;
}
.price-card.feature { border: 2px solid var(--cobalt); position: relative; }
.price-card.feature .pill { position: absolute; top: -13px; left: 28px; background: var(--cobalt); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .02em; padding: 5px 12px; border-radius: 2px; }
.price-card .plan { font-weight: 500; font-size: 18px; }
.price-card .amt { font-family: var(--font-mono); font-weight: 500; font-size: 40px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin: 14px 0 2px; }
.price-card .per { font-size: 14px; color: var(--muted); }
.price-card ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 12px; }
.price-card li { font-size: 14px; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.price-card li .ck { color: var(--green); font-family: var(--font-mono); font-weight: 500; flex-shrink: 0; }
.price-card li .ck.no { color: var(--muted); }
.price-card .btn, .price-card .appstore { margin-top: auto; justify-content: center; }
.price-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.faq-item { border-top: 1px solid var(--hairline); padding: 26px 0; }
.faq-item h3 { font-size: 18px; margin-bottom: 10px; }
.faq-item p { font-size: 16px; color: var(--ink-soft); }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner { background: var(--cobalt); color: #fff; }
.cta-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-top: 12px; font-size: 17px; }
.cta-banner .appstore { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--paper); border-top: 1px solid var(--hairline); padding-block: 56px 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 280px; }
.footer-col h4 { font-size: 13px; letter-spacing: .02em; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 15px; color: var(--ink-soft); padding: 5px 0; }
.footer-col a:hover { color: var(--cobalt); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }
.footer-links { display: inline-flex; gap: 20px; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--cobalt); }

/* ============================================================
   LEGAL / SUPPORT pages
   ============================================================ */
.doc { padding-block: clamp(48px, 7vw, 88px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(28px, 4vw, 32px); }
.doc .updated { font-family: var(--font-mono); color: var(--muted); font-size: 14px; margin-top: 14px; }
.doc h2 { font-size: 22px; margin-top: 40px; }
.doc h3 { font-size: 18px; margin-top: 28px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; margin-top: 14px; line-height: 1.65; }
.doc ul, .doc ol { margin-top: 14px; padding-left: 24px; }
.doc li { margin-top: 8px; }
.doc a { color: var(--cobalt); font-weight: 600; }
.doc a:hover { text-decoration: underline; }
.callout { background: var(--card); border: 1px solid var(--hairline); border-left: 4px solid var(--cobalt); padding: 20px 24px; border-radius: 3px; margin-top: 24px; }
.callout p { margin-top: 0; }

.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.support-card { background: var(--card); border: 1px solid var(--hairline); padding: 26px 24px; border-radius: 3px; }
.support-card h3 { margin-top: 0; }
.support-card p { font-size: 14px; }
.support-card a { font-family: var(--font-mono); font-size: 15px; font-weight: 600; display: inline-block; margin-top: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone-stage { order: -1; }
  .trades-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-step { border-bottom: 1px solid var(--hairline); }
  .flow-step:nth-child(2) { border-right: none; }
  .flow-step .arrow { display: none; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .field .wrap { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .support-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* With the mds layer's hero rule scoped to the section, restore an
     intentional eyebrow -> h1 rhythm on stacked phone heroes (desktop
     keeps its shipped tight 4px optical gap). */
  .hero .eyebrow { display: inline-block; margin-bottom: 12px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .header-cta .btn--ghost { display: none; }
  /* Mobile menu: hamburger replaces the hidden nav row. The header App
     Store badge drops out here too — at 390px it cannot fit beside a
     44px hamburger + 44px toggle (and at 320px it already wrapped into
     a broken 63px-tall two-line pill). The badge remains in the hero,
     pricing, and closing CTA. */
  .nav-menu { display: block; flex-shrink: 0; }
  .nav-menu .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--hairline);
    box-shadow: 0 8px 24px rgba(16, 18, 27, 0.08);
    padding: 4px 20px 12px;
  }
  .nav-menu .nav a {
    font-size: 16px; min-height: 48px;
    display: flex; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--hairline);
  }
  .nav-menu .nav a:last-child { border-bottom: none; }
  .header-cta .appstore { display: none; }
  /* Touch targets: footer nav and support-card CTAs reach 44px. */
  .footer-col a { padding-block: 12px; }
  .footer-links a { padding: 12px 10px; }
  .support-card a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; }
  .trades-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .hero-money { gap: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
