/* Ukkometa.fi shared stylesheet: FI (/) and EN (/en/) homepages.
   Single source of truth. Both language versions load this file, so a change
   here lands on both. Do not re-inline it into either page. */

/* ════ Base, layout and sections ════ */
/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* LIGHT THEME (2026-07, see REDESIGN_PLAN.md Phase 3).
     Variable names kept from the dark era so every existing rule still works:
     --black = page bg, --white = strongest text/inverted surfaces. */
  --black:   #fafaf8;
  --off:     #f3f2ec;
  --surface: #ffffff;
  --border:  #e3e1da;
  --muted:   #706d66;  /* 4.9:1 on --black, 4.6:1 on --off */
  --subtle:  #5a5955;
  --body:    #3d3c38;
  --white:   #1a1a1a;
  --accent:  #7f6628;  /* 5.2:1 on --black; was #8a6f2f (4.6:1, under 4.5 on --off) */
  --accent2: #55524a;
  --intel:   #2a2a2a;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max: 1280px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(4rem, 10vw, 8rem); }
.divider { height: 1px; background: var(--border); }

/* ─── Nav ───────────────────────────────────────────────────── */
nav#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
nav#nav.scrolled {
  background: rgba(250,250,248,.92);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links li {
  display: flex;
  align-items: center;
}
.nav-links a {
  font-size: .875rem;
  color: var(--subtle);
  transition: color .2s;
  line-height: 1;
}
.nav-links a:hover { color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.nav-cta {
  font-size: .875rem;
  font-weight: 500;
  color: var(--white);
  border: 1px solid var(--border);
  padding: .45rem 1.1rem;
  border-radius: 6px;
  transition: border-color .2s, color .2s;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 720px) { .nav-links { display: none; } }

/* Mobile menu (burger) — Phase 4, REDESIGN_PLAN.md */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
nav#nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav#nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
nav#nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile {
  display: none;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  padding: .5rem var(--pad) 1rem;
}
nav#nav.menu-open .nav-mobile { display: block; }
.nav-mobile a {
  display: block;
  padding: .65rem 0;
  font-size: .95rem;
  color: var(--body);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
@media (max-width: 720px) {
  .nav-burger { display: flex; }
  nav#nav { background: var(--black); }
  .nav-cta { display: none; }
}

/* ─── Lang toggle pill ──────────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .3rem .7rem;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  transition: background .2s, color .2s;
  text-decoration: none;
  display: inline-block;
}
.lang-btn:not(.active):hover {
  background: rgba(0,0,0,0.08);
  color: var(--white);
}
.lang-btn.active {
  background: var(--white);
  color: var(--black);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: calc(100svh - 64px); /* the sticky header is in the flow above it */
  display: flex;
  align-items: center;
  padding-top: 0;
  position: relative;
  overflow: hidden;
}
/* ─── Swarm brain — pinned to right side of hero ─────────── */
#swarm-hero {
  position: absolute;
  top: 50%;
  right: calc((100vw - var(--max)) / 3);
  transform: translateY(-50%);
  width: 520px;
  height: 580px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: 0;
}
#swarm-hero.loaded { opacity: .85; }
#swarm-hero canvas { display: block; width: 100%; height: 100%; }

@media (max-width: 900px) {
  #swarm-hero { display: none; }
}

/* Page-wide grid — fixed, sits behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .10;
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
}

/* Hero grid removed — swarm brain replaces it */

.hero-content { position: relative; max-width: 780px; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(138,111,47,.2);
  padding: .3rem .75rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* UUDET SEO-OPTIMOIDUT OTSKIKKOTYYLIT */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 0.5rem;
  text-wrap: balance;
  max-width: 18ch;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2.1rem);
  font-weight: 600;
  color: var(--subtle);
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}

.hero-tagline em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--subtle);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Hero install block ───────────────────────────────────── */
.hero-install {
  width: 100%;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-install-bar {
  display: flex;
  align-items: center;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: .65rem 1rem;
  gap: .75rem;
  transition: border-color .2s;
  text-decoration: none;
}
.hero-install-bar:hover { border-color: var(--muted); }

.hero-install-bar .prompt {
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem;
  user-select: none;
  flex-shrink: 0;
}

.hero-install-bar .cmd {
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem;
  flex: 1;
}

.hero-install-bar .arrow {
  color: var(--muted);
  font-size: .75rem;
  flex-shrink: 0;
  transition: color .2s, transform .2s;
}
.hero-install-bar:hover .arrow {
  color: var(--white);
  transform: translateX(2px);
}

.hero-install-hint {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .5rem;
}
.hero-install-hint a {
  color: var(--subtle);
  border-bottom: 1px solid var(--border);
  transition: color .2s, border-color .2s;
}
.hero-install-hint a:hover {
  color: var(--white);
  border-color: var(--subtle);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  color: var(--black);
  font-size: .9rem;
  font-weight: 600;
  padding: .75rem 1.5rem;
  border-radius: 2px;
  transition: opacity .2s, transform .15s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--subtle);
  font-size: .9rem;
  font-weight: 500;
  padding: .75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--subtle); }

/* ─── Section labels ────────────────────────────────────────── */
.section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.section-body {
  font-size: 1.05rem;
  color: var(--subtle);
  max-width: 520px;
  line-height: 1.7;
}

/* ─── Proof bar ─────────────────────────────────────────────── */
/* ─── Proof + Blog strip ────────────────────────────────────── */
.proof-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 1.5rem 0;
}

.proof-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.proof-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.proof-items { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.proof-item { display: flex; flex-direction: column; gap: .1rem; }

.proof-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.proof-desc { font-size: .78rem; color: var(--muted); }

/* ─── Blog preview grid ─────────────────────────────────────── */
.blog-preview {
  padding-block: 2rem 2.5rem;
}

.blog-preview-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.blog-preview-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-preview-all {
  font-size: .8rem;
  color: var(--accent);
  text-decoration: none;
  opacity: .7;
  transition: opacity .2s;
}

.blog-preview-all:hover { opacity: 1; }

.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.blog-card {
  background: var(--off);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
  transition: background .2s;
  position: relative;
}

.blog-card:hover { background: var(--surface); }

.blog-card-meta {
  font-size: .7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.blog-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.blog-card--large .blog-card-title { font-size: 1.15rem; }
.blog-card--medium .blog-card-title { font-size: .95rem; }
.blog-card--small .blog-card-title { font-size: .82rem; }

.blog-card-excerpt {
  font-size: .82rem;
  color: var(--body);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card--small .blog-card-excerpt { display: none; }
.blog-card--medium .blog-card-excerpt { -webkit-line-clamp: 2; }

.blog-card-tag {
  font-size: .68rem;
  padding: .2em .55em;
  border: 1px solid rgba(138,111,47,.2);
  border-radius: 4px;
  color: var(--accent);
  align-self: flex-start;
  margin-top: auto;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .blog-card--small:nth-child(n+4) { display: none; }
}

@media (max-width: 560px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card--small { display: none; }
}

/* ─── Services ──────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 3.5rem;
}

.service-card {
  background: var(--off);
  padding: 2.5rem;
  transition: background .2s;
}
.service-card:hover { background: var(--surface); }

.service-icon {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(138,111,47,.08);
  border: 1px solid rgba(138,111,47,.15);
  border-radius: 2px;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}

.service-meta {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.service-desc {
  font-size: .9rem;
  color: var(--subtle);
  line-height: 1.65;
}

.service-link {
  display: block;
  margin-top: .15rem;
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: color .2s ease, border-color .2s ease;
}
.service-link::before { content: '→ '; opacity: .6; }
.service-link:hover { color: var(--white); border-bottom-color: currentColor; }

.service-list {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.service-list li {
  font-size: .85rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .78em;
  width: 10px;
  height: 1px;
  background: var(--muted);
  opacity: .6;
}

/* ─── Process ───────────────────────────────────────────────── */
.process-steps {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
/* The rule under each step fills as the reader passes it (--sp, set by site.js) */
.process-step::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(var(--sp, 0));
  transform-origin: left center;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
  line-height: 1;
  padding-top: .15rem;
  transition: color .5s ease, -webkit-text-stroke-color .5s ease;
}
.process-step.is-active .step-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
  letter-spacing: -.01em;
}

.step-desc {
  font-size: .95rem;
  color: var(--subtle);
  line-height: 1.7;
  max-width: 64ch;
}

/* ─── Portfolio ─────────────────────────────────────────────── */
.portfolio-card {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: 3.5rem;
  width: 100%;
  max-width: var(--max);
}

.portfolio-meta {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

.portfolio-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}

.portfolio-case {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.portfolio-media {
  display: block;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.portfolio-title-link {
  color: inherit;
  border-bottom: 1px solid rgba(138,111,47,.3);
  transition: border-color .2s, color .2s;
}
.portfolio-title-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.portfolio-media-stack {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
/* The chart is inverted to near-black; a black frame keeps the wipe reading as a line being drawn */
.portfolio-media-stack .portfolio-media:last-child { background: #000; }

.impressions-img {
  filter: invert(1) brightness(0.88) contrast(1.05);
  border-radius: 2px;
}

.portfolio-media img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.01);
  transition: transform .2s ease, opacity .2s ease;
  opacity: .95;
}

.portfolio-media:hover img {
  transform: scale(1.03);
  opacity: 1;
}

@media (max-width: 850px) {
  .portfolio-case { grid-template-columns: 1fr; }
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portfolio-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--surface);
  padding-bottom: 1.25rem;
}
.portfolio-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portfolio-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--body);
}

.portfolio-text {
  font-size: .95rem;
  color: var(--subtle);
  line-height: 1.6;
}

@media (max-width: 600px) { 
  .portfolio-row { grid-template-columns: 1fr; gap: .25rem; } 
}

/* ─── FAQ / UKK ─────────────────────────────────────────────── */
.faq-list {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: left;
  padding: 1.4rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color .2s;
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
  font-size: 1.25rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .25s, color .2s;
  line-height: 1;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  font-size: .95rem;
  color: var(--subtle);
  line-height: 1.7;
  padding-bottom: 1.5rem;
  max-width: 680px;
}

/* ─── Hands-on strip ───────────────────────────────────────── */
.handson-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 1.75rem;
}

.handson-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.handson-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.handson-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.handson-items {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.handson-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--subtle);
}

.handson-item i {
  color: var(--accent);
  font-size: .85rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* ─── Flagship strip ───────────────────────────────────────── */
.flagship-strip {
  border-bottom: 1px solid var(--border);
  padding-block: 2rem;
}

.flagship-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.flagship-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.flagship-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.flagship-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.flagship-install {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: .45rem .9rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: .82rem;
  color: var(--white);
  transition: border-color .2s;
  cursor: pointer;
  text-decoration: none;
}
.flagship-install:hover { border-color: var(--muted); }

.flagship-install .prompt { color: var(--muted); user-select: none; }

.flagship-hint {
  font-size: .75rem;
  color: var(--muted);
}
.flagship-hint a {
  color: var(--subtle);
  border-bottom: 1px solid var(--border);
  transition: color .2s, border-color .2s;
}
.flagship-hint a:hover { color: var(--white); border-color: var(--subtle); }

.flagship-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--subtle);
  transition: color .2s;
  white-space: nowrap;
}
.flagship-link:hover { color: var(--white); }

@media (max-width: 600px) {
  .flagship-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── Pricing ───────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.pricing-card {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color .2s;
  position: relative;
}
.pricing-card:hover { border-color: var(--subtle); }
.pricing-card.featured {
  border-color: rgba(138,111,47,.35);
  background: var(--surface);
}

.pricing-badge {
  position: absolute;
  top: -1px; right: 1.5rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--accent);
  padding: .25rem .65rem;
  border-radius: 0 0 6px 6px;
}

.pricing-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}

.pricing-price {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.pricing-amount {
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pricing-prefix {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: lowercase;
  width: 100%;
  margin-bottom: -.2rem;
}

.pricing-unit {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.3;
}

.pricing-vat {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.4;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
}

.pricing-desc {
  font-size: .9rem;
  color: var(--subtle);
  line-height: 1.65;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.pricing-list li {
  font-size: .85rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}
.pricing-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .78em;
  width: 10px;
  height: 1px;
  background: var(--muted);
  opacity: .6;
}

.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  padding: .7rem 1.25rem;
  border-radius: 2px;
  transition: opacity .2s, border-color .2s, color .2s;
  text-align: center;
}
.pricing-cta.primary {
  background: var(--white);
  color: var(--black);
}
.pricing-cta.primary:hover { opacity: .85; }
.pricing-cta.ghost {
  border: 1px solid var(--border);
  color: var(--subtle);
}
.pricing-cta.ghost:hover { border-color: var(--subtle); color: var(--white); }

/* ─── Add-on bar ────────────────────────────────────────────── */
.addon-bar {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: var(--off);
  position: relative;
}

.addon-label {
  position: absolute;
  top: -1px; left: 1.25rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--subtle);
  padding: .2rem .6rem;
  border-radius: 0 0 6px 6px;
}

.addon-icon {
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: .85rem;
  flex-shrink: 0;
}

.addon-content {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .75rem;
  flex: 1;
  min-width: 200px;
}

.addon-content strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.addon-content span {
  font-size: .85rem;
  color: var(--accent);
  font-weight: 600;
}

.addon-features {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-left: 2.35rem;
  margin-top: .25rem;
}
.addon-features li {
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.addon-features li i {
  color: var(--accent);
  opacity: .6;
  font-size: .8rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

/* Premium add-on (Agent Harness) */
.addon-bar.premium {
  border-color: rgba(138,111,47,.4);
  background: linear-gradient(to bottom right, var(--off), rgba(138,111,47,.03));
}
.addon-bar.premium .addon-label {
  background: var(--accent);
  color: var(--black);
}
.addon-bar.premium .addon-icon {
  color: var(--accent);
}
.addon-bar.premium .addon-features li i {
  color: rgba(138,111,47,.35);
}

.pricing-note {
  margin-top: 2rem;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* Ehdot hinnoittelun alla: mitä kiinteä hinta kattaa ja mihin se loppuu. */
.pricing-terms {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.pricing-terms-label {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.1rem;
}
.pricing-terms ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 920px;
  columns: 2 340px;
  column-gap: 2.75rem;
}
.pricing-terms li {
  position: relative;
  break-inside: avoid;
  margin-bottom: .7rem;
  padding-left: 1rem;
  font-size: .8rem;
  line-height: 1.65;
  color: var(--subtle);
}
.pricing-terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}

/* ─── CTA ───────────────────────────────────────────────────── */
.cta-section { text-align: center; }

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 680px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(138,111,47,.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box .section-title { margin-bottom: .75rem; }
.cta-box .section-body { margin-inline: auto; margin-bottom: 2rem; }

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ────────────────────────────────────────────────── */
footer:not(.um-foot) {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: 1.25rem;
}

/* ─── Spotlight grid ────────────────────────────────────────── */
.spotlight-section { padding: 3rem 0 0; }
.spotlight-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 700px) { .spotlight-grid { grid-template-columns: 1fr; } }

.spotlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .2s;
}
.spotlight-card:hover { border-color: var(--accent); }

.spotlight-card-top {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.spotlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: rgba(138,111,47,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.spotlight-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}
.spotlight-card-tag {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(138,111,47,.1);
  padding: .2rem .55rem;
  border-radius: 20px;
  margin-left: auto;
}
.spotlight-card-desc {
  font-size: .9rem;
  color: var(--subtle);
  line-height: 1.65;
}
.spotlight-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.spotlight-card-list li {
  font-size: .85rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}
.spotlight-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .78em;
  width: 10px;
  height: 1px;
  background: var(--accent);
  opacity: .55;
}
.spotlight-card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: .5rem;
  transition: gap .2s;
}
.spotlight-card-link:hover { gap: .65rem; }

/* ─── Service pill selector ─────────────────────────────────── */
.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.service-pill {
  padding: .4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  font-family: var(--font-body);
  user-select: none;
}
.service-pill:hover { border-color: var(--subtle); color: var(--white); }
.service-pill.active {
  border-color: var(--accent);
  background: rgba(138,111,47,.08);
  color: var(--accent);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo span { color: var(--accent); }
.footer-logo small {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .02em;
  margin-top: .15rem;
}

.footer-email-link {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-email-link:hover { color: var(--white); }

.footer-discord {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color .2s;
  align-self: flex-start;
  margin-left: auto;
  margin-top: .1rem;
}
.footer-discord:hover { color: #5865F2; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  align-items: flex-start;
  gap: 2.5rem;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 120px;
}
.footer-col-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .2rem;
}

.footer-copy { font-size: .8rem; color: var(--muted); }

.footer-biz {
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-biz span { opacity: .9; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  list-style: none;
  align-self: flex-start;
  margin-top: 0;
}
.footer-links a {
  font-size: .85rem;
  color: var(--subtle);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

.footer-socials {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.footer-social-icon {
  color: var(--muted);
  font-size: 1rem;
  transition: color .2s;
  text-decoration: none;
}
.footer-social-icon:hover { color: var(--white); }
.footer-social-icon.footer-discord:hover { color: #5865F2; }

.footer-legal { display: flex; gap: 1.25rem; list-style: none; }
.footer-legal a {
  font-size: .75rem;
  color: var(--muted);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--white); }

/* ─── Nav dropdown ──────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
  color: var(--subtle);
  font-size: .875rem;
  transition: color .2s;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  line-height: 1;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--white); }
.nav-dropdown-arrow {
  font-size: .55rem;
  transition: transform .2s;
  opacity: .4;
  margin-top: 1px;
}
.nav-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); opacity: 1; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: .75rem;
  padding: .75rem;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .85rem;
  border-radius: .5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  transition: background .15s, color .15s;
  gap: .5rem;
}
.nav-dropdown-menu a:hover {
  background: rgba(0,0,0,.06);
  color: var(--white);
}
.nav-dropdown-menu a .tool-badge {
  font-size: .65rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  color: var(--muted);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover .tool-badge {
  background: rgba(0,0,0,.14);
  color: var(--white);
}

/* ─── SEO Intel nav pill ──────────────────────────────────── */
.nav-pill-trigger {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  border: 1px solid rgba(26,26,26,.25);
  border-radius: 100px;
  background: rgba(26,26,26,.06);
  color: var(--intel);
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  line-height: 1;
}
.nav-pill-trigger:hover,
.nav-dropdown.open .nav-pill-trigger {
  border-color: var(--intel);
  background: rgba(26,26,26,.12);
  color: var(--white);
}
.nav-pill-dot {
  width: 6px; height: 6px;
  background: var(--intel);
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-pill-trigger .nav-dropdown-arrow {
  font-size: .5rem;
  opacity: .5;
  margin-left: .1rem;
}
.nav-pill-trigger:hover .nav-dropdown-arrow { opacity: 1; }

/* ─── Footer tools pill ─────────────────────────────────────── */
.footer-tools {
  margin-top: 1.25rem;
}
.footer-tools-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .5rem;
  opacity: .6;
}
.footer-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
}
.footer-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .2s, color .2s;
  background: rgba(0,0,0,.03);
}
.footer-tool-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer-tool-pill .pill-arrow {
  font-size: .65rem;
  opacity: .5;
  rotate: 0deg;
  transition: opacity .2s;
}
.footer-tool-pill:hover .pill-arrow { opacity: 1; }

/* ─── Tietoa meistä ─────────────────────────────────────────── */
.about-section {
  background: var(--off);
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.about-inner {
  max-width: 720px;
}
.about-story {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.about-story strong {
  color: var(--white);
  font-weight: 600;
}
.about-signature {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,.08);
  font-style: italic;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.about-signature strong {
  color: var(--white);
  font-style: normal;
  font-weight: 600;
}
.about-signature span {
  font-size: .9rem;
  color: var(--muted);
}
.about-origin {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.03);
  border-radius: 0 .5rem .5rem 0;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.7;
}
.about-origin em {
  color: var(--white);
  font-style: normal;
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-discord { margin-left: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .footer-biz { flex-direction: column; gap: .35rem; }
}


/* ─── Cookie consent banner ─────────────────────────────────── */
#cookieBanner {
  position: fixed;
  bottom: 1.5rem;
  left: 1rem;
  right: 1rem;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
  z-index: 999;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
#cookieBanner .cookie-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
#cookieBanner p {
  font-size: .875rem;
  color: var(--subtle);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
#cookieBanner p a { color: var(--accent); }
.cookie-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-cookie-accept {
  font-size: .875rem;
  font-weight: 600;
  background: var(--white);
  color: var(--black);
  border: none;
  padding: .6rem 1.25rem;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity .2s;
  font-family: var(--font-body);
}
.btn-cookie-accept:hover { opacity: .85; }
.btn-cookie-decline {
  font-size: .875rem;
  font-weight: 500;
  background: transparent;
  color: var(--subtle);
  border: 1px solid var(--border);
  padding: .6rem 1.25rem;
  border-radius: 2px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  font-family: var(--font-body);
}
.btn-cookie-decline:hover { color: var(--white); border-color: var(--subtle); }

/* ─── Pilotti / POC strip (free form) ─────────────────────── */
.pilotti-strip {
  background: linear-gradient(135deg, rgba(138,111,47,0.08), rgba(124,109,235,0.05));
  border: 1px solid rgba(138,111,47,0.22);
  border-radius: 2px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}
.pilotti-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}
.pilotti-meta { min-width: 0; }
.pilotti-badge {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(138,111,47,0.12);
  padding: .2rem .6rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: .65rem;
}
.pilotti-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: .5rem;
}
.pilotti-desc {
  font-size: .82rem;
  color: var(--subtle);
  line-height: 1.55;
  margin-bottom: .85rem;
}
.pilotti-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .35rem;
}
.pilotti-bullets li {
  font-size: .75rem;
  color: var(--body);
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  line-height: 1.4;
}
.pilotti-bullets li i {
  color: var(--accent);
  font-size: .85rem;
  margin-top: .15rem;
  flex-shrink: 0;
  width: .9rem;
}
/* Form */
.pilotti-form { display: grid; gap: .75rem; }
.pilotti-stepper { position: relative; }
.pilotti-step { display: grid; gap: .55rem; }
.pilotti-step[hidden] { display: none; }
.pilotti-step-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pilotti-progress {
  display: flex;
  gap: .35rem;
  justify-content: center;
  margin-top: .5rem;
}
.pilotti-progress-dot {
  width: 22px;
  height: 2px;
  background: rgba(0,0,0,0.15);
  transition: background .2s;
}
.pilotti-progress-dot.active { background: var(--accent); }
.pilotti-status {
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  margin: .25rem 0 0;
  min-height: 1em;
}
.pilotti-status.ok { color: var(--accent); }
.pilotti-status.err { color: #d97a7a; }
.pilotti-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.pilotti-form input[type="url"],
.pilotti-form input[type="email"],
.pilotti-form input[type="text"],
.pilotti-form input[type="tel"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: .6rem .75rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .82rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.pilotti-form input:focus {
  border-color: var(--accent);
}
.pilotti-form input::placeholder {
  color: var(--muted);
}
.pilotti-radios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  border: none;
  padding: 0;
  margin: 0;
}
.pilotti-radio {
  position: relative;
  cursor: pointer;
}
.pilotti-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pilotti-radio span {
  display: block;
  padding: .55rem .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: .72rem;
  color: var(--body);
  text-align: center;
  transition: border-color .15s, background .15s, color .15s;
  line-height: 1.25;
}
.pilotti-radio input:checked + span {
  border-color: var(--accent);
  background: rgba(138,111,47,0.12);
  color: var(--white);
}
.pilotti-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.3rem;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
  margin-top: .25rem;
}
.pilotti-cta:hover { opacity: .88; transform: translateY(-1px); }
.pilotti-fineprint {
  font-size: .68rem;
  color: var(--muted);
  line-height: 1.45;
  margin: .4rem 0 0;
}
@media (max-width: 900px) {
  .pilotti-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .pilotti-radios { grid-template-columns: 1fr; }
  .pilotti-form-row { grid-template-columns: 1fr; }
}

/* ─── Brand stamp ─── full-bleed UKKOMETA wordmark ─── */
.brand-stamp {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 1.25rem;
  margin-top: .5rem;
  background: var(--black);
  user-select: none;
  pointer-events: none;
}
.brand-stamp__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: min(9.6vw, 14rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--white);
  white-space: nowrap;
  text-align: center;
  width: 100%;
}
@media (max-width: 600px) {
  .brand-stamp { padding: .65rem 1rem .8rem; margin-top: .25rem; }
  .brand-stamp__word { font-size: 9.6vw; letter-spacing: -0.05em; }
}

/* ─── SEO Intel card · Apple-minimal ───────────────────────── */
.seo-intel-card {
  flex-shrink: 0;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.seo-intel-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(138,111,47,0.18);
}
.seo-intel-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.seo-intel-card__head {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.seo-intel-card__name {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0;
}
.seo-intel-card__tagline {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.seo-intel-card__price {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  align-self: flex-start;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgba(138,111,47,0.10);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: -.005em;
}
.seo-intel-card__price-from {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .62rem;
}
.seo-intel-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.seo-intel-card__features li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  color: var(--subtle, #c8c8c8);
  line-height: 1.35;
}
.seo-intel-card__features i {
  color: var(--accent);
  font-size: .7rem;
  flex-shrink: 0;
  width: .9rem;
}
.seo-intel-card__actions {
  display: flex;
  gap: .5rem;
  margin-top: .15rem;
}
.seo-intel-card__btn {
  flex: 1;
  text-align: center;
  font-size: .76rem;
  font-weight: 600;
  padding: .6rem .85rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  letter-spacing: -.005em;
}
.seo-intel-card__btn--ghost {
  color: var(--muted);
  border: 1px solid rgba(0,0,0,.1);
  background: transparent;
}
.seo-intel-card__btn--ghost:hover {
  color: var(--white);
  border-color: rgba(0,0,0,.25);
}
.seo-intel-card__btn--primary {
  background: var(--white);
  color: var(--black);
}
.seo-intel-card__btn--primary:hover { opacity: .85; }
@media (max-width: 600px) {
  .seo-intel-card { width: 100%; }
}


/* ════ Cursor, progress, section pill, reveal, terminal ════ */
/* ── CURSOR ──────────────────────────────────────────────────── */
#um-cursor-dot{width:5px;height:5px;background:var(--accent);border-radius:50%;position:fixed;top:0;left:0;pointer-events:none;z-index:9999;opacity:0;transform:translate3d(-100px,-100px,0);transition:opacity .3s,width .25s,height .25s;will-change:transform;}
#um-cursor-ring{width:30px;height:30px;border:1px solid rgba(138,111,47,.28);border-radius:50%;position:fixed;top:0;left:0;pointer-events:none;z-index:9998;opacity:0;transform:translate3d(-100px,-100px,0);transition:opacity .3s,width .4s cubic-bezier(.23,1,.32,1),height .4s cubic-bezier(.23,1,.32,1),border-color .3s;will-change:transform;}
.um-cursor-on #um-cursor-dot,.um-cursor-on #um-cursor-ring{opacity:1;}
body.um-hover #um-cursor-ring{width:50px;height:50px;border-color:rgba(138,111,47,.55);}
body.um-hover #um-cursor-dot{width:3px;height:3px;opacity:.5;}
@media(hover:none),(prefers-reduced-motion:reduce){#um-cursor-dot,#um-cursor-ring{display:none;}}

/* ── SCROLL PROGRESS ─────────────────────────────────────────── */
#um-scroll-progress{position:fixed;top:0;left:0;height:2px;width:100%;background:var(--accent);transform-origin:left center;transform:scaleX(0);z-index:10001;}

/* ── SECTION INDICATOR ───────────────────────────────────────── */
#um-section-pill{position:fixed;right:1.25rem;top:50%;transform:translateY(-50%);z-index:500;display:flex;flex-direction:column;align-items:center;gap:.5rem;opacity:0;transition:opacity .4s;pointer-events:none;}
#um-section-pill.visible{opacity:1;}
#um-section-label{writing-mode:vertical-rl;font-size:.62rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);background:var(--surface);border:1px solid var(--border);padding:.75rem .45rem;border-radius:100px;white-space:nowrap;transition:color .3s;}
.um-section-dots{display:flex;flex-direction:column;gap:.45rem;}
.um-section-dot{width:5px;height:5px;padding:0;border:0;border-radius:50%;background:var(--border);transition:background .3s,transform .3s;cursor:pointer;pointer-events:all;}
.um-section-dot.active{background:var(--accent);transform:scale(1.6);}
@media(max-width:900px){#um-section-pill{display:none;}}

/* ── REVEAL ANIMATIONS ───────────────────────────────────────── */
/* Reveal, line masks, wipes: see MOTION at the end of this file */

/* ── TERMINAL ────────────────────────────────────────────────── */
.um-terminal{background:var(--off);border:1px solid var(--border);border-radius:2px;overflow:hidden;font-family:'JetBrains Mono',monospace;transition:border-color .2s;}
.um-terminal:hover{border-color:var(--muted);}
.um-term-chrome{background:var(--surface);border-bottom:1px solid var(--border);padding:.6rem 1rem;display:flex;align-items:center;gap:.75rem;}
.um-term-dots{display:flex;gap:.4rem;}
.um-term-dot{width:10px;height:10px;border-radius:50%;}
.um-term-dot.r{background:#ff5f57;} .um-term-dot.y{background:#febc2e;} .um-term-dot.g{background:#28c840;}
.um-term-tabs{display:flex;gap:2px;margin-left:.25rem;}
.um-term-tab{font-size:.7rem;font-weight:600;letter-spacing:.04em;color:var(--muted);padding:.25rem .65rem;border-radius:5px;cursor:pointer;border:1px solid transparent;background:transparent;font-family:'JetBrains Mono',monospace;transition:color .2s,background .2s,border-color .2s;}
.um-term-tab.active{color:var(--white);background:rgba(0,0,0,.07);border-color:var(--border);}
.um-term-tab:not(.active):hover{color:var(--subtle);}
.um-term-body{padding:1rem 1.25rem;font-size:.82rem;line-height:1.9;min-height:80px;}
.um-term-line{display:block;}
.um-term-prompt{color:var(--accent);}
.um-term-cmd{color:var(--white);}
.um-term-out{color:var(--muted);}
.um-term-cursor{display:inline-block;width:7px;height:12px;background:var(--accent);vertical-align:middle;margin-left:2px;animation:um-blink .85s step-end infinite;}
@keyframes um-blink{0%,100%{opacity:1}50%{opacity:0}}


/* ════ Services: AI triage demo ════ */
/* Borrowed from the Remotion system (src/timing.ts, src/theme.ts):
   EXPO_OUT is the same bezier used on counters and typewriters there,
   and the accent triad mirrors theme.ts's base / soft / glow trio. */
.aibox {
  margin-top: 3.2rem;
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --accent-soft: rgba(138, 111, 47, .13);
  --accent-glow: rgba(138, 111, 47, .40);
}
.aibox-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.aibox-label { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ab-steps { display: flex; gap: .4rem; }
.ab-step {
  font-family: inherit; font-size: .7rem; font-weight: 600; line-height: 1;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  transition: background .3s var(--ease-expo), color .3s var(--ease-expo), border-color .3s var(--ease-expo);
}
.ab-step:hover { border-color: var(--muted); color: var(--white); }
.ab-step[aria-current="true"] { background: var(--white); border-color: var(--white); color: var(--black); }

.aibox-stage {
  width: 100%; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 2px;
  overflow: hidden; container-type: inline-size;
  /* Two off-centre washes at ~9%, the same trick the Remotion scenes use
     to stop a flat panel reading as dead space. */
  background:
    radial-gradient(72% 58% at 78% 22%, rgba(138,111,47,.055), transparent 70%),
    radial-gradient(58% 60% at 10% 88%, rgba(85,82,74,.045), transparent 72%),
    var(--surface);
}
.ab-grid {
  display: grid;
  grid-template-columns: 1.05fr auto 1.35fr auto .95fr;
  gap: clamp(.6rem, 1.6cqw, 1.4rem);
  padding: clamp(.85rem, 2cqw, 1.5rem);
  align-items: start;
  /* The catalogue row is kept in flow (visibility, not display) so every
     act is naturally the same height. This just pins that height so a
     slow font load cannot resize the box mid-cycle. */
  min-height: 216px;
}
.ab-col { display: flex; flex-direction: column; min-width: 0; }
.ab-n {
  font-family: 'JetBrains Mono', monospace; color: var(--accent);
  margin-right: .35rem; letter-spacing: 0;
}

/* Flow connectors. They stay grey until the stage they feed has actually
   run, so the diagram reads as a pipeline advancing rather than decoration. */
.ab-arrow { align-self: center; display: flex; padding-top: 1.1rem; }
.ab-arrow svg { width: clamp(18px, 3cqw, 34px); height: 12px; overflow: visible; }
        .ab-arrow path { fill: none; stroke: var(--border); stroke-width: 1.4; transition: stroke .6s var(--ease-expo), fill .6s var(--ease-expo); }
/* Flowchart convention: the branch point is a decision node. */
.ab-arrow .dia { fill: var(--surface); transition: fill .6s var(--ease-expo), stroke .6s var(--ease-expo); }
.ab-arrow.on .dia { fill: var(--accent-soft); stroke: var(--accent); }
.ab-arrow.on path { stroke: var(--accent); }
.ab-arrow .ln { stroke-dasharray: 3 3; }
.ab-arrow.on .ln { animation: abflow 1.1s linear infinite; }
@keyframes abflow { to { stroke-dashoffset: -6; } }

/* What the model is doing right now. */
.ab-status {
  display: flex; align-items: center; gap: .4rem; flex: none;
  margin-bottom: .5rem; min-height: 1.5em;
  font-size: clamp(.55rem, 1.02cqw, .7rem); color: var(--accent);
  transition: color .5s var(--ease-expo), opacity .48s var(--ease-expo);
}
/* Port of ui.tsx <LiveDot/>: a blurred halo scaling behind a solid core. */
.ab-status .dot { position: relative; width: 8px; height: 8px; flex: none; }
.ab-status .dot i, .ab-status .dot b {
  position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
}
.ab-status .dot i { filter: blur(4px); animation: abglow 1.9s ease-in-out infinite; }
.ab-status .dot b { animation: abcore 1.9s ease-in-out infinite; }
@keyframes abglow { 0%,100% { transform: scale(1);   opacity: .45; }
                    50%     { transform: scale(1.8); opacity: .85; } }
@keyframes abcore { 0%,100% { transform: scale(1); } 50% { transform: scale(.8); } }
.ab-status.done { color: var(--muted); }
.ab-status.done .dot i { animation: none; opacity: 0; }
.ab-status.done .dot b { animation: none; background: var(--muted); }

.ab-h {
  font-size: clamp(.56rem, 1.05cqw, .68rem); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .5rem; flex: none;
}

/* ── incoming mail card ── */
.ab-mail {
  border: 1px solid var(--border); border-radius: 2px; background: var(--off);
  padding: clamp(.5rem, 1.3cqw, .9rem); flex: none;
  opacity: 0; transform: translateX(-10px); filter: blur(4px);
  transition: opacity .6s var(--ease-expo), transform .6s var(--ease-expo), filter .6s var(--ease-expo), border-color .6s var(--ease-expo);
}
.ab-mail.in { opacity: 1; transform: none; filter: blur(0); }
.ab-mail.hot { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.ab-from { font-size: clamp(.55rem, 1cqw, .68rem); color: var(--muted); }
.ab-subj { font-size: clamp(.68rem, 1.35cqw, .88rem); font-weight: 500; color: var(--white); margin-top: .12rem; line-height: 1.3; }
.ab-body { font-size: clamp(.58rem, 1.1cqw, .74rem); color: var(--subtle); margin-top: .35rem; line-height: 1.45; }
.ab-att {
  display: flex; align-items: center; gap: .4rem; margin-top: .5rem;
  padding: .3rem .45rem; border: 1px dashed var(--border); border-radius: 2px;
  font-size: clamp(.53rem, .95cqw, .66rem); color: var(--muted);
  opacity: 0; transition: opacity .55s var(--ease-expo), border-color .55s var(--ease-expo), color .55s var(--ease-expo);
}
.ab-att.in { opacity: 1; }
.ab-att.hot { border-color: var(--accent); border-style: solid; color: var(--accent); }
.ab-att svg { width: 12px; height: 12px; flex: none; }

/* ── interpretation column ── */
.ab-read { display: flex; flex-direction: column; min-width: 0; position: relative; }
.ab-read::after {
  content: ''; position: absolute; left: -.4rem; right: -.4rem; height: 34%;
  top: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(138,111,47,.075), transparent);
  transition: opacity .6s var(--ease-expo);
}
/* The sweep fades out before it wraps, so the loop has no visible cut. */
.ab-read.working::after { opacity: 1; animation: abscan 3.6s linear infinite; }
@keyframes abscan {
  0%   { transform: translateY(-40%); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateY(240%); opacity: 0; }
}
.ab-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .26rem; }
.ab-line {
  display: flex; align-items: baseline; gap: .4rem;
  font-size: clamp(.57rem, 1.08cqw, .73rem); line-height: 1.35;
  opacity: 0; transform: translateY(4px); filter: blur(3px);
  transition: opacity .5s var(--ease-expo), transform .5s var(--ease-expo), filter .5s var(--ease-expo);
}
.ab-line.in { opacity: 1; transform: none; filter: blur(0); }
.ab-k { color: var(--muted); flex: none; }
.ab-v { color: var(--white); font-weight: 500; }
.ab-line.think .ab-v { color: var(--accent); }

/* ── probability bars ── */
.ab-bars { margin-top: .65rem; display: flex; flex-direction: column; gap: .42rem; flex: none; }
.ab-bar { display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; align-items: center;
  opacity: 0; transition: opacity .5s var(--ease-expo); }
.ab-bars.in .ab-bar { opacity: 1; }
.ab-bname { font-size: clamp(.55rem, 1.02cqw, .7rem); color: var(--subtle); transition: color .5s var(--ease-expo); }
.ab-bpct { font-family: 'JetBrains Mono', monospace; font-size: clamp(.52rem, .97cqw, .67rem); font-variant-numeric: tabular-nums; color: var(--muted); transition: color .5s var(--ease-expo); }
.ab-btrack { grid-column: 1 / -1; height: 7px; margin-top: .1rem; border-radius: 1px; background: var(--off); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.ab-bfill { height: 100%; width: 0%; border-radius: 1px; background: #c9c6bd; transition: background .5s var(--ease-expo); }
.ab-bar.win .ab-bname, .ab-bar.win .ab-bpct { color: var(--white); font-weight: 600; }
.ab-bar.win .ab-bfill { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

/* ── catalog lookup (act 3) ── */
.ab-cat {
  margin-top: .5rem; border: 1px solid var(--border); border-radius: 2px;
  background: var(--off); flex: none;
  font-size: clamp(.55rem, 1.02cqw, .7rem);
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
  padding: .3rem .55rem;
  opacity: 0; transform: translateY(-3px);
  transition: opacity .5s var(--ease-expo), transform .5s var(--ease-expo), border-color .5s var(--ease-expo);
}
.ab-cat.in { opacity: 1; transform: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ab-cat-h { color: var(--muted); flex: none; }
.ab-cat-row { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.ab-cat-sku { font-family: 'JetBrains Mono', monospace; font-size: .92em; color: var(--accent); }
.ab-cat-name { color: var(--white); font-weight: 500; }

/* ── folders ── */
.ab-folders { display: flex; flex-direction: column; gap: .4rem; }
.ab-folder {
  border: 1px solid var(--border); border-radius: 2px; background: var(--off);
  padding: clamp(.38rem, .95cqw, .6rem) clamp(.45rem, 1.1cqw, .7rem);
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  transition: border-color .55s var(--ease-expo), background .55s var(--ease-expo), transform .55s var(--ease-expo);
}
.ab-folder.hit { border-color: var(--accent); background: #fff; transform: translateX(-3px); box-shadow: 0 0 0 3px var(--accent-soft), 0 6px 18px rgba(138,111,47,.10); }
.ab-fname { font-size: clamp(.57rem, 1.06cqw, .72rem); color: var(--subtle); transition: color .55s var(--ease-expo); }
.ab-folder.hit .ab-fname { color: var(--white); font-weight: 500; }
.ab-fcount {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(.5rem, .9cqw, .62rem); font-variant-numeric: tabular-nums;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px; padding: .04rem .38rem; transition: color .55s var(--ease-expo), border-color .55s var(--ease-expo);
}
.ab-folder.hit .ab-fcount { color: var(--accent); border-color: var(--accent); }
.ab-route {
  margin-top: .6rem; font-size: clamp(.55rem, 1.02cqw, .7rem); color: var(--muted);
  opacity: 0; transform: translateY(4px); transition: opacity .55s var(--ease-expo), transform .55s var(--ease-expo);
}
.ab-route.in { opacity: 1; transform: none; }
.ab-route b { color: var(--white); font-weight: 600; }

/* All three captions live in the DOM and stack in one grid cell, so the
   box shows a single text area while a crawler still reads every case.
   Nothing is hidden that a visitor cannot reach: the acts cycle. */
.aibox-caps {
  display: grid; border-top: 1px solid var(--border); background: var(--off);
}
.aibox-cap {
  grid-area: 1 / 1; margin: 0;
  padding: clamp(.6rem, 1.5cqw, .9rem) clamp(.85rem, 2cqw, 1.5rem);
  font-size: clamp(.68rem, 1.15cqw, .8rem); line-height: 1.5; color: var(--subtle);
  opacity: 0; transition: opacity .6s var(--ease-expo);
}
.aibox-cap.on { opacity: 1; }

/* An act eases out before the next begins. Clearing the whole stage in a
   single frame is what made the loop read as a cut rather than a flow. */
.aibox.leaving .ab-mail,
.aibox.leaving .ab-att,
.aibox.leaving .ab-line,
.aibox.leaving .ab-bars,
.aibox.leaving .ab-cat,
.aibox.leaving .ab-route,
.aibox.leaving .ab-status,
.aibox.leaving .aibox-cap { opacity: 0; transition: opacity .48s var(--ease-expo); }

/* Below this the three columns cannot hold their content legibly, so the
   stage stops being 16:9 and simply grows with the stacked layout. */
@media (max-width: 760px) {
  .ab-grid { grid-template-columns: 1fr; gap: .75rem; min-height: 0; }
  .ab-arrow { padding-top: 0; justify-content: center; transform: rotate(90deg); }
  .ab-h { margin-bottom: .35rem; }
  .ab-route { margin-top: .6rem; }
  /* cqw units bottom out on a ~310px container and every clamp() lands on
     its floor, which put body text at 8.8px. Stacked layout has the room,
     so set real sizes here instead of scaling with the container. */
  .ab-h { font-size: .64rem; }
  .ab-from, .ab-att, .ab-fcount { font-size: .72rem; }
  .ab-subj { font-size: .95rem; }
  .ab-body, .ab-line, .ab-bname, .ab-bpct, .ab-fname, .ab-route, .ab-cat, .ab-status { font-size: .81rem; }
  .aibox-cap { font-size: .81rem; }
}
@media (prefers-reduced-motion: reduce) {
  .aibox-stage *, .aibox-cap { transition: none !important; }
  .ab-arrow.on .ln, .ab-status .dot i, .ab-status .dot b,
  .ab-read.working::after { animation: none !important; }
  .ab-read::after { opacity: 0 !important; }
}


/* ════ Pro pass 2026-10-17: layout for the new and reworked sections ════ */

.nowrap { white-space: nowrap; }
.inline-link { color: var(--accent); border-bottom: 1px solid rgba(127,102,40,.3); transition: border-color .2s; }
.inline-link:hover { border-color: var(--accent); }

/* Hero: who, what, two actions. The install terminal lives in the SEO Intel band. */
.hero { padding-block: 96px 64px; }
.hero-actions { margin-bottom: 1.25rem; }
.hero-aside {
  font-size: .88rem;
  color: var(--subtle);
}
.hero-aside a { color: var(--white); border-bottom: 1px solid var(--border); transition: border-color .2s; }
.hero-aside a:hover { border-color: var(--white); }

/* Proof bar: four facts, 2 × 2 on phones */
.proof-bar { padding-block: 0; }
.proof-inner { padding-block: 1.6rem; border-bottom: 0; gap: 2.5rem; }
.proof-items { gap: 1.5rem 3rem; }
@media (max-width: 720px) {
  .proof-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .proof-items { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 1.25rem 1.5rem; }
}

/* Services intro reads as one paragraph, not a narrow column */
#palvelut .section-body, #services .section-body { max-width: 620px; }

/* SEO Intel band: our own product, between services and process */
.intel-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.intel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.intel-copy .section-body { max-width: 560px; margin-bottom: 1.75rem; }
.intel-install { max-width: 560px; margin-bottom: 1.5rem; }
.intel-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.intel-links .text-link { font-size: .88rem; color: var(--subtle); border-bottom: 1px solid var(--border); }
.intel-links .text-link:hover { color: var(--white); border-color: var(--subtle); }
@media (max-width: 900px) {
  .intel-inner { grid-template-columns: 1fr; }
  .intel-band .seo-intel-card { width: 100%; max-width: 420px; }
}
.um-term-ok { color: #2f7a45; }

/* Direct-contact strip: one row of four on desktop */
.handson-inner { flex-direction: row; align-items: center; gap: 2.5rem; }
.handson-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 2rem; flex: 1; }
.handson-item { align-items: flex-start; line-height: 1.5; }
.handson-item i { margin-top: .2rem; }
@media (max-width: 1000px) {
  .handson-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .handson-items { grid-template-columns: 1fr 1fr; width: 100%; }
}
@media (max-width: 560px) { .handson-items { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-head { max-width: 640px; margin-bottom: 2.5rem; }
.pricing-head .section-body { max-width: none; }
.pricing-list li.pricing-extra { color: var(--accent); margin-top: .25rem; }
.pilotti-cta:focus-visible, .btn-primary:focus-visible, .btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* References */
.portfolio-card + .portfolio-card { margin-top: 1.5rem; }
.portfolio-note { font-size: .78rem; color: var(--muted); margin-top: .35rem; }

/* About: story on the left, company facts on the right */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-grid .about-inner { max-width: 680px; }
.about-story { color: var(--subtle); }
.about-card {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.75rem;
}
.about-card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.about-card__mark {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.about-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--white); line-height: 1.2; }
.about-card__role { font-size: .82rem; color: var(--muted); }
.about-facts { display: grid; grid-template-columns: auto 1fr; gap: .65rem 1.25rem; font-size: .85rem; margin: 0; }
.about-facts dt { color: var(--muted); }
.about-facts dd { color: var(--white); margin: 0; }
.about-facts a { color: var(--white); border-bottom: 1px solid var(--border); }
.about-facts a:hover { border-color: var(--white); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
}

/* Contact: details on the left, the form in a card on the right */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-copy .section-body { margin-bottom: 2rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; font-size: .92rem; color: var(--subtle); line-height: 1.5; }
.contact-list i { color: var(--accent); margin-top: .25rem; font-size: .85rem; }
.contact-list strong { display: block; color: var(--white); font-weight: 600; }
.contact-list a { color: var(--white); border-bottom: 1px solid var(--border); transition: border-color .2s; }
.contact-list a:hover { border-color: var(--white); }
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1.5rem; }
.form-field + .form-field { margin-top: 0; }
.form-field.full { margin-top: 1rem; }
.form-input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: .75rem 1rem;
  color: var(--white);
  font: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.form-input::placeholder { color: var(--muted); opacity: .8; }
.form-input:focus { border-color: var(--accent); background: var(--surface); }
textarea.form-input { resize: vertical; min-height: 7.5rem; line-height: 1.6; }
.form-actions { margin-top: 1.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-actions .btn-primary { border: 0; cursor: pointer; font-family: inherit; }
.form-status { font-size: .875rem; color: var(--muted); }
.form-status.ok { color: #2f7a45; }
.form-status.err { color: #b42318; }
.form-fineprint { font-size: .75rem; color: var(--muted); margin-top: 1rem; }
.form-fineprint a { color: var(--subtle); border-bottom: 1px solid var(--border); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Footer: the second link column needs no visible label */
.footer-col-label.is-spacer { visibility: hidden; }
@media (max-width: 900px) { .footer-col-label.is-spacer { display: none; } }


/* ════ MOTION ════
   Everything below is progressive: the classes are added by /assets/site.js,
   and nothing hides content unless JS has run and motion is allowed. */

:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-soft: cubic-bezier(.23, 1, .32, 1); }

/* Hero entrance: badge, title, tagline, copy, actions, one after another */
@keyframes um-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes um-mask {
  from { opacity: 0; transform: translateY(.3em); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
.js .hero-badge   { animation: um-rise .8s var(--ease-out) .05s backwards; }
.js .hero-title   { animation: um-mask 1s var(--ease-out) .15s backwards; }
.js .hero-tagline { animation: um-rise .8s var(--ease-out) .45s backwards; }
.js .hero-sub     { animation: um-rise .8s var(--ease-out) .55s backwards; }
.js .hero-actions { animation: um-rise .8s var(--ease-out) .65s backwards; }
.js .hero-aside   { animation: um-rise .8s var(--ease-out) .75s backwards; }
.js .proof-bar    { animation: um-rise .9s var(--ease-out) .85s backwards; }

/* Scroll reveal */
.um-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
.um-reveal.um-visible { opacity: 1; transform: none; }

/* Section titles: each line rises from behind its own mask */
.um-lines .um-line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.um-lines .um-line > span { display: block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--li, 0) * 90ms); }
.um-lines.um-visible .um-line > span { transform: none; }

/* Case screenshots wipe in from the left; the chart reads as being drawn.
   The clip sits on the image, not the observed box: Chrome reports an element
   clipped by its own clip-path as not intersecting, so it would never reveal. */
.um-wipe img { clip-path: inset(0 100% 0 0); transform: scale(1.04); transition: clip-path 1.1s var(--ease-out), transform 1.4s var(--ease-out); }
.um-wipe.um-visible img { clip-path: inset(0 0 0 0); transform: none; }
.portfolio-media-stack .um-wipe + .um-wipe img { transition-duration: 1.9s, 1.4s; transition-delay: .3s, .3s; transition-timing-function: cubic-bezier(.45, .05, .35, 1), var(--ease-out); }

/* Footer wordmark: letters rise in sequence */
.um-letters > span { display: inline-block; transform: translateY(70%); opacity: 0; transition: transform .9s var(--ease-out), opacity .6s ease; transition-delay: calc(var(--ci) * 45ms); }
.um-letters.um-visible > span { transform: none; opacity: 1; }

/* Cards answer the pointer */
.service-card, .pricing-card { transition: background .25s, border-color .25s, transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft); }
@media (hover: hover) {
  .pricing-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(26,26,26,.25); }
  .um-wipe.um-visible:hover img { transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-badge, .js .hero-title, .js .hero-tagline, .js .hero-sub,
  .js .hero-actions, .js .hero-aside, .js .proof-bar { animation: none; }
  .um-term-cursor { animation: none; }
  .pricing-card:hover { transform: none; }
}
.footer-fact { font-size: .8rem; color: var(--subtle); line-height: 1.6; }

/* Add-on: icon and title on one line, features underneath */
.addon-item { display: flex; flex-wrap: wrap; align-items: center; column-gap: .9rem; width: 100%; }
.addon-item .addon-icon, .addon-item .addon-content { margin-top: .9rem; }
.addon-item .addon-content { flex: 1; }
.addon-item .addon-features { padding-left: 2rem; margin-top: .75rem; }

@media (max-width: 600px) {
  .footer-biz span:nth-child(2) { display: none; }
}

/* Cookie card sits bottom-right on wide screens, over the swarm rather than
   over the hero copy and its buttons (it covered both on a 1366×768 laptop). */
@media (min-width: 901px) {
  #cookieBanner { left: auto; right: 1.5rem; }
}

/* Phones: a compact hero, so the proof bar starts on the first screen */
@media (max-width: 720px) {
  .hero { min-height: auto; padding-block: 44px 56px; }
}
