/* ============================================================
   SELORA DESIGN SYSTEM v2
   Web design studio. Rich, layered, editorial.
   Vanilla CSS. No build step. Consumed by every page.
   ============================================================ */

:root {
  /* ---- Brand ---- */
  --blue-900: #0b2a8f;
  --blue-800: #12379f;
  --blue-700: #1D4ED8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60A5FA;
  --blue-300: #93c5fd;
  --blue-200: #bfdbfe;
  --blue-050: #eff6ff;

  /* ---- Neutrals ---- */
  --ink-950: #050a14;
  --ink-900: #060c18;
  --ink-850: #080e1c;
  --ink-800: #0f172a;
  --ink-700: #1e293b;
  --ink-500: #475569;
  --ink-400: #64748b;
  --ink-300: #94a3b8;
  --ink-200: #cbd5e1;
  --ink-100: #e2e8f0;
  --ink-050: #f1f5f9;
  --paper:   #f8fafc;
  --white:   #ffffff;

  /* ---- Accent (used sparingly, for energy) ---- */
  --accent-warm: #f59e0b;
  --accent-mint: #10b981;

  /* ---- Type scale (fluid) ---- */
  --fs-display: clamp(3rem, 9vw, 8rem);
  --fs-h1:      clamp(2.5rem, 6vw, 5rem);
  --fs-h2:      clamp(2rem, 4.2vw, 3.25rem);
  --fs-h3:      clamp(1.25rem, 2vw, 1.75rem);
  --fs-lead:    clamp(1.05rem, 1.5vw, 1.35rem);
  --fs-body:    0.95rem;
  --fs-sm:      0.82rem;
  --fs-xs:      0.72rem;
  --fs-eyebrow: 0.68rem;

  /* ---- Spacing (4px grid) ---- */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem;  --s-8: 2rem;    --s-10: 2.5rem;
  --s-12: 3rem;   --s-16: 4rem;   --s-20: 5rem;   --s-24: 6rem;
  --s-32: 8rem;

  /* ---- Radii ---- */
  --r-sm: 0.5rem;  --r-md: 0.875rem; --r-lg: 1.25rem;
  --r-xl: 1.75rem; --r-2xl: 2.5rem;  --r-full: 9999px;

  /* ---- Depth ---- */
  --shadow-sm:  0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 12px rgba(15,23,42,0.07), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg:  0 12px 32px rgba(15,23,42,0.10), 0 4px 8px rgba(15,23,42,0.05);
  --shadow-xl:  0 24px 60px rgba(15,23,42,0.14), 0 8px 16px rgba(15,23,42,0.06);
  --shadow-2xl: 0 40px 100px rgba(15,23,42,0.20), 0 12px 24px rgba(15,23,42,0.08);
  --shadow-dark: 0 40px 100px -20px rgba(0,0,0,0.85), 0 16px 32px -16px rgba(0,0,0,0.6),
                 inset 0 1px 0 rgba(255,255,255,0.09);
  --glow-blue: 0 0 0 1px rgba(29,78,216,0.18), 0 12px 40px rgba(29,78,216,0.22);

  /* ---- Motion ---- */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring:    cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 620ms;
  --dur-xslow: 1100ms;

  /* ---- Layout ---- */
  --container: 1160px;
  --container-wide: 1400px;
  --gutter: 1.5rem;
}

@media (min-width: 768px) { :root { --gutter: 2rem; } }

/* ============================================================
   PRIMITIVES
   ============================================================ */

.sl-container      { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sl-container-wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }

.sl-section     { padding-block: var(--s-24); position: relative; }
.sl-section-sm  { padding-block: var(--s-16); position: relative; }
@media (max-width: 640px) {
  .sl-section    { padding-block: var(--s-16); }
  .sl-section-sm { padding-block: var(--s-12); }
}

.sl-dark  { background: var(--ink-900); color: var(--white); }
.sl-light { background: var(--paper);   color: var(--ink-800); }
.sl-alt   { background: var(--ink-050); color: var(--ink-800); }

/* ---- Editorial type ---- */
.sl-eyebrow {
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue-700); margin-bottom: var(--s-4);
}
.sl-dark .sl-eyebrow { color: var(--blue-400); }

.sl-display { font-size: var(--fs-display); font-weight: 300; letter-spacing: -0.045em; line-height: 0.95; }
.sl-h1      { font-size: var(--fs-h1);      font-weight: 300; letter-spacing: -0.035em; line-height: 1.04; }
.sl-h2      { font-size: var(--fs-h2);      font-weight: 300; letter-spacing: -0.028em; line-height: 1.12; }
.sl-h3      { font-size: var(--fs-h3);      font-weight: 500; letter-spacing: -0.018em; line-height: 1.3; }
.sl-lead    { font-size: var(--fs-lead);    font-weight: 300; line-height: 1.65; color: var(--ink-400); }
.sl-dark .sl-lead { color: rgba(255,255,255,0.62); }

/* Instrument Serif italic accent. Padding stops glyph collision with previous word. */
.sl-accent {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400; padding-left: 0.06em;
}
.sl-accent-grad {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400; padding-left: 0.06em;
  background: linear-gradient(180deg, var(--white) 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateZ(0);
}

/* ---- Surfaces ---- */
.sl-card {
  background: var(--white); border: 1px solid rgba(15,23,42,0.07);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out-quart),
              box-shadow var(--dur-base) var(--ease-out-quart);
}
.sl-card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.sl-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.16);
}

.sl-card-deep {
  background: linear-gradient(150deg, #12224d 0%, var(--ink-900) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl); box-shadow: var(--shadow-dark);
  color: var(--white); position: relative; overflow: hidden;
}

/* ---- Texture / atmosphere ---- */
.sl-noise::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.sl-mesh {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 62% 48% at 18% 12%, rgba(29,78,216,0.40), transparent 62%),
    radial-gradient(ellipse 52% 42% at 84% 28%, rgba(59,130,246,0.28), transparent 60%),
    radial-gradient(ellipse 70% 55% at 62% 88%, rgba(37,99,235,0.24), transparent 65%);
}

.sl-grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-size: 64px 64px;
  background-image:
    linear-gradient(rgba(96,165,250,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.045) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 78%);
}

/* ---- Buttons ---- */
.sl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.005em;
  padding: 0.85rem 1.6rem; border-radius: var(--r-full); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap; position: relative;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-base) var(--ease-out-quart),
              background var(--dur-base) ease, color var(--dur-base) ease;
  will-change: transform;
}
.sl-btn:active { transform: translateY(1px) scale(0.99); }

.sl-btn-primary {
  background: linear-gradient(180deg, var(--blue-600) 0%, var(--blue-700) 100%);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 10px 26px -8px rgba(29,78,216,0.62);
}
.sl-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 18px 40px -10px rgba(29,78,216,0.75); }

.sl-btn-light {
  background: linear-gradient(180deg, var(--white) 0%, #f1f5f9 100%); color: var(--ink-800);
  box-shadow: 0 1px 0 rgba(255,255,255,1) inset, 0 10px 26px -10px rgba(0,0,0,0.45);
}
.sl-btn-light:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,1) inset, 0 18px 40px -12px rgba(0,0,0,0.55); }

.sl-btn-ghost { background: transparent; color: var(--ink-800); border-color: rgba(15,23,42,0.18); }
.sl-btn-ghost:hover { background: rgba(15,23,42,0.04); border-color: rgba(15,23,42,0.34); transform: translateY(-2px); }
.sl-dark .sl-btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.22); }
.sl-dark .sl-btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.45); }

/* Shine sweep on primary CTAs */
.sl-btn-shine { overflow: hidden; }
.sl-btn-shine::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.34), transparent);
  transition: left 720ms var(--ease-out-expo);
}
.sl-btn-shine:hover::after { left: 130%; }

/* ---- Pills / badges ---- */
.sl-pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em;
  padding: 0.32rem 0.75rem; border-radius: var(--r-full);
  background: rgba(29,78,216,0.09); color: var(--blue-700);
  border: 1px solid rgba(29,78,216,0.18);
}
.sl-dark .sl-pill { background: rgba(96,165,250,0.13); color: var(--blue-300); border-color: rgba(96,165,250,0.26); }

.sl-pill-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-mint); box-shadow: 0 0 8px var(--accent-mint);
  animation: sl-pulse 2.4s ease-in-out infinite;
}
@keyframes sl-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.82); } }

/* ---- Asymmetric layout helpers ---- */
.sl-split      { display: grid; gap: var(--s-12); align-items: center; }
.sl-split-6040 { grid-template-columns: 1fr; }
.sl-split-4060 { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .sl-split-6040 { grid-template-columns: 1.35fr 1fr; gap: var(--s-16); }
  .sl-split-4060 { grid-template-columns: 1fr 1.35fr; gap: var(--s-16); }
}

.sl-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
@media (min-width: 900px) { .sl-bento { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }
.sl-bento-2 { grid-column: span 2; }
.sl-bento-3 { grid-column: span 2; }
@media (min-width: 900px) { .sl-bento-3 { grid-column: span 3; } }
.sl-bento-4 { grid-column: span 2; }
@media (min-width: 900px) { .sl-bento-4 { grid-column: span 4; } }

/* Offset column, gives layouts an editorial, non-uniform rhythm */
@media (min-width: 900px) { .sl-offset-up { transform: translateY(-3rem); } .sl-offset-down { transform: translateY(3rem); } }

/* ---- Marquee ---- */
.sl-marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sl-marquee-track { display: flex; gap: var(--s-10); width: max-content; animation: sl-marquee 38s linear infinite; }
.sl-marquee:hover .sl-marquee-track { animation-play-state: paused; }
@keyframes sl-marquee { to { transform: translateX(-50%); } }

/* ---- Focus (accessibility) ---- */
.sl-btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: var(--r-sm);
}

/* ============================================================
   MOTION PRIMITIVES  (driven by assets/selora-motion.js)
   Content is visible by default; JS opts in to animation.
   Guarantees content still shows if JS fails.
   ============================================================ */

[data-sl-reveal] { opacity: 1; transform: none; }
html.sl-motion [data-sl-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-xslow) var(--ease-out-expo),
              transform var(--dur-xslow) var(--ease-out-expo);
  transition-delay: var(--sl-delay, 0ms);
  will-change: opacity, transform;
}
html.sl-motion [data-sl-reveal].is-in { opacity: 1; transform: none; }

html.sl-motion [data-sl-reveal="left"]  { transform: translateX(-34px); }
html.sl-motion [data-sl-reveal="right"] { transform: translateX(34px); }
html.sl-motion [data-sl-reveal="scale"] { transform: scale(0.94); }
html.sl-motion [data-sl-reveal="blur"]  { filter: blur(12px); transition-property: opacity, transform, filter; }
html.sl-motion [data-sl-reveal].is-in    { filter: blur(0); }

/* Per-character headline reveal */
.sl-char { display: inline-block; will-change: transform, opacity; }
html.sl-motion .sl-char {
  opacity: 0; transform: translateY(0.85em) rotate(2deg);
  transition: opacity 760ms var(--ease-out-expo), transform 760ms var(--ease-out-expo);
}
html.sl-motion .sl-char.is-in { opacity: 1; transform: none; }

/* Counters */
.sl-count { font-variant-numeric: tabular-nums; }

/* Magnetic buttons get transform from JS; keep transition snappy */
.sl-magnetic { transition: transform 260ms var(--ease-out-quart); }

/* Parallax layers */
[data-sl-parallax] { will-change: transform; }

/* Respect user preference. Everything renders static. */
@media (prefers-reduced-motion: reduce) {
  html.sl-motion [data-sl-reveal],
  html.sl-motion .sl-char { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .sl-marquee-track { animation: none !important; }
  .sl-pill-live::before { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   SERVICES BENTO  (shared: index.html, palvelut.html)
   ============================================================ */
.svc-bento { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin-top: 3rem; }
@media (min-width: 720px) { .svc-bento { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 1000px) {
  .svc-bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(168px, auto); gap: 1.1rem; }
  .svc-tile-hero { grid-column: span 2; grid-row: span 2; }
  /* the hero takes 2x2 of a 4-wide grid, so the small tiles fill four
     cells. With three of them the accent tile widens to close the row. */
  .svc-tile-wide { grid-column: span 2; }
}

.svc-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(15,23,42,0.08); border-radius: 1.35rem;
  padding: 1.6rem; text-decoration: none; isolation: isolate;
  box-shadow: 0 1px 3px rgba(15,23,42,0.05);
  transition: transform 0.42s cubic-bezier(0.16,1,0.3,1), box-shadow 0.42s cubic-bezier(0.16,1,0.3,1), border-color 0.32s ease;
}
.svc-tile::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(130deg, transparent 30%, rgba(96,165,250,0.14) 50%, transparent 70%);
  opacity: 0; transform: translateX(-60%); transition: opacity 0.4s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.svc-tile:hover { transform: translateY(-5px); border-color: rgba(29,78,216,0.26); box-shadow: 0 20px 44px -14px rgba(15,23,42,0.22); }
.svc-tile:hover::after { opacity: 1; transform: translateX(60%); }

.svc-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.85rem; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(150deg, rgba(29,78,216,0.12), rgba(96,165,250,0.06));
  border: 1px solid rgba(29,78,216,0.16); color: #1D4ED8;
  transition: transform 0.42s cubic-bezier(0.34,1.4,0.64,1);
}
.svc-icon svg { width: 1.2rem; height: 1.2rem; }
.svc-tile:hover .svc-icon { transform: scale(1.08) rotate(-4deg); }

.svc-tile h4 { font-size: 0.95rem; font-weight: 500; color: #0f172a; letter-spacing: -0.015em; margin-bottom: 0.45rem; }
.svc-tile > p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* Hero tile */
.svc-tile-hero {
  background: linear-gradient(152deg, #12224d 0%, #060c18 100%);
  border-color: rgba(255,255,255,0.07); padding: 2.1rem;
  box-shadow: 0 30px 70px -24px rgba(6,12,24,0.72);
  min-height: 340px;
}
.svc-tile-hero:hover { border-color: rgba(96,165,250,0.32); box-shadow: 0 40px 90px -26px rgba(6,12,24,0.85); }
.svc-hero-mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 46% at 16% 10%, rgba(29,78,216,0.55), transparent 62%),
    radial-gradient(ellipse 50% 40% at 88% 26%, rgba(59,130,246,0.34), transparent 62%),
    radial-gradient(ellipse 66% 52% at 68% 96%, rgba(37,99,235,0.28), transparent 66%);
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.svc-tile-hero:hover .svc-hero-mesh { transform: scale(1.09); }

/* product photo: rounded to nest inside the card, scrim held to the text column */
.svc-hero-photo {
  position: absolute; z-index: 0; pointer-events: none;
  right: 2%; top: 4%; width: 78%; height: 50%;
  background: url('/assets/img/verkkosivusuunnittelu-mockup.jpg') no-repeat center / cover;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 22px 50px -18px rgba(6,12,24,0.9);
  opacity: 1;
  filter: saturate(0.95) contrast(1.03);
  transform: translate3d(0,0,0) scale(1);
  transition: transform 1s cubic-bezier(0.16,1,0.3,1), opacity 0.6s ease;
}
.svc-tile-hero:hover .svc-hero-photo { transform: translate3d(0,-6px,0) scale(1.03); }
/* scrim over the photo, under the text */
.svc-tile-hero .svc-hero-inner { position: relative; z-index: 2; }
/* the photo is bright, so the white copy needs its own contrast floor */
.svc-tile-hero h3, .svc-tile-hero p, .svc-tile-hero .svc-cta {
  text-shadow: 0 1px 2px rgba(6,12,24,0.85), 0 2px 18px rgba(6,12,24,0.7);
}
.svc-tile-hero .svc-chip {
  background: rgba(6,12,24,0.72); border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.86); backdrop-filter: blur(6px);
}
.svc-tile-hero .svc-badge { background: rgba(6,12,24,0.66); backdrop-filter: blur(6px); }
.svc-tile-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, #060c18 0%, #060c18 34%, rgba(6,12,24,0.92) 44%, rgba(6,12,24,0.45) 56%, transparent 68%);
}
@media (max-width: 900px) {
  .svc-hero-photo { width: 96%; right: 2%; top: 3%; height: 34%; opacity: 0.95; }
  .svc-tile-hero::before { background: linear-gradient(to top, #060c18 0%, #060c18 34%, rgba(6,12,24,0.9) 48%, rgba(6,12,24,0.3) 72%, transparent 92%); }
}
@media (prefers-reduced-motion: reduce) {
  .svc-hero-photo, .svc-tile-hero:hover .svc-hero-photo { transition: none !important; transform: none !important; }
}

.svc-hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-size: 54px 54px;
  background-image:
    linear-gradient(rgba(96,165,250,0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.075) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 76% 66% at 50% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 76% 66% at 50% 42%, #000 0%, transparent 78%);
}
.svc-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.svc-tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.svc-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #bfdbfe; background: rgba(96,165,250,0.14); border: 1px solid rgba(96,165,250,0.28);
  padding: 0.3rem 0.7rem; border-radius: 9999px;
}
.svc-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #60A5FA; box-shadow: 0 0 8px #60A5FA; }
.svc-num { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; color: rgba(255,255,255,0.28); font-variant-numeric: tabular-nums; }
.svc-hero-body { margin-top: 2.5rem; }
.svc-tile-hero .svc-hero-body { margin-top: auto; padding-top: 1.25rem; }
.svc-tile-hero h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 300; letter-spacing: -0.03em; color: #fff; margin-bottom: 0.7rem; line-height: 1.15; }
.svc-tile-hero p { font-size: 0.84rem; color: rgba(255,255,255,0.6); line-height: 1.78; margin-bottom: 1.25rem; max-width: 30rem; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.svc-chip {
  font-size: 0.66rem; font-weight: 500; color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  padding: 0.3rem 0.65rem; border-radius: 9999px;
}

.svc-cta {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.75rem;
  font-size: 0.8rem; font-weight: 500; color: #fff;
}
.svc-cta-arrow { display: inline-block; transition: transform 0.36s cubic-bezier(0.16,1,0.3,1); }
.svc-tile:hover .svc-cta-arrow { transform: translateX(5px); }
.svc-cta-sm { color: #1D4ED8; font-size: 0.76rem; margin-top: 1.1rem; }

/* Price tile */
.svc-tile-accent { background: linear-gradient(150deg, rgba(29,78,216,0.07), rgba(96,165,250,0.03)); border-color: rgba(29,78,216,0.18); }

@media (max-width: 719px) {
  .svc-tile { padding: 1.4rem; border-radius: 1.15rem; }
  .svc-tile-hero { padding: 1.6rem; min-height: 0; }
  .svc-hero-body { margin-top: 1.75rem; }
  .svc-cta { margin-top: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-tile, .svc-tile::after, .svc-icon, .svc-hero-mesh, .svc-cta-arrow { transition: none !important; }
  .svc-tile:hover { transform: none; }
  .svc-tile:hover .svc-icon { transform: none; }
  .svc-tile:hover .svc-hero-mesh { transform: none; }
}

/* ============================================================
   ARROW FLOW  (shared: index.html, verkkosivusuunnittelu.html)
   Steps in a row with arrows drawn between them. On narrow
   screens the track stacks and the arrows rotate to point down.
   ============================================================ */
.flow-track {
  display: flex; align-items: stretch; gap: 0;
  margin-top: 3rem;
}
.flow-node { flex: 1 1 0; min-width: 0; display: flex; }
.flow-arrow {
  flex: 0 0 clamp(2.5rem, 5vw, 5rem);
  display: flex; align-items: center; justify-content: center;
  color: rgba(29,78,216,0.45);
  padding: 0 0.25rem;
}
.flow-arrow svg { width: 100%; height: 34px; overflow: visible; display: block; }
/* the dash crawls toward the next step */
.flow-arrow .fa-line {
  stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round;
  stroke-dasharray: 5 7;
  animation: flowDash 1.4s linear infinite;
}
.flow-arrow .fa-head { fill: currentColor; transform-origin: center; animation: flowNudge 1.4s ease-in-out infinite; }
@keyframes flowDash { to { stroke-dashoffset: -12; } }
@keyframes flowNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

/* card sits inside a node; the playful tilt straightens on hover */
.flow-card {
  position: relative; width: 100%; display: flex; flex-direction: column;
  padding: 1.85rem 1.75rem; border-radius: 1.35rem;
  background: #fff; border: 1px solid rgba(15,23,42,0.09);
  box-shadow: 0 2px 6px rgba(15,23,42,0.05);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s ease, border-color 0.35s ease;
}
.flow-node:nth-child(1) .flow-card { transform: rotate(-0.8deg); }
.flow-node:nth-child(5) .flow-card { transform: rotate(0.7deg); }
.flow-node:nth-child(9) .flow-card { transform: rotate(-0.5deg); }
.flow-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 22px 48px -22px rgba(15,23,42,0.35);
  border-color: rgba(29,78,216,0.3);
}
.flow-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: linear-gradient(150deg, #1D4ED8, #2563EB); color: #fff;
  font-size: 0.78rem; font-weight: 600; margin-bottom: 1.1rem;
  box-shadow: 0 8px 20px -8px rgba(37,99,235,0.8);
}
.flow-card h3 { font-size: 1.05rem; font-weight: 500; color: #0f172a; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.flow-card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.8; }
.flow-tag {
  display: inline-flex; margin-top: 1.1rem; font-size: 0.66rem; font-weight: 500;
  color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase;
}

/* dark sections invert the card */
.flow-dark .flow-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); box-shadow: none; backdrop-filter: blur(12px); }
.flow-dark .flow-card h3 { color: #fff; }
.flow-dark .flow-card p { color: rgba(255,255,255,0.58); }
.flow-dark .flow-arrow { color: rgba(147,197,253,0.55); }
.flow-dark .flow-tag { color: rgba(147,197,253,0.8); }
.flow-dark .flow-card:hover { border-color: rgba(96,165,250,0.4); box-shadow: 0 26px 60px -30px rgba(2,6,18,0.95); }

@media (max-width: 900px) {
  .flow-track { flex-direction: column; align-items: stretch; }
  .flow-arrow { flex: 0 0 auto; height: 3rem; transform: rotate(90deg); }
  .flow-arrow svg { width: 4rem; }
  .flow-node .flow-card { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-arrow .fa-line, .flow-arrow .fa-head { animation: none !important; }
  .flow-card { transition: none !important; }
  .flow-card:hover { transform: none; }
}

/* ============================================================
   INTERACTIVE LAYER
   Scroll progress, custom cursor and scrubbed word reveal.
   All three are injected by selora-motion.js, which bails out
   entirely on prefers-reduced-motion, so nothing here needs a
   reduced-motion escape hatch beyond hiding the cursor.
   ============================================================ */
.sl-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9999;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #1D4ED8, #60A5FA);
  box-shadow: 0 0 12px rgba(96,165,250,0.6);
  pointer-events: none;
  will-change: transform;
}

.sl-cursor, .sl-cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none;
  border-radius: 50%; will-change: transform;
}
.sl-cursor {
  width: 34px; height: 34px;
  border: 1px solid rgba(96,165,250,0.65);
  transition: width 0.28s cubic-bezier(0.16,1,0.3,1), height 0.28s cubic-bezier(0.16,1,0.3,1),
              background 0.28s ease, border-color 0.28s ease, opacity 0.25s ease;
}
.sl-cursor.is-active { width: 56px; height: 56px; background: rgba(37,99,235,0.12); border-color: rgba(96,165,250,0.9); }
.sl-cursor-dot { width: 5px; height: 5px; background: #60A5FA; transition: opacity 0.25s ease; }
.sl-cursor.is-hidden, .sl-cursor-dot.is-hidden { opacity: 0; }
/* the ring replaces the pointer only where it would otherwise be an arrow */
@media (hover: hover) and (pointer: fine) {
  .sl-has-cursor, .sl-has-cursor a, .sl-has-cursor button { cursor: none; }
}

/* Scrubbed reveal, painted with a clipped gradient so no text node is
   rewritten. --sl-lit is the scroll progress the motion script sets. */
.sl-words {
  --sl-lit: 0%;
  background-image: linear-gradient(90deg, currentColor 0%, currentColor var(--sl-lit), rgba(15,23,42,0.2) var(--sl-lit), rgba(15,23,42,0.2) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: none;
}
/* the gradient needs the real ink colour to sample, so restate it per context */
.sl-words { color: var(--text-muted); }
.process-section .sl-words, .rev-section .sl-words, .sl-dark .sl-words {
  color: rgba(255,255,255,0.62);
  background-image: linear-gradient(90deg, currentColor 0%, currentColor var(--sl-lit), rgba(255,255,255,0.15) var(--sl-lit), rgba(255,255,255,0.15) 100%);
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .sl-words { color: var(--text-muted); -webkit-text-fill-color: currentColor; background-image: none; }
}

/* ============================================================
   PLAYFUL LAYER
   Small, cheap flourishes: floating accents, a springy pop on
   reveal, underline swipes and tilting tiles. Everything is
   transform/opacity only and every animation stops under
   prefers-reduced-motion.
   ============================================================ */

/* springy entrance for anything opting in */
html.sl-motion [data-sl-pop] { opacity: 0; transform: translateY(22px) scale(0.97); }
html.sl-motion [data-sl-pop].is-in {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--sl-delay, 0ms);
}

/* slow drift for decorative blobs and badges */
@keyframes slFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -9px, 0); }
}
.sl-float { animation: slFloat 6s ease-in-out infinite; }
.sl-float-slow { animation: slFloat 9s ease-in-out infinite; }
.sl-float-delay { animation-delay: -3s; }

/* heading accent gets a hand-drawn style swipe once it is in view */
.sl-swipe { position: relative; display: inline-block; }
.sl-swipe::after {
  content: ''; position: absolute; left: -0.06em; right: -0.06em; bottom: 0.02em; height: 0.34em;
  background: linear-gradient(90deg, rgba(96,165,250,0.45), rgba(29,78,216,0.28));
  border-radius: 0.2em; z-index: -1;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.75s cubic-bezier(0.16,1,0.3,1) 0.15s;
}
.sl-swipe.is-in::after, .is-in .sl-swipe::after { transform: scaleX(1); }
/* headings marked by the motion script swipe their accent word */
.sl-swipe-host .accent { position: relative; display: inline-block; }
.sl-swipe-host .accent::after {
  content: ''; position: absolute; left: -0.06em; right: -0.06em; bottom: 0.04em; height: 0.3em;
  background: linear-gradient(90deg, rgba(96,165,250,0.42), rgba(29,78,216,0.22));
  border-radius: 0.2em; z-index: -1;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1) 0.25s;
}
.sl-swipe-host.is-swiped .accent::after { transform: scaleX(1); }

/* icon wiggle on card hover */
@keyframes slWiggle {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-7deg); }
  75%      { transform: rotate(7deg); }
}
.vs-card:hover .vs-icon,
.spec-row:hover .spec-icon,
.flow-card:hover .flow-step { animation: slWiggle 0.5s ease-in-out; }

/* number badges pop when their row is hovered */
.why-item:hover .why-num, .vs-type:hover .vs-type-num {
  animation: slPopNum 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slPopNum {
  0%   { transform: scale(1) rotate(0deg); }
  45%  { transform: scale(1.18) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* portfolio tiles lean toward the cursor side */
.story-card { will-change: transform; }
.story-card:nth-child(2) { --sl-tilt: 0.6deg; }
.story-card:nth-child(3) { --sl-tilt: -0.5deg; }
.story-card:nth-child(2), .story-card:nth-child(3) { transform: rotate(var(--sl-tilt)); }
.story-card:nth-child(2):hover, .story-card:nth-child(3):hover { transform: rotate(0deg) translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  .sl-float, .sl-float-slow,
  .vs-card:hover .vs-icon, .spec-row:hover .spec-icon, .flow-card:hover .flow-step,
  .why-item:hover .why-num, .vs-type:hover .vs-type-num { animation: none !important; }
  .sl-swipe::after, .sl-swipe-host .accent::after { transition: none !important; transform: scaleX(1); }
  .story-card:nth-child(2), .story-card:nth-child(3) { transform: none; }
}

/* ============================================================
   STORIES MARQUEE  (shared: verkkosivusuunnittelu.html, palvelut.html)
   One track that auto-scrolls right, cloned once so the loop is
   seamless. Behaviour lives in assets/selora-marquee.js, which
   targets #storiesMarquee / #storiesTrack and mounts each card's
   live preview in a scaled, inert iframe as it nears the viewport.
   ============================================================ */
.stories-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.stories-head .section-label { display: inline-block; }

.stories-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0 1.5rem;
  /* fade the ends instead of cutting cards off hard */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* Coverflow mode, switched on by JS. A mask builds a containing block that
   flattens preserve-3d, so the fade has to go once the rake is on -- the
   cards fade themselves with opacity instead. */
.stories-marquee.is-coverflow {
  -webkit-mask-image: none;
  mask-image: none;
  padding: 0;
  perspective: var(--sl-cf-lens, 1200px);
}
.stories-marquee.is-coverflow .stories-track {
  display: block;
  position: relative;
  width: auto;
  height: var(--sl-cf-h, 300px);
  transform: none !important;
  transform-style: preserve-3d;
  /* horizontal drag is ours, the page keeps vertical scrolling */
  touch-action: pan-y;
  cursor: grab;
  outline: none;
}
.stories-marquee.is-coverflow .stories-track:active { cursor: grabbing; }
.stories-marquee.is-coverflow .stories-track:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 22px;
}
.stories-marquee.is-coverflow .story-card {
  position: absolute;
  left: 50%;
  top: 0;
  margin-right: 0;
  /* transform is painted every frame from JS -- leaving it in the transition
     would ease an already-eased value and lag the drag behind the pointer */
  transition: box-shadow 0.55s ease;
  will-change: transform, opacity;
}
.stories-marquee.is-coverflow .story-card:hover { transform: none; }

/* The springy entrance sets `transition: transform 0.75s` at (0,3,1), which
   outranks the rule above and would ease every rAF-painted frame on top of the
   settle -- the drag would trail the pointer by most of a second. Outrank it
   back. Transform itself is left alone: the inline style from paint() already
   beats any stylesheet rule. */
html.sl-motion .stories-marquee.is-coverflow .story-card[data-sl-pop],
html.sl-motion .stories-marquee.is-coverflow .story-card[data-sl-pop].is-in {
  transition: box-shadow 0.55s ease;
}

/* pagination, built by JS so no page markup changes */
.stories-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.stories-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; padding: 0; border: 0;
  background: #0f172a; opacity: 0.25; cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.stories-dot:hover { opacity: 0.55; }
.stories-dot[aria-current="true"] { opacity: 1; transform: scale(1.25); }
.stories-dot:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.stories-track {
  /* Base state is a plain centred wrap, so the strip is readable with no JS
     and under reduced motion. JS swaps the parent into .is-coverflow. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: auto;
}

/* ---- arrows ---- */
.stories-nav {
  position: absolute; top: 50%; z-index: 3;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(15,23,42,0.1);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.14);
  color: #0f172a; cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), background 0.25s ease, box-shadow 0.35s ease;
}
.stories-nav svg { width: 1.05rem; height: 1.05rem; display: block; }
.stories-nav-prev { left: 0.75rem; }
.stories-nav-next { right: 0.75rem; }
.stories-nav:hover { background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,0.22); }
.stories-nav-prev:hover { transform: translateY(-50%) translateX(-3px); }
.stories-nav-next:hover { transform: translateY(-50%) translateX(3px); }
.stories-nav:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 560px) {
  .stories-nav { width: 2.75rem; height: 2.75rem; }   /* stay on the 44px floor */
  .stories-nav-prev { left: 0.35rem; }
  .stories-nav-next { right: 0.35rem; }
}

.story-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(300px, 34vw, 460px);
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  background: #0b1220;
  box-shadow: 0 12px 32px rgba(15,23,42,0.14);
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1), box-shadow 0.55s ease;
  isolation: isolate;
  margin-right: 0.75rem;
}
.story-card:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(15,23,42,0.3); }

/* hero preview: a still of the page, with the live page layered over it on
   hardware that can carry one. selora-marquee.js decides who gets which. */
.story-frame {
  position: absolute; inset: 0; overflow: hidden;
  /* what shows if the still itself has not decoded yet */
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(37,99,235,0.28), transparent 70%),
    linear-gradient(158deg, #12224d 0%, #0b1220 100%);
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1), filter 0.5s ease;
}

/* The still. This is the whole preview on phones and tablets: a screenshot of
   the same hero the iframe would render, so the two are interchangeable to
   look at, and only one of them costs a browsing context. */
.story-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}

/* faint sheen travelling across the placeholder, so a slow preview still
   looks like it is loading rather than broken */
.story-frame::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.07) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: storyShimmer 2.2s ease-in-out infinite;
}
/* Nothing is pending once a still is in place, so the shimmer would be
   claiming a load that already finished. */
.story-frame:has(.story-shot)::after,
.story-frame:has(iframe.is-ready)::after { display: none; }
@keyframes storyShimmer {
  from { background-position: 140% 0; }
  to   { background-position: -40% 0; }
}
.story-frame iframe {
  position: absolute; top: 0; left: 0;
  z-index: 1;                       /* sits over the still it replaces */
  width: 1440px; height: 900px;
  transform-origin: 0 0;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.story-frame iframe.is-ready { opacity: 1; }
.story-card:hover .story-frame { transform: scale(1.04); filter: brightness(0.85); }

@media (max-width: 560px) {
  .story-card { width: 82vw; }
}
@media (prefers-reduced-motion: reduce) {
  .stories-nav { display: none; }
  .stories-dots { display: none; }
  .stories-marquee { -webkit-mask-image: none; mask-image: none; }
  .story-card, .story-frame { transition: none !important; }
  .story-frame::after { animation: none !important; }
  .story-card:hover { transform: none; }
  .story-card:hover .story-frame { transform: none; }
}
.story-bottom { transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.story-card:hover .story-bottom { transform: translateY(-4px); }
.story-bottom {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem; z-index: 2;
  color: #fff;
}
.story-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.story-meta { font-size: 0.7rem; color: rgba(255,255,255,0.78); letter-spacing: 0.04em; }
.story-cta {
  margin-top: 0.7rem;
  font-size: 0.78rem; color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-weight: 500;
}
.story-card:hover .story-cta { opacity: 1; transform: translateY(0); }

/* ============================================================
   PROMO STRIP + SITE AUDIT OFFER
   ============================================================ */

/* The strip is fixed above the header, so the header has to move down by
   exactly its height. Driving that from :has() rather than a class means
   removing the element is the whole dismissal — the variable falls back to 0
   and every offset below corrects itself, with no state to keep in sync. */
:root { --sl-promo-h: 0px; }
html:has(.sl-promo) { --sl-promo-h: 2.5rem; }
@media (max-width: 600px) { html:has(.sl-promo) { --sl-promo-h: 3.25rem; } }

/* Higher specificity than the pages' own inline `.site-header { top: 0 }`,
   so this wins wherever the inline block sits in the cascade. */
html .site-header { top: var(--sl-promo-h); }

/* The hero clears the fixed header on short phones (see each page's 768px
   block). With the strip up, it has to clear both. */
@media (max-width: 768px) {
  html:has(.sl-promo) .page-hero { padding-top: calc(4.25rem + var(--sl-promo-h)); }
}

.sl-promo {
  position: fixed; inset: 0 0 auto; z-index: 60;
  min-height: var(--sl-promo-h);
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 0.4rem 2.75rem 0.4rem 1rem;
  background: linear-gradient(90deg, #12224d 0%, #1D4ED8 100%);
  color: #fff; font-size: 0.82rem; font-weight: 400; line-height: 1.35;
  text-align: center;
}
.sl-promo a {
  color: #fff; text-decoration: underline; text-underline-offset: 3px;
  font-weight: 600; white-space: nowrap;
}
.sl-promo a:hover { text-decoration-thickness: 2px; }
.sl-promo-x {
  position: absolute; right: 0.45rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; border-radius: 8px;
  color: rgba(255,255,255,0.75); font-size: 1.1rem; line-height: 1;
}
.sl-promo-x:hover { color: #fff; background: rgba(255,255,255,0.14); }
.sl-promo-x:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* ---- audit offer ---- */
.sl-audit {
  background: linear-gradient(158deg, #12224d 0%, #0b1220 100%);
  border-radius: var(--r-xl); padding: clamp(2rem, 4vw, 3.25rem);
  color: #fff; position: relative; overflow: hidden;
}
.sl-audit-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (min-width: 880px) { .sl-audit-grid { grid-template-columns: 1.05fr 1fr; } }

.sl-audit h2 { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -0.028em; line-height: 1.12; margin: 0 0 1rem; }
.sl-audit .sl-audit-lead { font-size: 1.02rem; font-weight: 300; line-height: 1.6; color: rgba(255,255,255,0.66); margin: 0 0 1.5rem; }
.sl-audit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.sl-audit-list li { display: flex; gap: 0.65rem; font-size: 0.92rem; line-height: 1.5; color: rgba(255,255,255,0.82); }
.sl-audit-list li::before { content: '✓'; color: #60A5FA; font-weight: 600; flex-shrink: 0; }

.sl-audit-form { display: flex; flex-direction: column; gap: 0.85rem; }
.sl-audit-form label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.4rem; display: block; }
.sl-audit-form input {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06);
  color: #fff; font-family: inherit; font-size: 0.95rem; font-weight: 300;
  transition: border-color .25s, background .25s;
}
.sl-audit-form input::placeholder { color: rgba(255,255,255,0.38); }
.sl-audit-form input:focus { outline: none; border-color: #60A5FA; background: rgba(255,255,255,0.1); }
.sl-audit-form input:user-invalid { border-color: #f87171; }
.sl-audit-btn {
  margin-top: 0.3rem; align-self: flex-start;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.7rem; border: 0; border-radius: var(--r-full); cursor: pointer;
  background: #fff; color: #0f172a;
  font-family: inherit; font-size: 0.86rem; font-weight: 600; letter-spacing: -0.005em;
  transition: transform .25s var(--ease-out-quart), box-shadow .25s, background .25s;
}
.sl-audit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.7); }
.sl-audit-btn:focus-visible { outline: 2px solid #60A5FA; outline-offset: 3px; }
.sl-audit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.sl-audit-note { font-size: 0.76rem; line-height: 1.5; color: rgba(255,255,255,0.45); margin: 0.2rem 0 0; }
.sl-audit-note a { color: rgba(255,255,255,0.72); }
.sl-audit-msg { font-size: 0.9rem; line-height: 1.55; color: #86efac; margin: 0; }
.sl-audit-err { font-size: 0.86rem; line-height: 1.5; color: #fca5a5; margin: 0; min-height: 0; }
.sl-audit-done { display: flex; flex-direction: column; gap: 0.6rem; }

/* A class that sets `display` outranks the user-agent rule behind the `hidden`
   attribute, so without this the form never hid and the thank-you block was
   on screen from the start. */
.sl-audit-form[hidden], .sl-audit-done[hidden] { display: none; }
