/* bizcode.io's front page (TP482 S15, S16). BizCode' own colours: emerald on a soft page, deep indigo for the dark
   bands; the colours are tokens here and redefined when dark. site-theme.js puts light or dark on <html data-theme>
   before the page is drawn (Light, Dark, or as the device, chosen in the header and kept in this browser). */
:root {
    --ink: #1f2433;
    --ink-soft: #5b6275;
    --page: #ffffff;
    --soft: #f4f5f9;
    --card: #ffffff;
    --line: #e3e6ef;
    --primary: #059669;
    --primary-ink: #ffffff;
    --primary-deep: #047857;
    --primary-tint: rgba(5, 150, 105, 0.1);
    --deep: #0d1236;
    --deep-2: #1c2257;
    --deep-ink: #eef0fb;
    --deep-soft: #aab1dd;
    --deep-line: #2a3170;
    --deep-chip: rgba(5, 150, 105, 0.35);
    --shadow: rgba(18, 23, 64, 0.08);
    --shadow-strong: rgba(18, 23, 64, 0.22);
    --danger: #b91c1c;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --ink: #eef0fb;
    --ink-soft: #aab1dd;
    --page: #121740;
    --soft: #0f1438;
    --card: #1c2257;
    --line: #2a3170;
    --primary-deep: #6ee7b7;
    --primary-tint: rgba(5, 150, 105, 0.2);
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-strong: rgba(0, 0, 0, 0.5);
    --danger: #fca5a5;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--primary-deep); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.eyebrow { display: inline-block; margin: 0 0 .6rem; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--primary-deep); background: var(--primary-tint); }
p.eyebrow.center { display: block; width: fit-content; margin-inline: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; padding: 0 1.05rem; border-radius: 8px;
    font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-lg { min-height: 48px; padding: 0 1.4rem; font-size: 1rem; }
.btn-primary { color: var(--primary-ink); background: var(--primary); }
.btn-primary:hover { background: var(--primary-deep); color: var(--primary-ink); }
.btn-outline { color: inherit; border-color: currentColor; }
.btn-ghost { color: inherit; }
.btn-ghost:hover, .btn-outline:hover { background: var(--primary-tint); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--page); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand small { font-weight: 500; font-size: .8rem; color: var(--ink-soft); }
.top-nav { display: flex; gap: 1.1rem; margin-inline-start: auto; }
.top-nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.top-nav a:hover { color: var(--ink); }
.top-end { display: flex; gap: .5rem; }

/* hero */
.hero { color: var(--deep-ink); background: radial-gradient(1200px 500px at 85% -10%, var(--deep-2), transparent 70%), var(--deep); padding: 72px 0 80px; }
.hero .eyebrow { color: var(--deep-ink); background: var(--deep-chip); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.01em; }
.lead { font-size: 1.12rem; color: var(--deep-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.4rem; }
.hero .btn-outline { color: var(--deep-ink); }
.hero-points { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; list-style: none; color: var(--deep-soft); font-size: .92rem; }
.hero-points li::before { content: "✓"; margin-inline-end: .4rem; color: var(--primary); font-weight: 700; }

/* bands */
.band { padding: 80px 0; }
.band-soft { background: var(--soft); }
.band-deep { background: var(--deep); color: var(--deep-ink); }
.band-deep .eyebrow { color: var(--deep-ink); background: var(--deep-chip); }
.band-deep a { color: var(--deep-ink); }
.band h2 { margin-bottom: 2.2rem; }

.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 24px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 10px var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px var(--shadow); }
.card p { color: var(--ink-soft); margin: 0; }
.card .more { display: inline-block; margin-top: .8rem; font-weight: 600; }
.icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 10px; background: var(--primary-tint); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--primary-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.feature { position: relative; padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); }
.feature::before { content: "✓"; position: absolute; left: 0; top: 18px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
    font-size: .8rem; font-weight: 700; color: var(--primary-deep); background: var(--primary-tint); }
.feature h3 { margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.feature.is-next::before { content: "→"; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: .4rem; padding: 24px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.steps li::before { content: counter(step); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-weight: 700;
    color: var(--primary-ink); background: var(--primary); }
.steps span { color: var(--ink-soft); }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-copy p { color: var(--deep-soft); }
.small { font-size: .9rem; }
.contact-form { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 14px; background: var(--card); color: var(--ink);
    box-shadow: 0 20px 50px var(--shadow-strong); }
.contact-form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; }
.contact-form label i { font-weight: 400; color: var(--ink-soft); font-style: normal; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 42px; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line);
    font: inherit; font-weight: 400; color: var(--ink); background: var(--page); }
.contact-form textarea { resize: vertical; }
.contact-form :is(input, select, textarea):focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.contact-form [aria-invalid="true"] { border-color: var(--danger); }
.contact-form .btn { align-self: flex-start; }
.contact-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; min-height: 1.4em; font-size: .92rem; }
.form-note.is-error { color: var(--danger); }
.form-note.is-done { color: var(--primary-deep); font-weight: 600; }

/* footer */
.foot { padding: 22px 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.foot-row { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; }
.foot a { color: inherit; }

@media (max-width: 900px) {
    .top-nav { display: none; }
    .top-end { margin-inline-start: auto; }
    .hero { padding: 48px 0 56px; }
    .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .cards.three, .cards.two, .steps, .features { grid-template-columns: 1fr; }
    .band { padding: 56px 0; }
}

/* The company sign-in door, sharing the front page's light/dark tokens. */
.signin-page { min-height: 100vh; display: flex; flex-direction: column; }
.signin-page .top { width: 100%; }
.signin-main { flex: 1; display: grid; place-items: center; padding: 56px 16px; background: radial-gradient(900px 460px at 50% 0, var(--primary-tint), transparent 70%), var(--page); }
.signin-card { width: min(100%, 460px); padding: clamp(24px, 6vw, 40px); border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 20px 50px var(--shadow); }
.signin-mark { display: block; width: 48px; height: 48px; margin-bottom: 22px; }
.signin-card h1 { font-size: clamp(1.65rem, 5vw, 2rem); letter-spacing: -.02em; }
.signin-intro { margin-bottom: 26px; color: var(--ink-soft); }
.signin-card label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 650; }
.handle-field { display: flex; align-items: center; min-height: 50px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); color: var(--ink); }
.handle-field:focus-within { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.handle-field input { min-width: 0; width: 100%; min-height: 48px; padding: 10px 0 10px 13px; border: 0; outline: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; }
.handle-suffix { flex: 0 0 auto; padding: 0 12px 0 5px; color: var(--ink-soft); }
.signin-hint { margin: 7px 0 18px; color: var(--ink-soft); font-size: .84rem; }
.signin-continue { width: 100%; }
.signin-continue:disabled { cursor: wait; opacity: .7; }
.signin-message { min-height: 1.5em; margin: 12px 0 0; font-size: .92rem; }
.signin-message.is-error { color: var(--danger); }
.signin-contact { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); text-align: center; font-size: .92rem; }
.signin-contact a { font-weight: 650; }
@media (max-width: 560px) {
    .signin-main { padding: 32px 16px; }
    .signin-card { padding: 24px 20px; }
    .signin-card h1 { font-size: 1.65rem; }
}
@media (max-width: 560px) {
    .brand small { display: none; }
    .contact-form .row.two { grid-template-columns: 1fr; }
    .contact-form { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }

/* One round header toggle for Light, Dark and System. */
.theme-switch { display: inline-flex; }
.theme-switch button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
    color: var(--ink-soft); background: var(--soft); }
.theme-switch button:hover { color: var(--ink); border-color: var(--primary); }
.theme-switch button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.theme-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch svg[hidden] { display: none; }
.theme-switch button.is-flipping { animation: theme-flip .28s ease-in-out; }
@keyframes theme-flip { 50% { transform: rotate(180deg) scale(.82); } }
@media (prefers-reduced-motion: reduce) { .theme-switch button.is-flipping { animation: none; } }

/* Pictures of BizCode itself, in a window frame; the light or dark one as the page is. */
.shot { margin: 0; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 60px var(--shadow-strong); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--ink-soft); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-bar b { margin-inline-start: 6px; font-weight: 600; }
.shot img { display: block; width: 100%; height: auto; }
.shot .is-dark { display: none; }
:root[data-theme="dark"] .shot .is-light { display: none; }
:root[data-theme="dark"] .shot .is-dark { display: block; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: .7rem; font-size: .92rem; color: var(--ink-soft); text-align: center; }
.shots figcaption b { color: var(--ink); }
.shots .phone-copy { margin: 0 0 0 auto; max-width: 30rem; font-size: 1.2rem; line-height: 1.5; color: var(--ink-soft); }
.shots .phone-copy b { color: var(--ink); }
.shots .phone { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; grid-column: 1 / -1; padding: 8px 0; }
.shot.is-phone { width: 230px; border-radius: 26px; border-width: 6px; border-color: var(--deep-2); }
@media (max-width: 900px) {
    .shots { grid-template-columns: 1fr; }
    .shots .phone { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
    .shots .phone-copy { margin: 0; text-align: center; }
}
