/* diagraft – features page. Plain CSS, no framework.
   Dark brand theme (diagraft purple variant) by default; light theme follows the operating system setting. */
/* brand typeface Outfit (OFL – fonts/Outfit-OFL.txt) for headings */
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("fonts/Outfit-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("fonts/Outfit-Bold.ttf") format("truetype"); }
:root {
  --bg: #130f32;           /* diagraft brand dark */
  --bg2: #18133d;
  --card: #1e1848;
  --line: #322a63;
  --text: #efecf8;
  --mute: #aaa2c8;
  --acc: #b9a2ff;          /* diagraft brand purple (light) */
  --acc-fg: #130f32;
  --strip: #efecf8;
  --strip-fg: #15112e;
  --strip-rule: #c4bcdf;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --code-bg: #0d0a24;
  --code-key: #b9a2ff;
  --code-str: #f5b97a;
  /* colour roles of the default diagraft template */
  --r1: #3f73d6; --r2: #e0393e; --r3: #3a9a64; --r4: #8a7ad6;
  --r5: #1b8fae; --r6: #f08a2c; --r7: #7b8ba3; --r8: #a07ce0;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4fa;
    --bg2: #ece8f5;
    --card: #ffffff;
    --line: #ddd7ea;
    --text: #15112e;
    --mute: #615a78;
    --acc: #6d28d9;
    --acc-fg: #ffffff;
    --strip: #15112e;
    --strip-fg: #f1eef9;
    --strip-rule: #3d3466;
    --shadow: 0 18px 44px rgba(21, 17, 46, .16);
    --code-bg: #15112e;
    --r1: #1f4e9a; --r2: #d3262b; --r3: #2e7d4f; --r4: #6b5bb8;
    --r5: #0f6f8c; --r6: #e07a1f; --r7: #5a6b80; --r8: #7e57c2;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 400 1.0625rem/1.65 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--acc); text-underline-offset: .18em; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--acc); color: var(--acc-fg); padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
::selection { background: var(--acc); color: var(--acc-fg); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.brand { display: flex; align-items: center; color: var(--text); text-decoration: none; margin: -4px 0 -4px -8px; }
.brand .logo { display: block; width: auto; height: 40px; }   /* the logo SVG has a 20 px margin */
.brand .logo-light { display: none; }
@media (prefers-color-scheme: light) { .brand .logo-dark { display: none; } .brand .logo-light { display: block; } }
.links { display: none; gap: 20px; margin-left: auto; }
.links a { color: var(--mute); text-decoration: none; font: 600 .82rem/1 "IBM Plex Sans Condensed", sans-serif;
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; }
.links a:hover, .links a.on { color: var(--text); border-bottom-color: var(--acc); }
@media (min-width: 1000px) { .links { display: flex; } }   /* 9 links + language + button need ~1000 px */

/* ---------- type ---------- */
h1, h2, h3 { font-family: "Outfit", "IBM Plex Sans", sans-serif; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); line-height: 1.06; margin: 0 0 1.1rem; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.18; margin: 0 0 1rem; letter-spacing: -.012em; font-weight: 700;
  display: flex; align-items: center; flex-wrap: wrap; gap: .1em .55em; }
h3 { font-size: 1.15rem; margin: .8rem 0 .4rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--mute); max-width: 36em; }
.lead strong { color: var(--text); }
.eyebrow { margin: 0 0 1rem; font: 600 .85rem/1 "IBM Plex Sans Condensed", sans-serif; letter-spacing: .16em;
  text-transform: uppercase; color: var(--acc); }
h1 .eyebrow { display: block; }          /* the main keyword is part of the h1 (SEO), shown as the small line above */
/* visually hidden, still read by screen readers and search engines */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* section numbers in the colours of the diagraft template roles */
.code { display: inline-grid; place-items: center; min-width: 2.1em; padding: 5px 8px; border-radius: 4px;
  font: 700 .95rem/1 "IBM Plex Sans Condensed", sans-serif; letter-spacing: .08em; color: #fff; }
.r1 { --c: var(--r1); } .r2 { --c: var(--r2); } .r3 { --c: var(--r3); } .r4 { --c: var(--r4); }
.r5 { --c: var(--r5); } .r6 { --c: var(--r6); } .r7 { --c: var(--r7); } .r8 { --c: var(--r8); }
.code { background: var(--c); }

/* ---------- hero ---------- */
.hero { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 40px; align-items: center; }
.badges { list-style: none; padding: 0; margin: 1.5rem 0; display: inline-flex; flex-wrap: wrap;
  background: var(--strip); border-radius: 4px; overflow: hidden; }
.badges li { padding: 7px 13px; font: 600 .86rem/1.2 "IBM Plex Sans Condensed", sans-serif; letter-spacing: .08em;
  text-transform: uppercase; color: var(--strip-fg); border-right: 1px solid var(--strip-rule); }
.badges li:last-child { border-right: 0; }
@media (max-width: 600px) {
  .badges { background: none; gap: 6px; overflow: visible; }
  .badges li { background: var(--strip); border: 0; border-radius: 4px; }
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 0; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; border: 1px solid var(--line); color: var(--text);
  text-decoration: none; font-weight: 600; transition: background .2s, filter .2s; }
.btn.primary { background: var(--acc); color: var(--acc-fg); border-color: var(--acc); }
.btn:hover { background: var(--card); }
.btn.primary:hover { background: var(--acc); filter: brightness(1.08); }
/* the main call to action – opens the diagraft app (brand purple gradient, as in the logo) */
.btn.start { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; border: 0; border-radius: 10px;
  font-size: 1.15rem; font-weight: 700; letter-spacing: .01em; color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #5b21b6); box-shadow: 0 10px 30px rgba(109, 40, 217, .45);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s; }
.btn.start:hover { background: linear-gradient(135deg, #8b5cf6, #5b21b6); filter: brightness(1.08); transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(109, 40, 217, .55); }
.btn.start:active { transform: translateY(0); }
.btn.start .go { transition: transform .15s ease; }
.btn.start:hover .go { transform: translateX(4px); }
.btn.start-sm { padding: 8px 16px; font-size: .92rem; border-radius: 8px; box-shadow: none; margin-left: 0; white-space: nowrap; }
.btn.start-sm:hover { transform: none; box-shadow: none; }
/* language switcher in the top bar (CZ not available yet) */
.lang { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: 0 0 auto; }
.lang a, .lang span { padding: 6px 9px; font: 600 .8rem/1 "IBM Plex Sans Condensed", sans-serif; letter-spacing: .08em;
  color: var(--mute); text-decoration: none; border-right: 1px solid var(--line); }
.lang > :last-child { border-right: 0; }
.lang a:hover { color: var(--text); background: var(--card); }
.lang a[aria-current="true"] { color: var(--acc-fg); background: var(--acc); }
.lang .off { opacity: .45; cursor: not-allowed; }
@media (min-width: 1000px) { .lang { margin-left: 4px; } }
@media (max-width: 440px) { .bar { gap: 10px; } .brand span { display: none; } .btn.start-sm { padding: 8px 12px; } }
.get .cta { justify-content: center; margin-top: 34px; }
.window { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.chrome { display: flex; gap: 7px; padding: 10px 14px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.chrome i:nth-child(1) { background: var(--r2); } .chrome i:nth-child(2) { background: var(--r6); } .chrome i:nth-child(3) { background: var(--r3); }
.hero-shot { margin: 0; }

/* ---------- audience ---------- */
.audience { display: grid; gap: 16px; padding-bottom: 32px; }
.aud { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 18px; }
.aud h3 { margin-top: .9rem; }
.aud p { margin: 0; color: var(--mute); font-size: .98rem; }
.chip { display: block; width: 44px; height: 6px; border-radius: 3px; background: var(--c); }

/* ---------- sections ---------- */
section { padding-top: 32px; padding-bottom: 32px; }
.band { background: var(--bg2); padding-top: 64px; padding-bottom: 64px; margin: 32px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; gap: 36px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.stack { padding-top: 56px; padding-bottom: 56px; }
.copy { max-width: 640px; }
.copy.wide { max-width: 760px; }
.copy > p { color: var(--mute); font-size: 1.08rem; }
.list { padding-left: 1.2rem; margin: 1rem 0 0; }
.list li { margin: .5rem 0; padding-left: .25rem; }
.list li::marker { color: var(--acc); }
.list strong { color: var(--text); }
.list.cols { display: grid; gap: 4px 40px; margin-top: 28px; }
figure { margin: 0; }
.shot { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
figcaption { font-size: .88rem; color: var(--mute); margin-top: .75rem; }
.narrow-shot { max-width: 460px; justify-self: center; }
.zoomable { cursor: zoom-in; }

/* generation: data → diagram */
.gen { display: grid; gap: 20px; align-items: center; margin-top: 28px; }
.code-card { background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.code-head { padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.08); font: 500 .78rem/1 "IBM Plex Mono", monospace; color: #aaa2c8; }
.code-card pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; font: 400 .8rem/1.55 "IBM Plex Mono", ui-monospace, Consolas, monospace; color: #ddd8ee; }
.code-card b { color: var(--code-key); font-weight: 500; }
.code-card s { color: var(--code-str); text-decoration: none; }
.gen-arrow { justify-self: center; font-size: 2rem; color: var(--acc); transform: rotate(90deg); line-height: 1; }

/* templates switcher */
.tpl-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.tpl-switch button { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: 500 .93rem/1 "IBM Plex Sans", sans-serif; cursor: pointer; transition: border-color .2s, background .2s; }
.tpl-switch button:hover { border-color: var(--acc); }
.tpl-switch button[aria-selected="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 16%, var(--card)); }
.tpl-switch i { width: 30px; height: 12px; border-radius: 3px; border: 1px solid rgba(127,127,127,.35);
  background: linear-gradient(90deg, var(--a) 0 33.3%, var(--b) 33.3% 66.6%, var(--c) 66.6%); }
.tpl-stage img { transition: opacity .25s ease; }
.tpl-stage img.fade { opacity: .15; }

/* exports */
.formats { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.formats li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.formats b { font: 700 1.15rem/1.1 "IBM Plex Sans Condensed", sans-serif; letter-spacing: .04em; }
.formats span { color: var(--mute); font-size: .95rem; line-height: 1.45; }
.formats li:nth-child(1) { border-top: 4px solid var(--r1); } .formats li:nth-child(2) { border-top: 4px solid var(--r5); }
.formats li:nth-child(3) { border-top: 4px solid var(--r6); } .formats li:nth-child(4) { border-top: 4px solid var(--r3); }
.formats li:nth-child(5) { border-top: 4px solid var(--r4); }
.export-shot { max-width: 340px; margin-top: 22px; }
.export-shot .shot { box-shadow: none; }

/* flows */
.flow-stage { margin-top: 26px; max-width: 880px; }

/* diagram types */
.gallery { display: grid; gap: 22px; margin-top: 28px; }
.gallery figcaption { font-size: .95rem; line-height: 1.45; }
.gallery figcaption b { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: 2px; }
.soon { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px;
  border: 1px dashed var(--line); border-radius: 10px; }
.soon-label { font: 700 .8rem/1 "IBM Plex Sans Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc-fg); background: var(--r8); padding: 6px 9px; border-radius: 4px; }
.soon ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.soon li { padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--r8); color: var(--text); font-size: .95rem; }

/* FAQ */
.faq { max-width: 860px; padding-top: 56px; padding-bottom: 24px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--acc); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 10px; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--mute); }

/* closing */
.get { text-align: center; padding-top: 72px; padding-bottom: 80px; }
.get h2 { justify-content: center; }
.steps3 { list-style: none; counter-reset: s; padding: 0; margin: 30px auto 0; max-width: 900px; display: grid; gap: 14px; text-align: left; }
.steps3 li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 16px 62px; }
.steps3 li::before { content: counter(s); position: absolute; left: 18px; top: 17px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--acc); color: var(--acc-fg); font-weight: 700; }
.steps3 b { display: block; }
.steps3 span { color: var(--mute); font-size: .95rem; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--mute); font-size: .93rem; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(9, 7, 26, .82); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); background: #fff; }
.lightbox form { position: absolute; top: -14px; right: -14px; margin: 0; }
.lb-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #15112e; font-size: 16px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .audience { grid-template-columns: repeat(3, 1fr); }
  .list.cols { grid-template-columns: 1fr 1fr; }
  .formats { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }   /* 4 typy diagramov = 2 × 2 */
  .steps3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: .95fr 1.05fr; padding-top: 80px; padding-bottom: 64px; gap: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.rev > figure { order: 0; }
  .gen { grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.5fr); }
  .gen-arrow { transform: none; }
  .formats { grid-template-columns: repeat(5, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tpl-stage img, .btn, .tpl-switch button, .btn.start .go { transition: none; }
  .btn.start:hover, .btn.start:hover .go { transform: none; }
}
