/* Rekatur brand tokens, shared with rekatur.com. Change these to re-skin for a client. */
:root {
  --paper: #F3F7F6; --surface: #FFFFFF; --ink: #0F2A28; --slate: #566865; --line: #DCE6E4;
  --navy: #0F3D3A; --blue: #0F766E; --sky: #D7EFEC; --tile: #0F5F5A;
  --green: #0F766E; --green-deep: #0B5C56; --on-green: #FFFFFF; --dot: #F2A541;
  --danger: #B42318; --danger-bg: #FEECEB; --warn-bg: #FFF6E0; --warn-ink: #7A4B00;
  --shadow: rgba(15, 61, 58, 0.12); --edge: rgba(15, 61, 58, 0.06);
  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --r: 10px; --gutter: clamp(16px, 5vw, 48px); --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1716; --surface: #102220; --ink: #E8F2F1; --slate: #9DB4B1; --line: #1E3533;
    --navy: #FFFFFF; --blue: #7FD8CD; --sky: #123B37; --tile: #7FD8CD;
    --green: #5EC8BC; --green-deep: #A6E6DE; --on-green: #06201D;
    --danger: #FF9C94; --danger-bg: #3A1512; --warn-bg: #3A2A08; --warn-ink: #FFD98A;
    --shadow: rgba(0, 0, 0, 0.4); --edge: rgba(127, 216, 205, 0.14); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1716; --surface: #102220; --ink: #E8F2F1; --slate: #9DB4B1; --line: #1E3533;
  --navy: #FFFFFF; --blue: #7FD8CD; --sky: #123B37; --tile: #7FD8CD;
  --green: #5EC8BC; --green-deep: #A6E6DE; --on-green: #06201D;
  --danger: #FF9C94; --danger-bg: #3A1512; --warn-bg: #3A2A08; --warn-ink: #FFD98A;
  --shadow: rgba(0, 0, 0, 0.4); --edge: rgba(127, 216, 205, 0.14); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--slate); }
.small { font-size: .875rem; }
pre { white-space: pre-wrap; font: 13px/1.5 ui-monospace, Menlo, monospace; margin: 0; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a, .nav button { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font: inherit; font-size: .95rem; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover { background: var(--sky); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 0 -3px 0 var(--blue); border-radius: 8px 8px 0 0; }
.nav .btn { color: var(--on-green); background: var(--green); }
.nav .btn:hover { background: var(--green-deep); }
.top .menu-btn { display: none; margin-left: auto; }
/* The header row never wraps: the logo, role and each menu item stay on one line, and when they
   cannot all fit, app.js adds .squeeze and the menu folds into the Menu button. */
.top-in { max-width: max(var(--max), 1280px); }
.brand, .portal-tag, .nav > * { white-space: nowrap; }
.brand { flex: none; }
.nav { flex-wrap: nowrap; }
@media (max-width: 720px) {
  .top .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
}
.top.squeeze .menu-btn { display: inline-flex; }
.top.squeeze .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-end; padding: 8px var(--gutter) 16px; }
.top.squeeze .nav.open { display: flex; }

/* layout */
main { flex: 1; }
.page { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 64px; }
.narrow { max-width: 460px; }
.mid { max-width: 760px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
footer { border-top: 1px solid var(--line); color: var(--slate); font-size: .875rem; }
footer .page { padding-top: 20px; padding-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: 0 1px 2px var(--shadow); }
.card + .card { margin-top: 16px; }
.grid > .card, .split > .card, .steps > .card, .joblist > .card, .job-layout > div > .card { margin-top: 0; }
.hero { padding: 64px 0 24px; }
.hero p { font-size: 1.15rem; color: var(--slate); max-width: 40em; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--sky); color: var(--blue); letter-spacing: .02em; }
.badge.green { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green-deep); }
.badge.grey { background: var(--line); color: var(--slate); }
.badge.red { background: var(--danger-bg); color: var(--danger); }
.notice { padding: 12px 16px; border-radius: var(--r); background: var(--sky); color: var(--ink); margin-bottom: 16px; }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice.ok { background: color-mix(in srgb, var(--green) 16%, var(--surface)); }
.notice.err { background: var(--danger-bg); color: var(--danger); }

/* forms */
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hint { font-size: .82rem; color: var(--slate); margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; background: var(--green); color: var(--on-green); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--green-deep); }
.btn.secondary { background: transparent; color: var(--blue); border-color: var(--line); }
.btn.secondary:hover { background: var(--sky); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.block { width: 100%; margin-top: 20px; }
.form-error { color: var(--danger); font-size: .9rem; margin-top: 12px; min-height: 1.2em; }

/* pricing */
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 6px 0 2px; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--slate); }
.plan ul { padding-left: 18px; margin: 12px 0 20px; flex: 1; }
.plan.current { border-color: var(--green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 30%, transparent); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); font-weight: 700; }
td select { width: auto; padding: 4px 8px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; color: var(--blue); font-weight: 800; }
details[open] summary::after { content: "\2212"; }
details p { margin: 10px 0 0; color: var(--slate); }
.faq-cat { margin-top: 28px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { font: inherit; background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--slate); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--navy); border-bottom: 3px solid var(--blue); margin-bottom: -1px; font-weight: 700; }
.stat { font-size: 1.8rem; font-weight: 800; color: var(--navy); }

.lock { opacity: .6; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 8px; font-size: .9rem; z-index: 50; }
.live-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); padding: 8px 8px 8px 16px; border-radius: 10px; font-size: .9rem; z-index: 49; box-shadow: 0 8px 24px var(--shadow); max-width: calc(100% - 32px); }
[hidden] { display: none !important; }

/* added with the template extras */
.nav .lang { font-weight: 700; font-size: .8rem; letter-spacing: .04em; border: 1px solid var(--line); padding: 6px 10px; }
.row.end { justify-content: flex-end; }
.consent { background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid var(--line); }
.consent .page { padding-top: 10px; padding-bottom: 10px; }
.dialog { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); padding: 22px; max-width: 420px; width: calc(100% - 32px); }
.dialog::backdrop { background: rgba(10, 23, 22, .45); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; margin-top: 14px; }
.check input { width: auto; margin-top: 4px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--slate); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.btn.google { background: var(--surface); color: var(--ink); border-color: var(--line); width: 100%; }
.btn.google:hover { background: var(--sky); }
.btn.google svg { width: 18px; height: 18px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; font: 15px/1.6 ui-monospace, Menlo, monospace; padding: 14px; background: var(--paper); border-radius: 8px; border: 1px dashed var(--line); }
.qr { background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); width: 160px; height: 160px; }
.thread { display: grid; gap: 12px; }
.msg { padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); max-width: 680px; }
.msg.staff { background: var(--sky); margin-left: auto; }
.msg .who { font-size: .8rem; color: var(--slate); margin-bottom: 4px; }
.msg p { white-space: pre-wrap; margin: 0; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; font-variant-numeric: tabular-nums; max-width: 320px; margin-top: 12px; }
.totals .grand { font-weight: 800; color: var(--navy); }
.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split > * { min-width: 0; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--slate); font: 11px var(--font); }
.chart .bar { fill: var(--blue); }
.chart .bar.now { fill: var(--green); }
.chart .grid { stroke: var(--line); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 32px; }
.prose li + li { margin-top: 6px; }
td .btn + .btn { margin-left: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Alerts bell and feed */
.top-in { position: relative; }
.bell { position: relative; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; border-radius: 8px; cursor: pointer; display: inline-flex; }
.bell:hover { background: var(--sky); }
.bell + .menu-btn, .bell ~ .nav { margin-left: 0; }
.bell .dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.feed { position: absolute; right: var(--gutter); top: calc(100% + 4px); width: min(360px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px var(--shadow); z-index: 30; }
.feed article { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.feed article:last-child { border-bottom: 0; }
.feed article.new { background: color-mix(in srgb, var(--sky) 55%, var(--surface)); }
.feed h4 { margin: 0 0 4px; font-size: .95rem; }
.feed p { margin: 0 0 4px; font-size: .9rem; }

/* Notices, manual, join code */
.notice-item { border-top: 1px solid var(--line); padding: 14px 0; }
.notice-item:first-of-type { border-top: 0; padding-top: 0; }
.notice-item h3 { margin-bottom: 4px; }
.notice-item p { white-space: pre-wrap; }
.code-big { font: 800 1.8rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--navy); margin: 4px 0 8px; word-break: break-all; }
.guide { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 10px; }
.guide summary { padding: 14px 16px; cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; margin-left: auto; color: var(--slate); font-weight: 400; font-size: 1.2rem; }
.guide[open] summary::after { content: "–"; }
.guide .steps { padding: 0 16px 14px; }
.guide ol, .guide ul { margin: 0 0 10px; padding-left: 22px; }
.guide li { margin-bottom: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 16px; }
.chips button { font: inherit; font-size: .875rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--surface); font-weight: 700; }
.biz-hero { background: var(--navy); color: #fff; padding: 40px 0; margin-bottom: 32px; }
.biz-hero h1 { color: #fff; }
.biz-hero p { color: color-mix(in srgb, #fff 82%, transparent); max-width: 60ch; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .biz-hero { background: var(--sky); } }
:root[data-theme="dark"] .biz-hero { background: var(--sky); }
.biz-hero .btn.secondary { background: transparent; color: #fff; border-color: color-mix(in srgb, #fff 60%, transparent); }
.biz-hero .btn.secondary:hover { background: color-mix(in srgb, #fff 12%, transparent); }
.guide .steps p { color: var(--ink); }

/* Lakar Bina marketplace */
.badge.amber { background: var(--warn-bg); color: var(--warn-ink); }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 40em; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 24px; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: var(--blue); font-weight: 800; margin-bottom: 10px; }
.chips label, .chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-weight: 500; font-size: .88rem; cursor: pointer; }
.chips label input { width: auto; margin: 0; }
.chips label:has(input:checked) { border-color: var(--blue); background: var(--sky); color: var(--blue); }
.chip { cursor: default; }
fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.check input[type="checkbox"], .check input[type="radio"] { width: auto; margin-top: 4px; flex: none; }
.signoff .check { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.signoff .check:has(input[type="radio"]:checked) { border-color: var(--blue); }
.split2 { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.joblist { display: grid; gap: 12px; }
.jobrow { display: block; text-decoration: none; color: inherit; }
.jobrow:hover { border-color: var(--blue); }
.jobrow h3 { margin: 0; }
.jobrow p { margin: 6px 0 8px; }
.jobrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: start; }
.jobrow-main { min-width: 0; }
.jobrow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.meta-i { display: inline-flex; align-items: center; gap: 5px; }
.meta-i svg { flex: none; color: var(--blue); }
.jobrow-side { display: grid; justify-items: end; gap: 8px; }
.jobrow-budget { display: grid; justify-items: end; font-size: 1.15rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.jobrow-budget small { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.badge.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.badge.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 560px) {
  .jobrow { grid-template-columns: minmax(0, 1fr); }
  .jobrow-side { grid-row: 1; display: flex; justify-content: space-between; align-items: center; }
  .jobrow-budget { justify-items: start; }
}
.pick { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0; font-weight: 500; }
.pick input { width: auto; margin-top: 5px; }
.pick:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px var(--sky); }
.job-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.job-layout > div { display: grid; gap: 16px; min-width: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; }
.files { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.files li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: .9rem; }
.files a { word-break: break-all; }
.quote { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.quote:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.price-big { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.version { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--paper); }
.chat { display: grid; gap: 8px; max-height: 460px; overflow: auto; padding-right: 4px; }
.chat .msg { max-width: 100%; padding: 10px 12px; }
.chat .msg.mine { background: var(--sky); border-color: transparent; }
.chat .sys { font-size: .82rem; color: var(--slate); text-align: center; padding: 2px 8px; }
.talk { margin: 8px 0; border-top: 1px solid var(--line); padding-top: 8px; }
.talk > summary { cursor: pointer; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.talk .chat { max-height: 320px; }
.disclaimer { font-size: .85rem; border-left: 3px solid var(--warn-ink); padding: 8px 12px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 0 8px 8px 0; }
.stars { color: #E0A100; letter-spacing: 1px; }
.stats .card { padding: 16px 18px; }
.tabs a { padding: 10px 14px; color: var(--slate); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }
@media (max-width: 820px) { .job-layout { grid-template-columns: 1fr; } }
/* The owner's project: drawings now, then endorsement, contractor and materials as they open. */
.project { margin-bottom: 24px; }
.stages { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: stage; }
.stage { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); min-width: 0; counter-increment: stage; }
.stage.live { border-color: var(--green); background: var(--surface); box-shadow: inset 0 3px 0 var(--green); }
.stage.saved { border-color: var(--blue); }
.stage-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; justify-content: space-between; }
.stage-head h3 { margin: 0; font-size: 1rem; }
.stage-head h3::before { content: counter(stage) ". "; color: var(--slate); font-weight: 600; }
.stage p { margin: 4px 0 0; }
.stage-act { margin-top: auto; padding-top: 10px; }
.stage-chip { font-size: .78rem; padding: 3px 10px; }
.stage-chip.live { border-color: var(--green); color: var(--green-deep); }
.stage-chip.done { background: var(--line); color: var(--slate); }
.stage-chip.later { border-style: dashed; color: var(--slate); }
@media (max-width: 960px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stages { grid-template-columns: 1fr; } }
.stats { margin-bottom: 28px; }

/* Lakar Bina portals: homepage split hero, role tiles, the role tag next to the brand. */
.hero-split { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; padding-top: 48px; }
.hero-split > * { min-width: 0; }
.hero-split h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.login-card h2 { margin-bottom: 4px; }
.portal-list { display: grid; gap: 8px; margin: 16px 0; }
.portal { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--surface); position: relative; padding-right: 36px; }
.portal::after { content: "\203A"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); }
.portal b { color: var(--navy); }
.portal span { font-size: .88rem; color: var(--slate); }
.portal:hover, .portal:focus-visible { border-color: var(--blue); background: var(--sky); }
.lead-sm { color: var(--slate); margin-top: -4px; }
.portal-tag { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: var(--sky); border-radius: 99px; padding: 3px 10px; }
@media (max-width: 860px) { .hero-split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 480px) { .portal-tag { display: none; } }

/* Lakar Bina mark on the homepage. */
.hero-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero-brand svg { width: 56px; height: 56px; flex: none; }
.hero-brand b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.hero-brand span { font-size: .92rem; color: var(--slate); }

/* Motion. One easing for everything that enters: fast start, soft landing. */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }
.top { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.btn, .portal, .card, .chip { transition: transform .16s var(--ease-out), background-color .2s, border-color .2s, box-shadow .2s; }
.btn:active { transform: scale(0.97); }
.portal::after { transition: transform .2s var(--ease-out); }
.portal:hover { transform: translateY(-1px); box-shadow: 0 6px 20px -8px var(--shadow); }
.portal:hover::after { transform: translate(3px, -50%); }
.portal:active { transform: scale(0.99); }

@media (prefers-reduced-motion: no-preference) {
  /* Page to page: the page lifts out and the next one settles in. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: lk-page-out .18s ease-in both; }
  ::view-transition-new(root) { animation: lk-page-in .38s var(--ease-out) both; }
  @keyframes lk-page-out { to { opacity: 0; transform: translateY(-6px); filter: blur(2px); } }
  @keyframes lk-page-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

  /* Homepage opening: each part arrives a beat after the last. */
  .hero-split > .hero-text > *, .hero-split > .login-card { animation: lk-rise .7s var(--ease-out) both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero-text > :nth-child(4) { animation-delay: .18s; }
  .hero-text > :nth-child(5) { animation-delay: .24s; }
  .hero-split > .login-card { animation-delay: .22s; }
  .portal-list > .portal { animation: lk-rise .6s var(--ease-out) both; }
  .portal-list > .portal:nth-child(1) { animation-delay: .30s; }
  .portal-list > .portal:nth-child(2) { animation-delay: .35s; }
  .portal-list > .portal:nth-child(3) { animation-delay: .40s; }
  .portal-list > .portal:nth-child(4) { animation-delay: .45s; }
  .portal-list > .portal:nth-child(5) { animation-delay: .50s; }
  @keyframes lk-rise { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }

  /* Lists filled after load (requests, quotes, messages) settle in instead of popping. */
  .joblist > *, #faq-teaser > *, .chips > * { animation: lk-rise .5s var(--ease-out) both; }

  /* Scrolling down: blocks rise into place as they enter the screen. */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .steps > .card, .split > *, .mid > *, .job-layout .card, .stats > *, .page > section:not(.hero) > h2 {
      animation: lk-enter linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes lk-enter { from { opacity: 0; transform: translateY(28px) scale(.98); filter: blur(3px); } }
  }
}

/* Show-password eye. */
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: var(--slate); cursor: pointer; }
.pw-eye:hover { color: var(--blue); background: var(--sky); }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-eye .eye-slash { stroke-dasharray: 23; stroke-dashoffset: 0; transition: stroke-dashoffset .22s cubic-bezier(0.23, 1, 0.32, 1); }
.pw-eye[aria-pressed="true"] .eye-slash { stroke-dashoffset: 23; }
.pw-eye:active { scale: .92; }

/* Homepage login box: role list and role login share one box. */
.lc-viewport { overflow: hidden; margin: -4px; padding: 4px; }
.lc-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; font-size: .92rem; padding: 4px 8px 4px 2px; margin-bottom: 10px; border-radius: 6px; cursor: pointer; }
.lc-back span:first-child { font-size: 1.3rem; line-height: 1; transition: translate .2s cubic-bezier(0.23, 1, 0.32, 1); }
.lc-back:hover span:first-child { translate: -3px 0; }
.lc-role .portal-tag { display: inline-block; margin-bottom: 8px; }
.lc-role h2 { margin-bottom: 4px; }
.lc-role p { margin-top: 0; }
.linklike { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }
/* The hero's large paragraph size is for the intro only, not the login box. */
.hero .login-card p { font-size: 1rem; }
.hero .login-card p.hint { font-size: .82rem; }
.hero .login-card #lc-signup { margin-top: 16px; }

/* Homepage: one box on a plain page. No top bar or footer here. */
.landing #top, .landing #foot { display: none; }
.land { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 32px var(--gutter); overflow: hidden; }
.land-box { position: relative; z-index: 1; width: 100%; max-width: 940px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -30px var(--shadow), 0 2px 6px var(--shadow); }
.land-brand { background: #0F3D3A; color: #FFFFFF; padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; }
.land-brand h1 { color: #FFFFFF; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.land-mark { width: 60px; height: 60px; }
.land-tag { margin: -8px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7FD8CD; }
.land-brand p { margin: 0; color: #D7EFEC; line-height: 1.6; }
.land-brand .ticks { margin: 4px 0 0; color: #FFFFFF; font-size: .95rem; }
.land-brand .ticks li::before { border-color: #5EC8BC; }
.land-links { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.land-links a, .land-links button { color: #FFFFFF; font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.land-links a:hover { text-decoration: underline; }
.land-links button { margin-left: auto; border: 1px solid rgba(255, 255, 255, .4); border-radius: 8px; padding: 4px 10px; font-size: .8rem; }
.land-links button:hover { background: rgba(255, 255, 255, .12); }
.land-login { padding: 36px 34px; }
.land-login h2 { margin-bottom: 4px; }
.land-login .portal-list { margin-bottom: 8px; }
.land-foot { position: relative; z-index: 1; margin: 0; font-size: .82rem; color: var(--slate); }
.land-foot a { color: inherit; }
.how-head { padding: 24px 0 8px; }
.how-head .lead { color: var(--slate); max-width: 60ch; }
.how-head + .steps { margin-top: 28px; }
@media (max-width: 760px) {
  .land { place-items: stretch; padding: 16px; }
  .land-box { grid-template-columns: minmax(0, 1fr); }
  .land-brand { padding: 24px 22px; gap: 10px; }
  .land-brand h1 { font-size: 1.7rem; }
  .land-mark { width: 44px; height: 44px; }
  .land-brand .ticks { display: none; }
  .land-login { padding: 24px 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .land-box { animation: lk-rise .7s var(--ease-out) both; }
  .land-brand > * { animation: lk-rise .6s var(--ease-out) both; }
  .land-brand > :nth-child(2) { animation-delay: .05s; }
  .land-brand > :nth-child(3) { animation-delay: .1s; }
  .land-brand > :nth-child(4) { animation-delay: .15s; }
  .land-brand > :nth-child(5) { animation-delay: .2s; }
  .land-brand > :nth-child(6) { animation-delay: .25s; }
}
.iso path, .iso circle { fill: none; stroke: currentColor; vector-effect: non-scaling-stroke; }
.iso .e { stroke-width: 1.1; }
.iso .w { stroke-width: .8; opacity: .8; }
.iso .g { stroke-width: .7; opacity: .45; }
.iso .d { stroke-width: .8; stroke-dasharray: 18 5 3 5; }
.iso .m { fill: var(--green); stroke: none; }
.iso text { fill: currentColor; font: 600 12px var(--font); letter-spacing: .06em; }
.iso .dim { font-size: 11px; }
/* Homepage background: a drawing sheet. Fine engineering grid, a framed border with
   zone letters and numbers, a title block, and a small isometric of a house. */
.land::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--blue) 11%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--blue) 11%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--blue) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--blue) 5%, transparent) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%); }
.sheet { position: absolute; inset: 18px; z-index: 0; pointer-events: none; border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent); color: color-mix(in srgb, var(--blue) 70%, transparent); font: 600 10px/1 var(--font); letter-spacing: .12em; }
.sheet::after { content: ""; position: absolute; inset: 20px; border: 1.5px solid color-mix(in srgb, var(--blue) 30%, transparent); }
.zones { position: absolute; display: flex; }
.zones span { flex: 1; display: grid; place-items: center; border-color: color-mix(in srgb, var(--blue) 25%, transparent); border-style: solid; border-width: 0; }
.zt, .zb { left: 20px; right: 20px; height: 20px; }
.zt { top: 0; } .zb { bottom: 0; }
.zt span + span, .zb span + span { border-left-width: 1px; }
.zl, .zr { top: 20px; bottom: 20px; width: 20px; flex-direction: column; }
.zl { left: 0; } .zr { right: 0; }
.zl span + span, .zr span + span { border-top-width: 1px; }
.title-block { position: absolute; right: 20px; bottom: 20px; display: grid; grid-template-columns: auto auto; background: color-mix(in srgb, var(--surface) 80%, transparent); border-left: 1.5px solid color-mix(in srgb, var(--blue) 30%, transparent); border-top: 1.5px solid color-mix(in srgb, var(--blue) 30%, transparent); }
.title-block > * { padding: 7px 12px; border-bottom: 1px solid color-mix(in srgb, var(--blue) 20%, transparent); font-style: normal; white-space: nowrap; }
.title-block > :nth-last-child(-n+2) { border-bottom: 0; }
.title-block > :nth-child(odd) { border-right: 1px solid color-mix(in srgb, var(--blue) 20%, transparent); color: color-mix(in srgb, var(--blue) 55%, transparent); }
.title-block b { color: var(--navy); font-size: 12px; letter-spacing: .2em; }
.iso-vignette { position: absolute; left: 40px; bottom: 40px; z-index: 0; width: 280px; height: auto; color: var(--blue); opacity: .55; pointer-events: none; }
@media (max-width: 1100px) { .iso-vignette, .title-block { display: none; } }
@media (max-width: 760px) { .sheet { inset: 8px; } .zones { display: none; } .sheet::after { inset: 0; } }

/* Homepage logo lockup; the page heading is for screen readers only. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.land-lockup { width: min(260px, 80%); height: auto; align-self: center; margin: 4px 0 10px; }
@media (max-width: 760px) { .land-lockup { width: 170px; margin: 0 0 4px; } }

/* Homepage refinements: tabs, language switch, card depth, role states, escrow note. */
.land-box { box-shadow: 0 0 0 1px var(--edge), 0 40px 90px -30px var(--shadow), 0 12px 28px -12px var(--shadow), 0 2px 4px var(--shadow); }
.lc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.lc-tabs button { font: inherit; font-weight: 700; font-size: .92rem; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--slate); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.lc-tabs button:hover { color: var(--ink); }
.lc-tabs button[aria-selected="true"] { background: var(--surface); color: var(--navy); box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px var(--shadow); }
.lc-tabs button:focus-visible, .lang-seg button:focus-visible, .tip-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.land-login .lc-mode h2 { margin-top: 0; }
.lc-viewport[data-mode="signup"] .portal::after { content: "+"; font-size: 1.2rem; font-weight: 700; }

/* Role tiles: clear hover, press and keyboard states. */
.portal { overflow: hidden; }
.portal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); transform: scaleY(0); transition: transform .22s var(--ease-out); }
.portal:hover, .portal:focus-visible { border-color: var(--blue); background: var(--sky); box-shadow: 0 8px 22px -10px var(--shadow); }
.portal:hover::before, .portal:focus-visible::before { transform: scaleY(1); }
.portal:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.portal:active { transform: scale(0.985); box-shadow: none; transition-duration: .08s; }

/* EN | BM switch on the brand panel. */
.land-links .lang-seg { margin-left: auto; display: inline-flex; padding: 2px; gap: 2px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 9px; }
.land-links .lang-seg button { margin: 0; border: 0; border-radius: 7px; padding: 3px 10px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: #7FD8CD; background: none; }
.land-links .lang-seg button:hover { color: #FFFFFF; background: rgba(255, 255, 255, .1); }
.land-links .lang-seg button[aria-pressed="true"] { background: #FFFFFF; color: #0F3D3A; cursor: default; }

/* "What is escrow?" note. */
.escrow-tip { position: relative; z-index: 3; margin-top: -4px; }
.tip-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; font: inherit; font-size: .86rem; font-weight: 600; color: #7FD8CD; cursor: pointer; border-radius: 6px; }
.tip-btn:hover, .tip-btn[aria-expanded="true"] { color: #FFFFFF; }
.tip-btn span { text-decoration: underline dotted; text-underline-offset: 3px; }
.tip-pop { position: absolute; z-index: 3; top: calc(100% + 8px); left: 0; width: min(330px, 100%); padding: 12px 14px; background: #FFFFFF; color: #0F2A28; border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); transform-origin: top left; }
.tip-pop::before { content: ""; position: absolute; top: -6px; left: 14px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.tip-pop p { position: relative; margin: 0; font-size: .86rem; line-height: 1.55; color: #0F2A28; }
@media (max-width: 760px) { .tip-pop { position: static; margin-top: 8px; width: 100%; } .tip-pop::before { display: none; } }

/* Homepage: plain white page. */
/* The homepage is always light, whatever the device's theme. */
body.landing {
  --paper: #F3F7F6; --surface: #FFFFFF; --ink: #0F2A28; --slate: #566865; --line: #DCE6E4;
  --navy: #0F3D3A; --blue: #0F766E; --sky: #D7EFEC; --tile: #0F5F5A;
  --green: #0F766E; --green-deep: #0B5C56; --on-green: #FFFFFF; --dot: #F2A541;
  --danger: #B42318; --danger-bg: #FEECEB; --warn-bg: #FFF6E0; --warn-ink: #7A4B00;
  --shadow: rgba(15, 61, 58, 0.12); --edge: rgba(15, 61, 58, 0.06);
  color-scheme: light; background: #FFFFFF; color: var(--ink);
}

/* Homepage login box: about 60% see-through over the drawing sheet. */
.landing .land-box { background: color-mix(in srgb, var(--surface) 40%, transparent); border-color: color-mix(in srgb, var(--line) 70%, transparent); }
.landing .land-brand { background: rgba(15, 61, 58, .75); } /* white text still reads at this strength */
.landing .land-box .portal { background: color-mix(in srgb, var(--surface) 45%, transparent); cursor: pointer; }
.portal, .portal * { cursor: pointer; }
.landing .land-box .portal:hover, .landing .land-box .portal:focus-visible { background: color-mix(in srgb, var(--sky) 80%, transparent); }
.landing .lc-tabs { background: color-mix(in srgb, var(--paper) 35%, transparent); }
.landing .land-box input { background: color-mix(in srgb, var(--surface) 80%, transparent); }

/* Launch: photos, meetup QR, referral code */
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sky); }
.avatar-none { display: inline-grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: var(--blue); }
.meet-dialog { max-width: 380px; }
.meet-qr { display: grid; place-items: center; padding: 8px; background: #fff; border-radius: var(--r); }
.meet-qr img { width: 240px; height: 240px; image-rendering: pixelated; }
.meet-code { text-align: center; font-size: 2rem; font-weight: 800; letter-spacing: .12em; margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.meet-left { text-align: center; margin: 0; }
.meet-video { width: 100%; border-radius: var(--r); background: #000; aspect-ratio: 1; object-fit: cover; }
.ref-code { font-size: 1.1rem; font-weight: 800; letter-spacing: .1em; padding: 2px 8px; border-radius: 6px; background: var(--sky); }
.bring-card { display: grid; gap: 4px; margin-top: 16px; text-decoration: none; color: inherit; border-left: 4px solid var(--green); }
.bring-card:hover strong { color: var(--blue); }

/* Each role's first page after login, in the Lakar Bina homepage style: a dark drawing-board band
   under a dark header, then the one-stop services with what is open now and what is coming. */
.has-hero .top {
  --surface: #0F2A28; --navy: #FFFFFF; --ink: #E8F2F1; --slate: #A9C2BE; --line: rgba(255,255,255,.12);
  --sky: rgba(255,255,255,.1); --blue: #7FD8CD; --tile: #0F766E; --paper: #FFFFFF; --green: #FFFFFF; --green-deep: #E8F2F1; --on-green: #0F2A28;
  background: #0F2A28; border-bottom-color: rgba(255,255,255,.06); color-scheme: dark;
}
.has-hero .top .portal-tag { color: rgba(255,255,255,.9); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.has-hero .top .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 #7FD8CD; }
.has-hero .top .btn.secondary { color: #fff; border-color: rgba(255,255,255,.24); }
.role-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(90deg, #0F2A28 0%, rgba(15,42,40,.94) 38%, rgba(15,42,40,.55) 70%, rgba(15,42,40,.25) 100%),
    url(/img/home/hero-1.webp) right 42% / cover no-repeat, #0F2A28;
}
.role-hero::before { /* faint drafting grid, as on the homepage */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(127,216,205,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(127,216,205,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.role-hero-in { position: relative; max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 44px; }
.role-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 18px 0 14px; text-wrap: balance; max-width: 16em; }
.role-hero p { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 36em; margin: 0; }
.eyebrow-glass { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; padding: 4px 12px 4px 10px; border-radius: 999px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.eyebrow-glass::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7FD8CD; }
.role-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; transition: transform .16s var(--ease-out), background-color .2s; }
.pill:active { transform: scale(0.97); }
.pill.light { background: #fff; color: #0F2A28; }
.pill.light:hover { background: #E8F2F1; }
.pill.glass { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill.glass:hover { background: rgba(255,255,255,.16); }
.pill .arrow { transition: transform .2s var(--ease-out); }
.pill:hover .arrow { transform: translateX(3px); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-facts a, .hero-facts div { color: #fff; text-decoration: none; display: grid; gap: 2px; }
.hero-facts b { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-facts span { font-size: .8rem; color: rgba(255,255,255,.66); letter-spacing: .02em; }
.hero-facts a:hover span { color: #fff; }
.has-hero main > .page { padding-top: 32px; }

.one-stop { margin: 4px 0 36px; }
.one-stop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.one-stop-head h2 { margin: 0; font-size: 1.15rem; }
.one-stop-head p { margin: 0; color: var(--slate); font-size: .875rem; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.svc { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px var(--shadow); transition: transform .2s var(--ease-out), box-shadow .2s; }
a.svc:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow); }
.svc img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 68%; display: block; background: #0F2A28; }
.svc.later img { filter: grayscale(.55); opacity: .8; }
.svc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.svc-title { font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc-text { font-size: .85rem; color: var(--slate); line-height: 1.45; }
.svc-go { margin-top: auto; padding-top: 6px; font-size: .85rem; font-weight: 700; color: var(--blue); }
.soon { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .02em; color: #8a5a12; background: #FBEBD0; }
.soon.now { color: var(--blue); background: var(--sky); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .role-hero-in { padding: 32px var(--gutter) 30px; }
  .role-hero { background: linear-gradient(180deg, rgba(15,42,40,.9), #0F2A28), url(/img/home/hero-1.webp) 70% 40% / cover no-repeat, #0F2A28; }
  .hero-facts { gap: 20px; }
  .svc-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .svc { scroll-snap-align: start; }
}
@media (max-width: 720px) { .has-hero .top .nav { background: #0F2A28; } }
.has-hero .top.squeeze .nav { background: #0F2A28; }
.has-hero .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .has-hero .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.has-hero #tabs { margin-top: 14px; }

/* Way back to the website from the app's login page. */
.land-home { position: absolute; z-index: 2; top: 18px; left: max(var(--gutter), 44px); display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px var(--shadow); }
.land-home:hover { border-color: var(--blue); color: var(--blue); }
/* The login box shown floating on the website's homepage (?embed=1): only the box, no page around it. */
html.embed, html.embed body { background: transparent; min-height: 0; }
.embed .sheet, .embed .iso, .embed .land-foot, .embed .land-home { display: none; }
.embed .land { min-height: 100vh; min-height: 100dvh; padding: 0; overflow: visible; }
.embed .land-login { padding-top: 52px; }
.embed .land-box { box-shadow: none; border: 0; border-radius: 0; max-width: none; min-height: 100vh; min-height: 100dvh; }
@media (max-width: 760px) { .embed .land-brand { display: none; } .embed .land-login { padding: 56px 20px 28px; } }
.to-site .land { visibility: hidden; }
/* In the floating box the website animates the box itself; the page's own entrance effects would replay inside it. */
.embed .land-box, .embed .land-brand > *, .embed .portal-list > .portal { animation: none; }

/* ===== Phone app layout: a tab bar at the bottom, and long pages shown one part at a time ===== */
.tabbar, .screens { display: none; }
.part { display: contents; }
@media (max-width: 720px) {
  body.has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .has-tabbar .top .menu-btn { display: none; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 4px 8px; min-height: 58px; color: var(--slate); text-decoration: none;
    font: 600 11.5px/1.2 var(--font); letter-spacing: .01em; background: none; white-space: nowrap; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar [aria-current="page"], .tabbar [aria-expanded="true"] { color: var(--blue); font-weight: 700; }
  .tabbar [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
  .tabbar a:active svg, .tabbar button:active svg { transform: scale(.92); }
  .tabbar a:focus-visible, .tabbar button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
  .has-tabbar .toast { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .has-tabbar footer { display: none; }
  /* More opens the full menu under the header. */
  .has-tabbar .nav.open { box-shadow: 0 16px 32px var(--shadow); max-height: calc(100vh - 140px); overflow: auto; }
  /* Parts of a long page: a row of choices under the title, and only the chosen part shows. */
  .paged .screens { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px calc(-1 * var(--gutter)) 16px; padding: 8px var(--gutter);
    position: sticky; top: 61px; z-index: 5; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .paged .screens::-webkit-scrollbar { display: none; }
  .screens button { flex: none; font: 600 14px/1.3 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; cursor: pointer; }
  .screens button[aria-selected="true"] { color: var(--on-green); background: var(--green); border-color: var(--green); }
  .paged [data-screen].off { display: none !important; }
  /* A part shows whole when picked, so it skips the scroll-in effect used on long pages. */
  .paged [data-screen], .paged .job-layout .card { animation: none; }
  .paged .stack { display: flex; flex-direction: column; gap: 16px; }
  .paged .stack > * + * { margin-top: 0; }
  .paged .split, .paged .job-layout { gap: 16px; }
  .paged .job-layout > div:not(:has(> :not(.off))) { display: none; }
}
/* No signal: a bar at the top until the phone is back online. */
.offline-bar { position: sticky; top: 0; z-index: 20; background: var(--warn-bg); color: var(--warn-ink); font-weight: 700; font-size: .9rem; text-align: center; padding: 8px var(--gutter); border-bottom: 1px solid var(--line); }
/* In the phone app there is no website around the login box. */
.native .land-home { display: none; }

/* Mark-up: a drawing with numbered pins, full screen. */
.markup { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: var(--paper); color: var(--ink); }
.markup::backdrop { background: rgba(10, 23, 22, .6); }
.markup[open] { display: flex; flex-direction: column; }
.mk-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
.mk-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mk-pages { display: flex; gap: 8px; align-items: center; }
.mk-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.mk-stage { overflow: auto; padding: 12px; text-align: center; }
.mk-sheet { position: relative; display: inline-block; line-height: 0; max-width: 100%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.mk-sheet.can-add { cursor: crosshair; }
.mk-sheet img, .mk-sheet canvas { display: block; max-width: 100%; height: auto; }
.mk-blank { width: min(900px, calc(100vw - 48px)); max-width: 100%; aspect-ratio: 1.414 / 1; display: grid; place-items: center; line-height: 1.4; color: #566865;
  background: #fff linear-gradient(#DCE6E4 1px, transparent 1px) 0 0 / 100% 10%, linear-gradient(90deg, #DCE6E4 1px, transparent 1px) 0 0 / 10% 100%; }
.mk-blank span { background: #fff; padding: 4px 10px; border-radius: 6px; font-weight: 700; }
.mk-pins { position: absolute; inset: 0; pointer-events: none; }
.mk-pin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px;
  display: grid; place-items: center; border: 2px solid #fff; background: #D4380D; color: #fff; font: 800 13px/1 var(--font); cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.mk-pin.draft { background: #B5470F; outline: 2px dashed #fff; outline-offset: -5px; }
.mk-pin.done { background: #0F766E; }
.mk-pin.new { background: #7A4B00; }
.mk-pin.on { box-shadow: 0 0 0 4px rgba(242, 165, 65, .8); z-index: 1; }
.mk-side { overflow: auto; padding: 14px 16px; background: var(--surface); border-left: 1px solid var(--line); }
.mk-form { margin-bottom: 14px; padding: 12px; border: 1px solid var(--blue); border-radius: var(--r); background: var(--paper); }
.mk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mk-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.mk-list li.on { border-color: var(--dot); }
.mk-list p { margin: 0; overflow-wrap: anywhere; }
.mk-num { display: inline-grid; place-items: center; flex: none; padding: 0; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #D4380D; color: #fff; font-weight: 800; cursor: pointer; }
.mk-num.done { background: #0F766E; }
.pin-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: .9rem; }
.pin-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.pin-list .mk-num { width: 22px; height: 22px; font-size: .75rem; cursor: default; }
.pin-list .check { margin-top: 2px; }
@media (max-width: 760px) {
  .mk-bar { display: grid; grid-template-columns: 1fr auto; padding: 8px 12px; gap: 6px 8px; }
  .mk-title { grid-column: 1 / -1; }
  .mk-pages[hidden] + .row { grid-column: 1 / -1; justify-self: end; }
  .mk-body { display: flex; flex-direction: column; }
  .mk-stage { flex: 0 1 auto; max-height: 64dvh; padding: 8px; }
  .mk-side { flex: 1 1 auto; border-left: 0; border-top: 1px solid var(--line); min-height: 120px; }
}

/* Pay in stages: the quote form's percentages and the payment card's stages. */
.pay-terms .check { margin-top: 8px; }
.stage-pcts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; margin-top: 8px; }
.pay-stages { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.pay-stages li { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.pay-stages li.held { border-color: var(--blue); }
.pay-stages li.released { border-color: color-mix(in srgb, var(--green) 50%, var(--line)); }
.pay-stages .badge { justify-self: start; }
