:root {
  --bg: #050814;
  --bg-alt: #080d1f;
  --card: #0d1430;
  --line: #1c2750;
  --text: #eaf0ff;
  --muted: #9aa8cf;
  --blue: #2f7bff;
  --blue-2: #4aa3ff;
  --red: #ff3b30;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-2); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(5, 8, 20, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.2rem; }
.brand img { mix-blend-mode: screen; object-fit: contain; }
.brand b { color: var(--blue-2); }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600; text-decoration: none;
  color: #fff; padding: 13px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #1f5de0);
  box-shadow: 0 8px 28px rgba(47, 123, 255, .35); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(47, 123, 255, .5); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { padding: 8px 18px; font-size: .92rem; }
.btn-ghost { background: transparent; box-shadow: none; border: 1.5px solid var(--red); color: #ff8a82; }
.btn-ghost:hover { background: rgba(255, 59, 48, .12); box-shadow: none; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; background:
  radial-gradient(60% 60% at 15% 20%, rgba(47, 123, 255, .22), transparent 70%),
  radial-gradient(50% 50% at 90% 80%, rgba(255, 59, 48, .16), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero-logo {
  justify-self: center; width: min(100%, 520px);
  -webkit-mask-image: radial-gradient(ellipse 68% 66% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 68% 66% at 50% 50%, #000 55%, transparent 100%);
}
.eyebrow { margin: 0 0 10px; color: var(--red); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; margin: 0 0 32px; }
h3 { margin: 12px 0 6px; font-size: 1.2rem; }
.grad { background: linear-gradient(90deg, var(--blue-2), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.apps { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--blue); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; font-weight: 800; font-size: 1.05rem; }
.icon.blue { background: rgba(47, 123, 255, .16); color: var(--blue-2); }
.icon.red { background: rgba(255, 59, 48, .16); color: #ff7a70; }

.app-tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-2); font-weight: 700; }
.app-card h3 { margin-top: 6px; }
.tech { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.tech li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.app-link { display: inline-block; margin-top: 16px; font-weight: 600; text-decoration: none; }
.app-link:hover { text-decoration: underline; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.direct { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.direct li { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.direct span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.direct a { font-size: 1.2rem; font-weight: 600; color: var(--text); text-decoration: none; }
.direct a:hover { color: var(--blue-2); }
.privacy { color: var(--muted); font-size: .9rem; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form small { color: var(--muted); font-weight: 400; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; font: inherit; color: var(--text); background: #070c1f; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 123, 255, .3); }
.form .invalid { border-color: var(--red) !important; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: block !important; position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); cursor: pointer; font-weight: 500; transition: all .15s; }
.chip:hover span { border-color: var(--blue); }
.chip input:checked + span { background: rgba(47, 123, 255, .2); border-color: var(--blue); color: var(--text); }
.chip input:focus-visible + span { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.consent input { margin-top: 5px; accent-color: var(--blue); }
.status { margin: 0; min-height: 1.4em; font-weight: 600; }
.status.ok { color: #4ade80; }
.status.err { color: #ff7a70; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer a { color: var(--muted); }
.notfound { text-align: center; padding: 80px 0; }
.notfound img { mix-blend-mode: screen; }

@media (max-width: 860px) {
  .hero-inner, .contact { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  .hero-logo { max-width: 340px; order: -1; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
  .form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- Revised landing page (2026-11 refresh) ---- */
.hero-simple { padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.tagline { font-weight: 700; color: var(--text); font-size: 1.15rem; margin: 20px 0 0; }
.hero-simple .lead { margin: 0 0 14px; }
.svc-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.svc:hover { border-color: var(--blue); transform: translateY(-3px); }
.svc.featured { border-color: #27407f; }
.svc .shot { aspect-ratio: 4 / 3; width: 100%; height: auto; display: block; object-fit: cover; background: #070c1f; border-bottom: 1px solid var(--line); }
.svc .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc h3 { margin: 0; font-size: 1.35rem; }
.svc .desc { color: var(--muted); margin: 0; }
.svc ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: .93rem; columns: 2; column-gap: 22px; }
.svc li { margin-bottom: 4px; break-inside: avoid; }
.price { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price b { font-size: 1.05rem; }
.price small { color: var(--muted); display: block; font-size: .8rem; }
.disclaimer { color: var(--muted); font-size: .88rem; margin-top: 22px; max-width: 90ch; }
.note-box { margin-top: 14px; font-size: .9rem; color: var(--muted); border: 1px dashed var(--line); padding: 12px 14px; border-radius: 12px; }
.how { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: s; }
.how .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(47, 123, 255, .2); color: var(--blue-2); font-weight: 800; margin-bottom: 10px; }
.responsible ul { columns: 2; column-gap: 40px; padding-left: 20px; color: var(--muted); }
.responsible li { margin-bottom: 10px; break-inside: avoid; }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 14px; }
.case h4 { margin: 0 0 6px; color: var(--blue-2); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.case p, .case li { color: var(--muted); }
.case ul { padding-left: 18px; margin: 0; }
.badge { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #ffd66b; border: 1px solid #6b4e00; padding: 2px 8px; border-radius: 999px; display: inline-block; }
.subhead { margin-top: 44px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 36px; font-size: 1.4rem; }
.prose p, .prose li { color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid, .case { grid-template-columns: 1fr; }
  .hero-simple { padding: 40px 0 56px; }
  .svc ul, .responsible ul { columns: 1; }
}
@media (max-width: 760px) { .nav nav a:not(.btn) { display: none; } }

/* ---- Multi-page layout (2026-11): header, home tiles, page headings ---- */
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav .nav-right a.signin { display: inline-block !important; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 16px; color: var(--text); font-weight: 600; font-size: .92rem; text-decoration: none; }
.nav .nav-right a.signin:hover { border-color: var(--blue); }
.nav .nav-right a[aria-current="page"] { color: var(--text); }
@media (max-width: 760px) { .nav-right { gap: 10px; } }
@media (max-width: 420px) { .brand span { display: none; } .nav .nav-right a.btn { padding: 8px 12px; font-size: .85rem; } }

.hero-note { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.hero-note a { font-weight: 600; }
.tiles4 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile4 { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.tile4:hover { border-color: var(--blue); transform: translateY(-3px); }
.tile4 h3 { margin: 6px 0 0; font-size: 1.15rem; }
.tile4 p { margin: 0; color: var(--muted); font-size: .95rem; }
.tile4 .from { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--blue-2); }
.more { margin-top: 22px; }
.proof { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.proof h3 { margin: 6px 0; }
.proof p { margin: 0; color: var(--muted); }
.cta-band { text-align: center; padding: 72px 0; background: radial-gradient(60% 100% at 50% 0%, rgba(47, 123, 255, .22), transparent 70%); border-top: 1px solid var(--line); }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin: 0 0 22px; }
.cta-band .sub { font-size: .92rem; margin: 16px 0 0; }
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 10px; }
.page-head p { color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.08rem; }
.page-head .eyebrow { margin-bottom: 10px; }
.next-title { font-size: 1.4rem; margin: 0 0 8px; }
.steps3 { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; counter-reset: n; }
.steps3 li { counter-increment: n; display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.steps3 li::before { content: counter(n); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(47, 123, 255, .2); color: var(--blue-2); font-weight: 800; }
.steps3 b { color: var(--text); display: block; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }
.tile4 { overflow: hidden; }
.tile4 .tile-img { display: block; width: calc(100% + 48px); max-width: none; margin: -24px -24px 8px; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); background: #070c1f; }

/* Home tiles: four across on laptops, two on tablets, one on phones; shorter pictures. */
.tiles4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile4 .tile-img { aspect-ratio: 16 / 9; max-height: 170px; }
@media (max-width: 1023px) { .tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .tiles4 { grid-template-columns: 1fr; } .tile4 .tile-img { max-height: 190px; } }

/* Start page: the two ways to begin */
.form[hidden] { display: none; }
.choose { padding-bottom: 0; }
.choose h2 { margin-bottom: 12px; }
.choices { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 28px 0 16px; }
.choice-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.choice-card h3 { margin: 0; }
.choice-card p { color: var(--muted); margin: 0; }
.choice-card .btn { margin-top: auto; align-self: flex-start; }

/* Guided discovery */
.disc { max-width: 760px; padding-block: 48px 64px; }
.disc progress { width: 100%; height: 10px; accent-color: var(--blue); margin-bottom: 18px; }
.disc-form { padding: 24px; }
.disc-title { font-size: 1.5rem; margin: 0 0 6px; }
.disc-title:focus { outline: none; }
.disc-title + .note { margin: -16px 0 0; }
#step { display: grid; gap: 22px; }
.disc-question legend { font-size: 1.05rem; }
.disc-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.disc .disc-option { display: block; position: relative; }
.disc-option input { position: absolute; opacity: 0; inset: 0; }
.disc-option span { display: flex; align-items: center; gap: 12px; min-height: 56px; height: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #070c1f; }
.disc-option b { font-weight: 500; }
.disc-option span::after { content: ""; margin-left: auto; flex: none; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 4px; }
.disc-option input[type=radio] + span::after { border-radius: 50%; }
.disc-option input:checked + span { background: rgba(47, 123, 255, .2); border-color: var(--blue); }
.disc-option input:checked + span::after { content: "\2713"; border-color: var(--blue); background: var(--blue); color: #fff; font-size: 12px; line-height: 14px; text-align: center; }
.disc-option input:focus-visible + span { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.disc-icon { width: 28px; height: 28px; flex: none; }
.disc-clear { background: none; border: 0; color: var(--blue-2); font: inherit; cursor: pointer; padding: 8px 0; text-decoration: underline; }
.disc-category { display: grid; gap: 22px; }
.disc-more summary { cursor: pointer; font-weight: 600; margin-bottom: 14px; }
.disc-more .disc-category { margin-bottom: 22px; }
.disc-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.disc-actions #next { margin-left: auto; }
.disc-review { border-top: 1px solid var(--line); padding-top: 12px; }
.disc-review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.disc-review h3 { margin: 0; font-size: 1.05rem; }
.disc-review dt { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.disc-review dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.disc-done h2 { margin: 0; }
.note { color: var(--muted); font-size: .92rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Light theme: palette "Sky & Sand" ----------------------------------------------------------
   Dark is the default above. /theme.js sets data-theme="light" or "dark" on <html> before the page paints
   (the visitor's saved choice, else the device setting). Light only re-colours; layout is unchanged. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f5ee;
  --bg-alt: #efeadf;
  --card: #ffffff;
  --line: #e2dccd;
  --text: #1e3048;
  --muted: #5d6b7d;
  --blue: #1d6fd6;
  --blue-2: #1659b8; /* link and accent text: darker than the button blue so it reads on cream */
  --red: #cf4129;
}
[data-theme="light"] .nav { background: rgba(248, 245, 238, .9); }
[data-theme="light"] .btn-ghost { color: #bf3a22; }
[data-theme="light"] .btn-ghost:hover { background: rgba(207, 65, 41, .1); }
[data-theme="light"] .icon.blue, [data-theme="light"] .how .card::before, [data-theme="light"] .steps3 li::before { background: rgba(29, 111, 214, .13); }
[data-theme="light"] .icon.red { background: rgba(207, 65, 41, .13); color: #bf3a22; }
[data-theme="light"] .form input[type=text], [data-theme="light"] .form input[type=email], [data-theme="light"] .form input[type=tel],
[data-theme="light"] .form textarea, [data-theme="light"] .disc-option span { background: #fff; }
[data-theme="light"] .svc .shot, [data-theme="light"] .tile4 .tile-img { background: var(--bg-alt); }
[data-theme="light"] .status.ok { color: #15803d; }
[data-theme="light"] .status.err { color: #c4281d; }
[data-theme="light"] .badge { color: #8a5a00; border-color: #e3c36a; }
[data-theme="light"] .chip input:checked + span, [data-theme="light"] .disc-option input:checked + span { background: rgba(29, 111, 214, .12); }
[data-theme="light"] .card, [data-theme="light"] .svc, [data-theme="light"] .tile4, [data-theme="light"] .form,
[data-theme="light"] .proof, [data-theme="light"] .choice-card, [data-theme="light"] .direct li { box-shadow: 0 2px 14px rgba(60, 50, 20, .08); }
/* The logo files have a black background: invert them (hues kept) so they sit on the light page. */
[data-theme="light"] .hero-logo, [data-theme="light"] .brand img, [data-theme="light"] .notfound img {
  filter: invert(1) hue-rotate(180deg) brightness(1.1);
  mix-blend-mode: multiply;
}

/* The theme switch: sits at the end of the header, or floats when a page has no header. */
.theme-toggle {
  flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 1.1rem; line-height: 1;
  display: inline-grid; place-items: center;
}
.theme-toggle:hover { border-color: var(--blue); }
.theme-toggle:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.theme-toggle.floating { position: fixed; right: 16px; bottom: 16px; z-index: 60; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
@media print { .theme-toggle { display: none !important; } }
[data-theme="light"] .form input[type=text], [data-theme="light"] .form input[type=email], [data-theme="light"] .form input[type=tel],
[data-theme="light"] .form textarea, [data-theme="light"] .disc-option span { border-color: #c9c0aa; }

/* Inactivity warning (client/lib/idle.js). Uses the theme variables, so it follows light and dark. */
.idle-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(10, 16, 40, .6); }
.idle-dialog { width: min(440px, 100%); background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.idle-dialog h2 { font-size: 1.3rem; margin: 0 0 10px; }
.idle-dialog p { margin: 0 0 16px; color: var(--muted); }
.idle-dialog strong { color: var(--text); font-variant-numeric: tabular-nums; }
.idle-dialog .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
@media print { .idle-overlay { display: none !important; } }
