/* ============================================================
   Nightfold — getnightfold.com
   Edit the tokens below to match app.crewroute.io exactly.
   ============================================================ */
:root {
  --night: #0f1b2d;        /* hero + footer background */
  --night-2: #16263d;      /* cards on dark */
  --night-line: #26384f;   /* borders on dark */
  --amber: #f5a524;        /* primary action */
  --amber-deep: #d98b0c;   /* primary hover */
  --dawn: #3fb8af;         /* secondary accent: certified / ok */
  --paper: #f3f5f8;        /* page background */
  --paper-2: #ffffff;      /* cards on light */
  --ink: #142033;          /* body text */
  --ink-2: #4f5d72;        /* secondary text */
  --line: #d9dfe8;         /* borders on light */
  --hot: #e5484d;          /* priority */
  --radius: 10px;
  --radius-lg: 18px;
  --wrap: 1120px;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; margin-bottom: .6em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.fine { font-size: .92rem; color: var(--ink-2); }
.center { text-align: center; }
.sub { color: var(--ink-2); max-width: 58ch; margin-bottom: 2rem; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-weight: 600; text-decoration: none; padding: .7rem 1.2rem; border-radius: var(--radius); border: 2px solid transparent; font-size: .98rem; transition: background .15s, border-color .15s, color .15s; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.05rem; }
.btn-primary { background: var(--amber); color: var(--night); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.hero .btn-ghost, .cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover, .cta-band .btn-ghost:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }

/* ---------- header ---------- */
.site-header { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--night-line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; letter-spacing: -0.01em; }
.logo-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--night-2); border: 1px solid var(--night-line); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 5px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: skewX(-18deg); border-radius: 0 0 0 2px; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: #d6dde8; font-weight: 500; font-size: .96rem; }
.nav a:hover { color: #fff; }
.nav .btn { color: var(--night); }
.menu-btn { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 9px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--night); flex-direction: column; align-items: stretch; padding: 1rem 20px 1.4rem; gap: 1rem; border-bottom: 1px solid var(--night-line); }
  .nav a { font-size: 1.05rem; }
  .nav .btn { text-align: center; }
  body.nav-open .nav { display: flex; }
  .menu-btn { display: block; }
}

/* ---------- hero ---------- */
.hero { background: var(--night); color: #fff; padding: 4.5rem 0 4rem; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--night) 0%, var(--amber) 55%, #ffd27a 100%); opacity: .9; }
.hero.slim { padding: 3.5rem 0 3rem; }
.hero.slim .wrap { max-width: 820px; }
.hero .lede { font-size: 1.2rem; color: #c9d2df; max-width: 56ch; }
.hero.slim .lede { max-width: 62ch; }
.hero .fine { color: #93a1b5; }
.hero a:not(.btn) { color: #ffd27a; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* the one bold element: a tech's routed day */
.day-card { background: var(--paper-2); color: var(--ink); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem 1rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); font-size: .93rem; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: .4rem; }
.day-head strong { font-family: var(--font-head); font-size: 1.1rem; display: block; }
.day-head span { color: var(--ink-2); font-size: .85rem; }
.day-meta { color: var(--ink-2); font-size: .85rem; }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.stops time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.stops b { display: block; font-weight: 600; }
.stops span { color: var(--ink-2); font-size: .85rem; }
.pill { font-style: normal; font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; background: #e3f5f3; color: #15716b; white-space: nowrap; }
.pill.hot { background: #fde8e9; color: #b4262b; }
.overflow { margin-top: .8rem; padding: .7rem .85rem; background: #fff6e3; border-left: 3px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; font-size: .86rem; }
.overflow b { display: block; margin-bottom: .15rem; }
.overflow span { color: var(--ink-2); }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 2.5rem; } }

.trade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 820px) { .trade-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trade-grid { grid-template-columns: 1fr; } }
.trade { display: block; text-decoration: none; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; border-bottom: 3px solid var(--line); }
.trade:hover { border-bottom-color: var(--amber); }
.trade b { font-family: var(--font-head); font-size: 1.25rem; display: block; margin-bottom: .25rem; }
.trade span { color: var(--ink-2); font-size: .92rem; }

/* steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; position: relative; padding-top: 3rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--night); color: var(--amber); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.steps p { color: var(--ink-2); font-size: .97rem; }
.steps.compact { gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.checks { list-style: none; padding: 0; margin: 1rem 0 0; }
.checks li { padding: .45rem 0 .45rem 1.9rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .78rem; width: 1.05rem; height: .55rem; border-left: 3px solid var(--dawn); border-bottom: 3px solid var(--dawn); transform: rotate(-45deg); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.chip { background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .9rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 3rem; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem; text-align: center; }
.plan.featured { border-color: var(--night); border-width: 2px; }
.plan h3 { font-size: 1.3rem; }
.price { font-family: var(--font-head); font-size: 2.9rem; font-weight: 700; line-height: 1; margin: .4rem 0 .5rem; }
.price span { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--ink-2); margin-left: .2rem; }
.plan p { color: var(--ink-2); margin-bottom: 1.2rem; }
.plan .btn { width: 100%; }

table.disc, table.cmp { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table th, table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table th { font-family: var(--font-head); font-weight: 700; background: var(--paper); }
table tr:last-child td { border-bottom: 0; }
table.cmp td:nth-child(2) { font-weight: 600; }
@media (max-width: 640px) { table th, table td { padding: .6rem .7rem; font-size: .92rem; } }

.faq { margin: 0; }
.faq dt { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; margin-top: 1.4rem; }
.faq dd { margin: .3rem 0 0; color: var(--ink-2); max-width: 70ch; }

.integ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 820px) { .integ-grid { grid-template-columns: 1fr; } }
.integ { display: block; text-decoration: none; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; border-left: 4px solid var(--night); }
.integ:hover { border-left-color: var(--amber); }
.integ b { font-family: var(--font-head); font-size: 1.15rem; display: block; margin-bottom: .3rem; }
.integ span { color: var(--ink-2); font-size: .94rem; }

/* cta band */
.cta-band { background: var(--night); color: #fff; padding: 4.5rem 0; text-align: center; }
.cta-band p { color: #c9d2df; max-width: 48ch; margin: 0 auto 1rem; }
.cta-band .btn-row { justify-content: center; }

/* footer */
.site-footer { background: var(--night); color: #c9d2df; padding: 3.5rem 0 2rem; border-top: 1px solid var(--night-line); }
.site-footer .logo { color: #fff; }
.site-footer .tag { margin: .8rem 0 .2rem; color: #fff; }
.site-footer .muted { color: #8b99ad; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: #c9d2df; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copyright { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--night-line); font-size: .86rem; color: #8b99ad; }

/* ---------- additions: 12 service categories, job tables, calculator ---------- */
.trade-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .trade-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .trade-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trade-grid { grid-template-columns: 1fr; } }
.trade { display: flex; flex-direction: column; gap: .3rem; }
.trade b .emoji { margin-right: .4rem; }
.trade em { font-style: normal; color: var(--amber-deep); font-weight: 600; font-size: .9rem; margin-top: auto; padding-top: .5rem; }
.badge { display: inline-block; background: rgba(245,165,36,.14); color: #ffd27a; border: 1px solid rgba(245,165,36,.35); border-radius: 999px; padding: .3rem .85rem; font-size: .9rem; font-weight: 500; margin-bottom: 1rem; }
.badge span { margin-right: .3rem; }
.trade-hero .wrap { max-width: 860px; }
.steps.mini { grid-template-columns: 1fr; gap: .9rem; margin-top: .5rem; }
.steps.mini li { padding-top: 0; padding-left: 3rem; }
.steps.mini li::before { width: 2rem; height: 2rem; font-size: .9rem; }
.steps.mini h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.steps.mini p { font-size: .93rem; margin: 0; }
table.jobs { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.jobs td:first-child { white-space: nowrap; }
table.jobs td:nth-child(2) { color: var(--ink-2); }
.assign { display: inline-block; background: #e3f5f3; color: #15716b; border-radius: 999px; padding: .2rem .65rem; font-size: .85rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) {
  table.jobs thead { display: none; }
  table.jobs tr { display: block; border-bottom: 1px solid var(--line); padding: .6rem 0; }
  table.jobs td { display: block; border: 0; padding: .15rem .8rem; }
  table.jobs td:first-child { white-space: normal; padding-top: .4rem; }
}
.plans-band { background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: 2.5rem; }
.plans-band p { color: #c9d2df; max-width: 60ch; }
.plans-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.other-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.other-links a { text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .95rem; }
.other-links a:hover { border-color: var(--night); }
.plan .annual { color: var(--ink-2); font-size: .92rem; margin: -.2rem 0 .6rem; }
.plan .inc { font-size: .88rem; color: var(--ink-2); min-height: 4.5em; }
.day-foot { margin-top: .7rem; font-size: .8rem; color: var(--ink-2); }
.foot-cols { display: flex; gap: 1.5rem; }
.foot-grid { grid-template-columns: 1.4fr 1.6fr 1fr 1fr; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* calculator */
.calc { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; max-width: 760px; margin: 0 auto; }
.calc-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; margin-bottom: .8rem; }
.calc-head h3 { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; cursor: pointer; }
.switch input { width: 1.1rem; height: 1.1rem; accent-color: var(--amber); }
.calc-table { width: 100%; border-collapse: collapse; }
.calc-table th, .calc-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.calc-table th { font-family: var(--font-head); background: transparent; }
.calc-table label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.calc-table input[type=checkbox] { width: 1rem; height: 1rem; accent-color: var(--amber); }
.calc-table select { font: inherit; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.calc-table .amt { text-align: right; font-variant-numeric: tabular-nums; }
.calc-total { margin: 1rem 0 .5rem; }
.calc-total div { display: flex; justify-content: space-between; padding: .35rem 0; }
.calc-total .grand { border-top: 2px solid var(--night); margin-top: .3rem; padding-top: .6rem; font-family: var(--font-head); font-size: 1.25rem; }
.calc .btn { margin-top: .8rem; }

/* ---------- logo + light header + phone mockup ---------- */
.site-header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.logo img { display: block; height: 38px; width: auto; }
.site-header .nav a { color: var(--ink-2); }
.site-header .nav a:hover { color: var(--ink); }
.site-header .nav .btn { color: var(--night); }
.menu-btn span { background: var(--ink); }
@media (max-width: 820px) { .nav { background: #fff; border-bottom: 1px solid var(--line); } }
.site-footer .logo img { height: 36px; }

.phone { width: 300px; margin: 0 auto; background: #1a2332; border-radius: 38px; padding: 14px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.7), inset 0 0 0 2px #2b3647; }
.screen { background: #f3f5f9; border-radius: 26px; padding: 14px 12px 12px; min-height: 420px; }
.route-head { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.route-head .crumb { margin: 0 0 4px; font-size: .72rem; color: #7b8799; }
.route-head .crumb span { color: #5b6b85; }
.route-head h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 700; color: #1e3a8a; font-size: 1.15rem; letter-spacing: 0; }
.route-head .sub { margin: 2px 0 0; font-size: .82rem; color: #5b6b85; }
.stop { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.stop-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.stop time { font-weight: 700; font-size: .95rem; color: #142033; }
.stop p { margin: 0 0 8px; font-size: .88rem; color: #3b4758; }
.tagp { font-size: .7rem; font-weight: 700; color: #fff; border-radius: 999px; padding: .2rem .6rem; }
.tagp.red { background: #e02424; } .tagp.orange { background: #e58a0c; } .tagp.purple { background: #7c3aed; }
.navbtn { display: block; text-align: center; background: #1e3a8a; color: #fff; font-weight: 600; font-size: .85rem; border-radius: 8px; padding: .5rem; }
@media (max-width: 900px) { .phone { margin-top: 1.5rem; } }

/* ---------- contrast + size pass ---------- */
body { font-size: 18px; }
:root { --ink-2: #3d4a5e; }
.site-header .nav a { color: var(--night); font-weight: 600; font-size: 1.08rem; }
.site-header .nav a:hover { color: #7c3aed; }
.site-header .nav .btn { font-size: 1.02rem; padding: .75rem 1.3rem; }
.bar { height: 72px; }
.logo img { height: 42px; }
.hero .lede { font-size: 1.3rem; color: #dde4ee; }
.hero .fine { font-size: 1rem; color: #aab6c7; }
.sub, .fine { font-size: 1.02rem; }
.steps p, .trade span, .integ span { font-size: 1.02rem; }
.site-footer a, .site-footer li { font-size: 1.02rem; }
.site-footer { color: #dde4ee; }
.site-footer a { color: #dde4ee; }

/* ---------- keyword kicker + feature grid ---------- */
.h1-kicker { display: block; font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; color: #ffd27a; margin-bottom: .7rem; }
.hero.slim .h1-kicker { font-size: 1rem; }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; border-top: 3px solid #7c3aed; }
.feat h3 { font-size: 1.15rem; }
.feat p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* ---------- blog ---------- */
.post-hero .wrap { max-width: 820px; }
.post-meta { color: #aab6c7; font-size: 1rem; margin-bottom: .8rem; }
.post-meta a { color: #ffd27a; text-decoration: none; }
.post-body { max-width: 760px; }
.post-body h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.post-body h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.post-body p, .post-body li { font-size: 1.08rem; line-height: 1.65; }
.post-body .lede { font-size: 1.22rem; color: var(--ink-2); }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li { margin: .4rem 0; }
.post-body a { color: #7c3aed; }
table.matrix { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1rem 0; background: var(--paper-2); border: 1px solid var(--line); }
table.matrix th, table.matrix td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.matrix th { font-family: var(--font-head); background: var(--paper); }
@media (max-width: 760px) { table.matrix { display: block; overflow-x: auto; } }
.post-list { display: grid; gap: 1.2rem; max-width: 820px; }
.post-card { display: block; text-decoration: none; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; border-left: 4px solid #7c3aed; }
.post-card h2 { font-size: 1.45rem; margin-bottom: .4rem; }
.post-card p { color: var(--ink-2); margin-bottom: .5rem; }
.post-card span { color: #7c3aed; font-weight: 600; font-size: .95rem; }
