/* KodexCR site palette: ink, paper, a hero blue and a signal red (owner's colors; tones inspired by comic-book
   heroes, not any character). The ITAM app keeps its own palette. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0B0D12;
  --ink-2: #121726;
  --navy: #0E1A3A;
  --paper: #F7F8FB;
  --paper-2: #EDF0F7;
  --blue: #1F4FFF;
  --blue-bright: #4F74FF;
  --red: #E5243B;
  --red-deep: #C41A30;
  --red-action: #D61F36; /* fills under white text: 5.1:1 (F-67). --red stays for the thread and lines */
  --white: #FFFFFF;

  --font-display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "Cascadia Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 18px;
  --wrap: 1200px;
  --slant: clamp(28px, 4vw, 64px);
}

/* Section themes: components read these, so the same card works on ink and on paper. */
.ink {
  --bg: var(--ink);
  --heading: #FFFFFF;
  --fg: #E9EDF7;
  --fg-soft: #B9C1D6;
  --fg-muted: #8F99B3;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-line: rgba(255, 255, 255, 0.16);
  --accent: var(--blue-bright);
  color-scheme: dark;
}
.paper {
  --bg: var(--paper);
  --heading: var(--ink);
  --fg: #1B2233;
  --fg-soft: #3F4A63;
  --fg-muted: #5D6882;
  --line: rgba(11, 13, 18, 0.1);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.9);
  --accent: var(--blue);
  color-scheme: light;
}

/* KodexCR site — "ink, paper and thread". Ink and paper sections alternate on slanted edges; glass cards float over
   soft blue/red light; a red thread draws down the page as you read. Spend the boldness there, keep the rest exact. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: #1B2233;
  font: 400 1.0625rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* the glows reach past the edges; clip, never scroll sideways */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent, var(--blue)); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--heading); font-family: var(--font-display); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 0.98; font-weight: 780; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.04; font-weight: 740; letter-spacing: -0.028em; }
h3 { font-size: 1.28rem; line-height: 1.2; font-weight: 680; letter-spacing: -0.012em; }

.ink, .paper { background: var(--bg); color: var(--fg); position: relative; overflow-x: clip; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; position: relative; z-index: 1; }
.narrow { max-width: 780px; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.26rem); color: var(--fg-soft); max-width: 60ch; }
.muted { color: var(--fg-muted); font-size: 0.95rem; }
.mono { font-family: var(--font-mono); }
.label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }

/* A comic narration box: the eyebrow over each title. */
.caption {
  display: inline-block; margin-bottom: 22px; padding: 6px 12px 5px;
  font: 600 0.78rem/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 4px;
  box-shadow: 4px 4px 0 var(--red); transform: rotate(-1.5deg);
}
.ink .caption { box-shadow: 4px 4px 0 var(--blue); }
h1 mark {
  color: inherit; white-space: nowrap;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--red) 85%, transparent) 62%, color-mix(in srgb, var(--red) 85%, transparent) 90%, transparent 90%);
}

.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--red-action); color: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 12px;
  font: 650 1rem/1 var(--font-display); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.94rem; }
.btn-red { background: var(--red-action); color: var(--white); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--red) 80%, transparent); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-glass {
  background: var(--glass); color: var(--heading); border-color: var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: var(--glass-strong); transform: translateY(-2px); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Header: dark glass over everything */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; margin-right: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: #C9D0E2; text-decoration: none; font-size: 0.97rem; font-weight: 500; position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .lang { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.menu-toggle {
  display: none; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--white);
  border-radius: 10px; padding: 8px 14px; font: 600 0.9rem var(--font-display); cursor: pointer;
}

/* The thread: a red line down the left edge that grows with the reading progress. It shows while scrolling and
   fades out when the page rests (main.js sets the length and the "on" class). */
.thread {
  position: fixed; left: max(10px, calc((100vw - var(--wrap)) / 2 - 36px)); top: 0; bottom: 0; width: 2px; z-index: 40;
  pointer-events: none; background: var(--red); transform-origin: top; transform: scaleY(0);
  opacity: 0; transition: opacity .5s ease;
}
.thread.on { opacity: 1; transition-duration: .15s; }

/* Sections and slanted edges */
.section { padding-block: clamp(80px, 11vw, 144px); }
.section.tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 760px; }
.section-head .caption { justify-self: start; margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split .lead { margin-top: 18px; }
.right { justify-self: end; }
.slant-both {
  z-index: 2; /* painted over its neighbors, so the slanted cut shows the section underneath */
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  margin-block: calc(var(--slant) * -1); padding-block: calc(clamp(80px, 11vw, 144px) + var(--slant));
}
.hero, .page-hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }

/* Atmosphere: soft light and a halftone corner. Quiet on purpose. */
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.glow-blue { width: 520px; height: 520px; background: color-mix(in srgb, var(--blue) 55%, transparent); top: -160px; right: -120px; opacity: 0.55; }
.glow-red { width: 380px; height: 380px; background: color-mix(in srgb, var(--red) 50%, transparent); bottom: -120px; left: -100px; opacity: 0.4; }
.paper .glow { opacity: 0.3; }
.halftone {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--red) 55%, transparent) 1.3px, transparent 1.6px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(circle at 92% 88%, #000 0, transparent 46%);
  mask-image: radial-gradient(circle at 92% 88%, #000 0, transparent 46%);
  opacity: 0.55;
}

/* Hero */
.hero { padding-block: clamp(72px, 10vw, 136px) calc(clamp(88px, 11vw, 150px) + var(--slant)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead, .page-hero .lead { margin-top: 26px; }

/* The web: KodexCR at the center, what we build around it. */
.web-figure { position: relative; aspect-ratio: 520 / 420; }
.web { width: 100%; height: 100%; overflow: visible; display: block; }
.web .ring { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.2; }
.web .spoke { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.4; }
.web .spoke.hot { stroke: var(--red); stroke-width: 2.2; }
/* pathLength="100" on every strand: the dash covers the whole line, however long (the outer ring is longer than 900). */
.web .ring, .web .spoke { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.6s cubic-bezier(.5, 0, .2, 1) forwards; }
.web .spoke:nth-of-type(2) { animation-delay: .1s; }
.web .spoke:nth-of-type(3) { animation-delay: .2s; }
.web .spoke:nth-of-type(4) { animation-delay: .3s; }
.web .spoke:nth-of-type(5) { animation-delay: .4s; }
.web .spoke:nth-of-type(6) { animation-delay: .5s; }
.web .ring { animation-delay: .7s; animation-duration: 2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.node {
  position: absolute; transform: translate(-50%, -50%);
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  font: 650 0.95rem/1 var(--font-display); color: var(--white);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.8);
  animation: pop .5s cubic-bezier(.22, 1, .36, 1) both;
}
.node.core { background: var(--red); border-color: var(--red); font-size: 1.05rem; padding: 12px 20px; box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--red) 90%, transparent); }
.node.product { background: color-mix(in srgb, var(--blue) 72%, transparent); border-color: var(--blue-bright); }
.node.n1 { left: 17%; top: 21%; animation-delay: .9s; }
.node.n2 { left: 85%; top: 26%; animation-delay: 1s; }
.node.n3 { left: 21%; top: 81%; animation-delay: 1.1s; }
.node.n4 { left: 81%; top: 79%; animation-delay: 1.2s; }
.node.core { left: 50%; top: 50%; animation-delay: .5s; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -40%) scale(.85); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.page-hero { padding-block: clamp(64px, 9vw, 120px) calc(clamp(64px, 8vw, 104px) + var(--slant)); overflow: hidden; }
.page-hero h1 { max-width: 16ch; }

/* Glass cards */
.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; align-content: start;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 50px -30px rgba(14, 26, 58, 0.45);
  transition: transform .25s ease, box-shadow .25s ease, opacity .7s ease;
}
.card::before { content: ""; position: absolute; left: 30px; top: 0; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--red); }
.card:nth-child(even)::before { background: var(--blue); }
.card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 34px 60px -30px rgba(14, 26, 58, 0.55); }
.card p { color: var(--fg-soft); }
.ticks { display: grid; gap: 9px; margin-top: 4px; }
.ticks li { position: relative; padding-left: 26px; color: var(--fg-soft); font-size: 0.98rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg);
}

/* Product band and screenshots */
.product-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.product-grid .lead { margin-top: 20px; }
.product-grid .ticks { margin: 26px 0 34px; }
.frame {
  margin: 0; padding: 10px; border-radius: calc(var(--radius) + 4px);
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.75);
}
.frame.tilt { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); transition: transform .5s ease; }
.frame.tilt:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.frame .shot { border-radius: 12px; width: 100%; }
.frame figcaption { color: var(--fg-muted); font-size: 0.93rem; padding: 14px 8px 6px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.gallery > :first-child { grid-column: 1 / -1; }

.product-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 60px); align-items: center;
  border-radius: calc(var(--radius) + 6px); padding: clamp(20px, 3vw, 36px); color: inherit; text-decoration: none;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -36px rgba(14, 26, 58, 0.5); transition: transform .25s ease;
}
.product-card:hover { transform: translateY(-4px); }
.product-card h2 { margin-bottom: 14px; }
.product-card p { color: var(--fg-soft); }
.product-card .ticks { margin: 22px 0 30px; }

/* Steps: a real sequence, so numbered, on one thread */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--red);
  transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.5, 0, .2, 1);
}
.steps.in::before, html:not(.js) .steps::before { transform: scaleX(1); }
.steps li { counter-increment: step; display: grid; gap: 12px; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  font: 750 1.2rem/1 var(--font-display); color: var(--white); background: var(--ink); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--red); position: relative; z-index: 1;
}
.steps p { color: var(--fg-soft); }

/* ITAM page */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.problems li {
  padding: 26px; border-radius: var(--radius); font: 600 1.15rem/1.4 var(--font-display); color: var(--heading);
  background: var(--glass); border: 1px solid var(--glass-line);
}
.problems li::before { content: "✕"; display: block; color: var(--red); font-weight: 800; margin-bottom: 10px; }
/* Live prices (main.js): a Monthly/Annual switch and one glass card per plan listed in the panel. */
.price-switch { display: inline-flex; padding: 4px; margin-bottom: 26px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.price-switch button {
  border: 0; border-radius: 999px; padding: 9px 20px; background: transparent; color: var(--fg-soft);
  font: 650 0.95rem/1 var(--font-display); cursor: pointer; transition: background-color .18s ease, color .18s ease;
}
.price-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-bottom: 22px; }
.price-card { display: flex; flex-direction: column; gap: 14px; }
.price-card .price { display: flex; align-items: baseline; gap: 4px; margin: 0; }
.price-card .amount { font: 780 2.6rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--heading); }
.price-card .per { color: var(--fg-muted); font-weight: 600; }
.price-card .save { margin: -6px 0 0; min-height: 1.2em; color: var(--red-deep); font: 700 0.86rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.price-card .ticks { flex: 1; align-content: start; }
.price-card .btn { align-self: flex-start; }
.price-card { position: relative; }
/* A launch discount: a red comic tag on the corner, the full price struck through, the new one in red. */
.price-card.promo { border: 2px solid var(--red); }
.price-ribbon {
  position: absolute; top: -13px; left: 20px; padding: 5px 11px; border-radius: 4px; transform: rotate(-2deg);
  background: var(--red-action); color: var(--white); box-shadow: 3px 3px 0 var(--ink);
  font: 700 0.76rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.price-card .was { margin: -6px 0 -8px; color: var(--fg-muted); font-weight: 600; }
.price-card.promo .amount { color: var(--red); }
.price-card .terms { margin: -8px 0 0; color: var(--red-deep); font-size: 0.86rem; font-weight: 600; }
/* Corporate: dark, no price, a conversation. */
.price-card.corp { background: var(--ink); border-color: var(--ink); }
.price-card.corp h3 { color: var(--white); }
.price-card.corp .price { font: 760 1.9rem/1.1 var(--font-display); color: var(--white); }
.price-card.corp .ticks li { color: #B9C1D6; }
.price-card.corp .btn-glass { color: var(--white); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); }
.pricing-note {
  border-radius: var(--radius); padding: 30px; display: grid; gap: 14px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.pricing-note p:first-child { color: var(--heading); font: 650 1.2rem/1.4 var(--font-display); }
.pricing-note .trial { color: var(--red-deep); }
.ink .pricing-note .trial { color: #FF7A8A; }
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; color: var(--heading); font: 650 1.1rem/1.4 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 500 1.6rem var(--font-display); color: var(--red); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--fg-soft); padding: 0 0 24px; max-width: 66ch; }

/* Contact on a blue field */
.cta-band { --bg: var(--blue); background: linear-gradient(135deg, var(--blue) 0%, #1638C8 55%, var(--navy) 100%); overflow: hidden; }
.cta-band .halftone {
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1.3px, transparent 1.6px);
  -webkit-mask-image: radial-gradient(circle at 6% 14%, #000 0, transparent 40%); mask-image: radial-gradient(circle at 6% 14%, #000 0, transparent 40%);
}
.cta-band h2 { color: var(--white); }
.cta-band .lead { color: #DCE4FF; }
.contact-card {
  border-radius: var(--radius); padding: 30px; display: grid; gap: 18px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.contact-card ul { display: grid; gap: 10px; color: var(--white); font: 600 1.08rem/1.4 var(--font-display); }
.contact-card .label, .contact-card .muted { color: #DCE4FF; }

/* Privacy */
.prose h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--fg-soft); }

/* Footer */
.site-footer { padding-block: 64px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid > div { display: grid; gap: 14px; align-content: start; }
.footer-grid ul { display: grid; gap: 9px; color: var(--fg-soft); font-size: 0.96rem; }
.footer-grid a { color: var(--fg-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-base { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.86rem; }

.notfound { min-height: 100vh; display: grid; align-content: center; gap: 20px; padding-block: 48px; }
.notfound .actions { margin-top: 8px; }

/* Reveal on scroll (main.js adds .in). Without JS everything is simply there. */
.js [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1), transform .25s ease, box-shadow .25s ease; }
.js [data-reveal].in { opacity: 1; translate: 0 0; }
.js [data-reveal][data-delay="1"] { transition-delay: .08s, .08s, 0s, 0s; }
.js [data-reveal][data-delay="2"] { transition-delay: .16s, .16s, 0s, 0s; }
.js [data-reveal][data-delay="3"] { transition-delay: .24s, .24s, 0s, 0s; }

/* Hero entrance */
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-copy .caption { animation-name: rise-tilted; }
@keyframes rise-tilted { from { opacity: 0; transform: translateY(22px) rotate(-1.5deg); } to { opacity: 1; transform: rotate(-1.5deg); } }

/* Narrow screens */
@media (max-width: 980px) {
  .hero-grid, .product-grid, .split, .product-card { grid-template-columns: 1fr; }
  .right { justify-self: start; }
  .cards.three, .gallery, .problems { grid-template-columns: 1fr; }
  .gallery > :first-child { grid-column: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .frame.tilt { transform: none; }
  .web-figure { max-width: 520px; width: 100%; margin-inline: auto; }
  .thread { display: none !important; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: rgba(11, 13, 18, 0.96); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .js .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 16px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 12px 18px; }
  html:not(.js) .header-row { flex-wrap: wrap; padding-block: 12px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .node { font-size: 0.82rem; padding: 7px 12px; }
  .node.core { font-size: 0.92rem; padding: 9px 14px; }
  .glow-blue { width: 320px; height: 320px; }
  .glow-red { width: 240px; height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .web .ring, .web .spoke { stroke-dashoffset: 0; }
  .js [data-reveal] { opacity: 1; translate: 0 0; }
  .steps::before { transform: scaleX(1); }
  .thread { display: none !important; }
  .frame.tilt { transform: none; }
}

/* WhatsApp: the contact card's main action. */
.web .spoke:not(.hot) { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.8; }
.web .knot { fill: var(--white); opacity: 0; animation: appear-knot .4s ease 1.3s forwards; }
@keyframes appear-knot { to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .web .knot { opacity: .9; } }
.contact-card .note { font-size: 0.88rem; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 14px; }
.contact-card a.mail { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.5); }

/* B: WhatsApp is the contact card's main action, full width; email and socials are rows under it. */
.wa-block {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--white); color: var(--ink); text-decoration: none;
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.6); transition: transform .18s ease, box-shadow .18s ease;
}
.wa-block:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.7); }
.wa-block .wa-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--white); }
.wa-block .wa-text { display: grid; gap: 2px; min-width: 0; }
.wa-block strong { font: 700 1.05rem/1.2 var(--font-display); }
.wa-block small { color: #3F4A63; font-size: 0.86rem; }
.wa-block .arrow { margin-left: auto; font-size: 1.2rem; }
.wa-block:hover .arrow { transform: translateX(4px); }
.contact-rows { display: grid; gap: 10px; }
.contact-rows li { display: flex; align-items: center; gap: 10px; color: var(--white); font: 600 1rem/1.4 var(--font-display); }
.contact-rows .row-icon { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* The "Let's talk" button that follows the reader: shown from the start, hidden at the contact card (main.js). */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--red); color: var(--white); text-decoration: none; font: 700 1rem/1 var(--font-display);
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--red) 80%, transparent), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, background-color .18s ease;
}
.wa-float:hover { background: var(--red-deep); }
.wa-float .wa-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--red); }
.js .wa-float { opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none; }
.js .wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float.show .wa-icon { animation: nudge 2.4s ease 1s 2; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-12deg); } 86% { transform: rotate(10deg); } 94% { transform: rotate(-6deg); } }
@media (max-width: 760px) {
  .wa-float { padding: 7px 14px 7px 7px; font-size: 0.95rem; }
  .wa-float .wa-icon { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .wa-float { transform: none; }
}

/* The short form behind the button: a paper glass card over the corner, opened by main.js. */
.qc {
  position: fixed; z-index: 46; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 66px);
  width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 176px); /* stays under the sticky header */ overflow-y: auto; overscroll-behavior: contain;
  padding: 18px; border-radius: 18px; border-top: 4px solid var(--red);
  background: color-mix(in srgb, var(--paper) 94%, transparent); color: #1B2233;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -20px rgba(11, 13, 18, 0.55), 0 4px 14px rgba(11, 13, 18, 0.18);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .35s;
}
.qc.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.qc-form { display: grid; gap: 12px; }
.qc-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.qc-head h2 { font-size: 1.3rem; line-height: 1.15; color: var(--ink); }
.qc-close { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.qc-close:hover { background: #DDE2EE; }
.qc-sub { margin-top: -6px; color: #5D6882; font-size: 0.88rem; }
.qc-field { display: grid; gap: 5px; margin: 0; padding: 0; border: 0; min-width: 0; }
.qc-field > span, .qc-field legend { padding: 0; font: 600 0.84rem/1.3 var(--font-sans); color: #3F4A63; }
.qc-field[hidden] { display: none; }
.qc input:not([type=radio]):not([type=checkbox]), .qc select, .qc textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #C9D0E2; border-radius: 10px; background: var(--white);
  color: var(--ink); font: 400 1rem/1.4 var(--font-sans);
}
.qc textarea { resize: vertical; min-height: 76px; }
.qc input:focus-visible, .qc select:focus-visible, .qc textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.qc [aria-invalid="true"] { border-color: var(--red); }
.qc-error { color: var(--red-deep); font-size: 0.82rem; }
.qc-seg { grid-template-columns: 1fr 1fr; gap: 6px; }
.qc-seg legend { grid-column: 1 / -1; margin-bottom: 5px; }
.qc-seg label { position: relative; }
.qc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qc-seg span { display: block; padding: 9px 8px; text-align: center; border: 1px solid #C9D0E2; border-radius: 10px; background: var(--white); font-weight: 600; font-size: 0.92rem; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.qc-seg input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.qc-seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.qc-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; padding: 7px 18px 7px 7px;
  border: 0; border-radius: 999px; background: var(--red); color: var(--white); font: 700 1rem/1 var(--font-display); cursor: pointer;
  transition: background-color .18s ease;
}
.qc-send:hover { background: var(--red-deep); }
.qc-send .wa-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--red); }
.qc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qc-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.86rem; color: #3F4A63; line-height: 1.4; }
.qc-check input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--blue); }
.qc-check a { color: var(--blue); }
.qc-check + .qc-error { margin-top: -6px; }
/* The field only bots fill (LeadService drops those): off screen, out of the tab order and hidden from screen readers. */
.qc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qc-mail {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px;
  border: 1.5px solid var(--blue); border-radius: 999px; background: transparent; color: var(--blue);
  font: 700 0.96rem/1 var(--font-display); cursor: pointer; transition: background-color .18s ease, color .18s ease;
}
.qc-mail:hover { background: var(--blue); color: var(--white); }
.qc-send:disabled, .qc-mail:disabled { opacity: .6; cursor: progress; }
.qc-sent.bad { color: var(--red-deep); }
.qc-sent:empty { display: none; }
.qc-sent { color: #0F6E3A; font-size: 0.88rem; font-weight: 600; }
.qc-alt { color: #5D6882; font-size: 0.84rem; text-align: center; }
@media (max-width: 760px) {
  .qc-pair { grid-template-columns: 1fr; gap: 9px; }
  .qc { padding: 14px; }
  .qc-form { gap: 9px; }
  .qc input:not([type=radio]):not([type=checkbox]), .qc select, .qc textarea { padding: 8px 11px; }
  .qc textarea { min-height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .qc { transform: none; transition: opacity .2s ease, visibility 0s linear .2s; }
}

/* Projects page: one glass card per finished project, its screenshot on top. Reuses .card (stripe, glass, hover).
   auto-fill keeps a lone card at half width instead of stretching it across the page. */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 26px; }
.project { padding: 12px 12px 30px; gap: 0; }
.project .shot { border-radius: 12px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.project-body { display: grid; gap: 14px; padding: 26px 18px 0; }
.project-body .label { color: var(--red-deep); }
.project-body h3 { font-size: 1.6rem; }
.project .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.project .tags li {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2);
  font: 600 0.78rem/1.2 var(--font-mono); letter-spacing: 0.06em; color: var(--fg-soft);
}
.project .demo-note { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.86rem; }

/* Home page: the first three projects, compact, three to a row. */
.projects.featured { grid-template-columns: repeat(3, 1fr); }
.projects.featured .project { padding-bottom: 24px; }
.projects.featured .project-body { gap: 10px; padding-top: 20px; }
.projects.featured h3 { font-size: 1.3rem; }
@media (max-width: 980px) { .projects.featured { grid-template-columns: 1fr; } }

/* Portfolio: custom projects sit on ink; a product card ends with a link to the product. */
.ink .project-body .label { color: #FF7A8A; }
.ink .project .tags li { background: var(--glass-strong); }
.project-body .btn { justify-self: start; margin-top: 6px; }

/* Portfolio cards: the whole card opens the item's page (the title's link covers it; the button sits above). */
.project h3 a.card-link { color: inherit; text-decoration: none; }
.project h3 a.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.project-body .btn { position: relative; z-index: 2; }
/* Detail page: the reference price, and the client's own links. */
.detail-price { margin-top: 26px; }
.detail-price p:first-child { font: 780 clamp(1.9rem, 3.4vw, 2.6rem)/1.05 var(--font-display); letter-spacing: -0.03em; }
.detail-price .label { color: var(--red-deep); }
.client-card .actions { margin-top: 10px; }

/* Home hero: the web keeps moving once it has drawn itself. A spark runs out along each strand in turn, the rings
   breathe, the labels float, and hovering a label lights its strand. The reduced-motion rule above turns it all off. */
.web .pulse {
  fill: none; stroke: var(--white); stroke-width: 3.6; stroke-linecap: round;
  stroke-dasharray: 14 200; stroke-dashoffset: 14; animation: spark 5.6s cubic-bezier(.45, 0, .2, 1) 1.8s infinite;
}
/* White sparks on the red strands, red on the white ones, so each one shows. */
.web .pulse.p5, .web .pulse.p6 { stroke: var(--red); }
.web .pulse.p2 { animation-delay: 2.7s; }
.web .pulse.p3 { animation-delay: 3.6s; }
.web .pulse.p4 { animation-delay: 4.5s; }
.web .pulse.p5 { animation-delay: 5.4s; }
.web .pulse.p6 { animation-delay: 6.3s; }
@keyframes spark { 0% { stroke-dashoffset: 14; } 30%, 100% { stroke-dashoffset: -100; } }
.web .ring {
  transform-box: view-box; transform-origin: 260px 210px;
  animation: draw 2s cubic-bezier(.5, 0, .2, 1) .7s forwards, breathe 7s ease-in-out 2.7s infinite;
}
.web .ring.r2 { animation-delay: .7s, 3.6s; }
.web .ring.r3 { animation-delay: .7s, 4.5s; }
@keyframes breathe { 50% { transform: scale(1.018); opacity: .55; } }
.node { transition: background-color .25s ease, border-color .25s ease; }
.node.n1 { animation: pop .5s cubic-bezier(.22, 1, .36, 1) .9s both, float 6s ease-in-out 2s infinite; }
.node.n2 { animation: pop .5s cubic-bezier(.22, 1, .36, 1) 1s both, float 7s ease-in-out 2.6s infinite; }
.node.n3 { animation: pop .5s cubic-bezier(.22, 1, .36, 1) 1.1s both, float 6.5s ease-in-out 3.1s infinite; }
.node.n4 { animation: pop .5s cubic-bezier(.22, 1, .36, 1) 1.2s both, float 7.5s ease-in-out 2.3s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.web .spoke { transition: stroke-width .25s ease, stroke .25s ease; }
.web-figure:has(.n1:hover) .spoke:nth-of-type(1), .web-figure:has(.n2:hover) .spoke:nth-of-type(2),
.web-figure:has(.n3:hover) .spoke:nth-of-type(3), .web-figure:has(.n4:hover) .spoke:nth-of-type(4) { stroke-width: 4; }
.node:not(.core):hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }
.node.product:hover { background: var(--blue); }

/* Home hero: the reference prices, right under the buttons. */
.hero-prices { margin-top: 24px; font: 600 0.82rem/1.6 var(--font-mono); letter-spacing: 0.06em; color: var(--fg-soft); }
.hero-prices a { color: var(--white); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }

/* Home: what we do and what it costs. Glass cards three to a row; a card with two levels (.wide) takes two places. */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer.wide { grid-column: span 2; }
.offer-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.offer-tier { display: grid; gap: 14px; align-content: start; }
.offer-tier .tier-name { font: 700 1rem/1.3 var(--font-display); color: var(--heading); }
.offer-tier + .offer-tier { padding-left: 22px; border-left: 1px solid var(--line); }
.offer-price { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.offer-price .label { color: var(--red-deep); }
.offer-price .amount { font: 780 clamp(2rem, 3vw, 2.5rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--heading); }
.offer-price .vat { font: 700 0.95rem var(--font-mono); color: var(--red-deep); }
.offer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.offer-facts dt { font: 600 0.72rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.offer-facts dd { margin: 3px 0 0; font-weight: 650; font-size: 0.95rem; color: var(--heading); }
.offer-example { font-size: 0.95rem; }
.offer-example a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.offers-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; }
.offers-foot .muted { max-width: 60ch; }
@media (max-width: 980px) { .offers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .offers, .offer-tiers { grid-template-columns: 1fr; }
  .offer.wide { grid-column: auto; }
  .offer-tier + .offer-tier { padding-left: 0; border-left: 0; padding-top: 18px; border-top: 1px solid var(--line); }
}
/* The price blocks line up across a row: the description takes the spare height. */
.offer { display: flex; flex-direction: column; }
.offer > p:not(.offer-example) { flex: 1; }
.hero-prices a { white-space: nowrap; }

/* FAQ page: one heading per topic. */
.faq-group { margin-top: 44px; }
.faq-group:first-child { margin-top: 0; }
.faq-group + .faq { margin-top: 14px; }

/* On a phone the prices go above the buttons: at the bottom of the first screen the floating button covered them. */
@media (max-width: 760px) {
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy .caption { align-self: flex-start; }
  .hero-copy .actions { order: 2; margin-top: 22px; }
  .hero-prices { order: 1; margin-top: 14px; }
}
