/* The public website: the NoCodeDoc look (same colours and type as the admin and portal: web/shared/theme.css),
 * light by default, dark when the device prefers it or the visitor picks it. No outside fonts or scripts. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px; --maxw: 1120px;
  --bg: #ffffff; --bg-alt: #f5f8fd; --surface: #ffffff; --surface-2: #eef3fb;
  --border: #e4e9f3; --border-2: #d3dcec;
  --text: #101a2e; --text-soft: #4a5670; --text-faint: #636d81;
  --blue: #2f6bed; --blue-ink: #1d51c9; --blue-soft: rgba(47,107,237,.10); --link: #2c65df; --control: #878d97;
  --violet: #7c46ff; --green: #1b7b52; --green-soft: rgba(31,143,95,.12);
  --shadow-sm: 0 1px 2px rgba(12,18,34,.05), 0 4px 14px -8px rgba(12,18,34,.12);
  --shadow-lg: 0 24px 60px -28px rgba(23,44,94,.32);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070c17; --bg-alt: #0c1424; --surface: #0f1828; --surface-2: #16223a;
    --border: #1e2b45; --border-2: #293a5c;
    --text: #e9eef8; --text-soft: #aab6cf; --text-faint: #7d89a3;
    --blue: #6f9bff; --blue-ink: #9cbaff; --blue-soft: rgba(111,155,255,.14); --link: #9cbaff; --control: #5a6781;
    --violet: #b18aff; --green: #22a06b; --green-soft: rgba(34,160,107,.16);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -10px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 70px -30px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070c17; --bg-alt: #0c1424; --surface: #0f1828; --surface-2: #16223a;
  --border: #1e2b45; --border-2: #293a5c;
  --text: #e9eef8; --text-soft: #aab6cf; --text-faint: #7d89a3;
  --blue: #6f9bff; --blue-ink: #9cbaff; --blue-soft: rgba(111,155,255,.14); --link: #9cbaff; --control: #5a6781;
  --violet: #b18aff; --green: #22a06b; --green-soft: rgba(34,160,107,.16);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 70px -30px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 600 12.5px/1.4 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-ink); margin: 0 0 .8rem; }
.lead { font-size: 1.2rem; color: var(--text-soft); max-width: 40em; }
.accent { color: var(--blue); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.theme-btn { background: none; border: 1px solid var(--border-2); color: var(--text-soft); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; }
.nav a, .brand { white-space: nowrap; }
@media (max-width: 1060px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { --btn-fg: #fff; background: var(--blue); color: var(--btn-fg); box-shadow: 0 8px 20px -10px var(--blue); }
/* in the header too (its link colours would otherwise win), hovered or the current page */
.nav .btn-primary, .nav .btn-primary:hover, .nav .btn-primary[aria-current="page"] { color: var(--btn-fg); }
.btn-primary:hover { background: var(--blue-ink); }
/* dark mode: the light blue needs dark writing to stay readable */
:root[data-theme="dark"] .btn-primary { --btn-fg: #0b1630; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { --btn-fg: #0b1630; } }
.btn-ghost { border-color: var(--border-2); color: var(--text); background: var(--surface); }
.btn-small { padding: 8px 14px; font-size: .9rem; }

/* sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* hero */
.hero { padding-top: clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.proof { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-soft); font-size: .92rem; padding: 0; margin: 0; list-style: none; }
.proof li::before { content: "✓ "; color: var(--green); font-weight: 800; }

/* screenshots: a browser-style frame; .shot-placeholder until the real picture is in */
.shot { border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.shot-placeholder { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--text-faint); font: 600 .9rem/1.4 var(--mono);
  background: linear-gradient(135deg, var(--blue-soft), transparent 60%), var(--surface); }

/* cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card p { color: var(--text-soft); margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft);
  color: var(--blue); margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--text-soft); margin: 0; font-size: .95rem; }

/* feature rows: words beside a screenshot, alternating */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature.flip > :first-child { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--text-soft); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* audiences */
.audience h3 { font-size: 1.35rem; }
.audience .btn { margin-top: 20px; }

/* call to action */
.cta { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); max-width: 36em; }
.cta .btn { background: #fff; color: #1d51c9; }

/* footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .9rem; }
.site-footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--text-soft); text-decoration: none; margin-left: 18px; }
.spaced { margin-top: 40px; }

/* compare page */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.draft-note { display: inline-block; margin-top: 8px; padding: 8px 14px; border-radius: 10px; font-size: .9rem;
  background: rgba(232,131,58,.14); color: var(--text); border: 1px solid rgba(232,131,58,.4); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare { border-collapse: collapse; width: 100%; min-width: 900px; font-size: .95rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: .85rem; color: var(--text-soft); background: var(--surface-2); position: sticky; top: 0; }
.compare tbody th { font-weight: 700; width: 22%; }
.compare td { color: var(--text-soft); }
.compare .us { background: var(--blue-soft); color: var(--text); font-weight: 600; }
.compare thead .us { color: var(--blue-ink); }
.compare td.yes::before { content: "✓ "; color: var(--green); font-weight: 800; }
.compare td.check { color: var(--text-faint); font-style: italic; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.nav a[aria-current="page"] { color: var(--text); }
.compare tr.key th, .compare tr.key td { font-weight: 700; }
.compare span.check { color: var(--text-faint); font-style: italic; font-weight: 400; }
.compare td.mark { text-align: center; font-size: 1.15rem; font-weight: 800; }
.compare td.mark.yes { color: var(--green); }
.compare td.mark.no { color: var(--text-faint); }
.compare td.mark.part { color: var(--blue); }
.compare td.mark.yes::before { content: none; }
.compare thead th:not(:first-child) { text-align: center; }
.compare { min-width: 760px; }
.legend { color: var(--text-soft); font-size: .9rem; margin-top: 12px; }
.price .btn { margin-top: 20px; }

/* real screenshots (made-up demo client, test environment) */
.shot img { display: block; width: 100%; height: auto; }
.shot-phone { max-width: 300px; margin-inline: auto; border-radius: 28px; border-width: 8px; border-color: var(--text); }

/* the contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-form { display: grid; gap: 16px; padding: 28px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .optional { font-weight: 400; color: var(--text-faint); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--control); border-radius: 10px;
  padding: 11px 13px; width: 100%; box-sizing: border-box; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #c2412d; }
.contact-form .btn { justify-self: start; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: .95rem; }
.form-status.error { color: #b3261e; }
.form-status.done { color: var(--green); }
:root[data-theme="dark"] .form-status.error { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-status.error { color: #ff8a80; } }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }

/* text pages (accessibility statement) */
.narrow { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { line-height: 1.65; }
.prose ul:not(.ticks) { padding-left: 1.2rem; }
