/* Landing page styles. Design tokens copied from the app (/workspace/jobsite-tracker/css/theme.css):
   deep navy structure + terracotta/amber action colours on warm stone. */
:root {
  --bg: #f3eee6; --bg-2: #ebe4d8; --surface: #fffdf9; --surface-2: #f8f3ea;
  --ink: #18223a; --ink-2: #384358; --muted: #5f6572; --line: #e5ddd0; --line-2: #d6ccbb;
  --brand: #17233a; --brand-2: #243556; --brand-ink: #f6f1e8;
  --accent: #c65d3b; --accent-2: #e3a03a; --accent-soft: #f8e4da; --accent-line: #ecc2b0;
  --ok: #23724a; --ok-bg: #dcefe3; --bad: #b3372a; --bad-bg: #f9ddd8; --warn: #9a6408; --warn-bg: #fbecc9;
  --radius: 20px; --radius-md: 14px; --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(24,34,58,.05), 0 2px 8px rgba(24,34,58,.05);
  --shadow-2: 0 2px 4px rgba(24,34,58,.06), 0 12px 32px rgba(24,34,58,.10);
  --shadow-3: 0 8px 24px rgba(24,34,58,.18), 0 30px 70px rgba(24,34,58,.22);
  --font: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 7.4vw, 3.6rem); font-weight: 780; }
h2 { font-size: clamp(1.65rem, 5vw, 2.45rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .7rem 1.5rem; border-radius: 14px; font: inherit; font-weight: 720; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: linear-gradient(180deg, #efb04a, var(--accent-2)); color: #1b1305; box-shadow: 0 6px 18px rgba(227,160,58,.35); }
.btn-amber:hover { box-shadow: 0 10px 26px rgba(227,160,58,.5); }
.btn-navy { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(246,241,232,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-sm { min-height: 42px; padding: .4rem 1.1rem; font-size: .95rem; border-radius: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(23,35,58,.94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 780; font-size: 1.15rem; letter-spacing: -.01em; }
.logo svg { width: 34px; height: 34px; flex: none; }
.nav { display: none; margin-left: auto; gap: 1.4rem; }
.nav a { color: #d8d4cb; text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav a:hover { color: #fff; }
.site-header .btn { margin-left: auto; }
@media (min-width: 820px) { .nav { display: flex; } .site-header .btn { margin-left: 1.2rem; } }

/* hero */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(800px 460px at 85% -10%, rgba(227,160,58,.30), transparent 62%),
  radial-gradient(700px 420px at -10% 110%, rgba(198,93,59,.22), transparent 60%),
  linear-gradient(180deg, #17233a, #1c2b49); color: var(--brand-ink); padding: 52px 0 0; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero .lede { color: #cfd3dc; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.chips li { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 650; color: #e9e4d9; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: .35rem .8rem; border-radius: 99px; }
.chips .icon { color: var(--accent-2); width: 1.05em; height: 1.05em; }
.hero-art { position: relative; margin-top: 12px; padding-bottom: 0; }
.frame { background: #0e1626; border-radius: 18px 18px 0 0; padding: 12px 12px 0; box-shadow: var(--shadow-3); border: 1px solid rgba(255,255,255,.1); border-bottom: 0; }
.frame img { border-radius: 8px 8px 0 0; width: 100%; }
.phone { display: none; }
@media (min-width: 900px) {
  .hero { padding-top: 76px; }
  .hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: center; }
  .hero-art { margin-top: 0; align-self: end; }
  .phone { display: block; position: absolute; right: -14px; bottom: 0; width: 25%; background: #0e1626; padding: 8px 8px 0; border-radius: 26px 26px 0 0; box-shadow: var(--shadow-3); border: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
  .phone img { border-radius: 19px 19px 0 0; }
}
.hero-note { font-size: .84rem; color: #a9b0c0; margin: 0 0 1.6rem; }

/* sections */
section { padding: 72px 0; }
.sec-head { max-width: 720px; margin-bottom: 2.4rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lede { margin-left: auto; margin-right: auto; }
.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* feature grid */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1); }
.card .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--brand); color: var(--accent-2); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico .icon { width: 24px; height: 24px; }
.card p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* showcase rows */
.show { display: grid; gap: 28px; align-items: center; }
.show + .show { margin-top: 84px; }
.show .copy ul { padding-left: 1.1rem; margin: 0 0 1rem; color: var(--ink-2); }
.show .copy li { margin-bottom: .45rem; }
.shot { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 8px; box-shadow: var(--shadow-2); }
.shot img { border-radius: 11px; width: 100%; }
.shots { display: grid; gap: 14px; }
.cap { font-size: .84rem; color: var(--muted); margin: .6rem 4px 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: .15rem .6rem; border-radius: 99px; margin-left: .3rem; vertical-align: middle; }
@media (min-width: 900px) {
  .show { grid-template-columns: 1fr 1.15fr; gap: 56px; }
  .show.flip .copy { order: 2; }
  .show.flip .shots, .show.flip .shot { order: 1; }
  .show.wide { grid-template-columns: 1fr 1.3fr; }
}
.phone-pair { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; align-items: end; }
.shot.p img { border-radius: 14px; }

/* offline band */
.band { background: var(--brand); color: var(--brand-ink); background-image: radial-gradient(700px 360px at 90% 0, rgba(227,160,58,.22), transparent 60%); }
.band h2, .band h3 { color: #fff; }
.band .lede { color: #cfd3dc; }
.band .eyebrow { color: var(--accent-2); }
.pts { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 760px) { .pts { grid-template-columns: repeat(3, 1fr); } }
.pt { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); border-radius: var(--radius-md); padding: 20px; }
.pt p { margin: 0; color: #c9ced9; font-size: .96rem; }

/* comparison */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-1); -webkit-overflow-scrolling: touch; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .96rem; }
.cmp caption { text-align: left; padding: 14px 18px 0; color: var(--muted); font-size: .86rem; caption-side: bottom; padding-bottom: 14px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--brand); color: #fff; font-size: .92rem; border-bottom: 0; }
.cmp thead th.us { background: linear-gradient(180deg, #2a3d62, var(--brand-2)); color: var(--accent-2); }
.cmp tbody th { font-weight: 680; width: 24%; }
.cmp td.us { background: #fdf6e9; font-weight: 560; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.yes, .no, .mid { display: inline-flex; width: 1.5em; height: 1.5em; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; font-size: .85em; margin-right: .5em; vertical-align: -.2em; flex: none; }
.yes { background: var(--ok-bg); color: var(--ok); } .no { background: var(--bad-bg); color: var(--bad); } .mid { background: var(--warn-bg); color: var(--warn); }
.fine { font-size: .86rem; color: var(--muted); max-width: 80ch; margin-top: 1rem; }

/* pricing */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow-1); }
.plan.pop { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); box-shadow: var(--shadow-3); }
.plan.pop h3, .plan.pop .price { color: #fff; }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--accent-2); color: #1b1305; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .8rem; border-radius: 99px; }
.price { font-family: var(--font-display); font-size: 3rem; font-weight: 790; letter-spacing: -.03em; line-height: 1; margin: .3rem 0 .2rem; }
.price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; opacity: .7; }
.plan .sub { font-size: .92rem; opacity: .8; margin-bottom: 1.2rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; flex: 1; }
.plan li { display: flex; gap: .6rem; padding: .4rem 0; font-size: .97rem; }
.plan li .icon { color: var(--ok); margin-top: .15em; width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.plan.pop li .icon { color: var(--accent-2); }
.plan .btn { width: 100%; }
.price-notes { display: grid; gap: .5rem 2rem; margin-top: 1.6rem; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
@media (min-width: 760px) { .price-notes { grid-template-columns: repeat(2, 1fr); } }
.price-notes li { display: flex; gap: .6rem; }
.price-notes .icon { color: var(--accent); margin-top: .15em; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 10px; box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 680; position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--accent); transition: transform .18s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { padding: 0 20px 18px; color: var(--ink-2); }
.faq .ans p:last-child { margin-bottom: 0; }

/* final cta + footer */
.final { background: linear-gradient(180deg, #17233a, #1c2b49); color: #fff; text-align: center; padding: 76px 0; background-image: radial-gradient(600px 300px at 50% 0, rgba(227,160,58,.28), transparent 65%), linear-gradient(180deg, #17233a, #1c2b49); }
.final h2 { color: #fff; }
.final p { color: #cfd3dc; max-width: 52ch; margin: 0 auto 1.6rem; }
footer { background: #101a2d; color: #aab1c1; padding: 36px 0 44px; font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
footer a { color: #d8d4cb; }
footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.legal-note { width: 100%; font-size: .8rem; color: #8892a6; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; margin-top: 4px; }

/* legal pages */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 800px; }
.draft { background: var(--warn-bg); border: 2px solid var(--warn); color: #5b3a02; border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 28px; font-weight: 600; }
.draft strong { display: block; font-size: 1.05rem; letter-spacing: .02em; }
.doc h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2.2em; }
.doc li { margin-bottom: .45em; }
.doc .meta { color: var(--muted); font-size: .94rem; }
.doc .callout { background: var(--surface); border-left: 5px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 1.2em 0; box-shadow: var(--shadow-1); }
.doc table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 1em 0 1.4em; background: var(--surface); }
.doc th, .doc td { border: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); }
.doc .tw { overflow-x: auto; }
.doc .tw table { min-width: 560px; }
.caps { text-transform: uppercase; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* comparison table: stack into cards on phones */
@media (max-width: 699px) {
  .table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  table.cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td, .cmp caption { display: block; min-width: 0; width: 100%; }
  .cmp thead { position: absolute; left: -9999px; }
  .cmp tbody tr { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-1); }
  .cmp tbody th { width: 100%; background: var(--brand); color: #fff; border: 0; padding: 12px 16px; font-size: .95rem; }
  .cmp td { border: 0; padding: 12px 16px; }
  .cmp td.us::before { content: var(--brand-name, "Us"); }
  .cmp td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .cmp td.us { background: #fdf6e9; }
  .cmp td.us::before { color: var(--warn); }
  .cmp caption { padding: 0 2px 12px; }
}

/* pricing add-ons */
.addons { margin-top: 28px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 26px 24px; box-shadow: var(--shadow-1); }
.addons-head h3 { margin: 0 0 .3rem; }
.addons-head p { margin: 0 0 1rem; color: var(--ink-2); }
.addon-cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 700px) { .addon-cards { grid-template-columns: repeat(2, 1fr); } }
.addon-card { border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 20px; background: var(--bg, #fff); }
.addon-card h4 { margin: 0; font-size: 1.1rem; }
.addon-price { font-family: var(--font-display); font-size: 2rem; font-weight: 790; letter-spacing: -.02em; margin: .2rem 0; }
.addon-price small { font-size: .95rem; font-weight: 600; letter-spacing: 0; opacity: .7; }
.addon-card p { margin: 0; color: var(--ink-2); }
.addon-card .muted { opacity: .75; font-size: .92rem; }
summary .tag, .tag-pro { margin-left: .5rem; background: var(--brand); color: #fff; }

.nav-login { margin-left:auto; margin-right:.75rem; font-weight:600; color:#d8d4cb; text-decoration:none; padding:.5rem .4rem; }
.nav-login:hover { color:#fff; }
@media (min-width: 820px) { .nav-login { margin-left:1.2rem; margin-right:0; } }
