:root { --ink: #16202c; --lead: #2b3847; --mute: #5b6878; --line: #dfe5ec; --bg: #fbfaf7; --panel: #ffffff; --accent: #0f766e; --accent-ink: #ffffff; --warn: #b4472e; --gold: #a16207;
  --field: #ffffff; --field-line: #c4ced9; --focus: #5eead4; --soft: #eef1f4; --head: #f4f6f8;
  --good-bg: #e3f6f1; --good-line: #a9dccf; --good-ink: #0b5d56; --bad-bg: #fdeee9; --bad-line: #f0c3b6; --bad-ink: #7a2a17;
  --wait-bg: #fdf1d3; --wait-ink: #7a5200; --info-bg: #e8eaf6; --info-ink: #3b3f73; --overdue: #fff6f3; --doc-ink: #7a2a17; color-scheme: light; }
/* The dark theme: the same names, darker values. Chosen in the back office (Payments and email settings, Appearance). */
[data-theme="dark"] { --ink: #e6ebf2; --lead: #c6d0dc; --mute: #9aa8b9; --line: #2c3948; --bg: #10161d; --panel: #18212b; --accent: #4fd1c0; --accent-ink: #062321; --warn: #f0937c; --gold: #e3b341;
  --field: #0f151b; --field-line: #3a4a5c; --focus: #2dd4bf; --soft: #243140; --head: #1e2935;
  --good-bg: #0f2f2a; --good-line: #1f5a50; --good-ink: #8fe3d3; --bad-bg: #3a1a14; --bad-line: #6d3327; --bad-ink: #ffb4a2;
  --wait-bg: #3a2e0c; --wait-ink: #f2cf73; --info-bg: #23284a; --info-ink: #b9c0f5; --overdue: #2a1a17; --doc-ink: #ffb4a2; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.5rem; max-width: 1080px; margin: 0 auto; }
.brand { font: 800 1.2rem system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); text-decoration: none; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: .55rem; }
.mark { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: conic-gradient(from 210deg, #34d399, #22d3ee, #a78bfa, #34d399); box-shadow: 0 0 14px rgba(45, 212, 191, .55); }
nav a.navcta { border: 1.5px solid var(--accent); color: var(--accent); border-radius: 999px; padding: .3rem .9rem; font-weight: 600; }
nav a.navcta:hover { background: var(--accent); color: var(--accent-ink); }
nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--accent); }
main { max-width: 1080px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }
main.narrow { max-width: 680px; }
main.wide { max-width: none; padding: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
footer { border-top: 1px solid var(--line); color: var(--mute); font-size: .9rem; justify-content: flex-start; }
footer span { margin-right: auto; }
h1, h2, h3 { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 1.5rem 0 1rem; }
h2 { font-size: 1.55rem; margin: 2.75rem 0 1rem; }
h3 { font-size: 1.2rem; margin: .25rem 0 .5rem; }
.hero { padding: 2.5rem 0 1rem; max-width: 780px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent); font-weight: 600; margin: 0; }
.lead { font-size: 1.2rem; color: var(--lead); }
.muted { color: var(--mute); font-size: .95rem; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); border-radius: 8px; padding: .65rem 1.2rem; font: 600 1rem system-ui, sans-serif; text-decoration: none; cursor: pointer; margin: .25rem .5rem .25rem 0; }
.button.ghost { background: transparent; color: var(--accent); }
.button.small { padding: .35rem .8rem; font-size: .9rem; }
.button.danger { color: var(--warn); border-color: var(--warn); }
.button:hover { filter: brightness(1.08); }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--mute); cursor: pointer; }
form.inline { display: inline; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.4rem; color: var(--ink); text-decoration: none; display: block; }
a.card:hover { border-color: var(--accent); }
.card p { margin: .4rem 0; }
.tag { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--gold); font-weight: 700; }
.more { color: var(--accent); font-size: .9rem; }
.steps { padding-left: 1.2rem; max-width: 720px; }
.steps li { margin: .6rem 0; }
.plan { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 2rem; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 12px; padding: 1.5rem 1.75rem; margin: 1.5rem 0; }
.plan h2 { margin: 0; }
.price { font: 800 2.2rem system-ui, sans-serif; letter-spacing: -.02em; color: var(--accent); margin: .3rem 0; }
@media (max-width: 640px) { .plan { grid-template-columns: 1fr; gap: .5rem; } }
.form { display: grid; gap: 1rem; margin: 1.5rem 0; }
.form label { display: grid; gap: .35rem; font-weight: 600; }
input, textarea, select { font: inherit; padding: .6rem .7rem; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field); color: var(--ink); width: 100%; }
input:focus, textarea:focus, select:focus, .button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.form .button { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.error { background: var(--bad-bg); border: 1px solid var(--bad-line); color: var(--bad-ink); padding: .7rem 1rem; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); background: var(--head); }
tr:last-child td { border-bottom: 0; }
tr.overdue td { background: var(--overdue); }
.pill { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--soft); color: var(--mute); }
.pill.accepted, .pill.paid { background: var(--good-bg); color: var(--good-ink); }
.pill.sent, .pill.unpaid { background: var(--wait-bg); color: var(--wait-ink); }
.pill.declined, .pill.void { background: var(--bad-bg); color: var(--bad-ink); }
.doc { white-space: pre-wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; }
.decide { margin-top: 1.5rem; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.tabs a { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: .4rem .8rem; }
.count { color: var(--mute); font-size: .85rem; margin-left: .25rem; }
.request { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.2rem; margin: .75rem 0; }
.request p { margin: .35rem 0; }
.ok { background: var(--good-bg); border: 1px solid var(--good-line); color: var(--good-ink); padding: .7rem 1rem; border-radius: 8px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .25rem 1.4rem 1.2rem; margin: 1.5rem 0; }
.panel h2 { margin-top: 1.2rem; font-size: 1.3rem; }
.panel h2 .pill { vertical-align: middle; font-family: system-ui, sans-serif; margin-left: .4rem; }
.form label > span { font-weight: 600; }
.form label .muted { font-weight: 400; }
.keychecks { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; background: var(--panel); }
.keycheck { display: flex; gap: .75rem; align-items: flex-start; border-radius: 10px; padding: .6rem .8rem; margin: .5rem 0; }
.keycheck .mark { flex: none; font-weight: 700; font-size: 1.1rem; }
.keycheck.good { background: var(--good-bg); border: 1px solid var(--good-line); }
.keycheck.bad { background: var(--bad-bg); border: 1px solid var(--bad-line); }
.keyhint { display: block; min-height: 1.3em; font-size: .9rem; font-weight: 500; }
.keyhint.good { color: var(--good-ink); }
.keyhint.bad { color: var(--bad-ink); }
code { background: var(--soft); padding: .05rem .35rem; border-radius: 4px; font-size: .9em; }
.pill.refunded { background: var(--info-bg); color: var(--info-ink); }
.autopay { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .4rem 1.1rem .9rem; margin: 0 0 1rem; }
.payform { margin: 0; }
.check { display: block; font-size: .85rem; color: var(--mute); font-weight: 400; }
.check input { width: auto; margin-right: .3rem; }
.choices { display: flex; gap: 1rem; flex-wrap: wrap; }
.choice { display: flex; align-items: center; gap: .5rem; border: 2px solid var(--line); border-radius: 10px; padding: .6rem 1rem; font-weight: 600; cursor: pointer; }
.choice input { width: auto; }
.choice:has(input:checked) { border-color: var(--accent); }

/* ---------------------------------------------------------------- public pages, 2026-12 redesign
   The "night" bands (hero, page heads, the closing call) are dark in both themes; everything else follows the theme. */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 5rem; }
.night { position: relative; overflow: hidden; background: #070b12; color: #eaf1f8; --ink: #eaf1f8; --lead: #c3cfdd; --mute: #93a3b6; --accent: #5eead4; --accent-ink: #04201d; --line: #223041; }
.night h1, .night h2 { color: #fff; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.sky i:nth-child(1) { width: 46rem; height: 24rem; left: -10rem; top: -9rem; background: #10b981; }
.sky i:nth-child(2) { width: 40rem; height: 22rem; right: -8rem; top: -6rem; background: #6366f1; animation-duration: 28s; animation-direction: alternate-reverse; }
.sky i:nth-child(3) { width: 34rem; height: 18rem; left: 30%; bottom: -12rem; background: #06b6d4; opacity: .35; animation-duration: 34s; }
@keyframes drift { from { transform: translate3d(-3rem, 0, 0) scale(1); } to { transform: translate3d(4rem, 2rem, 0) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .sky i { animation: none; } html { scroll-behavior: auto; } }
.night .wrap { position: relative; }
.hero.night { padding: 4.5rem 0 5rem; max-width: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin: .8rem 0 1.2rem; text-wrap: balance; }
h2.big, .cta h2, .pagehead h1 { text-wrap: balance; }
.glow { background: linear-gradient(100deg, #6ee7b7, #67e8f9 45%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.night .lead { color: var(--lead); max-width: 38rem; }
.actions { margin: 1.6rem 0 .6rem; }
.fine { color: var(--mute); font-size: .95rem; margin: .4rem 0 0; }
.night .button { box-shadow: 0 8px 30px rgba(45, 212, 191, .25); }
.night .button.ghost { box-shadow: none; border-color: #3b4c61; color: #eaf1f8; }
.night .button.ghost:hover { border-color: var(--accent); color: var(--accent); }
.button { border-radius: 999px; padding: .7rem 1.4rem; transition: transform .15s ease, filter .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.small { border-radius: 8px; }

/* Screenshots in a browser frame, and a phone beside it */
.browser { border-radius: 12px; overflow: hidden; background: #0d131b; border: 1px solid #2a3848; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.browser .bar { display: flex; align-items: center; gap: .4rem; padding: .5rem .7rem; background: #151d28; }
.browser .bar b { width: .6rem; height: .6rem; border-radius: 50%; background: #3a4a5c; }
.browser .bar b:nth-child(1) { background: #f87171; } .browser .bar b:nth-child(2) { background: #fbbf24; } .browser .bar b:nth-child(3) { background: #34d399; }
.browser .bar span { flex: 1; margin-left: .5rem; background: #0b1118; color: #8fa0b3; border-radius: 6px; padding: .12rem .6rem; font: .72rem ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img, .phone img { display: block; width: 100%; height: auto; }
.phone { border-radius: 22px; overflow: hidden; border: 5px solid #0d131b; outline: 1px solid #334357; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); background: #0d131b; }
.stage { position: relative; aspect-ratio: 10 / 8.2; }
.stage .browser { position: absolute; width: 86%; }
.stage .back { right: 0; top: 0; transform: rotate(2.5deg); opacity: .9; }
.stage .front { left: 0; top: 22%; transform: rotate(-2deg); }
.stage .phone { position: absolute; width: 21%; right: 3%; bottom: -2%; transform: rotate(4deg); aspect-ratio: 9 / 17; }
.stage .phone img { height: 100%; object-fit: cover; object-position: top; }

.strip { border-bottom: 1px solid var(--line); background: var(--panel); }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; padding-top: 1.1rem; padding-bottom: 1.1rem; margin: 0 auto; color: var(--mute); font-weight: 600; font-size: .95rem; }
.chips li::before { content: ""; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); margin-right: .55rem; vertical-align: middle; }

main.wide > section.wrap, main.wide > .wrap { padding-top: 4.5rem; padding-bottom: 1rem; }
h2.big { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: .5rem 0 2.2rem; max-width: 46rem; }
.case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 2.2rem; margin: 0 0 2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.case.flip .shot { order: 2; }
.shot { position: relative; display: block; padding: 0; text-decoration: none; transition: transform .25s ease; }
.shot:hover { transform: translateY(-4px); }
.shot .browser { box-shadow: 0 20px 50px rgba(0, 0, 0, .28); }
.shot .phone { position: absolute; right: 0; bottom: 0; width: 23%; aspect-ratio: 9 / 17; }
.shot .phone img { height: 100%; object-fit: cover; object-position: top; }
.case h3 { font-size: 1.7rem; margin: .2rem 0 .6rem; }
.case h4 { font: 700 .78rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 0 0 .4rem; }
.case .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.2rem 0; }
.case ul, .pane ul { list-style: none; padding: 0; margin: 0; }
.case li, .pane li { position: relative; padding-left: 1.3rem; margin: .4rem 0; font-size: .97rem; color: var(--lead); }
.case li::before, .pane li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .38rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.case .more { font-weight: 600; font-size: 1rem; text-decoration: none; }
.case .more:hover { text-decoration: underline; }
.case.mini { display: block; border-style: dashed; background: transparent; }
.case.mini p { max-width: 52rem; }

.band { background: var(--head); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 3.5rem; padding: 4.5rem 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.pane { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; transition: border-color .2s ease, transform .2s ease; }
.pane:hover { border-color: var(--accent); transform: translateY(-3px); }
.pane h3 { font-size: 1.35rem; margin: .5rem 0 .4rem; }
.num { font: 700 .85rem ui-monospace, Menlo, Consolas, monospace; color: var(--accent); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; padding: 0; max-width: none; margin: 0 0 4.5rem; }
.steps li { counter-increment: step; margin: 0; padding: 1.2rem 0 0; border-top: 3px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 .85rem ui-monospace, Menlo, Consolas, monospace; color: var(--accent); margin-bottom: .5rem; }
.steps li strong { display: block; font-size: 1.1rem; }
.steps li span { color: var(--mute); font-size: .97rem; }
.steps li:first-child { border-top-color: var(--accent); }

.cta.night { padding: 5rem 0; text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 1rem; }
.cta .lead { margin: 0 auto; }
.pagehead.night { padding: 3.5rem 0 3.2rem; }
.pagehead h1 { max-width: 46rem; margin: .7rem 0 1rem; }
main.wide .plan { margin: 3rem 0 3.5rem; border-radius: 18px; }
main.wide .cards { margin-bottom: 2rem; }
main.wide .card { border-radius: 16px; transition: border-color .2s ease, transform .2s ease; }
main.wide .card:hover { border-color: var(--accent); transform: translateY(-3px); }
main.wide > .wrap > .actions { margin-bottom: 4.5rem; }
main.wide + footer { border-top: 0; }

@media (max-width: 900px) {
  .hero-grid, .case { grid-template-columns: 1fr; gap: 2rem; }
  .hero.night { padding: 3rem 0 3.5rem; }
  .case { padding: 1.3rem; }
  .case.flip .shot { order: 0; }
  .trio { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .case .two, .steps { grid-template-columns: 1fr; }
  .top { padding: .7rem 1rem; } nav { gap: .9rem; font-size: .95rem; }
  .wrap { padding: 0 1.1rem; }
}

/* Home page: plain link cards for past work, then the services */
#work .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
#work .card { padding: 1.6rem 1.8rem; }
#work .card h3 { font-size: 1.5rem; }
#work .more { font-weight: 600; }
.band .actions { margin: 2rem 0 0; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.svc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.6rem; color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.svc:hover { border-color: var(--accent); transform: translateY(-3px); }
.svc h3 { font-size: 1.25rem; margin: .5rem 0 .4rem; }
.svc p { margin: .4rem 0; color: var(--lead); }
.svc.feature { grid-row: span 3; border: 2px solid var(--accent); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--panel)), var(--panel) 60%); }
.svc.feature h3 { font-size: 1.6rem; }
.svc.feature .price { margin: 0 0 .4rem; }
.svc.feature .more { font-weight: 600; color: var(--accent); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } .svc.feature { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .services, #work .cards { grid-template-columns: 1fr; } .svc.feature { grid-column: auto; } }

/* The hero has no pictures now: one column of text over the glow. */
.hero-copy { max-width: 50rem; }
.hero.night { padding: 5.5rem 0 6rem; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.hero .lead { font-size: 1.3rem; max-width: 42rem; }
@media (max-width: 900px) { .hero.night { padding: 3.2rem 0 3.6rem; } }

/* back office: account summary, payments, reports */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin: 1rem 0 1.5rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .7rem 1rem; display: grid; gap: .15rem; }
.stat span { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.stat strong { font-size: 1.5rem; }
.stat strong.bad { color: var(--warn); }
.stat small { color: var(--mute); }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .6rem 1rem; display: grid; gap: .35rem; }
.form fieldset legend { font-weight: 600; padding: 0 .3rem; }
details summary { cursor: pointer; color: var(--mute); }
tr.off td { opacity: .6; }
table.bars meter { width: 100%; height: .9rem; }
td.barcell { width: 55%; }
h2 .button.small { margin-left: .75rem; vertical-align: middle; }
.form label.check { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 400; color: var(--ink, inherit); font-size: .95rem; }
.form label.check input { width: auto; margin: 0; flex: none; }
.form label.check .pill { flex: none; }
