/* NovaWorkflow website, style "Klar": one stylesheet, own font files, no external resources. Colours as in the app. */

/* Source Sans 3 (OFL), the same files as the app; the build copies them to static/fonts/. Browsers only load the
   files whose characters a page uses. */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-sans-3-latin.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: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-sans-3-latin-ext.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: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-sans-3-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --blue: #123f6b;
  --blue-hover: #0e3357;
  --sky: #e8f1fa;
  --page: #f5f8fb;
  --surface: #fff;
  --line: #dbe4ec;
  --line-strong: #c9d6e2;
  --ink: #1b2733;
  --text: #33424f;
  --ink-soft: #4a5a6a;
  --meta: #586878;
  --ok: #1f7a4d;
  --ok-bg: #e3f3ea;
  --check: #6b4a00;
  --check-bg: #fff3cc;
  --marker: #f2b705;
  --on-blue: #c6dbef;
  --on-blue-accent: #9cc3ea;
  --shadow-card: 0 1px 3px rgba(27, 39, 51, 0.08);
  --shadow-raised: 0 18px 44px rgba(18, 63, 107, 0.12);
  --radius: 16px;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%231f7a4d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23123f6b' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h12' fill='none' stroke='%23123f6b' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 18px/1.6 "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1, h2 { text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
p { margin: 0; }
strong { font-weight: 700; }

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; display: inline-flex; align-items: center; min-height: 44px;
              padding: 0 16px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 600; }
:focus-visible { outline: 3px solid rgba(18, 63, 107, 0.35); outline-offset: 2px; }

/* Header: white, thin line, wordmark next to the logo mark */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line);
       backdrop-filter: saturate(1.2) blur(10px); }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; color: var(--blue);
        font-size: 24px; font-weight: 700; letter-spacing: -0.005em; line-height: 1; text-decoration: none; }
.logo img { display: block; width: 36px; height: 36px; }
.logo-small { font-size: 21px; }
.logo-small img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; }
.nav a, .link-quiet { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
                      color: var(--ink-soft); font-size: 17px; font-weight: 600; text-decoration: none; }
.link-quiet { color: var(--blue); }
.nav a:hover, .link-quiet:hover { background: var(--sky); color: var(--blue); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
          border: 1px solid transparent; border-radius: 12px; font-size: 17px; font-weight: 600; line-height: 1.2;
          text-align: center; text-decoration: none;
          transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.top .button { min-height: 44px; padding: 0 18px; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-hover); color: #fff; }
.button-white { background: #fff; color: var(--blue); box-shadow: var(--shadow-card); }
.button-white:hover { color: var(--blue); border-color: var(--line-strong); }
.button-outline-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.button-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }
.button-big { min-height: 56px; padding: 0 26px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.actions.center { justify-content: center; }

/* Hero: light sky surface */
.hero { overflow: hidden; background: var(--sky); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center;
              padding: 88px 0 100px; }
.kicker { margin: 0 0 14px; color: var(--blue); font-size: 16px; font-weight: 600; letter-spacing: 0.12em;
          line-height: 1.4; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 3.2vw + 22px, 58px); line-height: 1.08; }
.lead { margin-top: 22px; max-width: 34em; color: var(--text); font-size: 20px; line-height: 1.55; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 30px 0 0; padding: 0; list-style: none;
         color: var(--ink-soft); font-size: 17px; font-weight: 600; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
                    background: #fff var(--tick) center / 22px no-repeat; }
.hero-visual { position: relative; padding: 0 0 40px; }
.hero-visual .hero-phone { position: absolute; right: -14px; bottom: -36px; width: 188px; }

/* Device frames around the screenshots */
.browser { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff;
           box-shadow: var(--shadow-raised); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--page);
               border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-bar span { margin-left: 10px; overflow: hidden; color: var(--meta); font-size: 15px; white-space: nowrap;
                    text-overflow: ellipsis; }
.browser img { display: block; width: 100%; }
.phone { position: relative; width: 230px; padding: 9px; border-radius: 36px; background: var(--ink);
         box-shadow: 0 24px 56px rgba(18, 63, 107, 0.22), inset 0 0 0 2px #2c3a47; }
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; z-index: 2; width: 64px; height: 18px;
                 margin-left: -32px; border-radius: 10px; background: var(--ink); }
.phone-screen { overflow: hidden; padding-top: 22px; border-radius: 28px; background: var(--ink); }
.phone-screen img { display: block; width: 100%; }

/* Sections */
.section { padding: 104px 0; }
.section-paper { background: var(--page); }
.section-sky { background: var(--sky); }
.section h2 { font-size: clamp(30px, 2vw + 18px, 44px); }
.muted { max-width: 46em; margin: 40px auto 0; color: var(--ink-soft); }
.note { margin-top: 36px; color: var(--ink-soft); font-weight: 600; }

.cards { display: grid; gap: 24px; margin-top: 52px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
        box-shadow: var(--shadow-card); }
.card b, .use b { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
                  background: var(--sky); color: var(--blue); }
.card b svg { width: 32px; height: 32px; }
.card h3 { margin-top: 20px; font-size: 22px; }
.card p { margin-top: 8px; color: var(--ink-soft); }
.roles .role { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--sky); color: var(--blue);
               font-size: 16px; font-weight: 600; }
.roles .role + h3 { margin-top: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 52px 0 0; padding: 0;
         list-style: none; }
.steps li { padding: 28px 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
            box-shadow: var(--shadow-card); }
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue);
       color: #fff; font-size: 19px; font-weight: 700; line-height: 1; }
.steps h3 { margin-top: 18px; font-size: 21px; }
.steps p { margin-top: 8px; color: var(--ink-soft); font-size: 17px; }

.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.feature-flip .feature-text { order: 2; }
.feature-text h2 ~ p { margin-top: 20px; color: var(--ink-soft); }
.ticks { margin: 24px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 7px 0 7px 36px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%;
                    background: var(--ok-bg) var(--tick) center / 24px no-repeat; }
.poster-stage { position: relative; max-width: 520px; padding-right: 110px; }
.poster-img { display: block; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-raised);
              transform: rotate(-1.5deg); }
.poster-stage .poster-phone { position: absolute; right: 0; bottom: -30px; width: 190px; }

.phones { display: flex; justify-content: center; gap: 48px; margin-top: 56px; }
.phones figure { margin: 0; text-align: center; }
.phones figcaption { margin-top: 18px; color: var(--blue); font-size: 17px; font-weight: 600; letter-spacing: 0.04em; }
.phones .phone { width: 240px; }

.video { max-width: 960px; margin: 48px auto 0; overflow: hidden; border: 1px solid var(--line);
         border-radius: var(--radius); background: var(--ink); box-shadow: var(--shadow-raised); }
.video video { display: block; width: 100%; aspect-ratio: 16 / 9; }

.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }
.use { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border: 1px solid var(--line);
       border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.use b { flex: none; width: 52px; height: 52px; }
.use b svg { width: 30px; height: 30px; }
.use h3 { font-size: 20px; }
.use p { margin-top: 6px; color: var(--ink-soft); font-size: 17px; line-height: 1.5; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 52px; }
.facts div { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
             box-shadow: var(--shadow-card); }
.facts h3 { font-size: 20px; }
.facts h3::before { content: ""; display: block; width: 32px; height: 4px; margin-bottom: 16px; border-radius: 999px;
                    background: var(--blue); }
.facts p { margin-top: 10px; color: var(--ink-soft); font-size: 17px; }

/* Call to action: Tiefblau panel, as the end card of the video */
.section.cta { padding-bottom: 0; }
.cta-panel { padding: 72px 56px; border-radius: var(--radius); background: var(--blue); color: #fff; }
.cta .kicker { color: var(--on-blue-accent); }
.cta h2 em { color: var(--on-blue-accent); }
.cta :focus-visible { outline-color: rgba(255, 255, 255, 0.75); }
.demo-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 48px 0 0; padding: 0;
              list-style: none; }
.demo-steps li { display: flex; gap: 16px; padding: 22px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px;
                 background: rgba(255, 255, 255, 0.07); }
.demo-steps .num { flex: none; background: #fff; color: var(--blue); }
.demo-steps p { color: var(--on-blue); font-size: 17px; line-height: 1.5; }
.demo-steps strong { display: block; margin-bottom: 4px; color: #fff; font-size: 19px; }
.cta .actions { margin-top: 40px; }

/* Questions */
.faq { display: grid; gap: 12px; margin-top: 44px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { position: relative; min-height: 44px; padding: 20px 68px 20px 24px; border-radius: 14px; cursor: pointer;
               font-size: 19px; font-weight: 600; line-height: 1.4; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 32px; height: 32px; margin-top: -16px;
                      border-radius: 50%; background: var(--sky) var(--plus) center / 20px no-repeat; }
.faq summary:hover::after { background-color: #d9e7f5; }
.faq details[open] summary::after { background-image: var(--minus); }
.faq details p { padding: 0 24px 22px; color: var(--ink-soft); }

/* Footer */
.foot { padding: 48px 0 40px; border-top: 1px solid var(--line); background: var(--page); color: var(--ink-soft); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; }
.foot-text { max-width: 24em; margin-top: 10px; font-size: 17px; }
.foot-links { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 0 4px; margin: 0 -12px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
                color: var(--ink-soft); font-size: 17px; font-weight: 600; text-decoration: none; }
.foot-links a:hover { background: var(--sky); color: var(--blue); }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(30px, 2vw + 22px, 44px); }
.legal h2 { margin-top: 44px; font-size: 24px; line-height: 1.25; }
.legal h3 { margin-top: 26px; font-size: 20px; }
.legal p, .legal ul { margin-top: 12px; color: var(--text); }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--blue); }
.legal code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--page); font-size: 0.9em; }
.legal .stand { margin-top: 44px; color: var(--meta); font-size: 17px; }
/* Draft notice and open legal passages: yellow stays as the "please check" marker */
.placeholder { padding: 1px 5px; border-radius: 4px; background: var(--check-bg); color: var(--check);
               -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.legal p.placeholder { margin: 0 0 36px; padding: 16px 20px; border-radius: 14px; color: var(--check); line-height: 1.5;
                       box-shadow: inset 4px 0 0 var(--marker); }
.placeholder code { border-color: rgba(107, 74, 0, 0.2); background: rgba(255, 255, 255, 0.6); }

/* Smaller screens */
@media (max-width: 1020px) {
  .nav { display: none; }
  .hero-inner, .feature { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { gap: 48px; padding: 64px 0 80px; }
  .feature-flip .feature-text { order: 0; }
  .steps, .uses, .facts, .demo-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { max-width: 640px; }
  .cta-panel { padding: 56px 32px; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; }
  .section { padding: 72px 0; }
  .link-quiet { display: none; }
  .top-inner { gap: 12px; min-height: 64px; }
  .logo { font-size: 22px; }
  .logo img { width: 32px; height: 32px; }
  .lead { font-size: 19px; }
  .cards.three, .steps, .uses, .facts, .demo-steps { grid-template-columns: minmax(0, 1fr); }
  .card, .steps li, .facts div { padding: 24px; }
  .use { padding: 20px; gap: 16px; }
  .phones { gap: 12px; }
  .phones .phone { width: calc((100vw - 64px) / 3); padding: 5px; border-radius: 18px; }
  .phones .phone-screen { padding-top: 12px; border-radius: 14px; }
  .phones .phone::before { display: none; }
  .phones figcaption { font-size: 16px; letter-spacing: 0; }
  .hero-visual .hero-phone { right: -6px; width: 34vw; padding: 6px; border-radius: 22px; }
  .hero-phone .phone-screen { padding-top: 12px; border-radius: 17px; }
  .hero-phone::before, .poster-phone::before { display: none; }
  .poster-stage { padding-right: 70px; }
  .poster-stage .poster-phone { width: 36vw; padding: 6px; border-radius: 22px; }
  .poster-phone .phone-screen { padding-top: 12px; border-radius: 17px; }
  .cta .wrap { width: min(1160px, 100% - 24px); }
  .cta-panel { padding: 48px 18px; }
  .demo-steps li { padding: 18px; gap: 14px; }
  .faq summary { padding: 18px 60px 18px 18px; font-size: 18px; }
  .faq summary::after { right: 14px; }
  .faq details p { padding: 0 18px 20px; }
  .button-big { width: 100%; }
}
