/* OptiCRM website. Colours come from the application's icon: blue, green and sand on a deep navy. */

:root {
  --ink: #0f2233;
  --ink-2: #3d5163;
  --ink-3: #6a7c8c;
  --bg: #fbfbf8;
  --bg-alt: #f1f5f8;
  --surface: #ffffff;
  --line: #dde4ea;
  --brand: #1a78b0;          /* buttons and links: the icon's blue, dark enough for white text */
  --brand-hover: #136291;
  --blue: #42aae2;
  --blue-soft: #e3f2fb;
  --green: #7fb446;
  --green-soft: #ecf5df;
  --sand: #d39a45;
  --sand-soft: #f9eedb;
  --shadow: 0 1px 2px rgba(15, 34, 51, .06), 0 12px 32px -12px rgba(15, 34, 51, .18);
  --radius: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef3;
    --ink-2: #b4c2ce;
    --ink-3: #8698a8;
    --bg: #0c1823;
    --bg-alt: #10202e;
    --surface: #142636;
    --line: #233849;
    --brand: #4fb3ea;
    --brand-hover: #79c6f0;
    --blue-soft: #15344a;
    --green-soft: #1f3420;
    --sand-soft: #3a2d18;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }

/* Header ---------------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--ink); cursor: pointer; border-radius: 8px; }
.nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #08202f; } }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface); color: var(--ink); }
@media (prefers-color-scheme: dark) { .btn-quiet, .btn-quiet:hover { color: var(--ink); } }
.btn-wide { width: 100%; }

/* Hero ------------------------------------------------------------------ */

.hero { padding: 56px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 750; letter-spacing: -.025em; }
.lead { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--ink-3); }

@media (max-width: 920px) {
  .hero { padding: 32px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* The illustration: the application's window, drawn rather than photographed. */

.shot { position: relative; padding: 0 0 28px 0; }
.shot::before {
  content: ""; position: absolute; inset: -40px -60px -20px 10%;
  background:
    radial-gradient(closest-side at 70% 30%, color-mix(in srgb, var(--blue) 28%, transparent), transparent),
    radial-gradient(closest-side at 30% 80%, color-mix(in srgb, var(--green) 22%, transparent), transparent),
    radial-gradient(closest-side at 90% 85%, color-mix(in srgb, var(--sand) 22%, transparent), transparent);
  filter: blur(8px); z-index: -1;
}
.window { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-size: 13px; }
.window-bar { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.window-title { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 600; font-size: 12px; }
.window-controls { display: flex; gap: 14px; }
.window-controls i { width: 10px; height: 10px; border: 1.5px solid var(--ink-3); border-radius: 2px; opacity: .6; }
.window-controls i:first-child { border-width: 0 0 1.5px; border-radius: 0; height: 6px; }
.window-body { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.side { border-right: 1px solid var(--line); padding: 10px 8px; }
.side p { padding: 5px 10px; border-radius: 6px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .side-group { color: var(--ink-3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-top: 10px; }
.side .side-group:first-child { padding-top: 2px; }
.side .on { background: var(--blue-soft); color: var(--ink); font-weight: 600; }
.pane { padding: 14px 16px; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.pane-btn { font-size: 12px; font-weight: 600; color: #fff; background: var(--brand); padding: 5px 10px; border-radius: 6px; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .pane-btn { color: #08202f; } }
.rows { display: grid; gap: 2px; }
.row { display: grid; grid-template-columns: 10px 1fr auto 48px; align-items: center; gap: 12px; height: 34px; padding: 0 8px; border-radius: 6px; }
.row:nth-child(odd) { background: var(--bg-alt); }
.row i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.row i.w15 { width: 34px; } .row i.w20 { width: 46px; } .row i.w25 { width: 58px; } .row i.w30 { width: 70px; }
.row i.w35 { width: 52%; } .row i.w40 { width: 60%; } .row i.w45 { width: 66%; } .row i.w50 { width: 72%; } .row i.w55 { width: 80%; } .row i.w60 { width: 86%; }
.row em { display: block; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--ink-3) 45%, transparent); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.green { background: var(--green); } .dot.sand { background: var(--sand); } .dot.blue { background: var(--blue); }

.toast {
  position: absolute; left: -28px; bottom: 0; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 12px 16px 12px 12px; max-width: 320px;
}
.toast svg { flex: none; width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--green-soft); stroke: var(--green); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast strong { display: block; font-size: 14px; }
.toast span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 920px) { .toast { left: 12px; } }
@media (max-width: 520px) {
  .window-body { grid-template-columns: 1fr; }
  .side { display: none; }
  .toast { left: 8px; right: 8px; max-width: none; }
}

/* Sections -------------------------------------------------------------- */

.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
@media (max-width: 760px) { .section { padding: 64px 0; } }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 20px; margin: 18px 0 8px; }
.card p { color: var(--ink-2); }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.blue { background: var(--blue-soft); color: var(--brand); }
.icon.green { background: var(--green-soft); color: var(--green); }
.icon.sand { background: var(--sand-soft); color: var(--sand); }

.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.modules li { background: var(--surface); padding: 24px 22px 26px; }
.modules svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.modules h3 { font-size: 17px; margin: 14px 0 6px; }
.modules p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 1060px) { .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .modules { grid-template-columns: 1fr; } }
.aside { margin-top: 24px; color: var(--ink-2); font-size: 15px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.facts > div { border-top: 3px solid var(--blue); padding-top: 20px; }
.facts > div:nth-child(2) { border-top-color: var(--green); }
.facts > div:nth-child(3) { border-top-color: var(--sand); }
.facts h3 { font-size: 20px; margin-bottom: 8px; }
.facts p { color: var(--ink-2); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; gap: 28px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.split .section-head { margin-bottom: 0; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 72px; }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--brand); font-weight: 700; font-family: var(--font-display);
}
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--ink-2); }
.callout { margin-top: 20px; padding: 18px 22px; border-radius: var(--radius); background: var(--sand-soft); color: var(--ink); }

/* Trial request --------------------------------------------------------- */

.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--blue-soft) 140%); }
.reach { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.reach li { display: flex; align-items: center; gap: 12px; }
.reach svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reach a { font-weight: 500; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 32px; }
@media (max-width: 600px) { .form-card { padding: 22px 18px; } }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-pair { grid-template-columns: 1fr; gap: 0; } }
label { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: 4px; }
input, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c2412d; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6em; margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.status.error { color: #b5381f; }
@media (prefers-color-scheme: dark) { .status.error { color: #ff8a70; } }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.sent { text-align: center; padding: 40px 12px; }
.sent:focus { outline: none; }
.sent svg { width: 56px; height: 56px; margin: 0 auto 16px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sent h3 { font-size: 24px; margin-bottom: 8px; }
.sent p { color: var(--ink-2); }

/* Footer ---------------------------------------------------------------- */

.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--ink-2); }
.foot-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; align-items: start; }
.foot .brand { font-size: 17px; margin-bottom: 8px; }
.copy { color: var(--ink-3); }
@media (max-width: 760px) { .foot-row { grid-template-columns: 1fr; gap: 20px; } }

/* A page on its own: the payment return and the missing page. */

.solo { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 0; }
.solo-card { max-width: 560px; text-align: center; }
.solo-card svg.mark { width: 64px; height: 64px; margin: 0 auto 24px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.solo-card h1 { font-size: clamp(28px, 4vw, 38px); }
.solo-card p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.solo-card .actions { justify-content: center; }
