/* fuxe.org: clean consultancy layout (floating pill nav, rounded white cards, pill tags), FUXE blue,
   with one hand-drawn illustration set (line art, soft blue fills). */

@font-face {
  font-family: "DM Sans";
  src: url("/site/fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --ink: hsl(222 22% 10%);
  --muted: hsl(220 9% 40%);
  --line: hsl(220 13% 91%);
  --soft: hsl(220 14% 97%);
  --accent: hsl(226 76% 50%);
  --accent-deep: hsl(228 70% 36%);
  --accent-soft: hsl(226 76% 50% / 0.1);
  --shadow: 0 10px 40px -12px hsl(222 22% 10% / 0.14);
  --card-shadow: 0 1px 2px hsl(222 22% 10% / 0.04), 0 8px 24px -8px hsl(222 22% 10% / 0.09);
  --radius: 24px;
  --max: 1180px;
  --gutter: 16px;
  /* Illustration tokens: one ink, two tints, the accent. */
  --ill-ink: hsl(228 70% 30%);
  --ill-t1: hsl(226 80% 95%);
  --ill-t2: hsl(226 76% 86%);
  --ill-line: hsl(226 60% 78%);
  --ill-panel: linear-gradient(150deg, hsl(226 90% 96%), hsl(272 85% 96%) 55%, hsl(332 85% 96%));
  color-scheme: light;
}

/* Colour families. Each card, icon or drawing group picks one with data-hue; the
   illustration tokens are derived from its hue, so one drawing set works in every colour.
   FUXE blue stays the brand colour (logo, links, staff bubbles). */
[data-hue="blue"]   { --h: 226; }
[data-hue="violet"] { --h: 262; }
[data-hue="pink"]   { --h: 336; }
[data-hue="amber"]  { --h: 32; }
[data-hue="mint"]   { --h: 160; }
[data-hue="sky"]    { --h: 196; }
[data-hue] .tag-accent { background: var(--ill-t1); color: var(--hue-ink); }
[data-hue] {
  --ill-ink: hsl(var(--h) 60% 28%);
  --ill-t1: hsl(var(--h) 92% 94%);
  --ill-t2: hsl(var(--h) 84% 82%);
  --ill-line: hsl(var(--h) 62% 72%);
  --ill-accent: hsl(var(--h) 80% 54%);
  --ill-panel: linear-gradient(150deg, hsl(var(--h) 95% 96%), hsl(calc(var(--h) + 26) 92% 92%));
  --hue-ink: hsl(var(--h) 70% 30%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, hsl(226 76% 50% / 0.09), transparent 40%),
    radial-gradient(circle at 92% 4%, hsl(326 85% 60% / 0.08), transparent 34%),
    radial-gradient(circle at 70% 22%, hsl(32 95% 58% / 0.06), transparent 30%),
    radial-gradient(circle at 8% 48%, hsl(160 70% 45% / 0.05), transparent 30%),
    var(--bg);
  background-repeat: no-repeat;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 50; }
.skip:focus { top: 12px; }

/* Floating pill nav */
.nav-wrap {
  position: sticky; top: 0; z-index: 20;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 0;
}
.nav {
  max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: hsl(0 0% 100% / 0.9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow);
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.logo img { display: block; height: 28px; width: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-primary { background: linear-gradient(135deg, hsl(226 76% 50%), hsl(258 68% 54%)); color: #fff; box-shadow: 0 10px 24px -12px hsl(244 70% 52%); }
.btn-primary:hover { background: linear-gradient(135deg, hsl(228 70% 40%), hsl(258 62% 44%)); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--accent-deep); }
.btn:active { transform: scale(0.98); }

main { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 0; }

/* Cards and tags */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--soft); color: var(--ink);
  font-size: 0.85rem; font-weight: 600;
}
.tag-accent { background: var(--accent-soft); color: var(--accent-deep); }

/* Illustration set: shared classes used inside every inline SVG */
.ill { display: block; overflow: visible; }
.ill .p, .ill .q, .ill .r, .ill .b, .ill .k, .ill .tl, .ill .wl, .ill .bl, .ill .handle {
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.ill .p { fill: #fff; stroke: var(--ill-ink); stroke-width: 1.75; }
.ill .q { fill: var(--ill-t1); stroke: var(--ill-ink); stroke-width: 1.75; }
.ill .r { fill: var(--ill-t2); stroke: var(--ill-ink); stroke-width: 1.75; }
.ill .b { fill: var(--ill-accent, var(--accent)); stroke: var(--ill-ink); stroke-width: 1.75; }
.ill .k { fill: none; stroke: var(--ill-ink); stroke-width: 1.75; }
.ill .tl { fill: none; stroke: var(--ill-line); stroke-width: 2.25; }
.ill .bl { fill: none; stroke: var(--ill-accent, var(--accent)); stroke-width: 2.25; }
.ill .wl { fill: none; stroke: #fff; stroke-width: 2; }
.ill .handle { fill: none; stroke: var(--ill-ink); stroke-width: 4; }
.ill .bf { fill: var(--ill-accent, var(--accent)); }
.ill .wf { fill: #fff; }
.ill .t1f { fill: var(--ill-t1); }
.ill .t2f { fill: var(--ill-t2); }

/* Hero */
.hero { padding: 24px 20px 20px; display: grid; gap: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px 0 10px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep);
  font-size: 0.9rem; font-weight: 600;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px hsl(226 76% 50% / 0.18); }
.hero h1 { margin-top: 18px; font-size: clamp(2.1rem, 9vw, 3.5rem); line-height: 1.06; font-weight: 800; max-width: 15ch; letter-spacing: -0.03em; }
.hero-sub { margin-top: 16px; color: var(--muted); font-size: 1.1rem; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Hero visual: files flow into one knowledge base, the assistant answers from it */
.hero-visual {
  margin: 0; border-radius: 20px; background: var(--ill-panel); border: 1px solid var(--line);
  padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 14px;
}
.flow { width: 100%; height: auto; max-width: 440px; margin: 0 auto; }
.flow-lines path {
  fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 0 8; opacity: 0.55;
  animation: flow-in 0.9s linear 3;
}
@keyframes flow-in { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .flow-lines path { animation: none; } }

.chat {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--card-shadow);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 8px; border-bottom: 1px solid var(--line); }
.chat-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.chat-dot svg { width: 18px; height: 18px; }
.chat-title { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.msg { max-width: 88%; padding: 9px 14px; border-radius: 18px; font-size: 0.95rem; line-height: 1.45; }
.msg-staff { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg-ai { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 6px; }
.source {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 7px;
  padding: 3px 10px 3px 8px; border-radius: 999px; background: #fff; color: var(--accent-deep);
  border: 1px solid hsl(226 76% 50% / 0.18);
  font-size: 0.78rem; font-weight: 600;
}
.source svg { width: 13px; height: 13px; flex: none; }
.chat-cap { font-size: 0.82rem; color: var(--muted); text-align: center; }

/* Facts strip */
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 0; }
.fact { padding: 14px 14px 16px; }
.fact-ico {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ill-t1, var(--accent-soft)); color: var(--hue-ink, var(--accent-deep));
  display: grid; place-items: center; margin-bottom: 10px;
}
.fact-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact-big { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.25; }
.fact p:not(.fact-big) { color: var(--muted); font-size: 0.88rem; line-height: 1.4; margin-top: 2px; }

/* Sections */
.section { padding: 64px 0 0; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 10px; max-width: 44ch; }

/* What we do: two big cards, digitalise then AI */
.offers { display: grid; gap: 12px; margin-top: 24px; }
.offer { padding: 12px 12px 24px; }
.art-lg { height: 150px; border-radius: 16px; background: var(--ill-panel); display: grid; place-items: center; margin-bottom: 18px; }
.art-lg .ill { width: 224px; height: 140px; }
.offer > .tag { margin: 0 10px; }
.offer h3 { font-size: 1.3rem; line-height: 1.25; margin: 12px 10px 0; }
.offer > p { color: var(--muted); margin: 6px 10px 0; max-width: 46ch; }
.offer .tags { margin: 14px 10px 0; }
.offer .tags .tag { font-weight: 500; }
.section h2, .about h2 { font-size: clamp(1.7rem, 6.4vw, 2.4rem); line-height: 1.12; font-weight: 800; max-width: 22ch; }
.grid { display: grid; gap: 12px; margin-top: 24px; }
.steps { list-style: none; padding: 0; }

/* Picture cards (use cases and steps): picture beside the text on phones, above it from tablet up */
.tile {
  display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto; column-gap: 16px;
  align-content: center; padding: 12px 16px 12px 12px;
}
.art {
  grid-row: 1 / span 2; position: relative;
  width: 92px; height: 80px; border-radius: 16px; background: var(--ill-panel);
  display: grid; place-items: center; align-self: center;
}
.art .ill { width: 80px; height: 60px; }
.tile h3 { font-size: 1.08rem; line-height: 1.3; align-self: end; }
.tile p { color: var(--muted); font-size: 0.95rem; line-height: 1.45; margin-top: 3px; align-self: start; }
.step-n {
  position: absolute; top: -6px; left: -6px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ill-t2, var(--ink)); color: var(--hue-ink, #fff); font-weight: 800; font-size: 0.85rem;
  display: grid; place-items: center; box-shadow: 0 0 0 3px #fff;
}

/* About */
.about { margin-top: 64px; padding: 24px 20px; display: grid; gap: 20px; }
.about-art {
  width: 112px; height: 100px; border-radius: 24px; background: var(--ill-panel);
  display: grid; place-items: center;
}
.about-art .ill { width: 92px; height: 79px; }
.about-sub { color: var(--muted); font-size: 1.075rem; margin: 10px 0 18px; max-width: 34em; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 24px; max-width: 820px; }
.faq details { padding: 0; border-radius: 20px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-weight: 700; font-size: 1.05rem; min-height: 56px; border-radius: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 9.5l4 4 4-4' fill='none' stroke='%23213fa8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); max-width: 62ch; }

/* Closing call to action */
.cta {
  margin-top: 64px; padding: 36px 24px; text-align: center;
  background:
    radial-gradient(circle at 85% 10%, hsl(0 0% 100% / 0.22), transparent 40%),
    linear-gradient(125deg, hsl(226 76% 46%), hsl(262 64% 50%) 55%, hsl(326 66% 46%));
  border: 0; color: #fff; box-shadow: var(--shadow);
}
.cta h2 { font-size: clamp(1.7rem, 6.4vw, 2.4rem); line-height: 1.12; font-weight: 800; max-width: 20ch; margin: 0 auto; }
.cta p { margin: 12px 0 22px; color: hsl(0 0% 100% / 0.88); }
.cta .btn:focus-visible { outline-color: #fff; }

/* Booking: what happens next on the left, a compact form on the right */
.book { margin-top: 64px; padding: 8px; display: grid; gap: 4px; }
.book-info { padding: 24px 20px; border-radius: 18px; background: var(--ill-panel); }
.book-info h2 { font-size: clamp(1.7rem, 6.4vw, 2.4rem); line-height: 1.12; font-weight: 800; max-width: 15ch; }
.book-sub { color: var(--muted); margin-top: 10px; }
.next-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.next-steps .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ill-t2); color: var(--hue-ink); font-weight: 800; }
.next-steps strong { display: block; line-height: 1.3; padding-top: 7px; }
.next-steps p { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.book-form { padding: 20px 14px 18px; display: grid; gap: 14px; align-content: start; }
.form-title { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.row { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 0.85rem; font-weight: 600; color: hsl(220 15% 30%); padding: 0; }
.field legend { margin-bottom: 8px; }
.req { color: hsl(336 75% 50%); }
.opt { font-weight: 400; color: var(--muted); margin-left: 4px; }
.book-form input:not([type=radio]), .book-form textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  background: hsl(220 25% 98.5%); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; min-height: 44px; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.book-form textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.book-form ::placeholder { color: hsl(220 9% 64%); }
.book-form input:not([type=radio]):hover, .book-form textarea:hover { border-color: hsl(220 13% 82%); }
.book-form input:not([type=radio]):focus, .book-form textarea:focus {
  outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px hsl(226 76% 50% / 0.15);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; font-size: 0.86rem; font-weight: 500; color: var(--ink); }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: background-color 150ms ease, border-color 150ms ease; }
.chips input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); font-weight: 650; }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.book-form .btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; margin-top: 2px; }
.book-form .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-note { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.form-note a { color: var(--ink); }
.form-status:empty { display: none; }
.form-status { font-weight: 650; font-size: 0.92rem; }
.form-status.ok { color: hsl(160 70% 28%); }
.form-status.err { color: hsl(350 70% 42%); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book-done { text-align: center; padding: 40px 12px; display: grid; gap: 6px; align-content: center; }
.book-done h3 { font-size: 1.3rem; }
.book-done p { color: var(--muted); }

.privacy { margin: 48px 0 0; max-width: 820px; font-size: 0.88rem; color: var(--muted); }
.privacy h2 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; letter-spacing: 0; }

/* Footer */
.footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--soft); }
.footer-in { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom, 0px)); }
.footer-line { color: var(--muted); margin-top: 12px; max-width: 34em; }
.footer-links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { margin-top: 20px; color: var(--muted); font-size: 0.88rem; }

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .offers { grid-template-columns: 1fr 1fr; }
  .art-lg { height: 200px; }
  .art-lg .ill { width: 288px; height: 180px; }
  .tile { grid-template-columns: 1fr; grid-template-rows: auto; padding: 12px 12px 24px; align-content: start; }
  .art { grid-row: auto; width: 100%; height: 156px; border-radius: 16px; margin-bottom: 18px; }
  .art .ill { width: 168px; height: 126px; }
  .tile h3, .tile p { padding: 0 10px; }
  .step-n { top: 12px; left: 12px; width: 30px; height: 30px; font-size: 0.9rem; box-shadow: none; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  main { padding-top: 28px; }
  .hero { grid-template-columns: 1fr 1.05fr; padding: 48px 48px 48px 56px; gap: 48px; align-items: center; }
  .hero-visual { padding: 22px 24px 16px; gap: 12px; }
  .chat { padding: 12px 14px; gap: 8px; }
  .msg { font-size: 0.92rem; padding: 8px 14px; }
  #faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
  #faq .faq { margin-top: 0; }
  .about { grid-template-columns: auto 1fr; padding: 40px 48px; gap: 40px; align-items: center; }
  .about-art { width: 200px; height: 170px; border-radius: 28px; }
  .about-art .ill { width: 168px; height: 144px; }
  .section { padding-top: 96px; }
  .about, .cta { margin-top: 96px; }
  .row { grid-template-columns: 1fr 1fr; }
  .book { margin-top: 96px; grid-template-columns: 1fr 1.15fr; gap: 8px; padding: 10px; }
  .book-info { padding: 40px; }
  .book-form { padding: 32px 32px 28px; }
  .cta { padding: 56px 48px; }
}
