/* ==========================================================================
   Zamilo public website
   The app's design language (style.css) at marketing scale: the same
   professional blue, slate neutrals and Plus Jakarta Sans, a 16px base, more
   white space. Follows the visitor's light or dark setting. Every text
   colour meets WCAG AA (4.5:1) on the surface it sits on, controls and
   focus rings 3:1, in both themes. No external scripts or fonts.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
                 U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
                 U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic; font-display: swap; font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans-latin-wght-italic.woff2") format("woff2-variations"),
       url("fonts/plus-jakarta-sans-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
                 U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --primary:       #2563eb;   /* 5.2:1 on white */
  --primary-hover: #1d4ed8;
  --on-primary:    #ffffff;
  --link:          #1d4ed8;
  --ring:          #2563eb;
  --primary-soft:  #eff6ff;
  --primary-tint:  #dbeafe;
  --primary-ink:   #1e40af;   /* text on the soft tint */

  --bg:        #ffffff;
  --bg-alt:    #f8fafc;
  --surface:   #ffffff;
  --surface-2: #f1f5f9;
  --border:    #e2e8f0;
  --border-strong: #cbd5e1;
  --border-input:  #808da1;   /* 3.4:1 on white */
  --text:      #0f172a;
  --muted:     #475569;       /* 7.6:1 */
  --faint:     #5b6b82;       /* 5.3:1 */

  --ok:      #047857;  --ok-bg:     #ecfdf5;
  --warn:    #92400e;  --warn-bg:   #fffbeb;
  --danger:  #b91c1c;  --danger-bg: #fef2f2;
  --violet:  #6d28d9;  --violet-bg: #f5f3ff;

  --band:      #0f172a;       /* the dark call-to-action band, both themes */
  --band-text: #e2e8f0;
  --band-muted:#a3b1c6;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .07);
  --shadow:    0 6px 18px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16), 0 6px 14px rgba(15, 23, 42, .06);

  --font: "Plus Jakarta Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --header-h: 68px;
  --wrap: 1200px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --link:          #93c5fd;
    --ring:          #60a5fa;
    --primary-soft:  rgba(59, 130, 246, .12);
    --primary-tint:  rgba(59, 130, 246, .22);
    --primary-ink:   #bfdbfe;

    --bg:        #0b1120;
    --bg-alt:    #0f172a;
    --surface:   #111a2b;
    --surface-2: #152033;
    --border:    #24324a;
    --border-strong: #33445f;
    --border-input:  #6b7b93;
    --text:      #e2e8f0;
    --muted:     #a3b1c6;
    --faint:     #93a3ba;

    --ok:      #34d399;  --ok-bg:     #0f2a22;
    --warn:    #fbbf24;  --warn-bg:   #2e2410;
    --danger:  #f87171;  --danger-bg: #3a1517;
    --violet:  #c4b5fd;  --violet-bg: #241c3d;

    --band:      #111a2b;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow:    0 6px 18px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; font-weight: 700; }
h4 { font-size: 1rem; letter-spacing: 0; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 24px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Buttons, badges, chips
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease),
              box-shadow .15s var(--ease), transform .15s var(--ease);
}
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--border-input); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; background: transparent; color: var(--text); border-color: var(--border); }
.btn-icon:hover { background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) { .btn-primary:active { transform: translateY(1px); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink);
  font-size: .85rem; font-weight: 700;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; white-space: nowrap; line-height: 1.5;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-soon { background: var(--violet-bg); color: var(--violet); }
.badge-blue { background: var(--primary-soft); color: var(--primary-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-weight: 600; font-size: .92rem;
}
.center .chips { justify-content: center; }

/* --------------------------------------------------------------------------
   4. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
.brand img { width: 118px; height: auto; display: block; }
@media (min-width: 640px) { .brand img { width: 132px; } }
.nav-main { display: none; flex: 1; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a, .nav-drop > summary {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px;
  border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer;
}
.nav-list > li > a:hover, .nav-drop > summary:hover { background: var(--surface-2); }
.nav-list > li > a[aria-current="page"] { color: var(--link); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.nav-drop { position: relative; }
.nav-drop[open] > summary svg { transform: rotate(180deg); }
.drop-panel {
  position: absolute; left: -8px; top: calc(100% + 8px); width: min(460px, 90vw);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px;
}
.drop-apps { list-style: none; margin: 0; padding: 0; }
.drop-apps a {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none;
}
.drop-apps a:hover { background: var(--surface-2); }
.drop-icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary-ink); flex: none;
}
.drop-icon svg { fill: currentColor; }
.drop-sub { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; margin-top: 2px; }
.drop-foot {
  display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 12px;
  border-top: 1px solid var(--border); color: var(--link); font-weight: 700; font-size: .92rem; text-decoration: none;
}
.drop-foot svg, .nav-drop summary svg, .btn svg { fill: currentColor; }

.nav-mobile { position: static; }
.nav-mobile > summary svg { fill: currentColor; }
.mobile-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
  padding: 8px var(--gutter) 20px;
}
.mobile-panel ul { list-style: none; margin: 0 0 8px; padding: 0; }
.mobile-panel li a {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 4px;
  color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border);
}
.mobile-panel li a svg { fill: var(--muted); }
.mobile-heading { margin: 16px 0 4px; color: var(--faint); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mobile-actions { display: grid; gap: 10px; margin-top: 16px; }
.site-header .wrap { position: relative; }

@media (max-width: 479px) { .hide-xs { display: none !important; } }
@media (max-width: 767px) { .hide-sm { display: none !important; } }
@media (min-width: 1024px) {
  .nav-main { display: block; }
  .nav-mobile { display: none; }
}

/* --------------------------------------------------------------------------
   5. Sections
   -------------------------------------------------------------------------- */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.kicker { display: block; margin: 0 0 10px; color: var(--link); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lead { font-size: clamp(1.06rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 660px; line-height: 1.6; }
.note { color: var(--faint); font-size: .9rem; }

/* page hero (inner pages) */
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--border); background:
  radial-gradient(1000px 300px at 10% -20%, var(--primary-soft), transparent 70%), var(--bg); }
@media (min-width: 900px) { .page-hero { padding: 80px 0 56px; } }
.page-hero h1 { max-width: 900px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: .9rem; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-input); }
.crumbs a { color: var(--muted); }

/* home hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; background:
  radial-gradient(900px 420px at 85% -10%, var(--primary-tint), transparent 65%),
  radial-gradient(700px 360px at -10% 10%, var(--primary-soft), transparent 70%), var(--bg); }
@media (min-width: 900px) { .hero { padding: 88px 0 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--link); }
.hero .lead { margin-bottom: 28px; }
.hero-note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; list-style: none; padding: 0; }
.hero-note li { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { fill: var(--ok); }

/* --------------------------------------------------------------------------
   6. The product mock (decorative, drawn in HTML so it follows the theme)
   -------------------------------------------------------------------------- */
.mock {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 12.5px; line-height: 1.4;
  user-select: none;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; }
.mock-bar span { margin-left: 10px; color: var(--faint); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 132px 1fr; min-height: 340px; }
.mock-body.no-side { grid-template-columns: 1fr; }
.mock-side { background: #0f172a; color: #cbd5e1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.mock-side b { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; font-weight: 600; }
.mock-side b.on { background: rgba(59, 130, 246, .25); color: #fff; }
.mock-side b em { margin-left: auto; font-style: normal; font-size: 11px; background: #2563eb; color: #fff; border-radius: 999px; padding: 0 6px; }
.mock-side svg { fill: currentColor; opacity: .85; }
.mock-main { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .mock-split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.mock-list { border-right: 1px solid var(--border); }
.mock-row { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mock-row.on { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.mock-row p { margin: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row .who { display: flex; justify-content: space-between; gap: 8px; color: var(--text); font-weight: 700; margin-bottom: 2px; }
.mock-row .who span { color: var(--faint); font-weight: 600; font-size: 11px; }
.mock-tag { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.mock-tag.new { background: var(--primary-tint); color: var(--primary-ink); }
.mock-tag.ok { background: var(--ok-bg); color: var(--ok); }
.mock-tag.warn { background: var(--warn-bg); color: var(--warn); }
.mock-thread { padding: 14px 14px 80px; display: none; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .mock-thread { display: flex; } }
.mock-thread h4 { margin: 0; font-size: 14px; letter-spacing: 0; }
.mock-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-msg { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.mock-msg p { margin: 4px 0 0; color: var(--muted); }
.mock-note { border-radius: 10px; padding: 10px 12px; background: var(--warn-bg); color: var(--text); border: 1px dashed var(--warn); }
.mock-note strong { color: var(--warn); }
.mock-links { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-links span { padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; color: var(--muted); }
.mock-float {
  position: absolute; right: 14px; bottom: 14px; display: none; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow);
}
@media (min-width: 560px) { .mock-float { display: flex; } }
.mock-float svg { fill: var(--ok); }
.mock-float b { display: block; }
.mock-float span { color: var(--muted); }

/* --------------------------------------------------------------------------
   7. Cards and grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card-link { text-decoration: none; color: inherit; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.card-link:hover { border-color: var(--border-input); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) { .card-link:hover { transform: translateY(-2px); } }
.card-link:focus-visible { outline-offset: 3px; }
.card .more { margin-top: auto; padding-top: 6px; color: var(--link); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.card .more svg { fill: currentColor; }
.icon-tile {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-ink);
}
.icon-tile svg { fill: currentColor; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li svg { fill: var(--ok); margin-top: 3px; }
.ticks.soon li svg { fill: var(--violet); }

.feature-list { display: grid; gap: 28px; }
@media (min-width: 760px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; } }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature h3 { margin: 6px 0 6px; }
.feature p { margin: 0; color: var(--muted); }

/* the path a customer takes through the apps */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 18px 56px; }
.flow li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 18px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: .85rem;
}
.flow strong { display: block; margin-bottom: 2px; }
.flow span { color: var(--muted); font-size: .94rem; }

/* split blocks: text beside a panel */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------------
   8. Pricing
   -------------------------------------------------------------------------- */
.beta-card {
  display: grid; gap: 28px; padding: 32px; border-radius: var(--radius-lg);
  border: 2px solid var(--primary); background: var(--surface); box-shadow: var(--shadow);
}
@media (min-width: 900px) { .beta-card { grid-template-columns: 1fr 1.1fr; padding: 44px; } }
.price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 4px; }
.price b { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price span { color: var(--muted); }
.plans { display: grid; gap: 20px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow); }
.plan h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; }
.plan .price b { font-size: 2.25rem; }
.plan .alt { color: var(--muted); font-size: .92rem; margin: 0; }
.currency-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 0; }
.currency-pick label { margin: 0; }
.currency-pick select { width: auto; min-width: 12rem; }
.plan ul { margin: 0; }
.plan .btn { margin-top: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 2px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
table.compare th, table.compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare thead th { background: var(--surface-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.compare tbody th { font-weight: 600; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }

/* --------------------------------------------------------------------------
   9. Integrations
   -------------------------------------------------------------------------- */
.int-group + .int-group { margin-top: 40px; }
.int-group h2 { font-size: 1.35rem; }
.int-item { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 14px; }
.int-item > div { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.int-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.int-item p { font-size: .94rem; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0 0 32px; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 16px 0; cursor: pointer; font-weight: 700; font-size: 1.04rem;
}
.faq summary svg { fill: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 760px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   11. The call-to-action band
   -------------------------------------------------------------------------- */
.cta-band { padding: 72px 0; background: var(--band); color: var(--band-text); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--band-muted); }
.cta-band a:not(.btn) { color: #bfdbfe; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: #64748b; }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, .08); border-color: #94a3b8; }
.cta-band :focus-visible { outline-color: #93c5fd; }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .form-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: start; } }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
@media (min-width: 640px) { .form-card { padding: 32px; } }
.field { margin: 0 0 20px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label, .label { display: block; margin: 0 0 6px; font-weight: 700; font-size: .95rem; }
.optional { color: var(--faint); font-weight: 500; }
input[type="text"], input[type="email"], input[type="number"], input:not([type]), select, textarea {
  display: block; width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-input); background: var(--surface); color: var(--text);
  font: inherit; font-size: 1rem; line-height: 1.4;
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; padding-right: 40px; background-image:
  linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; border-color: var(--ring); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .9rem; font-weight: 600; }
.hint { margin: 6px 0 0; color: var(--faint); font-size: .88rem; }
.checks { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks legend { padding: 0; margin: 0 0 8px; font-weight: 700; font-size: .95rem; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; flex: none; }
.check:hover { border-color: var(--border-input); }
.trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin: 0 0 24px; }
.alert svg { margin-top: 2px; fill: currentColor; }
.alert p { margin: 0; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid currentColor; }
.alert-error a { color: inherit; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid currentColor; }
.alert-ok strong, .alert-error strong { display: block; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.form-foot { color: var(--faint); font-size: .88rem; margin: 16px 0 0; }
.aside-block + .aside-block { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.aside-block h2 { font-size: 1.1rem; letter-spacing: 0; }
.aside-block p, .aside-block li { color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list strong { display: block; color: var(--text); }
.steps { margin: 0; padding-left: 1.25rem; display: grid; gap: 10px; color: var(--muted); }
.steps strong { color: var(--text); }

/* --------------------------------------------------------------------------
   13. Documents (help center and legal)
   -------------------------------------------------------------------------- */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 40px 0 80px; }
@media (min-width: 1024px) { .doc-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 56px; } }
.doc-layout > * { min-width: 0; }
.doc-nav { align-self: start; }
@media (min-width: 1024px) { .doc-nav { position: sticky; top: calc(var(--header-h) + 24px); } }
.doc-nav details > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }
.doc-nav details > summary svg { fill: currentColor; }
.doc-nav details[open] > summary svg { transform: rotate(180deg); }
@media (min-width: 1024px) { .doc-nav details > summary { display: none; } }
.doc-nav ul { list-style: none; margin: 8px 0 0; padding: 0; }
.doc-nav li a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 600; font-size: .94rem; line-height: 1.4; }
.doc-nav li a:hover { background: var(--surface-2); color: var(--text); }
.doc-nav li a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
.doc-nav .nav-group { margin: 16px 0 4px; padding: 0 12px; color: var(--faint); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.doc-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.doc-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--faint); font-size: .9rem; margin: 0; }

.prose { max-width: 760px; font-size: 1.02rem; }
.prose a, .prose code { overflow-wrap: anywhere; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li > ul, .prose li > ol { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--border); }
.prose thead th { background: var(--surface-2); }
.prose blockquote { margin: 0 0 1.2em; padding: 12px 16px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose .callout { margin: 0 0 1.4em; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-alt); }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .callout-warn { border-color: var(--warn); background: var(--warn-bg); }
.prose dl { margin: 0 0 1.2em; }
.prose dt { font-weight: 700; margin-top: .8em; }
.prose dd { margin: .2em 0 0; color: var(--muted); }
.prose kbd { font-family: var(--mono); font-size: .85em; padding: .1em .4em; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); }
.toc { margin: 0 0 32px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); max-width: 760px; }
.toc p { margin: 0 0 8px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2 240px; column-gap: 32px; }
.toc li { margin: .25em 0; break-inside: avoid; }
.doc-foot { max-width: 760px; margin-top: 48px; padding: 20px 24px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border); }
.doc-foot p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 32px; font-size: .94rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1fr 2.2fr; gap: 64px; } }
.footer-brand img { width: 116px; display: block; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 340px; }
.footer-beta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-cols { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-cols h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin: 0 0 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-cols a { display: inline-block; padding: 6px 0; color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--text); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: .88rem; }
.footer-base p { margin: 0; }
.footer-base a { color: var(--muted); }

/* --------------------------------------------------------------------------
   15. Error page
   -------------------------------------------------------------------------- */
.error-page { padding: 96px 0; text-align: center; }
.error-code { display: inline-block; font-size: .9rem; font-weight: 800; color: var(--link); letter-spacing: .1em; margin-bottom: 12px; }

@media print {
  .site-header, .site-footer, .doc-nav, .cta-band, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
  a { color: #000; }
}

/* small spacing helpers, instead of inline styles */
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.h3-size { font-size: 1.2rem; letter-spacing: -.01em; font-weight: 700; margin: 0; }
.btn-placeholder { background: transparent; color: var(--muted); border: 1px dashed var(--border-strong); cursor: default; }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--border); }
.facts > div { display: grid; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .facts > div { grid-template-columns: 200px 1fr; } }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }

/* ---- console-written entries: announcement line, preview, changelog, code (M11) ---- */
.announce { background: var(--primary-soft); color: var(--primary-ink); border-bottom: 1px solid var(--primary-tint); font-size: .92rem; font-weight: 600; text-align: center; }
.announce .wrap { padding-top: 8px; padding-bottom: 8px; }
.announce a { color: inherit; text-decoration: underline; }
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px var(--gutter); background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--warn); font-weight: 700; font-size: .92rem; }
.preview-bar svg { fill: currentColor; }
.prose pre { margin: 0 0 1.2em; padding: 14px 16px; overflow-x: auto; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--border); font-size: .9rem; }
.prose code { font-family: var(--mono); font-size: .92em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose .table-scroll table { display: table; }
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
.changelog { list-style: none; margin: 0; padding: 0; }
.changelog > li { padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 16px); }
.changelog > li:last-child { border-bottom: 0; }
.changelog h2 { font-size: 1.35rem; margin: 6px 0 12px; }
.changelog h2 a { color: var(--text); text-decoration: none; }
.changelog h2 a:hover { text-decoration: underline; }
.entry .page-hero .badge { text-decoration: none; }
@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }

/* ---- status page (M11) ---- */
.status-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--ok-bg); color: var(--ok); }
.status-banner strong { font-size: 1.1rem; color: var(--text); }
.status-banner .small { margin-left: auto; color: var(--muted); }
.status-banner.level-degraded, .status-banner.level-maintenance { background: var(--warn-bg); color: var(--warn); }
.status-banner.level-outage { background: var(--danger-bg); color: var(--danger); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.status-list { list-style: none; margin: 16px 0 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.status-list li:last-child { border-bottom: 0; }
.status-level { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.status-list .level-degraded .status-level, .status-list .level-maintenance .status-level { color: var(--warn); }
.status-list .level-outage .status-level { color: var(--danger); }
.status-incident { margin: 12px 0; padding: 16px 18px; border: 1px solid var(--border); border-left: 4px solid var(--warn); border-radius: var(--radius-sm); background: var(--surface); }
.status-incident.level-outage { border-left-color: var(--danger); }
.status-incident.level-maintenance { border-left-color: var(--primary); }
.status-incident h3 { margin: 0 0 4px; font-size: 1.05rem; }
.status-updates { list-style: none; margin: 12px 0 0; padding: 0; }
.status-updates li { padding: 8px 0 0; }
.status-updates p { margin: 4px 0 0; }

/* ---- product tour ---- */
.tour { display: grid; gap: 24px; }
.tour-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tour-steps a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; text-decoration: none; }
.tour-steps a svg { fill: currentColor; flex: none; }
.tour-steps a:hover { background: var(--bg-alt); color: var(--text); }
.tour-steps a[aria-selected="true"] { background: var(--primary-soft); color: var(--primary-ink); }
.tour-panel { display: grid; gap: 24px; align-items: center; padding: 8px 0 40px; scroll-margin-top: calc(var(--header-h) + 16px); }
.tour-panel[hidden] { display: none; }
.tour-copy h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin: 4px 0 12px; }
.tour-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tour-mock .mock-body { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .tour { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
  .tour-steps { position: sticky; top: calc(var(--header-h) + 16px); }
  .tour-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

/* ---- savings calculator ---- */
.roi { display: grid; gap: 32px; }
@media (min-width: 900px) { .roi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.roi-result { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-alt); }
.roi-big { margin: 4px 0 0; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); overflow-wrap: anywhere; }
.roi-sub { margin: 0 0 20px; color: var(--muted); }
.roi-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.roi-table th, .roi-table td { padding: 10px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.roi-table td { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
.roi-table code { white-space: normal; overflow-wrap: anywhere; font-weight: 400; }
