/* ==========================================================================
   Strona na Start – Fundacja Talaris
   Theme "Nocny": dark, precise product-page aesthetic. Plain CSS, no build step.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallback to minimise layout shift while Geist loads */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 104%;
}

/* ---------- Design tokens ---------- */

:root {
  color-scheme: dark;

  --bg: #07070a;
  --bg-alt: #0a0a0f;
  --surface: #0f0f14;
  --surface-2: #15151d;
  --surface-3: #1c1c26;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --text: #ededf2;
  --muted: #a1a1b3;
  --dim: #85859a;

  --teal: #2dd4bf;
  --violet: #8b5cf6;
  --violet-light: #b39dfb;
  --pink: #f472b6;
  --amber: #fbbf24;
  --danger: #fda4af;
  --aurora: linear-gradient(90deg, #2dd4bf 0%, #8b5cf6 50%, #f472b6 100%);

  --font-sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  interpolate-size: allow-keywords;
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul, ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--text);
  text-decoration-color: rgb(255 255 255 / 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

strong { font-weight: 600; color: var(--text); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgb(139 92 246 / 0.45);
  color: #fff;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.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;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.gradient-text {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0.7em 1.25em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.2s var(--ease-out);
}

.btn .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.2s var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-light {
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2), 0 8px 30px -8px rgb(139 92 246 / 0.55);
}

.btn-light:hover {
  background: #e9e9f1;
  color: #000;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.3), 0 10px 40px -6px rgb(45 212 191 / 0.55);
}

.btn-ghost {
  background: rgb(255 255 255 / 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.07);
  border-color: rgb(255 255 255 / 0.28);
  color: #fff;
}

.btn-lg {
  min-height: 52px;
  padding: 0.85em 1.5em;
  font-size: 1rem;
}

.btn-sm {
  min-height: 38px;
  padding: 0.5em 1em;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 550;
  color: var(--text);
  text-decoration: none;
}

.link-arrow .icon {
  width: 1em;
  height: 1em;
  color: var(--teal);
  transition: transform 0.2s var(--ease-out);
}

.link-arrow:hover {
  text-decoration: underline;
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(7 7 10 / 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgb(7 7 10 / 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.03);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.site-header:has(.nav-list:popover-open) .nav-toggle .icon-open {
  display: none;
}

.site-header:has(.nav-list:popover-open) .nav-toggle .icon-close {
  display: block;
}

/* Desktop: the popover list is rendered inline as a regular menu */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  overflow: visible;
}

.nav-list a:not(.btn) {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-list a:not(.btn):hover,
.nav-list a.is-active {
  color: var(--text);
  background: rgb(255 255 255 / 0.06);
}

.nav-cta {
  margin-left: 0.6rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
  }

  .nav-list:popover-open {
    position: fixed;
    inset: calc(var(--header-h) + 8px) 12px auto 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: auto;
    max-height: calc(100dvh - var(--header-h) - 24px);
    padding: 10px;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgb(15 15 20 / 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.8);
    animation: menu-in 0.2s var(--ease-out);
  }

  .nav-list:popover-open a:not(.btn) {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .nav-list::backdrop {
    background: rgb(0 0 0 / 0.55);
  }

  .nav-cta {
    margin: 8px 0 0;
  }

  .nav-cta .btn {
    width: 100%;
    min-height: 48px;
  }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

/* ---------- Shared section styles ---------- */

.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 128px);
  isolation: isolate;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px 2px rgb(139 92 246 / 0.6);
}

.eyebrow--teal::before { background: var(--teal); box-shadow: 0 0 10px 2px rgb(45 212 191 / 0.6); }
.eyebrow--violet::before { background: var(--violet); }
.eyebrow--pink::before { background: var(--pink); box-shadow: 0 0 10px 2px rgb(244 114 182 / 0.6); }

h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-lead {
  margin-top: 1.2rem;
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  color: var(--muted);
}

.head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.sub-title {
  margin: clamp(64px, 8vw, 96px) 0 24px;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  letter-spacing: -0.03em;
}

.checklist {
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.checklist li + li {
  margin-top: 0.75rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgb(45 212 191 / 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232dd4bf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px rgb(45 212 191 / 0.3);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tag--teal { color: var(--teal); }
.tag--violet { color: var(--violet-light); }

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(48px, 6vw, 80px);
  overflow: clip;
  isolation: isolate;
}

.hero-aurora {
  position: absolute;
  inset: -10% -10% auto;
  z-index: -1;
  height: 900px;
  background:
    radial-gradient(36rem 20rem at 30% 30%, rgb(45 212 191 / 0.22), transparent 70%),
    radial-gradient(34rem 22rem at 70% 25%, rgb(139 92 246 / 0.3), transparent 70%),
    radial-gradient(28rem 18rem at 55% 60%, rgb(244 114 182 / 0.16), transparent 70%);
  filter: blur(20px);
}

.hero-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.06;
  mix-blend-mode: overlay;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  font-size: 0.85rem;
  color: var(--muted);
}

.pill > span:last-child {
  text-align: left;
}

.pill-tag {
  flex: none;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--aurora);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #07070a;
}

.hero h1 {
  max-width: 15ch;
  margin-top: 1.6rem;
  font-size: clamp(2.6rem, 1.3rem + 5.2vw, 5.4rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero h1 .gradient-text {
  display: block;
  padding-bottom: 0.08em;
}

.lead {
  max-width: 40em;
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--muted);
}

.lead + .lead {
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 2.2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  margin-top: 1.8rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--dim);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* Product-style stage */
.stage {
  position: relative;
  max-width: 1080px;
  margin: clamp(56px, 7vw, 88px) auto 0;
}

.stage-glow {
  position: absolute;
  inset: 8% 6% -4%;
  z-index: -1;
  border-radius: 40px;
  background: var(--aurora);
  filter: blur(70px);
  opacity: 0.35;
}

.window {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #0b0b10;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 40px 100px -30px rgb(0 0 0 / 0.9);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #0e0e14;
}

.window-tabs {
  display: flex;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.window-tab {
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  color: var(--dim);
}

.window-tab.is-active {
  background: rgb(255 255 255 / 0.06);
  color: var(--text);
}

.window-url {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.window-url .icon {
  width: 0.9em;
  height: 0.9em;
  color: var(--teal);
}

.window-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 360px;
}

.editor {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 18px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.code {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: #c9c9d9;
}

.code li {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 0 16px 0 0;
  white-space: pre;
}

.code li code {
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: inherit;
}

.code .ln {
  flex: none;
  width: 44px;
  padding-right: 6px;
  text-align: right;
  color: #8a8aa0;
}

.code .add {
  background: rgb(45 212 191 / 0.09);
  box-shadow: inset 2px 0 0 var(--teal);
}

.code .add .ln::after,
.code .del .ln::after {
  position: absolute;
  left: 52px;
}

.code .add .ln { color: var(--teal); }

.code .del {
  background: rgb(244 114 182 / 0.08);
  box-shadow: inset 2px 0 0 var(--pink);
  color: #9b8797;
}

.code .del code {
  text-decoration: line-through;
  text-decoration-color: rgb(244 114 182 / 0.5);
}

.code .del .ln { color: var(--pink); }

.code b { font-weight: 450; }
.c-tag { color: #7dd3c0; }
.c-attr { color: #c4b5fd; }
.c-str { color: #f9a8d4; }

.review {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.03);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.review-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--aurora);
  font-weight: 700;
  color: #07070a;
}

.review strong {
  color: var(--text);
}

.review-ok {
  color: var(--teal);
  font-weight: 550;
}

.preview {
  display: flex;
  align-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 70% 20%, rgb(139 92 246 / 0.12), transparent 60%),
    #0d0d13;
}

.site {
  width: 100%;
  padding: 16px 18px 18px;
  border-radius: 12px;
  background: #fbf7f2;
  color: #1f3b2d;
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.8);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-logo i {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 2px;
  background: #db2777;
}

.site-links {
  display: inline-flex;
  gap: 8px;
}

.site-links i {
  width: 24px;
  height: 5px;
  border-radius: 4px;
  background: #e7ddd0;
}

.site-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.site-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.site-line {
  width: 100%;
  height: 5px;
  border-radius: 4px;
  background: #e9dfd3;
}

.site-line--short { width: 70%; }

.site-cta {
  margin-top: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #be185d;
  font-size: 0.62rem;
  font-weight: 650;
  color: #fff;
}

.site-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(160deg, #dcefe5, #b8dcc8);
  overflow: hidden;
}

.site-art i {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f472b6;
  box-shadow: inset 0 0 0 6px rgb(255 255 255 / 0.35);
}

.site-art i:nth-child(1) { top: 16%; left: 14%; }
.site-art i:nth-child(2) { top: 10%; left: 50%; background: #a78bfa; }
.site-art i:nth-child(3) { top: 38%; left: 34%; background: #fb7185; }

.site-art b {
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 0;
  height: 38%;
  border-radius: 40% 40% 0 0;
  background: #2f6f55;
}

.site-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.site-cards span {
  height: 42px;
  border: 1px solid #efe5d9;
  border-radius: 8px;
  background: #fff;
}

.window-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  background: #0e0e14;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
}

.window-status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px 1px var(--teal);
}

.status-ok {
  margin-left: auto;
  color: var(--teal);
}

.grid-floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -160px;
  z-index: -2;
  height: 320px;
  background-image:
    linear-gradient(to right, rgb(139 92 246 / 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(139 92 246 / 0.28) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 70%);
}

/* ---------- Stats ---------- */

.stats {
  padding-bottom: clamp(24px, 4vw, 48px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-block: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: clamp(22px, 3vw, 36px) clamp(16px, 2vw, 28px);
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat dd {
  margin: 0;
  font-size: clamp(2.1rem, 1.6rem + 1.6vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
}

.stat:first-child dd {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat dd small {
  font-size: 0.4em;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.stat dt {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Audience switcher ---------- */

.audience {
  display: grid;
  gap: 24px;
}

.segmented {
  display: inline-flex;
  justify-self: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

.segmented[hidden] {
  display: none;
}

.segment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.5rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.segment:hover {
  color: var(--text);
}

.segment[aria-selected="true"] {
  background: #fff;
  color: #000;
}

.aud-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 4.5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(45 212 191 / 0.08), transparent 70%),
    var(--surface);
}

#dla-mlodych .aud-panel {
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(139 92 246 / 0.12), transparent 70%),
    var(--surface);
}

.aud-tab[hidden] {
  display: none;
}

.aud-tab.is-entering {
  animation: panel-in 0.35s var(--ease-out);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* The summary card opens each tab; the detailed content follows it. */
.aud-tab > .aud-panel {
  margin-bottom: clamp(48px, 6vw, 80px);
}

/* Without JavaScript both tabs are shown, one after the other. */
.aud-tab:not([hidden]) + .aud-tab:not([hidden]) {
  margin-top: clamp(64px, 8vw, 112px);
}

.aud-copy h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  letter-spacing: -0.035em;
}

.aud-visual {
  position: relative;
  padding: 24px 0;
}

.mini-window {
  max-width: 360px;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0b0b10;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9);
}

.mini-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.mini-bar .dots i {
  width: 8px;
  height: 8px;
}

.mini-url {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dim);
}

.mini-body {
  display: grid;
  gap: 10px;
  padding: 16px 16px 36px;
}

.mini-hero {
  height: 110px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 75% 35%, rgb(244 114 182 / 0.6), transparent 45%),
    linear-gradient(135deg, rgb(45 212 191 / 0.55), rgb(139 92 246 / 0.55));
}

.mini-line {
  height: 7px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.1);
}

.mini-line--short { width: 60%; }

.float-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: -18px;
  list-style: none;
  position: relative;
}

.float-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(21 21 29 / 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  color: var(--text);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.8);
}

.float-chips .icon {
  width: 1em;
  height: 1em;
  color: var(--teal);
}

.commits {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* lets long commit messages truncate instead of overflowing */
  gap: 8px;
  list-style: none;
}

.commits li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.02);
  font-size: 0.82rem;
}

.commits code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  color: var(--text);
}

.commit-role {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 26px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.commit-role--teal { background: rgb(45 212 191 / 0.14); color: var(--teal); }
.commit-role--violet { background: rgb(139 92 246 / 0.18); color: var(--violet-light); }
.commit-role--pink { background: rgb(244 114 182 / 0.14); color: var(--pink); }

.commit-ok {
  color: var(--teal);
  font-weight: 700;
}

.commits-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--dim);
}

.commits-foot .icon {
  color: var(--violet-light);
}

/* ---------- Pricing (cost transparency) ---------- */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
  gap: 20px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.price-card--muted {
  background: transparent;
}

.price-card--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(135deg, rgb(45 212 191 / 0.8), rgb(139 92 246 / 0.8), rgb(244 114 182 / 0.8)) border-box;
  box-shadow: 0 30px 80px -40px rgb(139 92 246 / 0.6);
}

.price-badge {
  position: absolute;
  top: clamp(26px, 3.5vw, 40px);
  right: clamp(26px, 3.5vw, 40px);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--aurora);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #07070a;
}

.price-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-amount {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.05em;
}

.price-amount small {
  font-size: 0.9rem;
  font-weight: 450;
  letter-spacing: 0;
  color: var(--muted);
}

.price-card--muted .price-amount {
  color: var(--dim);
}

.price-card--muted .price-amount s {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--pink);
}

.price-note {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.price-list {
  display: grid;
  gap: 0.15rem;
  margin: 1.6rem 0 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.92rem;
}

.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.4rem;
}

.price-list li b {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--teal);
  white-space: nowrap;
}

.price-list--muted li {
  justify-content: flex-start;
  gap: 0.7rem;
  color: var(--dim);
}

.price-list--muted li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--dim);
  align-self: flex-start;
}

.price-card .btn {
  margin-top: auto;
}

.price-footnote {
  max-width: 760px;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--dim);
}

/* ---------- Bento & spotlight cards ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "a a b"
    "c d b"
    "e f f";
  gap: 16px;
  list-style: none;
}

.tile--a { grid-area: a; }
.tile--b { grid-area: b; }
.tile--c { grid-area: c; }
.tile--d { grid-area: d; }
.tile--e { grid-area: e; }
.tile--f { grid-area: f; }

.tile,
.benefit,
.support-card,
.type-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.tile--a,
.tile--f {
  flex-direction: row;
  align-items: center;
}

.tile--a .tile-text,
.tile--f .tile-text {
  flex: 1 1 55%;
}

/* Cursor-following glow; --mx/--my are set from JS on pointer devices */
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(139 92 246 / 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.spotlight:hover::before {
  opacity: 1;
}

.spotlight:hover {
  border-color: var(--line-strong);
}

.spotlight > * {
  position: relative;
  z-index: 1;
}

.tile-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.01));
  color: var(--text);
}

.tile-icon .icon {
  width: 20px;
  height: 20px;
}

.tile h4,
.benefit h4 {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.tile p,
.benefit p {
  margin-top: 0.45rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.tile-art {
  flex: none;
}

.art-design {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 0 1 40%;
}

.specimen {
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.specimen small {
  margin-left: 0.15em;
  font-size: 0.5em;
  font-weight: 400;
}

.swatches {
  display: flex;
  gap: 6px;
}

.swatches i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}

.swatches i:nth-child(1) { background: #fbf7f2; }
.swatches i:nth-child(2) { background: #2dd4bf; }
.swatches i:nth-child(3) { background: #8b5cf6; }
.swatches i:nth-child(4) { background: #f472b6; }
.swatches i:nth-child(5) { background: #1f3b2d; }

.art-devices {
  position: relative;
  height: 170px;
  margin-top: auto;
}

.dev {
  position: absolute;
  bottom: 0;
  border: 1.5px solid rgb(255 255 255 / 0.22);
  border-radius: 10px;
  background: #0b0b10;
  overflow: hidden;
}

.dev i {
  position: absolute;
  inset: 10px;
  border-radius: 4px;
  background:
    linear-gradient(rgb(255 255 255 / 0.08) 0 0) 0 70% / 100% 6px no-repeat,
    linear-gradient(rgb(255 255 255 / 0.08) 0 0) 0 84% / 60% 6px no-repeat,
    linear-gradient(135deg, rgb(45 212 191 / 0.45), rgb(139 92 246 / 0.45)) 0 0 / 100% 50% no-repeat;
}

.dev--desktop { left: 0; width: 72%; height: 120px; bottom: 30px; }
.dev--tablet { left: 46%; width: 34%; height: 130px; border-radius: 12px; }
.dev--phone { right: 0; width: 20%; height: 100px; border-radius: 12px; }
.dev--phone i, .dev--tablet i { inset: 7px; }

.art-serp {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b10;
}

.serp-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal);
}

.serp-title {
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--violet-light);
}

.serp-line {
  height: 6px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.1);
}

.serp-line--short { width: 70%; }

.art-contact,
.art-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.art-contact span,
.art-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text);
}

.art-contact .icon {
  width: 1em;
  height: 1em;
  color: var(--teal);
}

.art-badges span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.art-badges span:first-child {
  border-color: rgb(45 212 191 / 0.45);
  color: var(--teal);
}

.art-access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  flex: 0 1 44%;
  list-style: none;
}

.art-access li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 8px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0b10;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.art-access span { color: var(--muted); }
.art-access b { font-weight: 500; color: var(--teal); white-space: nowrap; }

/* ---------- Panels (who can apply, what we need) ---------- */

.duo-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: clamp(26px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel h3 {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.3rem;
  list-style: none;
}

.tags li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
}

.panel-note {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.num-list {
  margin-top: 1.3rem;
  list-style: none;
  counter-reset: num;
}

.num-list li {
  position: relative;
  padding-left: 44px;
  counter-increment: num;
  font-size: 0.93rem;
  color: var(--muted);
}

.num-list li + li {
  margin-top: 0.9rem;
}

.num-list li::before {
  content: counter(num, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
}

/* ---------- Young creators ---------- */

.roles-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  margin-top: 0.8rem;
  border-top: 1px solid var(--line);
  list-style: none;
}

.role {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  column-gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s;
}

.role:hover {
  background: rgb(255 255 255 / 0.02);
}

.role-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgb(139 92 246 / 0.14);
  color: var(--violet-light);
}

.role-icon .icon {
  width: 20px;
  height: 20px;
}

.role h4 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.role p {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 2;
  margin-top: 0.8rem;
  list-style: none;
}

.tech li {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.benefit {
  padding: 28px;
}

.benefit .tile-icon {
  color: var(--violet-light);
}

.youth-req {
  margin-top: 16px;
  padding: clamp(26px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.youth-req h3 {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 1rem;
  list-style: none;
}

.req-grid li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--muted);
}

.req-k {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  padding-top: 0.2em;
}

.motto {
  max-width: 900px;
  margin: clamp(72px, 9vw, 120px) auto 0;
  text-align: center;
}

.motto blockquote {
  margin: 0;
}

.motto p {
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text);
  text-wrap: balance;
}

.motto figcaption {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ---------- Process timeline ---------- */

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

@media (min-width: 961px) {
  .process-head {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
}

.timeline-wrap {
  position: relative;
  view-timeline-name: --process;
}

.timeline-rail {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
  overflow: hidden;
}

.timeline-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--teal), var(--violet) 55%, var(--pink));
  box-shadow: 0 0 12px 1px rgb(139 92 246 / 0.7);
  transform-origin: top;
}

.timeline {
  list-style: none;
}

.t-step {
  position: relative;
  padding-left: 44px;
}

.t-step + .t-step {
  margin-top: clamp(36px, 4vw, 52px);
}

.t-dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--bg-alt);
  box-shadow: 0 0 0 4px var(--bg-alt), 0 0 14px 2px rgb(45 212 191 / 0.55);
}

.t-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--teal);
}

.t-step h3 {
  margin-top: 0.5rem;
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  letter-spacing: -0.03em;
}

.t-step p:last-child {
  margin-top: 0.4rem;
  max-width: 36em;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Quality ---------- */

.quality-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.quality-layout .section-head {
  margin-bottom: 0;
}

.icon-list {
  display: grid;
  gap: 22px;
  margin-top: 2.2rem;
  list-style: none;
}

.icon-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}

.icon-list .tile-icon {
  color: var(--pink);
}

.icon-list h3 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.icon-list p {
  margin-top: 0.25rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.terminal {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #0b0b10;
  box-shadow: 0 40px 80px -40px rgb(244 114 182 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.06);
  overflow: hidden;
  font-family: var(--font-mono);
  color: #c9c9d9;
}

.terminal-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #0e0e14;
}

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--dim);
  white-space: nowrap;
}

.terminal-body {
  display: grid;
  gap: 0.1rem;
  padding: 22px clamp(16px, 3vw, 26px) 24px;
  list-style: none;
  font-size: clamp(0.78rem, 0.74rem + 0.2vw, 0.88rem);
}

.terminal-body li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.35rem;
}

.terminal-cmd {
  margin-bottom: 0.4rem;
  color: var(--text);
}

.t-prompt { color: var(--violet-light); }
.t-ok { color: var(--teal); }

.t-val {
  margin-left: auto;
  padding-left: 1rem;
  color: var(--text);
  white-space: nowrap;
}

.terminal-done {
  margin-top: 0.6rem;
  padding-top: 0.9rem !important;
  border-top: 1px dashed var(--line-strong);
  font-weight: 600;
  color: var(--pink);
}

.terminal.is-armed .terminal-body li {
  opacity: 0;
  transform: translateX(-8px);
}

.terminal.is-armed.is-visible .terminal-body li {
  animation: type-in 0.4s var(--ease-out) forwards;
}

.terminal.is-visible .terminal-body li:nth-child(2) { animation-delay: 0.35s; }
.terminal.is-visible .terminal-body li:nth-child(3) { animation-delay: 0.6s; }
.terminal.is-visible .terminal-body li:nth-child(4) { animation-delay: 0.85s; }
.terminal.is-visible .terminal-body li:nth-child(5) { animation-delay: 1.1s; }
.terminal.is-visible .terminal-body li:nth-child(6) { animation-delay: 1.35s; }
.terminal.is-visible .terminal-body li:nth-child(7) { animation-delay: 1.6s; }
.terminal.is-visible .terminal-body li:nth-child(8) { animation-delay: 2s; }

@keyframes type-in {
  to { opacity: 1; transform: none; }
}

/* ---------- Site types ---------- */

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.type-card {
  display: flex;
  flex-direction: column;
}

.type-thumb {
  --a: var(--teal);
  padding: 26px 26px 0;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--a) 35%, transparent), transparent 70%);
  overflow: hidden;
}

.type-thumb--violet { --a: var(--violet); }
.type-thumb--pink { --a: var(--pink); }

.tw {
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #0b0b10;
  transform: translateY(6px);
  transition: transform 0.4s var(--ease-out);
}

.type-card:hover .tw {
  transform: translateY(0);
}

.tw-bar {
  display: flex;
  gap: 5px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}

.tw-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
}

.tw-body {
  display: grid;
  align-content: start;
  gap: 9px;
  height: 168px;
  padding: 14px;
}

.tw-hero {
  height: 60px;
  border-radius: 7px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--a) 70%, transparent), color-mix(in srgb, var(--a) 20%, transparent));
}

.tw-hero--heart {
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.tw-hero--heart i {
  width: 20px;
  height: 20px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.4-9-9.2C1.7 8.4 4 5 7.4 5c2 0 3.6 1.1 4.6 2.7C13 6.1 14.6 5 16.6 5 20 5 22.3 8.4 21 11.8 19 16.6 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.4-9-9.2C1.7 8.4 4 5 7.4 5c2 0 3.6 1.1 4.6 2.7C13 6.1 14.6 5 16.6 5 20 5 22.3 8.4 21 11.8 19 16.6 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tw-line {
  height: 6px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.1);
}

.tw-line--short { width: 62%; }

.tw-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.tw-gallery i {
  aspect-ratio: 1;
  border-radius: 5px;
  background: color-mix(in srgb, var(--a) 30%, transparent);
}

.tw-gallery i:nth-child(2n) {
  background: color-mix(in srgb, var(--a) 55%, transparent);
}

.tw-progress {
  height: 8px;
  margin-top: 4px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  overflow: hidden;
}

.tw-progress i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--a);
}

.tw-button {
  justify-self: start;
  margin-top: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  color: #000;
}

.tw-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--a) 60%, transparent), color-mix(in srgb, var(--violet) 40%, transparent));
}

.tw-event b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1;
  color: #000;
}

.tw-event small {
  font-size: 0.6rem;
  font-weight: 700;
}

.tw-event > span {
  display: grid;
  flex: 1;
  gap: 6px;
}

.tw-event > span i {
  height: 6px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.7);
}

.tw-event > span i:last-child {
  width: 60%;
  background: rgb(255 255 255 / 0.4);
}

.tw-schedule {
  display: grid;
  gap: 7px;
}

.tw-schedule i {
  position: relative;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.tw-schedule i::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 28px;
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--a) 45%, transparent);
}

.tw-schedule i::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 46px;
  right: 30%;
  height: 6px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.1);
}

.type-body {
  padding: 24px 26px 28px;
}

.type-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.type-body h3 {
  margin-top: 0.5rem;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.type-body p:last-child {
  margin-top: 0.5rem;
  font-size: 0.93rem;
  color: var(--muted);
}

/* ---------- Foundation & support ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: end;
  gap: clamp(28px, 5vw, 80px);
  margin-bottom: clamp(44px, 5vw, 64px);
}

.about h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
}

.about-text p {
  color: var(--muted);
}

.about-text p + p {
  margin-top: 1rem;
}

.about-text .link-arrow {
  margin-top: 1.3rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 3vw, 34px);
}

.support-card h3 {
  margin-top: 1.2rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.support-card > p {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.support-card > p:has(+ .mini-facts) {
  margin-bottom: 0;
}

.mini-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1.1rem 0 1.7rem;
  list-style: none;
}

.mini-facts li {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.support-card > .btn {
  margin-top: auto;
}

.support-card--donate {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(135deg, rgb(45 212 191 / 0.7), rgb(139 92 246 / 0.7), rgb(244 114 182 / 0.7)) border-box;
}

.support-card--donate .tile-icon {
  color: var(--pink);
}

.account {
  width: 100%;
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b10;
}

.account-label,
.account-title {
  font-size: 0.78rem;
  color: var(--muted);
}

.account-number {
  margin: 0.35rem 0;
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 3.4vw, 0.88rem);
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
}

.btn-copy {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  font-size: 0.88rem;
}

.btn-copy:hover .icon {
  transform: none;
}

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 16px;
  padding: clamp(22px, 3vw, 30px) clamp(26px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(30rem 10rem at 0% 50%, rgb(45 212 191 / 0.1), transparent 70%),
    var(--surface);
}

.callout .tile-icon {
  color: var(--teal);
}

.callout h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.callout p {
  margin-top: 0.25rem;
  font-size: 0.93rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 clamp(24px, 4vw, 56px);
}

.faq-col {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 1.25rem 2.8rem 1.25rem 0;
  font-size: 1.02rem;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--muted);
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}

.faq-item summary::after {
  transform: rotate(90deg);
}

.faq-item[open] summary::after {
  transform: rotate(0deg);
}

.faq-item summary:hover::before,
.faq-item summary:hover::after,
.faq-item[open] summary::before {
  background: var(--teal);
}

.faq-answer {
  padding: 0 2.8rem 1.4rem 0;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--muted);
}

.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
}

.faq-item[open]::details-content {
  block-size: auto;
}

/* ---------- Application forms ---------- */

.section--apply {
  overflow: clip;
}

.apply-aurora {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: -1;
  width: min(1100px, 120vw);
  height: 700px;
  background:
    radial-gradient(closest-side at 30% 50%, rgb(45 212 191 / 0.18), transparent),
    radial-gradient(closest-side at 70% 45%, rgb(139 92 246 / 0.24), transparent),
    radial-gradient(closest-side at 50% 80%, rgb(244 114 182 / 0.14), transparent);
  filter: blur(30px);
  transform: translateX(-50%);
  pointer-events: none;
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 28px;
  list-style: none;
}

.next-steps li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(15 15 20 / 0.6);
}

.next-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
}

.next-steps strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.next-steps span:last-child {
  font-size: 0.86rem;
  color: var(--muted);
}

.form-card {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(20px, 4.5vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: rgb(15 15 20 / 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 50px 100px -40px rgb(0 0 0 / 0.9);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 30px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0b10;
}

.tabs[hidden] {
  display: none;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.2;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 0 0 1px var(--line-strong);
}

.tab[aria-selected="true"] .icon {
  color: var(--teal);
}

.tab-panel + .tab-panel {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.tab-panel[hidden] + .tab-panel,
.tab-panel + .tab-panel[hidden] {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-title {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.form-hint {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.req {
  color: var(--pink);
}

.optional {
  font-weight: 400;
  color: var(--dim);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field > label:not(.choice),
.field legend {
  margin-bottom: 0.45rem;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text);
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.03);
  font-size: 0.97rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}

.field select {
  padding-right: 2.6rem;
  -webkit-appearance: none;
  appearance: none;
  background: rgb(255 255 255 / 0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.85rem center / 16px no-repeat;
  cursor: pointer;
}

.field select option {
  background: #15151d;
  color: var(--text);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6c6c80;
}

.field input:not([type="checkbox"]):not([type="radio"]):hover,
.field select:hover,
.field textarea:hover {
  border-color: rgb(255 255 255 / 0.24);
}

.field input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--violet);
  background-color: rgb(139 92 246 / 0.06);
  box-shadow: 0 0 0 3px rgb(139 92 246 / 0.3);
}

.field [aria-invalid="true"] {
  border-color: #fb7185 !important;
}

.field [aria-invalid="true"]:focus-visible {
  box-shadow: 0 0 0 3px rgb(251 113 133 / 0.25) !important;
}

.field-hint {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--dim);
}

.counter {
  flex: none;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--danger);
}

.field-error::before {
  content: "!";
  display: grid;
  flex: none;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: #fb7185;
  font-size: 0.72rem;
  font-weight: 800;
  color: #07070a;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.choice-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.02);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.choice:hover {
  border-color: rgb(255 255 255 / 0.24);
}

.choice:has(input:checked) {
  border-color: rgb(45 212 191 / 0.6);
  background: rgb(45 212 191 / 0.08);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.choice input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 0.12rem 0 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.choice input:focus-visible {
  outline: none;
}

.choice--consent {
  padding: 0;
  border: 0;
  background: none !important;
  font-size: 0.86rem;
  color: var(--muted);
}

.choice--notice {
  padding: 0.85rem 1rem;
  border: 1px solid rgb(251 191 36 / 0.35);
  background: rgb(251 191 36 / 0.07) !important;
  font-size: 0.88rem;
  color: #fde68a;
}

.choice--notice strong {
  color: #fef3c7;
}

.choice--consent:has(input:focus-visible) {
  border-radius: 6px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}

.form-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.form-note .icon {
  color: var(--teal);
}

.form-status:empty {
  display: none;
}

.form-status {
  margin-top: 16px;
  padding: 0.8rem 1rem;
  border: 1px solid rgb(251 113 133 / 0.35);
  border-radius: 10px;
  background: rgb(251 113 133 / 0.08);
  font-size: 0.9rem;
  font-weight: 500;
  color: #fecdd3;
}

.form-success {
  padding: clamp(20px, 4vw, 40px) 8px;
  text-align: center;
}

.form-success:focus {
  outline: none;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--aurora);
  color: #07070a;
  box-shadow: 0 0 40px -6px rgb(139 92 246 / 0.8);
}

.success-icon .icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.6;
}

.form-success h3 {
  margin-top: 1.3rem;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.form-success p {
  max-width: 34em;
  margin: 0.8rem auto 1.8rem;
  color: var(--muted);
}

.apply-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--muted);
}

.apply-contact .icon {
  color: var(--teal);
}

.apply-contact a {
  font-weight: 550;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.92rem;
  color: var(--muted);
  overflow: hidden;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand {
  color: var(--text);
}

.footer-brand p {
  max-width: 30em;
  margin-top: 1.1rem;
}

.footer-title {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col ul {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.footer-col address {
  font-style: normal;
  line-height: 1.8;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(44px, 6vw, 64px);
  padding-block: 22px;
  font-size: 0.84rem;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

.footer-wordmark {
  margin: 0 0 -0.22em;
  font-size: clamp(3rem, 12.5vw, 11.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* ---------- Simple content pages (privacy policy, 404) ---------- */

.page-hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  overflow: clip;
  isolation: isolate;
}

.page-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
  letter-spacing: -0.05em;
}

.page-hero p:not(.eyebrow) {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--dim);
}

.nowrap {
  white-space: nowrap;
}

.prose {
  max-width: 760px;
  padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 120px);
}

.prose h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  letter-spacing: -0.03em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin-top: 1rem;
  color: var(--muted);
}

.prose ul {
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose li::marker {
  color: var(--teal);
}

.prose a {
  color: var(--text);
}

.not-found {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--header-h));
  padding-block: 64px;
  text-align: center;
  isolation: isolate;
}

.not-found .not-found-code {
  margin: 0;
  font-size: clamp(6rem, 4rem + 10vw, 12rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.07em;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found h1 {
  margin-top: 1.5rem;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  letter-spacing: -0.04em;
}

.not-found p:not(.not-found-code) {
  max-width: 32em;
  margin: 1rem auto 2rem;
  color: var(--muted);
}

/* ---------- Scroll-driven effects (progressive enhancement, no JS) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }

    @keyframes reveal {
      from {
        opacity: 0;
        transform: translateY(28px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }

    /* Process rail fills as its section crosses the middle of the viewport */
    .timeline-glow {
      animation: rail-fill linear both;
      animation-timeline: --process;
      animation-range: cover 50vh cover calc(100% - 45vh);
    }

    @keyframes rail-fill {
      from { transform: scaleY(0); }
      to { transform: scaleY(1); }
    }

    /* Each marker lights up as it reaches the middle of the viewport */
    .t-dot {
      animation: dot-on linear both;
      animation-timeline: view();
      animation-range: cover 46% cover 50%;
    }

    @keyframes dot-on {
      from {
        border-color: rgb(255 255 255 / 0.22);
        box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 0 rgb(45 212 191 / 0);
      }
    }
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "a a"
      "b c"
      "b d"
      "e e"
      "f f";
  }

  .benefit-grid,
  .types-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-card--donate {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .role-list,
  .process-layout,
  .quality-layout,
  .about,
  .pricing {
    grid-template-columns: minmax(0, 1fr);
  }

  .aud-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .duo-panels,
  .req-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .window-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .editor {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .callout {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .callout .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-col + .faq-col {
    border-top: 0;
  }

  .types-grid,
  .support-grid,
  .next-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-grid,
  .choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .choice-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .tile--a,
  .tile--f {
    flex-direction: column;
    align-items: stretch;
  }

  .art-design {
    align-items: flex-start;
  }

  .window-tabs .window-tab:not(.is-active) {
    display: none;
  }
}

@media (max-width: 600px) {
  .bento,
  .benefit-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
  }

  .bento .tile {
    grid-area: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stat {
    padding: 20px 14px;
  }

  .req-grid li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .tab {
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.84rem;
  }

  .form-footer .btn {
    width: 100%;
  }

  .callout {
    grid-template-columns: minmax(0, 1fr);
  }

  .segment {
    padding-inline: 1rem;
  }

  .code {
    font-size: 0.72rem;
  }

  .code .ln {
    width: 34px;
  }

  .window-status .status-ok {
    margin-left: 0;
  }

  .pill {
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  .choice-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .window-url {
    display: none;
  }
}

/* ---------- Motion & print preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .stage,
  .form-card,
  .skip-link,
  .footer-wordmark {
    display: none !important;
  }

  html,
  body,
  .section,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  * {
    color: #000 !important;
  }
}
