/* pilota.css: the one stylesheet for the marketing pages (Nov 17 2026).
   Merged from styles.css + home.css + site-v2.css + app-ui.css, in that cascade order,
   with the retired 'measured drawing' decoration and the rules that cancelled it removed.
   styles.css stays only for the sign-up funnel (signup.html, success.html). */

/* ===== base ===== */
/* FREEsite marketing site — construction management SaaS.
   Palette: slate ink + teal accent (matches the portals/apps). */
:root {
  --ink: #0a0a0a;          /* neutral near-black (no slate navy) */
  --ink-2: #262626;
  --muted: #5A6B82;
  --line: #E4E9F0;
  --bg: #FFFFFF;
  --bg-soft: #F2F5F9;      /* cool concrete */
  --teal: #14B8A6;
  --teal-d: #0D9488;
  --amber: #F59E0B;
  --shadow: 0 1px 2px rgba(10,10,10,.04), 0 12px 32px -8px rgba(10,10,10,.10);
  --shadow-lg: 0 1px 2px rgba(10,10,10,.04), 0 30px 60px -18px rgba(10,10,10,.18);
  --radius: 16px;
  --radius-lg: 22px;

  /* Typography — Archivo (industrial display) · Inter (body) · IBM Plex Mono
     (engineering callouts / data). Loaded via <link> in each page <head>. */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Construction-grounded accents (flat — no gradients) */
  --hi: #F59E0B;           /* hi-vis safety amber, used sparingly */
  --blueprint: rgba(10,10,10,.045);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-d); box-shadow: 0 8px 20px rgba(20,184,166,.3); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-d); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85);
  backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand .dot { width: 11px; height: 11px; border-radius: 3px; background: var(--teal); display: inline-block; }
.brand-mark { width: 26px; height: 26px; object-fit: contain; display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* Hero */
.hero { padding: 84px 0 64px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-d); background: rgba(20,184,166,.10);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.03em;
  font-weight: 800; max-width: 16ch;
}
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 56ch; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Logos / trust row */
.trust { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trust .container { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 14px; }
.trust strong { color: var(--ink); }

/* Sections */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(20,184,166,.12); color: var(--teal-d); margin-bottom: 16px;
}
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing { background: var(--bg-soft); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column;
  position: relative;
}
.plan.highlighted { border-color: var(--teal); box-shadow: 0 14px 36px rgba(20,184,166,.18); }
.plan .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.plan h3 { font-size: 19px; font-weight: 800; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 2px; }
.plan .price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .plan-desc { color: var(--muted); font-size: 14px; min-height: 40px; }
.plan ul { list-style: none; margin: 18px 0 24px; display: grid; gap: 10px; }
.plan li { font-size: 14px; display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { flex: 0 0 auto; margin-top: 3px; color: var(--teal); }
.plan .btn { margin-top: auto; }
.plan .trial { font-size: 13px; color: var(--teal-d); font-weight: 600; margin-top: 10px; text-align: center; }

/* CTA band */
.cta-band { padding: 70px 0; text-align: center; background: var(--ink); color: #fff; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.cta-band p { color: #CBD5E1; margin: 12px auto 28px; max-width: 50ch; }

/* Footer */
footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .container { display: block; }
footer a { color: var(--muted); } footer a:hover { color: var(--ink); }

/* ===== Funnel (signup.html) ===== */
.funnel-wrap { min-height: 100vh; background: var(--bg-soft); display: flex; flex-direction: column; }
.funnel-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; }
.funnel-card { width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 36px; }
.steps { display: flex; gap: 8px; margin-bottom: 28px; }
.steps .step { flex: 1; height: 5px; border-radius: 999px; background: var(--line); transition: background .2s; }
.steps .step.active, .steps .step.done { background: var(--teal); }
.funnel-card h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.funnel-card .sub { color: var(--muted); font-size: 15px; margin: 6px 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; outline: none; background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.12); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; } }
.funnel-actions { display: flex; gap: 12px; margin-top: 24px; }
.funnel-actions .btn { flex: 1; }
.plan-pick { display: grid; gap: 12px; }
.plan-opt {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: border-color .15s, background .15s;
}
.plan-opt:hover { border-color: var(--teal); }
.plan-opt.selected { border-color: var(--teal); background: rgba(20,184,166,.06); }
.plan-opt .pname { font-weight: 700; }
.plan-opt .pmeta { font-size: 13px; color: var(--muted); }
.plan-opt .pprice { font-weight: 800; font-size: 18px; }
.confirm-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.confirm-row:last-child { border-bottom: 0; }
.confirm-row .k { color: var(--muted); }
.confirm-row .v { font-weight: 600; }
.msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.msg.error { display: block; background: #FEE2E2; border: 1px solid #FCA5A5; color: #991B1B; }
.muted-link { color: var(--muted); font-size: 14px; text-align: center; display: block; margin-top: 18px; }
.muted-link a { color: var(--teal-d); font-weight: 600; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.success-card { text-align: center; }
.success-card .check { width: 72px; height: 72px; border-radius: 50%; background: rgba(20,184,166,.12); color: var(--teal-d); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }

/* ============================================================
   MULTI-PAGE EXPANSION — shared nav, sub-page heroes, content
   blocks, FAQ, contact, legal, footer columns. Builds on the
   tokens + components above; same slate-ink + teal system.
   ============================================================ */

/* --- Top nav: dropdown + mobile menu --- */
.nav-cta { display: inline-flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; color: var(--ink);
  width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 10px;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.mobile-nav {
  display: none; border-bottom: 1px solid var(--line); background: #fff;
}
.mobile-nav.open { display: block; }
.mobile-nav .container { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; gap: 2px; }
.mobile-nav a { padding: 12px 8px; color: var(--ink-2); font-weight: 600; border-radius: 8px; }
.mobile-nav a:hover { background: var(--bg-soft); }
.mobile-nav .mn-cta { margin-top: 8px; }
@media (max-width: 860px) {
  .nav-links .nav-page { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* --- Sub-page hero --- */
.subhero { padding: 70px 0 40px; border-bottom: 1px solid var(--line); }
.subhero .eyebrow { margin-bottom: 16px; }
.subhero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; max-width: 18ch; }
.subhero p { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 62ch; margin-top: 18px; }
.subhero .hero-actions { margin-top: 26px; }

/* --- Generic section helpers --- */
.section.alt { background: var(--bg-soft); }
.section.tight { padding: 56px 0; }
.center { text-align: center; }
.lead-narrow { max-width: 680px; margin: 0 auto; color: var(--ink-2); font-size: 18px; line-height: 1.7; }

/* --- "How it works" steps --- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: how; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }
.how .step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.how .step-card::before {
  counter-increment: how; content: counter(how); position: absolute; top: -16px; left: 24px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(20,184,166,.35);
}
.how h3 { font-size: 17px; font-weight: 700; margin: 8px 0 6px; }
.how p { color: var(--muted); font-size: 15px; }

/* --- Alternating feature rows --- */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feat-row:first-of-type { border-top: 0; }
.feat-row.flip .feat-visual, .feat-row.flip .fp-stage { order: -1; }
@media (max-width: 860px) { .feat-row { grid-template-columns: 1fr; gap: 28px; } .feat-row.flip .feat-visual, .feat-row.flip .fp-stage { order: 0; } }
.feat-row .eyebrow { margin-bottom: 14px; }
.feat-row h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; font-weight: 800; }
.feat-row p { color: var(--muted); font-size: 16px; margin: 14px 0 18px; }
.feat-row ul { list-style: none; display: grid; gap: 10px; }
.feat-row li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.feat-row li svg { flex: 0 0 auto; margin-top: 3px; color: var(--teal); }
/* Decorative product "mock" panel */
.feat-visual { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; min-height: 240px; }
.mock-bar { height: 12px; border-radius: 6px; background: var(--line); margin-bottom: 12px; }
.mock-bar.s { width: 45%; } .mock-bar.m { width: 70%; } .mock-bar.teal { background: rgba(20,184,166,.45); width: 60%; }
.mock-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 14px; box-shadow: var(--shadow); }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mock-row:last-child { border-bottom: 0; }
.mock-dot { width: 28px; height: 28px; border-radius: 8px; background: rgba(20,184,166,.15); flex: 0 0 auto; }
.mock-pill { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--teal-d); background: rgba(20,184,166,.12); padding: 3px 9px; border-radius: 999px; }

/* --- Module grid (features.html) --- */
.module-group { margin-top: 48px; }
.module-group > h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.module-group > h2 .gi { width: 30px; height: 30px; border-radius: 8px; background: rgba(20,184,166,.12); color: var(--teal-d); display: inline-flex; align-items: center; justify-content: center; }
.module-group > p { color: var(--muted); margin: 6px 0 22px; }
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .modules { grid-template-columns: 1fr; } }
.module { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.module h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.module h3 svg { color: var(--teal-d); }
.module p { color: var(--muted); font-size: 14px; }

/* --- Stats band --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat .n { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* --- Audience / solutions cards --- */
.aud { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .aud { grid-template-columns: 1fr; } }
.aud .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.aud .card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.aud .card p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.aud .card ul { list-style: none; display: grid; gap: 8px; }
.aud .card li { display: flex; gap: 9px; font-size: 14px; align-items: flex-start; }
.aud .card li svg { color: var(--teal); flex: 0 0 auto; margin-top: 3px; }

/* --- Testimonial / quote --- */
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote blockquote { font-size: clamp(20px, 2.6vw, 27px); font-weight: 700; letter-spacing: -.02em; line-height: 1.4; }
.quote .by { color: var(--muted); margin-top: 18px; font-size: 15px; }

/* --- App / mobile section --- */
.appcta { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .appcta { grid-template-columns: 1fr; } }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; }
.store-badge small { display: block; font-size: 10px; font-weight: 500; color: #CBD5E1; line-height: 1; }
.store-badge b { font-size: 15px; line-height: 1.2; }
.store-badge.soon { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.phone-mock { background: var(--ink); border-radius: 28px; padding: 14px; max-width: 280px; margin: 0 auto; box-shadow: var(--shadow); }
.phone-mock .screen { background: #fff; border-radius: 18px; padding: 16px; min-height: 360px; }

/* --- FAQ accordion --- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 20px; font-size: 16px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-q .chev { transition: transform .2s; flex: 0 0 auto; color: var(--muted); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 18px; font-weight: 800; margin: 18px 0 6px; }
.contact-info p, .contact-info a { color: var(--muted); font-size: 15px; }
.contact-info a { color: var(--teal-d); font-weight: 600; }
.field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; outline: none; font-family: inherit; resize: vertical; min-height: 130px; }
.field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.12); }
.msg.ok { display: block; background: #DCFCE7; border: 1px solid #86EFAC; color: #166534; }

/* --- Legal prose --- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 20px; font-weight: 800; margin: 30px 0 10px; letter-spacing: -.01em; }
.prose h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; margin-bottom: 10px; }
.prose ul { padding-left: 20px; margin-bottom: 12px; }
.prose .updated { color: var(--muted); font-size: 14px; }

/* --- Footer columns --- */
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 8px; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; } }
.footer-cols .col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 12px; }
.footer-cols .col a { display: block; color: var(--muted); padding: 5px 0; font-size: 14px; }
.footer-cols .col a:hover { color: var(--teal-d); }
.footer-cols .about p { color: var(--muted); font-size: 14px; margin: 12px 0; max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
.footer-bottom .legal-links a { margin-left: 16px; color: var(--muted); }
.footer-bottom .legal-links a:hover { color: var(--ink); }

/* --- 404 --- */
.nf { text-align: center; padding: 100px 0; }
.nf .code { font-size: 90px; font-weight: 800; letter-spacing: -.04em; color: var(--teal); line-height: 1; }

/* --- Two-column hero + product preview (index) --- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero-grid .hero-copy h1 { max-width: 18ch; }
.hero-preview { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; }
.hero-preview .pv-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.hero-preview .pv-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.hero-preview .pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pv-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.pv-tile .k { font-size: 12px; color: var(--muted); }
.pv-tile .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.pv-tile .v.teal { color: var(--teal-d); }
.pv-wide { grid-column: 1/-1; }
.pv-line { height: 10px; border-radius: 5px; background: var(--line); margin: 8px 0; }
.pv-line.teal { background: rgba(20,184,166,.4); width: 64%; }
.pv-line.s { width: 40%; } .pv-line.m { width: 78%; }
.badge-soft { display:inline-flex; align-items:center; gap:6px; font-size:12px;font-weight:700;color:var(--teal-d);background:rgba(20,184,166,.12);padding:4px 10px;border-radius:999px; }

/* ===========================================================================
   MODERN REFRESH — appended last so it wins the cascade. Construction-grounded:
   industrial display type, IBM Plex Mono "engineering callout" labels, a faint
   blueprint grid, hi-vis amber accent, and a "stamp" signature. Backward
   compatible — only restyles existing classes + adds new feature-page parts.
   =========================================================================== */

/* --- Type system --- */
h1, h2, h3, .brand,
.hero h1, .subhero h1, .section-head h2, .feat-row h2, .module-group > h2,
.plan h3, .aud .card h3, .cta-band h2, .quote blockquote, .nf .code, .stat .n {
  font-family: var(--font-display);
  letter-spacing: -.025em;
}
.brand { letter-spacing: -.03em; }
h1, .hero h1, .subhero h1 { font-weight: 800; }
.stat .n { font-weight: 800; }

/* Mono utility voice for data + labels */
.stat .l, .pv-tile .k, .badge-soft, .store-badge small, .crumbs,
.module-group > h2 .gi + *, .footer-cols .col h4 {
  font-family: var(--font-mono);
}
.footer-cols .col h4 { letter-spacing: .1em; font-weight: 600; }
.badge-soft { letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }

.hero { position: relative; }

/* --- Buttons (refined, subtle depth) --- */
.btn { border-radius: 11px; font-weight: 600; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn-primary { background: var(--teal); box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 8px 20px -6px rgba(20,184,166,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(20,184,166,.55); background: var(--teal-d); }
.btn-ghost { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--teal-d); }

/* --- Header / nav --- */
.site-header { background: rgba(255,255,255,.72); backdrop-filter: saturate(160%) blur(14px); }
.brand .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--teal); box-shadow: 0 2px 8px rgba(20,184,166,.5); }
.nav-links a:not(.btn) { font-size: 14.5px; }

/* --- Cards: feature / module / plan / aud / how --- */
.feature, .module, .plan, .aud .card, .how .step-card {
  border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover, .module:hover, .aud .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #D5DEEA; }
.module:hover { box-shadow: var(--shadow); }
.feature .ico { background: var(--teal); color: #fff; box-shadow: 0 6px 16px -4px rgba(20,184,166,.5); }
.feature .ico svg { stroke: #fff; }

/* Section heading hairline rhythm */
.section-head h2 { line-height: 1.1; }

/* --- Sub-page hero polish --- */
.subhero { border-bottom: 1px solid var(--line); }

/* --- NEW: breadcrumbs (feature pages) --- */
.crumbs { font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal-d); }
.crumbs .sep { opacity: .5; }
.crumbs .cur { color: var(--ink); }

/* --- NEW: spec list (engineering "what you get" checklist) --- */
.spec { list-style: none; display: grid; gap: 12px; margin: 8px 0; }
.spec li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.spec li svg { margin-top: 3px; color: var(--teal); }
.spec li b { font-weight: 700; }

/* --- NEW: benefit grid (feature pages) --- */
.benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 860px){ .benefits { grid-template-columns: 1fr; } }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.benefit .bi { width: 42px; height: 42px; border-radius: 11px; background: rgba(20,184,166,.12); color: var(--teal-d); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.benefit h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; font-family: var(--font-display); letter-spacing: -.01em; }
.benefit p { color: var(--muted); font-size: 14px; }

/* --- NEW: related features (internal linking / SEO silo) --- */
.related { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 860px){ .related { grid-template-columns: 1fr; } }
.related a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.related a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.related a .rt { font-weight: 700; font-family: var(--font-display); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.related a .rd { color: var(--muted); font-size: 13px; margin-top: 4px; }
.related a .arrow { color: var(--teal-d); }

/* --- NEW: "stamp" signature element (signed & timestamped — core to the product) --- */
.stamp {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--font-mono); color: var(--teal-d); border: 2px solid var(--teal);
  border-radius: 10px; padding: 8px 14px; transform: rotate(-4deg);
  text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 600;
  background: rgba(20,184,166,.06);
}
.stamp b { font-size: 14px; font-family: var(--font-display); letter-spacing: .02em; }

/* --- Hub: feature index groups --- */
.hub-group { margin-top: 44px; }
.hub-group h2 { font-size: 14px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--teal-d); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }

/* --- Quality floor --- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .faq-q:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover, .feature:hover, .module:hover, .aud .card:hover, .related a:hover { transform: none; }
}

/* ===========================================================================
   POLISH PASS — "measured drawing" language + simple motion. Flat (no gradients).
   Spends the boldness in one place: dimension lines, corner crop-ticks, and
   engineering callouts, so the page reads like a construction document set
   rather than a generic SaaS template.
   =========================================================================== */


/* --- Type presence --- */
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.02; }
.subhero h1 { font-size: clamp(32px, 4.6vw, 50px); }
.section-head h2, .feat-row h2 { line-height: 1.08; }


.section-head { position: relative; }

.hero-preview, .feat-visual, .phone-mock, .plan.highlighted { position: relative; }

/* --- Drawing-viewport hero preview: hairline title bar w/ mono tag --- */
.hero-preview { border-radius: 14px; }
.hero-preview .pv-top { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.hero-preview .pv-top::before {
  content: "DWG"; font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .14em; color: var(--muted); margin-right: 4px;
}

/* --- Mono dimension caption helper (e.g. under the hero mock) --- */
.dim-cap {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 10px; margin-top: 16px; justify-content: center;
}
.dim-cap::before, .dim-cap::after { content: ""; height: 1px; flex: 1; background: var(--line); max-width: 70px; }

/* --- Footer: faint column rules (drawing-grid feel) --- */

/* --- Nav underline grow --- */
.nav-links a.nav-page { position: relative; }
.nav-links a.nav-page::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px;
  background: var(--teal); transition: right .25s ease;
}
.nav-links a.nav-page:hover::after { right: 0; }

/* --- Stamp: settle straight on hover --- */
.stamp { transition: transform .2s ease; }
.stamp:hover { transform: rotate(0deg); }

/* --- Card hover: reveal corner-tick accent a touch more --- */
.feature:hover .ico, .benefit:hover .bi { transform: translateY(-2px); transition: transform .18s ease; }

/* ============================ MOTION ============================ */
html.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
html.anim .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.anim .reveal { opacity: 1 !important; transform: none !important; }
  .nav-links a.nav-page::after { transition: none; }
}

/* --- Feature grid as a drawing "index": mono leading-zero numbers + sharper
   spec-sheet treatment (de-templates the generic white card grid). --- */
.features { counter-reset: feat; }
.feature { position: relative; border-radius: 12px; }
.feature::after {
  counter-increment: feat;
  content: counter(feat, decimal-leading-zero);
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted); opacity: .6;
}
.feature::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px;
  background: var(--teal); border-radius: 12px 12px 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.feature:hover::before { transform: scaleX(1); }
.feature:hover::after { color: var(--teal-d); opacity: 1; }
.feature h3 { padding-right: 34px; font-family: var(--font-display); letter-spacing: -.01em; }

/* ---- Billing interval toggle (pricing cards + funnel plan pick) ---- */
.billing-toggle {
  display: flex; justify-content: center; gap: 0;
  width: max-content; margin: 0 auto 26px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px;
}
.billing-toggle button {
  appearance: none; border: 0; cursor: pointer;
  font: 600 14px/1 var(--font-family); color: var(--muted);
  background: transparent; border-radius: 999px; padding: 9px 18px;
  transition: background .15s ease, color .15s ease;
}
.billing-toggle button.on { background: var(--ink); color: #fff; }
.billing-toggle button em {
  font-style: normal; font-family: var(--font-mono); font-size: 11px;
  color: var(--teal); margin-left: 4px;
}
.billing-toggle button.on em { color: #5EEAD4; }
.plan .annual-note {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--teal-d); margin: -6px 0 10px;
}


/* ---- Success-page plane (A/B variant B) ----
   The animated confirmation FREEZ asked for. An inline SVG rather than a GIF:
   crisp at any size, no asset to ship, and it can respect reduced-motion. */
.pilota-plane svg { overflow: visible; }
.pilota-plane { animation: pilota-takeoff .9s cubic-bezier(.22,.61,.36,1) both; }
.pilota-plane .pilota-trail {
  animation: pilota-trail 1.1s ease-out .25s both;
}
@keyframes pilota-takeoff {
  0%   { opacity: 0; transform: translate3d(-14px, 10px, 0) rotate(-12deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
}
@keyframes pilota-trail {
  0%   { stroke-dashoffset: 24; opacity: 0; }
  40%  { opacity: .45; }
  100% { stroke-dashoffset: 0; opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  .pilota-plane, .pilota-plane .pilota-trail { animation: none; }
}

/* ===== home sections + device frames ===== */
/* Homepage v2 (Nov 2026): product-led layout. Flat fills, no gradients.
   Device frames hold real app screens rebuilt from the iOS and portal source. */

/* ---------- Device frames ---------- */
.dev-phone {
  width: 100%; max-width: 300px; aspect-ratio: 393 / 852; padding: 10px; background: #0a0a0a;
  box-shadow: var(--shadow-lg); position: relative;
}
.dev-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; background: #fff; }
.dev-browser {
  width: 100%; border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.dev-browser .bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.dev-browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d9e0; display: inline-block; }
.dev-browser .bar .url { margin: 0 auto; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; font-family: var(--font-mono); }
.dev-browser img { width: 100%; height: auto; display: block; }

/* ---------- Hero composite ---------- */
.hero-stage { position: relative; padding-bottom: 40px; }
.hero-stage .dev-browser { width: 100%; }
.hero-stage .dev-phone { position: absolute; right: -14px; bottom: -8px; width: 34%; max-width: 210px; padding: 7px; }
.hero-stage .dev-phone img { }
@media (max-width: 920px) { .hero-stage .dev-phone { right: 4px; } }

/* ---------- Leaks: where jobs lose money ---------- */
.leaks { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .leaks { grid-template-columns: 1fr; gap: 28px; } }
.leaks h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.leaks .intro p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.leak { padding: 18px 0; border-bottom: 1px solid var(--line); }
.leak:first-child { padding-top: 0; }
.leak .top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.leak h3 { font-size: 16px; font-weight: 700; }
.leak .cost { font-size: 13px; font-weight: 700; color: #b91c1c; white-space: nowrap; }
.leak p { color: var(--muted); font-size: 15px; margin-top: 6px; }
@media (max-width: 480px) { .leak .top { flex-direction: column; gap: 2px; } }

/* ---------- One day on the job: steps + phone ---------- */
.day { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .day { grid-template-columns: 1fr; gap: 32px; } }
.day-head { max-width: 640px; margin-bottom: 40px; }
.day-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.day-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.day-steps { display: flex; flex-direction: column; gap: 6px; }
.day-step {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; text-align: left; width: 100%;
  padding: 18px; border-radius: 14px; border: 1px solid transparent; background: none; cursor: pointer; font: inherit; color: inherit;
}
.day-step:hover { background: var(--bg-soft); }
.day-step.on { background: rgba(20,184,166,.08); border-color: rgba(20,184,166,.45); }
.day-step .n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #fff; }
.day-step.on .n { background: var(--teal); border-color: var(--teal); color: #fff; }
.day-step .when { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-d); }
.day-step h3 { font-size: 17px; font-weight: 700; margin-top: 2px; }
.day-step p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.day-step a { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--teal-d); }
.day-visual { display: flex; justify-content: center; }
.day-visual .dev-phone img { display: none; }
.day-visual .dev-phone img.on { display: block; }

/* ---------- Stage explorer ---------- */
.stage-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.stage-tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.stage-tab.on { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.stage-panel { display: none; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stage-panel.on { display: grid; }
@media (max-width: 980px) { .stage-panel.on { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stage-panel.on { grid-template-columns: 1fr; } }
.stage-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; }
.stage-card h3 { font-size: 16px; font-weight: 700; }
.stage-card p { color: var(--muted); font-size: 14px; margin-top: 6px; flex: 1; }
.stage-card a { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--teal-d); }

/* ---------- Surfaces: phone + portal ---------- */
.surfaces-head { max-width: 640px; margin-bottom: 18px; }
.surfaces-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.surfaces-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 32px; font-size: 14px; color: var(--ink-2); }
.chips span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: middle; }
.surface-stage { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 168px 56px 0; }
.surface-stage .dev-browser { width: 100%; }
.surface-stage .dev-phone { position: absolute; right: 0; bottom: 0; width: 22%; max-width: 230px; padding: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.surface-stage .dev-phone img { }
@media (max-width: 720px) { .surface-stage { padding: 0 0 40px; } .surface-stage .dev-phone { width: 34%; right: 4px; } }

/* ===== layout v2 (nav, feature pages, hub) ===== */
/* PILOTA site v2 layer (Nov 2026), loaded after styles.css on every page.
   Modeled on pro.trackara.app: dark nav with a stage-grouped mega menu, 1200px
   container, one page per feature with real app screens. Flat fills only. */

:root { --wrap: 1200px; --red-stake: #b91c1c; --teal-text: #0a766f; }
.container { max-width: var(--wrap); padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Type scale ---------- */
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); letter-spacing: -.035em; }
.subhero h1, .fp-hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.section-head h2, .fp h2, .day-head h2, .surfaces-head h2, .leaks h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.025em; line-height: 1.08; }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 680px; }

/* ---------- Nav ---------- */
.site-header { background: #0a0a0a; border-bottom: 1px solid #0a0a0a; backdrop-filter: none; }
.site-header .container { height: 66px; gap: 28px; justify-content: flex-start; }
.site-header .brand { color: #fff; }
.site-header .nav-links { gap: 24px; flex: 1; }
.site-header .nav-links > a, .mega-btn { color: #d4d4d4; font-size: 14px; font-weight: 500; }
.site-header .nav-links > a:hover, .mega-btn:hover, .site-header .nav-links > a[aria-current="page"] { color: #fff; }
.site-header .nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header .nav-right .signin { color: #fff; font-size: 14px; font-weight: 600; padding: 9px 12px; }
.site-header .nav-right .btn { padding: 9px 16px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.site-header .nav-toggle { color: #fff; border-color: #262626; }
.site-header .nav-toggle:hover { background: #1a1a1a; }
.mega-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.mega-btn svg { transition: transform .2s ease; }
.has-mega.open .mega-btn { color: #fff; }
.has-mega.open .mega-btn svg { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 66px; display: none; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(10,10,10,.35); }
.has-mega.open .mega { display: block; }
.mega-in { max-width: var(--wrap); margin: 0 auto; padding: 26px 32px 28px; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr) 1.1fr; }
.mega-col h4 { font-size: 12px; font-weight: 700; color: #737373; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 8px; }
.mega-col a { display: block; padding: 7px 8px; margin: 0 -8px; border-radius: 9px; }
.mega-col a b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mega-col a span { display: block; font-size: 12.5px; color: #525252; line-height: 1.35; }
.mega-col a:hover { background: #f5f5f4; } .mega-col a:hover b { color: var(--teal-text); }
.mega-promo { background: var(--bg-soft); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mega-promo img { border-radius: 8px; border: 1px solid var(--line); }
.mega-promo b { font-size: 14px; } .mega-promo p { font-size: 13px; color: #525252; }
.mega-promo a { font-size: 13px; font-weight: 600; color: var(--teal-text); }
.mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13.5px; font-weight: 600; }
.mega-all a { color: var(--teal-text); }
@media (max-width: 980px) {
  .site-header .nav-links, .site-header .nav-right .signin { display: none; }
  .mega { display: none !important; }
}
.mobile-nav { background: #fff; }
.mobile-nav h4 { font-size: 12px; text-transform: uppercase; color: #737373; padding: 14px 8px 4px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--teal-text); }
.crumbs span { margin: 0 6px; color: #a3a3a3; }

/* ---------- Feature page ---------- */
.fp-hero { padding: 56px 0 64px; }
.fp-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .fp-hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.fp-hero .eyebrow { margin-bottom: 16px; }
.fp-hero p.lead { font-size: clamp(17px, 1.8vw, 19px); color: var(--muted); margin: 18px 0 26px; max-width: 56ch; }
.fp-platforms { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }
.fp-platforms span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 7px; vertical-align: middle; }
.fp-stage { position: relative; padding-bottom: 36px; }
.fp-stage .dev-browser { width: 92%; }
.fp-stage .dev-phone { position: absolute; right: 0; bottom: 0; width: 30%; max-width: 200px; padding: 7px; }
.fp-stage .dev-phone img { }
.fp-stage.phone-only { display: flex; justify-content: center; padding-bottom: 0; }
.fp-stage.phone-only .dev-phone { position: static; width: 100%; max-width: 280px; padding: 10px; }
.fp-stage.phone-only .dev-phone img { }

.fp-what { background: var(--bg-soft); border-radius: 18px; padding: 28px 32px; max-width: 860px; }
.fp-what h2 { font-size: 20px !important; letter-spacing: -.01em; margin-bottom: 8px; }
.fp-what p { font-size: 17px; color: var(--ink-2); }

.fp-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
@media (max-width: 860px) { .fp-pains { grid-template-columns: 1fr; } }
.fp-pain { border-top: 2px solid var(--ink); padding-top: 16px; }
.fp-pain .cost { font-size: 12.5px; font-weight: 700; color: var(--red-stake); }
.fp-pain h3 { font-size: 17px; font-weight: 700; margin: 4px 0 6px; }
.fp-pain p { color: var(--muted); font-size: 15px; }

.fp-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 980px) { .fp-caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fp-caps { grid-template-columns: 1fr; } }
.fp-cap { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.fp-cap h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.fp-cap p { color: var(--muted); font-size: 14.5px; }

.fp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; counter-reset: fps; }
.fp-steps.n3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .fp-steps, .fp-steps.n3 { grid-template-columns: 1fr; } }
.fp-step { counter-increment: fps; padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.fp-step::before { content: counter(fps); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.fp-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.fp-step p { color: var(--muted); font-size: 14.5px; }

.fp-stake { background: #0a0a0a; color: #fff; border-radius: 20px; padding: 40px; }
.fp-stake h2 { color: #fff; font-size: clamp(24px, 3vw, 34px) !important; }
.fp-stake p { color: #d4d4d4; font-size: 17px; margin-top: 10px; max-width: 64ch; }

.fp-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 860px) { .fp-related { grid-template-columns: 1fr; } }

/* ---------- Feature hub ---------- */
.hub-group { padding: 36px 0; border-top: 1px solid var(--line); }
.hub-group:first-of-type { border-top: 0; }
.hub-group h2 { font-size: clamp(22px, 2.6vw, 28px) !important; margin-bottom: 4px; }
.hub-group > p { color: var(--muted); margin-bottom: 20px; }
.hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer .footer-cols.v2 { grid-template-columns: 1.3fr repeat(6, 1fr); gap: 28px; }
@media (max-width: 1100px) { footer .footer-cols.v2 { grid-template-columns: repeat(4, 1fr); } footer .footer-cols.v2 .about { grid-column: 1 / -1; } }
@media (max-width: 640px) { footer .footer-cols.v2 { grid-template-columns: 1fr 1fr; } }
footer .footer-cols.v2 .col a { font-size: 13.5px; }

/* ---------- Pricing: included features ---------- */
.included-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; }
@media (max-width: 980px) { .included-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .included-grid { grid-template-columns: 1fr; } }
.hub-group { margin-top: 0; }
.hub-group h2 { font-family: var(--font-display); text-transform: none; letter-spacing: -.02em; color: var(--ink); display: block; font-weight: 800; }
.mega-in > * { min-width: 0; }
.mega-promo img { width: 100%; height: auto; display: block; }

/* ===== app UI (portal + iOS components) ===== */
/* PILOTA app UI layer (Nov 2026). Loaded LAST on every page.
   The marketing site uses the same components as the product:
   - tokens, buttons, cards, stat cards, badges, inputs: Client Portal shared.css
   - section labels: the portal sidebar's black .nav-section-label chips
   - tabs / toggles: the iOS FilterChip (teal capsule when active)
   It removes the old "measured drawing" decoration (blueprint grid, crop ticks,
   datum marks, highlighter) that does not exist anywhere in the app. Flat only. */

:root {
  --ink: #0a0a0a;            /* text-primary (neutral near-black per brand rule) */
  --ink-2: #374151;          /* gray-700 */
  --muted: #6B7280;          /* text-secondary */
  --line: #E5E7EB;           /* border-color */
  --bg: #FFFFFF;
  --bg-soft: #F9FAFB;        /* portal background */
  --teal: #14B8A6;           /* accent-teal */
  --teal-d: #0D9488;         /* primary-hover */
  --teal-text: #0F766E;
  --success: #10B981; --warning: #F59E0B; --danger: #EF4444; --info: #3B82F6;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow: var(--shadow-sm);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-lg: 14px;
}

/* ---------- Surfaces ---------- */
.subhero { border-bottom: 1px solid var(--line); background: var(--bg); }
.section.alt, .alt { background: var(--bg-soft); }

/* ---------- Type: portal headings (Archivo) + Inter body ---------- */
h1, h2, h3, .brand { font-family: var(--font-display); letter-spacing: -0.01em; }
.hero h1 { letter-spacing: -0.03em; }
.subhero h1, .fp-hero h1 { letter-spacing: -0.025em; }
.section-head h2, .fp h2, .day-head h2, .surfaces-head h2, .leaks h2 { font-weight: 700; letter-spacing: -0.02em; }
h3 { font-weight: 600; }
.crumbs, .stat .l, .footer-cols .col h4, .badge-soft, .store-badge small { font-family: var(--font-family); letter-spacing: 0; }
.footer-cols .col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ---------- Section label: portal .nav-section-label ---------- */
.eyebrow {
  display: inline-block; background: #0a0a0a; color: #fff;
  font-family: var(--font-family); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 6px 12px; border-radius: 8px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}

/* ---------- Buttons: portal .btn ---------- */
.btn {
  border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; box-shadow: none;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--teal-d); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost, .btn-secondary { background: #F3F4F6; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover, .btn-secondary:hover { background: #E5E7EB; color: var(--ink); border-color: var(--line); transform: none; }
.site-header .nav-right .btn { border-radius: 8px; }

/* ---------- Cards: portal .card / .stat-card ---------- */
.feature, .module, .plan, .aud .card, .how .step-card, .benefit, .related a,
.stage-card, .fp-cap, .fp-step, .faq-item, .included-grid, .pv-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.stage-card, .related a, .feature, .aud .card { transition: box-shadow .2s, transform .2s; }
.stage-card:hover, .related a:hover, .feature:hover, .aud .card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line); }
.stage-card h3, .fp-cap h3, .fp-step h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.stage-card p, .fp-cap p, .fp-step p { color: var(--muted); }
.stage-card a, .fp-cap a { color: var(--teal-text); font-weight: 600; }
.feature .ico { background: rgba(20,184,166,.1); color: var(--teal); box-shadow: none; border-radius: 10px; }
.feature .ico svg { stroke: var(--teal); }

/* stat rows -> portal stat cards */
.stats { gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-sm); text-align: left; }
.stat .n { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink); }
.stat .l { font-size: 14px; font-weight: 500; color: var(--muted); text-transform: none; }

/* ---------- Badges: portal .badge ---------- */
.badge, .fp-pain .cost, .leak .cost, .fp-platforms span {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 9999px;
  font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.fp-pain .cost, .leak .cost { background: rgba(239,68,68,.1); color: var(--danger); }
.leak .cost[style*="teal"] { background: rgba(20,184,166,.1); }
.fp-platforms { gap: 8px; }
.fp-platforms span { background: rgba(20,184,166,.1); color: var(--teal-text); }
.fp-platforms span::before { content: none; }
.chips span { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 9999px; background: #F3F4F6; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.chips span::before { content: none; }
.badge-soft { background: rgba(20,184,166,.1); color: var(--teal-text); text-transform: none; letter-spacing: 0; font-size: 12px; }

/* pains: card with a badge instead of a black rule */
.fp-pain { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); }
.fp-pain h3 { margin-top: 10px; }

/* ---------- Tabs / toggles: iOS FilterChip ---------- */
.stage-tab, .billing-toggle button, .toggle button, .plan-toggle button {
  background: #fff; color: var(--muted); border: 1px solid var(--line);
  border-radius: 20px; padding: 8px 16px; font-size: 14px; font-weight: 600;
}
.stage-tab.on, .billing-toggle button.active, .toggle button.active, .plan-toggle button.active,
.billing-toggle button.on, .toggle button.on {
  background: var(--teal); border-color: var(--teal); color: #fff;
}

/* day-flow steps: portal nav-item active style */
.day-step:hover { background: #F3F4F6; }
.day-step.on { background: rgba(20,184,166,.1); border-color: transparent; }
.day-step .when { font-family: var(--font-family); font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--teal-text); }
.day-step.on .n, .fp-step::before { background: var(--teal); }

/* dark band: same black as the portal project header */
.fp-stake, .cta-band { background: #0a0a0a; }
.cta-band p { color: #D1D5DB; }

/* ---------- Mega menu: portal nav-item hover / active ---------- */
.mega-col a:hover { background: #F3F4F6; }
.mega-col a:hover b { color: var(--teal-text); }
.mega-col h4 { font-family: var(--font-family); }

/* ---------- FAQ ---------- */
.faq-item { margin-bottom: 10px; }
.faq-q { font-family: var(--font-family); font-weight: 600; font-size: 15px; color: var(--ink); }

/* ---------- Forms: portal .form-input ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-family); font-size: 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.15); outline: none; }

/* ---------- Device frames stay neutral ---------- */
.dev-browser { border-radius: 10px; box-shadow: var(--shadow-lg); }
.dev-browser .bar { background: #F3F4F6; }

/* ---------- Plan cards (rendered by main.js) ---------- */
.plan { padding: 28px; }
.plan.highlighted { border: 2px solid var(--teal); box-shadow: var(--shadow-md); }
.plan .tag { background: var(--teal); color: #fff; border-radius: 9999px; font-size: 12px; font-weight: 600; padding: 4px 12px; }
.plan h3 { font-weight: 700; }
.plan .price { font-family: var(--font-display); font-weight: 700; }
.billing-toggle { background: transparent; border: 0; box-shadow: none; gap: 8px; padding: 0; }
.billing-toggle button { box-shadow: none; }
.billing-toggle button.on small, .billing-toggle button.on span { color: #fff; }
.billing-toggle button.on em { color: #fff; opacity: .9; }

/* ---------- Header: white, like the portal top bar (the dark Pro-style bar hid
   the navy half of the PILOTA mark). Only the Features dropdown keeps the
   mega-menu idea. ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.site-header .brand { color: var(--ink); }
.site-header .nav-links > a, .mega-btn { color: #4B5563; font-weight: 500; }
.site-header .nav-links > a:hover, .mega-btn:hover, .has-mega.open .mega-btn,
.site-header .nav-links > a[aria-current="page"] { color: var(--ink); }
.site-header .nav-right .signin { color: var(--ink); }
.site-header .nav-toggle { color: var(--ink); border-color: var(--line); }
.site-header .nav-toggle:hover { background: #F3F4F6; }
.mega { border-top: 1px solid var(--line); }

/* ---------- Guides / comparisons (app card + table styles) ---------- */
.article { max-width: 780px; }
.article h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin: 36px 0 12px; letter-spacing: -.015em; }
.article h2:first-child { margin-top: 0; }
.article p { color: var(--ink-2); font-size: 17px; line-height: 1.7; margin-bottom: 14px; }
.article ul { margin: 0 0 16px 20px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.article li { margin-bottom: 6px; }
.subhero .updated { font-size: 13px; color: var(--muted); margin-top: 14px; }
.tpl { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 24px; margin: 32px 0; }
.tpl h2 { margin-top: 0 !important; }
.tpl table, .cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.tpl th, .tpl td, .cmp th, .cmp td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tpl th { width: 34%; font-weight: 600; color: var(--ink); }
.tpl td { color: var(--muted); }
.tpl-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tpl-links a { display: inline-flex; padding: 4px 12px; border-radius: 9999px; background: rgba(20,184,166,.1); color: var(--teal-text); font-size: 13px; font-weight: 600; }
.cmp-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.cmp thead th { background: #F9FAFB; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.cmp tbody th { width: 22%; font-weight: 600; color: var(--ink); }
.cmp td { color: var(--ink-2); }
.cmp .src { font-size: 12px; color: var(--teal-text); }
.cmp-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .cmp-fit { grid-template-columns: 1fr; } }
.cmp-fit ul { margin: 10px 0 0 18px; color: var(--ink-2); line-height: 1.7; font-size: 15px; }
.sources h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.sources ol { margin-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.sources a { color: var(--teal-text); }

/* ---------- QA fixes (Nov 17) ---------- */
.feat-row .fp-stage { width: 100%; }
footer .footer-cols .col a.brand { font-size: 18px; font-weight: 800; color: var(--ink); display: inline-flex; padding: 0; }
footer .brand .brand-mark { width: 26px; height: 26px; }
.billing-toggle button em { font-family: var(--font-family); font-style: normal; font-weight: 700; letter-spacing: 0; }
.mobile-nav a.btn-primary, .mobile-nav a.btn-primary:hover { color: #fff; }

/* ---------- Feature icons: the web portal's own sidebar SVGs in a soft teal tile ---------- */
.mi { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(20,184,166,.1); color: var(--teal-d); flex: none; transition: background .15s, color .15s; }
.mi svg { width: 18px; height: 18px; display: block; }
.stage-card .mi { margin-bottom: 12px; width: 40px; height: 40px; border-radius: 10px; }
.stage-card .mi svg { width: 20px; height: 20px; }

/* ---------- Features dropdown: bigger, clearer items ---------- */
.mega-in { padding: 24px 32px 22px; gap: 18px 22px; }
.mega-col h4 { font-size: 11px; letter-spacing: .06em; margin: 0 0 6px 2px; }
.mega-col a { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 1px; align-items: center; padding: 8px 10px; margin: 0 -10px 2px; border-radius: 10px; }
.mega-col a .mi { grid-row: span 2; align-self: center; }
.mega-col a b { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.mega-col a span { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.mega-col a:hover { background: #F3F4F6; }
.mega-col a:hover .mi { background: var(--teal); color: #fff; }
.mega-col a:hover b { color: var(--ink); }
.mega-promo { align-self: start; border: 1px solid var(--line); background: #F9FAFB; }
.mega-all { padding-top: 12px; }
.mega-all a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.mega-all a::after { content: "\2192"; }
/* included grid on pricing reuses mega-col links without icons */
.included-grid .mega-col a { grid-template-columns: 1fr; }
.mega { max-height: calc(100vh - 66px); overflow-y: auto; overscroll-behavior: contain; }
.mega-in { padding: 18px 32px 16px; }
.mega-col a { padding: 6px 10px; margin-bottom: 0; }
.mega-col a .mi { width: 30px; height: 30px; border-radius: 8px; }
.mega-col a { grid-template-columns: 30px 1fr; }
.mega-side { display: flex; flex-direction: column; gap: 10px; }
.mega-allbtn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 8px; background: var(--teal); color: #fff !important; font-size: 14px; font-weight: 600; }
.mega-allbtn::after { content: "\2192"; }
.mega-allbtn:hover { background: var(--teal-d); }

/* ---------- Homepage hero v2: centered type, wide product stage on a flat black band ---------- */
.hero2 { padding-top: 92px; background: #fff; overflow: hidden; }
.hero2-copy { text-align: center; max-width: 960px; }
.hero2 h1 { font-family: var(--font-display); font-size: clamp(52px, 8.4vw, 112px); font-weight: 800; letter-spacing: -.05em; line-height: .94; color: #0a0a0a; }
.hero2-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 660px; margin: 26px auto 0; }
.hero2-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero2-meta { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.hero2-meta span { margin: 0 8px; color: #D1D5DB; }
.hero2-band { position: relative; margin-top: 72px; }
.hero2-band::before { content: ""; position: absolute; left: 0; right: 0; top: 34%; bottom: 0; background: #0a0a0a; }
.hero2-band > .container { position: relative; }
.hero2-stage { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 84px; }
.hero2-browser { border-radius: 10px; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
.hero2-stage .dev-phone { position: absolute; padding: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.hero2-stage .dev-phone img { }
.hero2-phone-l { left: 0; bottom: -40px; width: 21%; max-width: 210px; }
.hero2-phone-r { right: 0; bottom: -64px; width: 23%; max-width: 230px; }
.hero2-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 120px 0 76px; }
.hs-item { display: flex; gap: 14px; align-items: flex-start; }
.hs-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(20,184,166,.16); color: #5EEAD4; }
.hs-ic svg { width: 19px; height: 19px; }
.hs-item b { display: block; color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.hs-item div > span { display: block; color: #9CA3AF; font-size: 13.5px; line-height: 1.45; }
@media (max-width: 900px) {
  .hero2 { padding-top: 64px; }
  .hero2-stage { padding: 0 6%; }
  .hero2-phone-l { display: none; }
  .hero2-phone-r { width: 30%; right: 2%; bottom: -40px; padding: 5px; }
  .hero2-strip { grid-template-columns: 1fr 1fr; padding-top: 84px; gap: 22px; }
}
@media (max-width: 520px) { .hero2-strip { grid-template-columns: 1fr; } .hero2-band { margin-top: 48px; } }

/* Device corners scale with the device (a real iPhone is about 15% of its width / 7% of its height),
   so a small phone is not over-rounded. One rule for every phone frame on the site. */
.dev-phone { border-radius: 15% / 7%; }
.dev-phone img { border-radius: 12.5% / 5.8%; }

/* Android (Pixel-style) frame: 412x915 screen, squarer corners, centered punch-hole camera. */
.dev-phone.android { aspect-ratio: 412 / 915; border-radius: 12% / 5.4%; }
.dev-phone.android img { border-radius: 10% / 4.5%; }
.dev-phone.android::after { content: ""; position: absolute; top: 2.6%; left: 50%; width: 3.4%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #0a0a0a; }

/* =================== Mobile menu sheet =================== */
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-burger { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
.mobile-nav { display: none; }
@media (max-width: 980px) {
  .mobile-nav {
    display: block; position: fixed; top: 66px; left: 0; right: 0; bottom: 0; z-index: 49;
    background: #fff; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .25s cubic-bezier(.2,.7,.2,1), visibility 0s linear .25s;
  }
  .mobile-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .25s cubic-bezier(.2,.7,.2,1); }
  html.nav-open, html.nav-open body { overflow: hidden; }
}
.mn-inner { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
.mn-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 12px; }
.mn-cta-row .btn { width: 100%; padding: 12px 16px; }
.mobile-nav .mn-cta-row a.btn-ghost { color: var(--ink); }
.mn-group { border-bottom: 1px solid var(--line); }
.mn-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mn-group summary::-webkit-details-marker { display: none; }
.mn-group summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.mn-group[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.mn-body { padding: 0 0 14px; }
.mn-stage h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 4px 4px; }
.mobile-nav .mn-stage a { display: flex; align-items: center; gap: 12px; padding: 7px 4px; font-size: 15px; font-weight: 500; color: var(--ink); border-radius: 10px; }
.mn-stage .mi { width: 30px; height: 30px; border-radius: 8px; }
.mn-stage .mi svg { width: 16px; height: 16px; }
.mobile-nav a.mn-plain { display: block; padding: 10px 4px; font-size: 15px; font-weight: 500; color: var(--ink); }
.mobile-nav a.mn-all { display: inline-flex; gap: 6px; margin-top: 8px; padding: 8px 4px; font-size: 14px; font-weight: 600; color: var(--teal-text); }
.mn-all::after { content: "\2192"; }
.mobile-nav .mn-links a { display: block; padding: 16px 4px; font-size: 17px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
.mobile-nav a:active { background: #F3F4F6; }

/* =================== Motion =================== */
.site-header { transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 16px -10px rgba(0,0,0,.18); }
.btn:active { transform: scale(.98); }
/* mega menu fades and drops in instead of snapping */
@media (min-width: 981px) {
  .mega { display: block; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1), visibility 0s linear .22s; }
  .has-mega.open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1); }
}
/* day-flow phone: cross-fade between screens */
.day-visual .dev-phone { position: relative; }
.day-visual .dev-phone img { display: block !important; position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 20px); opacity: 0; transform: scale(.985); transition: opacity .35s ease, transform .35s ease; }
.day-visual .dev-phone img.on { opacity: 1; transform: none; }
/* stage tabs: panel fades in */
.stage-panel.on { animation: pFade .3s ease both; }
@keyframes pFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* homepage hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero2-copy > * { animation: heroRise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero2 h1 { animation-delay: .05s; }
  .hero2-lead { animation-delay: .14s; }
  .hero2-actions { animation-delay: .22s; }
  .hero2-meta { animation-delay: .3s; }
  .hero2-browser { animation: heroStage .9s cubic-bezier(.2,.7,.2,1) .28s both; }
  .hero2-phone-l { animation: heroPhoneL .9s cubic-bezier(.2,.7,.2,1) .5s both; }
  .hero2-phone-r { animation: heroPhoneR .9s cubic-bezier(.2,.7,.2,1) .58s both; }
  .hs-item { animation: heroRise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hs-item:nth-child(1) { animation-delay: .7s; } .hs-item:nth-child(2) { animation-delay: .78s; }
  .hs-item:nth-child(3) { animation-delay: .86s; } .hs-item:nth-child(4) { animation-delay: .94s; }
  .fp-hero h1, .fp-hero .lead, .fp-hero .hero-actions, .fp-hero .fp-platforms, .subhero h1, .subhero p { animation: heroRise .6s cubic-bezier(.2,.7,.2,1) both; }
  .fp-hero .lead, .subhero p { animation-delay: .08s; }
  .fp-hero .hero-actions { animation-delay: .16s; }
  .fp-stage { animation: heroStage .8s cubic-bezier(.2,.7,.2,1) .2s both; }
}
@keyframes heroRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroStage { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes heroPhoneL { from { opacity: 0; transform: translate(-22px, 26px); } to { opacity: 1; transform: none; } }
@keyframes heroPhoneR { from { opacity: 0; transform: translate(22px, 26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mega, .mobile-nav, .day-visual .dev-phone img, .site-header { transition: none !important; }
  .stage-panel.on { animation: none !important; }
}
/* the burger must appear exactly where the desktop links disappear (<=980px) */
@media (max-width: 980px) { .site-header .nav-toggle { display: inline-flex; } }
@media (min-width: 981px) { .mobile-nav, .mobile-nav.open { display: none !important; } }
/* iPhone + Android side by side (apps page) */
.fp-stage.pair { display: flex; justify-content: center; align-items: flex-end; gap: 22px; padding-bottom: 0; }
.fp-stage.pair .dev-phone { position: relative; width: 46%; max-width: 250px; padding: 8px; }
.fp-stage.pair .dev-phone.android { margin-bottom: 26px; }

/* =================== Who it's for =================== */
/* audience hero: real job-site photo with the app on a phone in front */
.aud-stage { position: relative; padding: 0 0 40px 0; }
.aud-photo { display: block; width: 88%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-lg); }
.aud-stage .dev-phone { position: absolute; right: 0; bottom: 0; width: 32%; max-width: 210px; padding: 7px; }
.aud-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.aud-eyebrow .mi { width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.14); color: #5EEAD4; }
.aud-eyebrow .mi svg { width: 13px; height: 13px; }
/* hub */
.aud-group + .aud-group { margin-top: 64px; }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .aud-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .aud-grid { grid-template-columns: 1fr; } }
.aud-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; color: inherit; }
.aud-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.aud-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #F3F4F6; }
.aud-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.aud-card:hover .aud-card-img img { transform: scale(1.04); }
.aud-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.aud-card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.aud-card-title h3 { font-size: 17px; font-weight: 700; }
.aud-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.aud-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.aud-chips span { padding: 3px 10px; border-radius: 9999px; background: #F3F4F6; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.aud-more { font-size: 13.5px; font-weight: 600; color: var(--teal-text); }
.aud-more::after { content: " \2192"; }
/* feature pages: who uses it */
.who-sub { color: var(--muted); margin: 8px 0 20px; }
.who-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.who-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 9999px; background: #fff; font-size: 14.5px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.who-chip:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.who-chip .mi { width: 30px; height: 30px; border-radius: 9999px; }
.who-chip .mi svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .aud-photo { width: 100%; } .aud-stage .dev-phone { width: 30%; right: 8px; bottom: 8px; } }
