/* ==========================================================================
   KRA Digital — design system (single stylesheet)
   System type, light + dark themes, brand amber accent.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --fill: rgba(0, 0, 0, 0.05);
  --fill-strong: rgba(0, 0, 0, 0.08);
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.18);
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --accent: #ffc400;
  --accent-hover: #ffcf33;
  --on-accent: #1d1d1f;
  --accent-text: #9a5b00;
  --accent-text-hover: #7a4700;
  --accent-soft: rgba(255, 196, 0, 0.16);
  --success: #1f7a3d;
  --danger: #c4261b;
  --nav-bg: rgba(251, 251, 253, 0.78);
  --drop-bg: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.05), 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.06), 0 24px 60px rgba(0, 0, 0, 0.12);
  --glow: rgba(255, 196, 0, 0.18);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 56px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section: clamp(72px, 9vw, 128px);
  --section-tight: clamp(48px, 6vw, 88px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0b0b0c;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --fill: rgba(255, 255, 255, 0.08);
    --fill-strong: rgba(255, 255, 255, 0.14);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.24);
    --text: #f5f5f7;
    --text-2: #d1d1d6;
    --muted: #a1a1a6;
    --accent-text: #ffc933;
    --accent-text-hover: #ffdb70;
    --accent-soft: rgba(255, 196, 0, 0.14);
    --success: #4cd17a;
    --danger: #ff6961;
    --nav-bg: rgba(22, 22, 23, 0.74);
    --drop-bg: rgba(30, 30, 32, 0.92);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --glow: rgba(255, 196, 0, 0.14);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; color: var(--text); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
strong, b { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
main:focus-visible { outline: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }
.accent { color: var(--accent-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 17px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(255, 196, 0, 0.3); }
.btn--ghost { background: var(--fill); color: var(--text); }
.btn--ghost:hover { background: var(--fill-strong); }
.btn--outline { border-color: var(--line-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--text); }
.btn--sm { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--accent-text); font-weight: 500; text-decoration: none;
}
.arrow-link:hover { color: var(--accent-text-hover); text-decoration: underline; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; align-items: center; text-decoration: none; color: var(--text); flex-shrink: 0; }
.logo__mark { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; line-height: 1; }
.logo__a { color: var(--accent-text); }
.logo__word { font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links > a:not(.btn), .nav__toplink {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px;
  font-size: 14px; font-weight: 400; color: var(--text); opacity: 0.82;
  text-decoration: none; border-radius: 8px; transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__links > a:not(.btn):hover, .nav__toplink:hover, .nav__item.is-open .nav__toplink { opacity: 1; }
.nav__links > a.is-active, .nav__toplink.is-active { opacity: 1; font-weight: 600; }
.nav__toplink svg { width: 10px; height: 7px; opacity: 0.7; transition: transform 0.25s var(--ease); }
.nav__item.is-open .nav__toplink svg { transform: rotate(180deg); }
.nav__cta { margin-left: 10px; }
.nav__item { position: relative; }

.drop {
  position: absolute; top: calc(100% + 8px); left: 50%;
  width: max-content; min-width: 560px; max-width: min(640px, calc(100vw - 32px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px;
  background: var(--drop-bg);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease-out), visibility 0.2s;
}
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.drop--sm { min-width: 280px; grid-template-columns: 1fr; }
.nav__item.is-open .drop,
html:not(.nav-ready) .nav__item:hover .drop,
html:not(.nav-ready) .nav__item:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; transition: background-color 0.15s var(--ease); }
.drop a:hover, .drop a:focus-visible { background: var(--fill); }
.drop__title { display: block; font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.drop__desc { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.drop a.drop__all { grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; font-size: 14px; font-weight: 500; color: var(--accent-text); }

.nav__burger { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; border-radius: 10px; }
.nav__burger span { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out); }
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 25px; }
.nav__burger span:nth-child(3) { display: none; }
.nav__burger.is-open span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease-out), visibility 0.25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links > a:not(.btn), .nav__toplink {
    width: 100%; justify-content: space-between; min-height: 56px; padding: 0 4px;
    font-size: 24px; font-weight: 600; letter-spacing: -0.02em; opacity: 1;
    border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .nav__links > a.is-active, .nav__toplink.is-active { color: var(--accent-text); }
  .nav__toplink svg { width: 14px; height: 9px; }
  .nav__item { width: 100%; }
  .drop, .drop--sm {
    position: static; width: auto; min-width: 0; max-width: none; transform: none !important;
    display: none; grid-template-columns: 1fr; padding: 6px 0 14px;
    background: none; border: 0; box-shadow: none; border-radius: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    opacity: 1; visibility: visible;
  }
  .drop::before { display: none; }
  .nav__item.is-open .drop { display: grid; }
  .drop a { padding: 10px 4px; min-height: 44px; }
  .drop__title { font-size: 17px; font-weight: 500; }
  .drop__desc { font-size: 14px; }
  .drop a.drop__all { border-top: 0; margin-top: 0; font-size: 17px; }
  .nav__cta { margin: 24px 0 0; min-height: 50px; font-size: 17px; }
  body.menu-open { overflow: hidden; }
  /* No-JS: menu renders as a static list under the bar */
  html:not(.nav-ready) .nav { height: auto; position: relative; }
  html:not(.nav-ready) .nav__inner { flex-wrap: wrap; padding-block: 6px; }
  html:not(.nav-ready) .nav__burger { display: none; }
  html:not(.nav-ready) .nav__links { position: static; opacity: 1; visibility: visible; transform: none; width: 100%; padding: 0 0 16px; background: none; }
  html:not(.nav-ready) .drop { display: grid; }
}

/* ---------- Section rhythm ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: var(--section-tight); }
.section--alt { background: var(--bg-alt); }
.section + .section:not(.section--alt):not(.section--tight) { padding-top: calc(var(--section) * 0.6); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__kicker {
  font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -0.005em;
  color: var(--accent-text); margin-bottom: 12px;
}
.section__title { font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.section__sub { color: var(--muted); margin-top: 16px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; }

/* ---------- Heroes ---------- */
.page-hero, .studio-hero, .growth-hero { position: relative; isolation: isolate; text-align: center; overflow-x: clip; }
.page-hero::before, .studio-hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -120px;
  width: min(1100px, 140vw); height: 560px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.page-hero { padding: clamp(64px, 9vw, 128px) 0 clamp(40px, 5vw, 72px); overflow: clip; }
.page-hero .container { display: flex; flex-direction: column; align-items: center; }
.page-hero__title { font-size: clamp(40px, 6.4vw, 80px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; max-width: 15ch; }
.page-hero__sub { max-width: 680px; margin-top: 20px; font-size: clamp(19px, 2vw, 24px); line-height: 1.42; color: var(--muted); letter-spacing: -0.015em; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; padding: 10px 2px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs .sep { opacity: 0.6; }
.crumbs [aria-current] { color: var(--text); }
.page-hero .container--narrow { align-items: center; }

.stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 56px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat { text-align: center; }
.stat__num, .stat__plus { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__plus { color: var(--accent-text); }
.stat__label { display: block; color: var(--muted); font-size: 15px; }

/* Studio (home + hubs) */
.studio-hero { padding-top: clamp(72px, 11vw, 150px); padding-bottom: 8px; }
.studio-hero h1 { font-size: clamp(44px, 8vw, 104px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; margin: 4px auto 24px; max-width: 14ch; }
.studio-lead { max-width: 720px; margin-inline: auto; font-size: clamp(19px, 2vw, 24px); line-height: 1.42; color: var(--muted); letter-spacing: -0.015em; }
.studio-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.studio-hero + .studio-actions { margin-bottom: 8px; }

.studio-panorama {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
}
.studio-panorama img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); background: var(--surface-2); }
@media (max-width: 720px) {
  .studio-panorama {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-inline: var(--gutter); margin-inline: auto; scroll-padding-inline: var(--gutter);
  }
  .studio-panorama::-webkit-scrollbar { display: none; }
  .studio-panorama img { scroll-snap-align: start; }
}

.studio-intro, .studio-process, .studio-row, .studio-cta { padding-block: clamp(64px, 8vw, 112px); }
.studio-intro { padding-bottom: clamp(32px, 4vw, 56px); }
.studio-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 80px; align-items: start; }
.studio-intro > .section__kicker { grid-column: 1 / -1; margin-bottom: 0; }
.studio-intro h2, .studio-process > h2, .studio-cta h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1.05; }
.studio-intro p:not(.section__kicker) { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); margin-bottom: 18px; }
.studio-process { border-top: 1px solid var(--line); }
.studio-intro + .studio-process { border-top: 0; }
.studio-process > h2 { margin-bottom: clamp(32px, 4vw, 56px); max-width: 22ch; }
.studio-process > .arrow-link { margin-top: 20px; }

.studio-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.studio-service-grid > a {
  display: block; padding: 28px; border-radius: var(--r-lg); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease);
}
.studio-service-grid > a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.studio-service-grid h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; }
.studio-service-grid h3 span { color: var(--accent-text); }
.studio-service-grid p { color: var(--muted); font-size: 16px; line-height: 1.55; }

.studio-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.studio-work-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease-out); }
.studio-work-grid article:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.studio-work-grid a { display: block; text-decoration: none; padding: 0 28px; }
.studio-work-grid img { width: calc(100% + 56px); max-width: none; margin-inline: -28px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-2); }
.studio-work-grid .section__kicker { margin: 22px 0 4px; font-size: 14px; }
.studio-work-grid h3 { font-size: 24px; letter-spacing: -0.025em; }
.studio-work-grid article > p { color: var(--muted); padding: 8px 28px 28px; font-size: 16px; }

.studio-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; border-top: 1px solid var(--line); }
.studio-hero + .studio-row { border-top: 0; }
.studio-row:nth-of-type(odd) > figure { order: -1; }
.studio-row h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; margin-bottom: 16px; }
.studio-row p:not(.section__kicker) { color: var(--muted); font-size: 17px; line-height: 1.6; }
.studio-art { min-width: 0; }
.studio-art img { width: 100%; aspect-ratio: 11 / 10; object-fit: cover; border-radius: var(--r-xl); background: var(--surface-2); }
.studio-art figcaption, .visual-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.studio-links { margin: 24px 0 8px; border-top: 1px solid var(--line); }
.studio-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 16px; }
.studio-links a span { color: var(--muted); transition: transform 0.2s var(--ease), color 0.2s; }
.studio-links a:hover { color: var(--accent-text); }
.studio-links a:hover span { color: var(--accent-text); transform: translate(2px, -2px); }

.studio-cta { text-align: center; border-top: 1px solid var(--line); }
.studio-cta h2 { margin: 8px auto 20px; }
.studio-cta p:not(.section__kicker) { max-width: 600px; margin: 0 auto 28px; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); }

/* ---------- Grids & cards ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .value-block, .step, .growth-card, .role-card, .c-item, .process-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.card { padding: 32px 28px; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease); }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
a.card h3::after { content: " \203A"; color: var(--accent-text); opacity: 0; transition: opacity 0.2s var(--ease); }
a.card:hover h3::after, a.card:focus-visible h3::after { opacity: 1; }
.card h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; padding-right: 32px; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.card__num { position: absolute; top: 28px; right: 26px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.card ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.card ul li { color: var(--muted); font-size: 15px; padding-left: 18px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.value-block, .step { padding: 30px 26px; }
.value-block h3, .step h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; }
.value-block p, .step p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; vertical-align: 2px; }
.step__num { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--accent-text); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.studio-process .grid-4 article { padding: 28px 0 0; border-top: 1px solid var(--line-strong); }
.studio-process .grid-4 article .section__kicker { font-size: 14px; }
.studio-process .grid-4 h3 { font-size: 22px; }
.studio-process .grid-4 article > p:not(.section__kicker) { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* ---------- Service / industry detail ---------- */
.svc-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.svc-block > div > p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.svc-block__art { border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.svc-block__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-block ul { list-style: none; margin: 20px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.svc-block ul li { font-size: 15px; padding-left: 22px; position: relative; }
.svc-block ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-text); font-weight: 700; }

.editorial-brief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.editorial-brief > div { background: var(--bg-alt); border-radius: var(--r-lg); padding: 28px; }
.editorial-brief h2 { font-size: 14px; font-weight: 600; color: var(--accent-text); letter-spacing: 0; margin-bottom: 10px; }
.editorial-brief p { font-size: 17px; line-height: 1.55; color: var(--text); }
.editorial-brief .arrow-link { font-size: 16px; margin-top: 8px; }

.detail-prose, .prose { max-width: 740px; }
.detail-prose h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; margin: 48px 0 14px; }
.detail-prose h3:first-child { margin-top: 0; }
.detail-prose p, .prose p { color: var(--text-2); font-size: 18px; line-height: 1.7; margin: 14px 0; }
.detail-prose ul, .prose ul, .prose ol { padding-left: 0; list-style: none; margin: 18px 0; display: grid; gap: 12px; }
.detail-prose li, .prose li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.detail-prose li::before, .prose li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; padding-left: 30px; }
.prose ol li::before { content: counter(n); width: auto; height: auto; background: none; top: 0; font-weight: 600; color: var(--accent-text); }
.detail-prose strong, .prose strong { color: var(--text); }
.prose h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.028em; margin: 56px 0 8px; }
.prose h3 { font-size: 22px; margin: 36px 0 6px; }
.prose > :first-child { margin-top: 0; }
.prose a:not(.btn) { color: var(--accent-text); }
.prose blockquote, blockquote {
  margin: 40px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 28px); font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; color: var(--text);
}
blockquote cite { display: block; margin-top: 12px; font-family: var(--font); font-size: 15px; font-weight: 400; font-style: normal; color: var(--muted); letter-spacing: 0; }
.callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding: 28px; margin: 36px 0; background: var(--bg-alt); border-radius: var(--r-lg); }
.metric__num { display: block; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; }
.metric__label { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }

.stack-group { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: baseline; padding-top: 28px; border-top: 1px solid var(--line); }
.stack-group h3 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 500; color: var(--text); }

/* FAQ — grouped list */
.faq { max-width: 860px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 18px 26px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--fill) center / 10px 10px no-repeat;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 10px 1.5px, 1.5px 10px; transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-text); }
.faq details > div { padding: 0 26px 22px; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.faq details > div p + p { margin-top: 10px; }

/* ---------- Work ---------- */
.work { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease); }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work__media { position: relative; overflow: hidden; background: var(--surface-2); }
.work__shot { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.work:hover .work__shot { transform: scale(1.03); }
.work__badge {
  position: absolute; top: 16px; left: 16px; z-index: 1; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #1d1d1f; background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.work__info { padding: 24px 28px 28px; }
.work__info h3 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 8px; }
.work__info p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.work__tags { font-size: 14px; font-weight: 500; color: var(--accent-text); }

.feature__media { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-md); }
.feature__media .work__shot { aspect-ratio: 16 / 9; }
.feature__media .visual-note { position: absolute; left: 16px; bottom: 16px; margin: 0; padding: 5px 10px; border-radius: 8px; color: #fff; background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; }

/* ---------- Articles ---------- */
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; align-items: center; color: var(--muted); font-size: 15px; margin-top: 20px; }
.type-badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--on-accent); background: var(--accent); }
.type-badge--ghost { background: var(--accent-soft); color: var(--accent-text); }
.article-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease); }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__media .type-badge { position: absolute; top: 16px; left: 16px; }
.article-card__body { padding: 24px 28px 30px; }
.article-card__body h3 { font-size: 22px; letter-spacing: -0.022em; }
.article-card__body p { color: var(--muted); font-size: 16px; margin-top: 8px; }

/* ---------- About / team ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about p:not(.section__kicker) { color: var(--text-2); font-size: 18px; line-height: 1.65; margin-top: 16px; }
.about-card-wrap { display: flex; justify-content: center; }
.about-card { width: 100%; max-width: 420px; padding: 40px 36px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.about-card__mark { font-family: var(--font-display); font-weight: 800; font-size: 52px; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.about-card__mark span { color: var(--accent-text); }
.about-card__tag { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; color: var(--muted); margin: 12px 0 28px; }
.about-card__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.team-card { text-align: center; padding-top: 40px; }
.team-card__photo, .team-card__avatar { width: 136px; height: 136px; border-radius: 50%; margin: 0 auto 20px; }
.team-card__photo { object-fit: cover; object-position: top; }
.team-card__avatar { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.team-card__role { font-size: 14px; font-weight: 600; color: var(--accent-text); margin-bottom: 12px; }
.team-card h3 { padding-right: 0; }

/* ---------- Careers ---------- */
.role-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; }
.role-card h3 { font-size: 20px; }
.role-card p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.role-card__meta { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; background: var(--fill); font-size: 13px; font-weight: 500; color: var(--text); }

/* ---------- Contact & forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__row:has(> .field:only-child) { grid-template-columns: 1fr; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select, .demo-app input, .demo-app select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--bg); color: var(--text); border: 1px solid var(--line-strong);
  font-size: 17px; line-height: 1.35; appearance: none; -webkit-appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select, .demo-app select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386868b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field textarea:focus, .field select:focus, .demo-app input:focus, .demo-app select:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder, .demo-app input::placeholder { color: var(--muted); opacity: 0.8; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: 14px; color: var(--danger); }
.form__submit { justify-self: start; }
.form__status { font-size: 15px; min-height: 1.4em; }
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--danger); }
.form__hint { font-size: 14px; color: var(--muted); }
.c-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; color: var(--text); }
a.c-item { transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease); }
a.c-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.c-item__icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.c-item__icon svg { width: 22px; height: 22px; }
.c-item b { font-size: 16px; }
.c-item > span:last-child { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.contact-note { padding: 22px 24px; border-radius: var(--r-lg); background: var(--accent-soft); }
.contact-note p { color: var(--text-2); font-size: 15px; }

/* ---------- Packages / journal / growth ---------- */
.growth-main { padding-bottom: var(--section-tight); }
.growth-hero { padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(32px, 4vw, 56px); }
.growth-hero h1 { font-size: clamp(40px, 6.4vw, 80px); letter-spacing: -0.035em; line-height: 1.04; margin: 4px auto 20px; max-width: 16ch; }
.growth-hero > p:last-child { max-width: 680px; margin-inline: auto; color: var(--muted); font-size: clamp(19px, 2vw, 24px); line-height: 1.42; }
.growth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.growth-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.growth-card { padding: 30px; min-width: 0; }
.growth-card h2 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 12px; }
.growth-card h2 a { text-decoration: none; }
.growth-card h2 a:hover { color: var(--accent-text); }
.growth-card h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.growth-card p { color: var(--muted); margin: 10px 0; }
.growth-card ul { list-style: none; margin: 20px 0 24px; display: grid; gap: 10px; }
.growth-card li { position: relative; padding-left: 26px; font-size: 16px; }
.growth-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-text); font-weight: 700; }
.package-card { display: flex; flex-direction: column; }
.package-card .btn { margin-top: auto; }
.package-price { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.025em; color: var(--text); margin-top: 8px; }
.package-note { margin-top: 24px; text-align: center; padding: clamp(28px, 4vw, 48px); }
.package-note p { max-width: 680px; margin-inline: auto; }
.channel-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.journal-article { max-width: 740px; margin-inline: auto; }

/* ---------- Estimator ---------- */
.estimator-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.est-options { display: grid; gap: 10px; }
.est-opt { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.est-opt:hover { border-color: var(--line-strong); }
.est-opt:has(input:checked) { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); }
.est-opt:has(input:focus-visible) { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.est-opt input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--accent-text); }
.est-opt b { font-size: 16px; }
.est-opt small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.est-summary { position: sticky; top: calc(var(--nav-h) + 20px); padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.est-range { font-family: var(--font-display); font-size: clamp(32px, 4vw, 42px); font-weight: 700; letter-spacing: -0.03em; margin: 6px 0; font-variant-numeric: tabular-nums; }
.est-summary ul { list-style: none; margin: 16px 0 20px; color: var(--muted); font-size: 15px; }
.est-summary li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.est-note { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.55; }

/* ---------- Demos ---------- */
.demo-banner { padding: 12px 18px; margin-bottom: 20px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--text); font-size: 15px; text-align: center; }
.demo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; margin: 0 auto 24px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--fill); }
.demo-tabs button { min-height: 40px; padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text); transition: background-color 0.2s var(--ease), box-shadow 0.2s; }
.demo-tabs button[aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 600; }
.demo-app { padding: clamp(20px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); scroll-margin-top: calc(var(--nav-h) + 20px); }
.demo-app h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.028em; margin-bottom: 6px; }
.demo-app > p { color: var(--muted); margin-bottom: 20px; }
.demo-app label { display: grid; gap: 8px; margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.demo-app .form__row { gap: 16px; }
.demo-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-button { display: block; text-align: left; padding: 18px; border-radius: var(--r-md); background: var(--bg-alt); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s var(--ease-out); }
.product-button:hover { border-color: var(--accent-text); transform: translateY(-2px); }
.product-button span { display: block; font-size: 26px; margin-bottom: 8px; }
.product-button strong { display: block; font-size: 16px; }
.product-button small { display: block; color: var(--muted); font-size: 14px; }
.demo-panel { padding: 22px; border-radius: var(--r-lg); background: var(--bg-alt); }
.demo-panel h3 { font-size: 18px; margin-bottom: 8px; }
.demo-panel p { color: var(--muted); font-size: 14px; }
.demo-img { width: 100%; border-radius: var(--r-sm); }
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cart-item button { width: 36px; height: 36px; border-radius: 50%; background: var(--fill-strong); font-size: 18px; }
.demo-total { display: flex; justify-content: space-between; font-size: 21px; font-weight: 600; margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.demo-status { min-height: 44px; padding: 12px 0; color: var(--text-2); font-size: 15px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.demo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.demo-metrics div { padding: 18px; border-radius: var(--r-md); background: var(--bg-alt); color: var(--muted); font-size: 14px; }
.demo-metrics strong { display: block; font-family: var(--font-display); font-size: 32px; color: var(--text); letter-spacing: -0.03em; }
.demo-table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.demo-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
.demo-table th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-alt); }
.demo-table th, .demo-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.demo-table tr:last-child td { border-bottom: 0; }
.demo-table select { min-width: 140px; min-height: 40px; }
.route-visual { position: relative; display: flex; justify-content: space-between; align-items: center; height: 160px; padding: 0 20px; border-radius: var(--r-md); background: radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 0) 0 0 / 18px 18px, var(--surface); font-size: 14px; }
.route-visual::before { content: ""; position: absolute; left: 22%; right: 22%; top: 50%; border-top: 2px dashed var(--accent-text); }
.route-visual span { position: relative; padding: 6px 12px; border-radius: 999px; background: var(--bg); box-shadow: var(--shadow-sm); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: clip; text-align: center; padding-block: var(--section); background: var(--bg-alt); }
.cta-band::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -260px; width: min(900px, 140vw); height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); }
.cta-band h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1.05; }
.cta-band p { max-width: 560px; margin: 16px auto 28px; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 96px; font-size: 14px; color: var(--muted); }
.cta-band + .footer { border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding-bottom: 36px; }
.footer__brand p { margin-top: 12px; max-width: 300px; line-height: 1.55; }
.footer__tagline { font-size: 11px !important; font-weight: 600; letter-spacing: 0.28em; color: var(--accent-text); }
.footer h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: 10px; }
.footer ul { list-style: none; display: grid; gap: 2px; }
.footer ul a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.footer ul a:hover { color: var(--text); text-decoration: underline; }
.footer__social { display: flex; gap: 8px; margin-top: 16px; }
.footer__social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fill); color: var(--text); transition: background-color 0.2s; }
.footer__social a:hover { background: var(--fill-strong); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

.floating-chat {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px 10px 14px;
  border-radius: 999px; background: #1d1d1f; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease-out);
}
.floating-chat:hover { transform: translateY(-2px); }
.floating-chat svg { width: 22px; height: 22px; color: #25d366; }
@media (prefers-color-scheme: dark) { .floating-chat { background: #f5f5f7; color: #1d1d1f; } .floating-chat svg { color: #128c4a; } }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; text-align: center; padding: 96px var(--gutter); position: relative; isolation: isolate; }
.nf::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(closest-side, var(--glow), transparent) center / 900px 600px no-repeat; }
.nf__code { font-family: var(--font-display); font-size: clamp(110px, 22vw, 220px); font-weight: 800; line-height: 1; letter-spacing: -0.06em; color: var(--accent-text); }
.nf h1 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.03em; margin-top: 8px; }
.nf p { color: var(--muted); margin-top: 10px; font-size: 19px; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 20px; }
.nf__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); text-decoration: none; }
.nf__links a:hover { text-decoration: underline; }

/* ---------- Utilities (replace former inline styles) ---------- */
.u-title-m { font-size: clamp(28px, 3.6vw, 44px); }
.u-title-s { font-size: clamp(22px, 2.6vw, 30px); }
.u-text-lg { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; color: var(--text-2); }
.u-lead { color: var(--muted); margin-top: 16px; font-size: 18px; line-height: 1.6; }
.u-muted { color: var(--muted); }
.u-strong { color: var(--text); }
.u-small-muted { color: var(--muted); font-size: 15px; }
.u-note { color: var(--muted); margin-top: 32px; font-size: 15px; }
.u-flush-top { border-top: 0; padding-top: 0; }
.u-my-head { margin: 56px 0 28px; }
.u-my-sub { margin: 36px 0 20px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-32 { margin-top: 32px; }
.u-mt-56 { margin-top: 56px; }
.u-mt-64 { margin-top: clamp(48px, 6vw, 72px); }
.u-mb-4 { margin-bottom: 4px; }
.u-mb-22 { margin-bottom: 20px; }
.u-mb-34 { margin-bottom: 28px; }
.u-mw-860 { max-width: 860px; }
.u-stack { display: grid; gap: 14px; align-content: start; }
.u-hidden { display: none !important; }

/* ---------- Reveal (progressive enhancement) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .reveal.d1 { transition-delay: 0.06s; }
.js-reveal .reveal.d2 { transition-delay: 0.12s; }
.js-reveal .reveal.d3 { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .grid-3, .growth-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-block, .contact-grid, .estimator-grid, .demo-layout { grid-template-columns: 1fr; }
  .est-summary { position: static; }
}
@media (max-width: 820px) {
  .studio-intro, .studio-row, .about { grid-template-columns: 1fr; }
  .studio-row:nth-of-type(odd) > figure { order: 0; }
  .studio-service-grid, .studio-work-grid, .editorial-brief { grid-template-columns: 1fr; }
  .stack-group { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .grid-2, .grid-3, .grid-4, .growth-grid, .growth-grid.three, .form__row, .product-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .role-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .svc-block ul { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .faq summary { padding: 16px 20px; font-size: 17px; }
  .faq details > div { padding: 0 20px 20px; }
  .demo-metrics { gap: 8px; }
  .demo-metrics div { padding: 12px; }
  .demo-metrics strong { font-size: 26px; }
  .demo-tabs { border-radius: var(--r-md); display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .demo-tabs button { border-radius: 12px; }
  .hero__actions .btn, .studio-actions .btn { flex: 1 1 auto; }
  .floating-chat { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 10px 14px 10px 12px; }
  .floating-chat span { display: none; }
  .floating-chat { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .footer { padding-bottom: 88px; }
}
@media (max-width: 400px) {
  .footer__grid { grid-template-columns: 1fr; }
  .nav__cta { width: 100%; }
}
@media (pointer: coarse) {
  .btn--sm { min-height: 44px; }
  .chip { min-height: 36px; }
}

@media print {
  .nav, .footer, .cta-band, .floating-chat, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- Headline accent (gradient text, AA large-text contrast in both themes) ---------- */
h1 .accent, h2 .accent {
  background: linear-gradient(100deg, #a35f00 0%, #c27400 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #a35f00;
}
@media (prefers-color-scheme: dark) {
  h1 .accent, h2 .accent { background-image: linear-gradient(100deg, #ffc400 0%, #ffdf80 100%); color: #ffc400; }
}
@media (forced-colors: active) { h1 .accent, h2 .accent { -webkit-text-fill-color: currentColor; background: none; } }
/* Become visible instantly when opening so keyboard focus can move into the panel. */
.nav__item.is-open .drop { transition: opacity 0.2s var(--ease), transform 0.25s var(--ease-out), visibility 0s; }

/* ==========================================================================
   Products (Bright Loop) — hub, cards, product pages, lightbox
   ========================================================================== */
.p-icon { border-radius: 22.5%; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); flex-shrink: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--fill); color: var(--text); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--ea { background: var(--accent-soft); color: var(--accent-text); }
.status--live { background: rgba(48, 209, 88, 0.14); color: var(--success); }
.status--soon { color: var(--muted); }

.notice { padding: 18px 22px; border-radius: var(--r-lg); background: var(--bg-alt); border: 1px solid var(--line); font-size: 15px; color: var(--text-2); line-height: 1.55; }
.notice strong { color: var(--text); }
.notice a { color: var(--accent-text); }

/* Filter toolbar */
.pfilter { position: sticky; top: var(--nav-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 0; margin-bottom: 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill); }
.seg button { min-height: 38px; padding: 6px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 600; }
.pfilter__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.pfilter__cats button { min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 14px; background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
.pfilter__cats button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pfilter__search { margin-left: auto; position: relative; flex: 1 1 220px; max-width: 320px; }
.pfilter__search input { width: 100%; min-height: 44px; padding: 10px 14px 10px 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 16px; }
.pfilter__search input:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.pfilter__search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pfilter__count { width: 100%; font-size: 14px; color: var(--muted); }
html:not(.js-products) .pfilter { display: none; }

.pgroup { margin-bottom: clamp(48px, 6vw, 80px); }
.pgroup > h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; margin-bottom: 6px; }
.pgroup > p { color: var(--muted); margin-bottom: 24px; }
.pgrid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease); }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pcard__head { display: flex; gap: 14px; align-items: center; }
.pcard__head .p-icon { width: 60px; height: 60px; }
.pcard h3 { font-size: 19px; letter-spacing: -0.02em; }
.pcard__cat { font-size: 13px; color: var(--muted); }
.pcard p { color: var(--text-2); font-size: 15px; line-height: 1.5; flex: 1; }
.pcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--accent-text); font-weight: 500; }
.pempty { padding: 40px 0; text-align: center; color: var(--muted); }

/* Homepage featured strip */
.pfeature { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin-bottom: 24px; }
.pmini { display: flex; gap: 14px; align-items: center; height: 100%; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease); }
.pmini:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pmini .p-icon { width: 52px; height: 52px; }
.pmini b { display: block; font-size: 16px; letter-spacing: -0.015em; }
.pmini span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Product hero */
.phero { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(32px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); }
.phero::before { content: ""; position: absolute; z-index: -1; top: -160px; left: -10%; width: min(900px, 120vw); height: 620px; background: radial-gradient(closest-side, var(--p-glow, var(--glow)), transparent); pointer-events: none; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.phero .crumbs { justify-content: flex-start; margin-bottom: 18px; }
.phero__id { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.phero__id .p-icon { width: 96px; height: 96px; }
.phero__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.phero h1 { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -0.04em; line-height: 1.02; }
.phero__kind { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 6px; }
.phero__lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; letter-spacing: -0.015em; color: var(--text-2); margin-top: 18px; max-width: 34ch; }
.phero .hero__actions { justify-content: flex-start; margin-top: 26px; }
.phero__fine { font-size: 14px; color: var(--muted); margin-top: 14px; max-width: 56ch; }
.phero__fine a { color: var(--accent-text); }
.phero__art { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface-2); }
.phero__art img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }

.subnav { position: sticky; top: var(--nav-h); z-index: 20; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.subnav__in { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; min-height: 48px; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav nav { display: flex; flex-wrap: nowrap; }
.subnav b { font-size: 15px; margin-right: 10px; white-space: nowrap; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.subnav a:hover { color: var(--text); }

.psec { padding-block: clamp(56px, 7vw, 96px); scroll-margin-top: calc(var(--nav-h) + 52px); }
.psec--alt { background: var(--bg-alt); }
.psec--tight { padding-block: clamp(32px, 4vw, 56px); }
.psec__head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
.psec__head h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.032em; line-height: 1.08; }
.psec__head p { margin-top: 12px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
.psec__head p a { color: var(--accent-text); }

.shots { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 22vw, 250px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 20px; scroll-padding-inline: var(--gutter); max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; list-style: none; }
.shots li { scroll-snap-align: start; }
.shots button { display: block; width: 100%; border-radius: 20px; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); cursor: zoom-in; transition: transform 0.25s var(--ease-out); }
.shots button:hover { transform: translateY(-3px); }
.shots img { width: 100%; height: auto; }
.shots p { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

.prose-lg p { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--text-2); max-width: 780px; }
.prose-lg p + p { margin-top: 16px; }
.prose-lg .hl { color: var(--text); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.tiles > .tile:only-child .checks { display: block; columns: 2 300px; column-gap: 40px; }
.tiles > .tile:only-child .checks li { break-inside: avoid; margin-bottom: 8px; }
.tile { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.psec--alt .tile { box-shadow: none; }
.tile h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 10px; }
.tile p { color: var(--text-2); font-size: 16px; line-height: 1.55; }
.tile p + p, .tile ul + p, .tile p + ul { margin-top: 10px; }
.tile .small { font-size: 14px; color: var(--muted); }
.tile a:not(.btn) { color: var(--accent-text); }
.checks { list-style: none; display: grid; gap: 8px; margin-top: 6px; }
.checks li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.checks li::before { content: "\2713"; position: absolute; left: 2px; top: 0; font-weight: 700; color: var(--accent-text); }
.checks--x li::before { content: "\2013"; color: var(--muted); }
.tile--new { display: flex; gap: 12px; align-items: flex-start; }
.tile--new h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.tile--new span { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); }
.tile--new svg { width: 15px; height: 15px; }
.pro-tag { display: inline-block; padding: 1px 7px; margin-left: 4px; border-radius: 6px; font-size: 11px; font-weight: 700; vertical-align: 2px; background: var(--accent-soft); color: var(--accent-text); }
.store-desc { margin-top: 24px; }
.store-desc summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: var(--accent-text); font-weight: 500; }
.store-desc .tiles { margin-top: 12px; }

.tour { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.tour dl { display: grid; gap: 14px; margin-top: 4px; }
.tour dt { font-weight: 600; font-size: 16px; }
.tour dd { color: var(--text-2); font-size: 15px; line-height: 1.5; margin-top: 2px; }

.guides { display: grid; gap: 12px; max-width: 980px; }
.guide { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.guide summary { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 16px 22px; cursor: pointer; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--muted); transition: transform 0.25s var(--ease-out); }
.guide[open] summary::after { transform: rotate(45deg); }
.guide__n { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 14px; }
.guide summary b { display: block; font-size: 17px; }
.guide summary small { display: block; font-size: 14px; color: var(--muted); }
.gsteps { list-style: none; display: grid; gap: 18px; padding: 4px 22px 26px; }
.gsteps li { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 24px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line); }
.gsteps li.no-shot { grid-template-columns: 1fr; }
.gsteps .sn { display: block; font-size: 13px; font-weight: 600; color: var(--accent-text); margin-bottom: 4px; }
.gsteps p { color: var(--text-2); font-size: 16px; line-height: 1.55; }
.gsteps button { display: block; width: 100%; cursor: zoom-in; }
.gsteps img { width: 100%; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }

.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.specs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 13px; color: var(--muted); }
.specs dd { font-size: 16px; font-weight: 500; margin-top: 2px; }
.specs a { color: var(--accent-text); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 14px 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv code, .hash { font-family: var(--font-mono); font-size: 12.5px; word-break: break-all; color: var(--text); }
.tile__ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.tile__ico svg { width: 22px; height: 22px; }
.tile .btn { margin-top: 16px; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; max-width: 820px; }
.steps li { counter-increment: s; position: relative; padding: 18px 22px 18px 64px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span, .steps p { color: var(--text-2); font-size: 16px; line-height: 1.55; }
.steps a { color: var(--accent-text); }
.steps p { margin-top: 8px; }
.note-small { font-size: 14px; color: var(--muted); margin-top: 16px; }
.note-small a { color: var(--accent-text); }

.tips { list-style: none; display: grid; gap: 10px; }
.tips li { position: relative; padding-left: 22px; color: var(--text-2); line-height: 1.55; }
.tips li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
.two-col h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.028em; margin-bottom: 18px; }
.faq a { color: var(--accent-text); }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; list-style: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: auto; max-width: min(96vw, 560px); max-height: 100vh; background: transparent; overflow: visible; color: #f5f5f7; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox figure { display: grid; gap: 10px; justify-items: center; padding-bottom: 76px; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; border-radius: 22px; }
.lightbox figcaption { font-size: 14px; text-align: center; min-height: 1.2em; }
.lightbox__bar { position: fixed; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 10px; }
.lightbox button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox button:focus-visible { outline-color: #ffc400; }
.lightbox button svg { width: 20px; height: 20px; }
.lightbox__count { color: #f5f5f7; font-size: 14px; min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }

.apk-help h2 { margin-top: 48px; }
.apk-help code { font-family: var(--font-mono); font-size: 14px; background: var(--fill); padding: 1px 6px; border-radius: 6px; color: var(--text); }

@media (max-width: 960px) {
  .phero__grid { grid-template-columns: 1fr; }
  .pfeature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .pfeature { grid-template-columns: 1fr; }
  .pfilter { position: static; }
  .pfilter__search { max-width: none; margin-left: 0; }
  .gsteps li { grid-template-columns: 1fr; }
  .gsteps button { max-width: 220px; }
  .steps li { padding-left: 58px; }
  .phero__id .p-icon { width: 80px; height: 80px; }
  .two-col { grid-template-columns: 1fr; }
}

/* Email directory (contact page) */
.email-dir { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.email-dir a { display: grid; gap: 4px; height: 100%; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease); }
.email-dir a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.email-dir__t { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.email-dir__d { font-size: 15px; color: var(--muted); line-height: 1.5; }
.email-dir__a { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--accent-text); overflow-wrap: anywhere; }

/* Contact form (enhanced) */
.form-wrap { display: grid; gap: 16px; align-content: start; }
.form__head h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.025em; }
.form__head p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.field__opt { font-weight: 400; color: var(--muted); }
.form__project { border: 0; padding: 18px; margin: 0; display: grid; gap: 20px; border-radius: var(--r-md); background: var(--bg-alt); }
.form__project legend { float: left; width: 100%; font-size: 14px; font-weight: 600; color: var(--accent-text); margin-bottom: 2px; }
.form__project input, .form__project select { background: var(--surface); }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { width: 22px; height: 22px; min-height: 0; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent-text); }
.field--check label { font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.field--check label a { color: var(--accent-text); }
.field--check + .field__error { margin-top: -12px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form__actions .form__status { color: var(--danger); }
.form__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.btn.is-busy .form__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-panel { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); text-align: center; }
.form-panel:focus { outline: none; }
.form-panel h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.028em; margin: 14px 0 10px; }
.form-panel p { color: var(--text-2); max-width: 460px; margin: 0 auto 22px; }
.form-panel p a { color: var(--accent-text); }
.form-panel__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-size: 26px; font-weight: 700; }
.form-panel--ok .form-panel__icon { background: rgba(48, 209, 88, 0.16); color: var(--success); }
.form-panel--err .form-panel__icon { background: rgba(255, 69, 58, 0.14); color: var(--danger); }
.form-privacy { font-size: 14px; color: var(--muted); line-height: 1.55; padding: 0 4px; }
.form-privacy a { color: var(--accent-text); }
.pcontact { margin-top: 14px; font-size: 15px; }
.pcontact a { color: var(--accent-text); font-weight: 500; }
.field--check input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; min-height: 0; padding: 0; border: 0; box-shadow: none; background: none; }

/* ==========================================================================
   Resources: free tools, blog, news (generated by tools/build-content.js)
   ========================================================================== */
.tool-privacy { margin-top: 18px; font-size: 14px; color: var(--muted); }
.tool-app { padding: clamp(20px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.tool-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tool-split--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.tool-fields { display: grid; gap: 16px; }
.tool-fields .field textarea, .tool-app textarea { width: 100%; min-height: 0; }
.tool-app .field input, .tool-app .field textarea, .tool-app .field select { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); font-size: 16px; }
.tool-app .field select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386868b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.tool-app .field input:focus, .tool-app .field textarea:focus, .tool-app .field select:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.tool-app input[type="color"] { padding: 4px; width: 56px; min-width: 56px; cursor: pointer; }
.tool-app input[type="range"], .tool-app input[type="checkbox"], .tool-app input[type="radio"] { width: auto; min-height: 0; padding: 0; border: 0; box-shadow: none; background: none; accent-color: var(--accent-text); }
.tool-app input[type="range"] { width: 100%; }
.tool-app input[type="file"] { padding: 9px; }
.tool-h { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin: 18px 0 8px; }
.tool-h:first-child { margin-top: 0; }
.tool-hint { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.tool-code { font-family: var(--font-mono); font-size: 13.5px !important; line-height: 1.5; white-space: pre; overflow: auto; tab-size: 2; }
.tool-code--big { font-size: 18px !important; white-space: pre-wrap; word-break: break-all; }
.tool-count { font-size: 13px; color: var(--muted); margin-top: -8px; }
.tool-count.is-warn { color: var(--danger); }
.tool-status { font-size: 15px; color: var(--text-2); margin: 10px 0; min-height: 1.4em; }
.tool-status.is-ok { color: var(--success); }
.tool-status.is-error { color: var(--danger); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tool-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tool-checks label, .tool-radio label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 15px; cursor: pointer; }
.tool-checks--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tool-radio { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.tool-radio legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.tool-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 16px; }
.tool-bar .field { min-width: 150px; }
.tool-preview--center { display: grid; justify-items: center; text-align: center; }
.color-pair { display: flex; gap: 8px; }
.color-pair input[type="text"] { font-family: var(--font-mono); text-transform: uppercase; }
.tool-app .notice { font-size: 14px; }

/* Previews */
.pv-google { padding: 16px 18px; border-radius: var(--r-md); background: #fff; color: #202124; border: 1px solid var(--line); font-family: Arial, sans-serif; }
.pv-google span { display: block; font-size: 13px; color: #4d5156; }
.pv-google b { display: block; font-size: 19px; font-weight: 400; color: #1a0dab; line-height: 1.3; margin: 4px 0; }
.pv-google p { font-size: 14px; color: #4d5156; line-height: 1.5; }
.pv-social { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.pv-social img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; }
.pv-social__noimg { aspect-ratio: 1.91 / 1; display: grid; place-items: center; padding: 20px; text-align: center; font-size: 13px; color: var(--muted); background: var(--fill); }
.pv-social__body { padding: 12px 14px; }
.pv-social__body span { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.pv-social__body b { display: block; font-size: 15px; margin: 2px 0; }
.pv-social__body p { font-size: 13px; color: var(--muted); }
.qr-canvas { width: min(100%, 320px); height: auto; aspect-ratio: 1; border-radius: var(--r-sm); image-rendering: pixelated; box-shadow: 0 0 0 1px var(--line); }
.cc-preview { margin-top: 16px; padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); }
.cc-preview .cc-big { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.cc-ratio { font-family: var(--font-display); font-size: clamp(44px, 6vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cc-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.cc-table th, .cc-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.cc-table td { text-align: right; }
.cc-badge { display: inline-block; min-width: 56px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; text-align: center; }
.cc-badge.is-pass { background: rgba(48, 209, 88, 0.16); color: var(--success); }
.cc-badge.is-fail { background: rgba(255, 69, 58, 0.14); color: var(--danger); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.swatches--scale { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.swatch { display: grid; gap: 2px; text-align: left; padding: 0 0 10px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.swatch__chip { display: grid; place-items: center; height: 72px; font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.swatch__hex { padding: 0 10px; font-family: var(--font-mono); font-size: 13px; }
.swatch__label { padding: 0 10px; font-size: 12px; color: var(--muted); }
.fv-sizes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; padding: 18px; border-radius: var(--r-md); background: var(--bg-alt); }
.fv-sizes figure { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.fv-sizes img[data-fv-size="16"] { width: 16px; height: 16px; }
.fv-sizes img[data-fv-size="32"] { width: 32px; height: 32px; }
.fv-sizes img[data-fv-size="48"] { width: 48px; height: 48px; }
.fv-sizes img[data-fv-size="180"] { width: 120px; height: 120px; }
.ic-drop { display: grid; place-items: center; gap: 4px; padding: 36px 20px; border: 2px dashed var(--line-strong); border-radius: var(--r-lg); text-align: center; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.ic-drop:hover, .ic-drop.is-over { border-color: var(--accent-text); background: var(--accent-soft); }
.ic-drop:focus-within { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.ic-drop b { font-size: 17px; }
.ic-drop span { color: var(--muted); font-size: 14px; }
.ic-list { list-style: none; display: grid; gap: 10px; }
.ic-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--bg-alt); }
.ic-item img { width: 96px; height: auto; max-height: 96px; object-fit: contain; border-radius: 8px; }
.ic-item b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.ic-item span { font-size: 13px; color: var(--muted); }
.wc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.wc-stats div { padding: 14px; border-radius: var(--r-md); background: var(--bg-alt); }
.wc-stats dt { font-size: 13px; color: var(--muted); }
.wc-stats dd { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wc-keywords { padding-left: 20px; font-size: 15px; color: var(--text-2); display: grid; gap: 4px; }
.utm-history { list-style: none; display: grid; gap: 8px; margin-bottom: 10px; }
.utm-history li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg-alt); }
.utm-history code { font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
#pwMeter { width: 100%; height: 10px; margin-top: 12px; }

/* Speed checklist */
.sc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.sc-top progress { flex: 1 1 220px; height: 12px; accent-color: var(--accent-text); }
.sc-top p { font-weight: 600; }
.sc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.sc-group { padding: 20px; border-radius: var(--r-lg); background: var(--bg-alt); }
.sc-group h3 { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 10px; }
.sc-group-count { font-size: 14px; color: var(--muted); font-weight: 500; }
.sc-group ul { list-style: none; display: grid; gap: 8px; }
.sc-group li { display: flex; gap: 12px; align-items: flex-start; }
.sc-group input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent-text); }
.sc-group label { cursor: pointer; }
.sc-group label b { display: block; font-size: 15px; }
.sc-group label span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Invoice */
.invoice { display: grid; gap: 18px; }
.invoice__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.invoice__title { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.03em; }
.invoice__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 10px; }
.inv-table-wrap { overflow-x: auto; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.inv-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line-strong); }
.inv-table td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.inv-table input { width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: 15px; }
.inv-table td:nth-child(1) { min-width: 200px; }
.inv-table td:nth-child(2) { width: 90px; }
.inv-table td:nth-child(3) { width: 130px; }
.inv-line { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-del { width: 36px; height: 36px; border-radius: 50%; background: var(--fill); font-size: 18px; }
.invoice__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 20px; align-items: start; }
.invoice__totals { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.invoice__totals div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.invoice__totals dt { color: var(--muted); }
.invoice__total { font-size: 20px; font-weight: 700; border-bottom: 0 !important; }
.invoice__total dt { color: var(--text) !important; }
@media print {
  html.print-invoice body * { visibility: hidden !important; }
  html.print-invoice .invoice, html.print-invoice .invoice * { visibility: visible !important; }
  html.print-invoice .invoice { position: absolute; inset: 0; padding: 0; color: #000; background: #fff; }
  html.print-invoice .no-print, html.print-invoice .no-print-row .field:not(:has(#invCurrency)) { display: none !important; }
  html.print-invoice .tool-app { box-shadow: none; border: 0; }
  html.print-invoice .invoice input, html.print-invoice .invoice textarea, html.print-invoice .invoice select { border: 0 !important; background: none !important; padding: 0 !important; color: #000 !important; resize: none; box-shadow: none !important; }
  html.print-invoice .invoice label { color: #555 !important; }
}

/* Cards and lists */
.tool-grid, .post-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.tool-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.tool-card, .post-card, .news-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease); }
.tool-card:hover, .post-card:hover, .news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tool-card h3, .post-card h3, .news-card h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; }
.tool-card p, .post-card p, .news-card p { color: var(--text-2); font-size: 15px; line-height: 1.5; flex: 1; }
.tool-card__cat, .post-card__cat { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.tool-card__go { font-size: 14px; font-weight: 500; color: var(--accent-text); }
.post-card__meta { font-size: 13px; color: var(--muted); }
.post-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.news-list { list-style: none; display: grid; gap: 14px; }
.news-card time { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-size: 14px; color: var(--text); }
.chip-nav a:hover { border-color: var(--text); }
.chip-nav a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; font-size: 15px; color: var(--muted); }
.pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--fill); color: var(--text); text-decoration: none; font-weight: 500; }
.link-list { list-style: none; display: grid; gap: 4px; margin-top: 14px; }
.link-list a { display: inline-flex; min-height: 40px; align-items: center; color: var(--accent-text); text-decoration: none; font-weight: 500; }
.link-list a:hover { text-decoration: underline; }
.soft-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--bg-alt); border: 1px solid var(--line); }
.soft-cta h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.025em; margin-bottom: 6px; }
.soft-cta p { color: var(--text-2); max-width: 560px; }
.prose .soft-cta p { font-size: 16px; margin: 0; }

/* Blog post */
.post-hero .container--narrow { align-items: center; }
.post-hero .article-meta a { color: var(--accent-text); }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 740px); gap: clamp(28px, 5vw, 64px); justify-content: center; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); font-size: 14px; }
.toc__h { font-weight: 600; margin-bottom: 8px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line-strong); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.post-body h2 { scroll-margin-top: calc(var(--nav-h) + 20px); }
.post-body .faq-q { font-size: 19px; margin: 28px 0 4px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body thead th { font-size: 13px; color: var(--muted); border-bottom-color: var(--line-strong); }
.post-body tbody th { font-weight: 500; }
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.table-wrap table { margin: 0; }
.post-body code { font-family: var(--font-mono); font-size: 0.88em; background: var(--fill); padding: 1px 6px; border-radius: 6px; }
.callout-note { margin: 26px 0; padding: 18px 22px; border-left: 3px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--bg-alt); }
.callout-note p { margin: 0 !important; font-size: 19px !important; color: var(--text) !important; font-style: italic; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px !important; }
.post-tags a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--fill); }
.post-tools { margin-top: 32px; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.post-tools h2 { font-size: 19px !important; margin: 0 0 8px !important; }
.post-tools ul { margin: 0 !important; }
.more-reading { padding-top: 32px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .tool-split, .tool-split--wide { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg-alt); }
  .invoice__foot { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .invoice__meta { grid-template-columns: 1fr 1fr; }
  .ic-item { grid-template-columns: 64px minmax(0, 1fr); }
  .ic-item img { width: 64px; }
  .ic-item .btn { grid-column: 1 / -1; }
}

/* ==========================================================================
   SEO tools expansion (build-content.js, 2026-11-28): tools hub search,
   glossaries, blog code blocks and the batch-2 free tools.
   New classes only; existing components are not restyled.
   ========================================================================== */
.tool-grid > li[hidden], .hub-cat[hidden], #hubPopular[hidden] { display: none !important; }
.u-mono { font-family: var(--font-mono); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; text-decoration: underline; cursor: pointer; min-height: 32px; }
.tool-meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.tool-meta a { color: var(--accent-text); }
/* hub */
.hub-search { margin-bottom: 18px; }
.hub-search input { width: 100%; max-width: 640px; min-height: 52px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 17px; }
.hub-search input:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.hub-search p { margin-top: 8px; min-height: 1.4em; }
.hub-cats a .u-muted { margin-left: 6px; font-size: 12px; }
.hub-cats a[aria-current] .u-muted { color: inherit; opacity: 0.7; }
.hub-empty { padding: 24px; border-radius: var(--r-lg); background: var(--bg-alt); color: var(--text-2); }
/* prose code blocks (blog) and markdown preview */
.prose pre.code-block, .md-preview pre { margin: 18px 0; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg-alt); border: 1px solid var(--line); overflow-x: auto; font-family: var(--font-mono); font-size: 14px; line-height: 1.55; }
.prose pre.code-block code, .md-preview pre code { background: none; padding: 0; font-size: inherit; white-space: pre; }
/* glossary */
.az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 8px; position: sticky; top: calc(var(--nav-h, 56px) + 4px); z-index: 2; padding: 8px 0; background: var(--bg); }
.az-nav a { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); font-weight: 600; text-decoration: none; color: var(--text); }
.az-nav a:hover { border-color: var(--accent-text); color: var(--accent-text); }
.gloss__letter h2 { font-size: 32px; margin: 36px 0 6px; color: var(--accent-text); scroll-margin-top: calc(var(--nav-h, 56px) + 72px); }
.gloss__item { padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h, 56px) + 72px); }
.gloss__item:target { background: var(--accent-soft); border-radius: var(--r-md); padding-left: 14px; padding-right: 14px; }
.gloss__item dt { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.gloss__item dfn { font-style: normal; }
.gloss__also { font-size: 15px; font-weight: 400; color: var(--muted); }
.gloss__item dd { margin: 6px 0 0; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.gloss__item dd a { color: var(--accent-text); }
.gloss__see { font-size: 14px; margin-top: 6px; color: var(--muted); }
/* shared bits for new tools */
.kv-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.kv-table th, .kv-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.kv-table th { width: 32%; font-weight: 600; color: var(--text-2); }
.kv-list { list-style: none; display: grid; gap: 6px; margin: 14px 0; font-size: 15px; overflow-wrap: anywhere; }
.kv-copy-list { display: grid; gap: 12px; }
.kv-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
.kv-copy label { grid-column: 1 / -1; font-size: 14px; font-weight: 600; }
.kv-copy input { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); }
.cc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.ic-item:not(:has(img)) { grid-template-columns: minmax(0, 1fr) auto; }
.ic-item .tool-actions { margin-top: 0; }
.tool-app .field.rx-pattern, .tool-app .field.cr-expr { flex: 1 1 320px; }
.rx-view { min-height: 200px; max-height: 360px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg); white-space: pre-wrap !important; overflow-wrap: anywhere; overflow: auto; }
.rx-view mark { background: var(--accent-soft); color: inherit; border-bottom: 2px solid var(--accent-text); border-radius: 2px; }
.rx-matches, .cr-next, .ch-inspect { padding-left: 22px; display: grid; gap: 4px; font-size: 14px; max-height: 260px; overflow: auto; overflow-wrap: anywhere; }
.cr-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 4px; }
.ts-now { margin-bottom: 16px; font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
.ts-out dd, .vp-stats dd { font-family: var(--font-mono); font-size: 15px; font-weight: 500; letter-spacing: 0; overflow-wrap: anywhere; }
.ts-out { grid-template-columns: 1fr; }
.df-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.df-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13.5px; }
.df-table td { padding: 2px 8px; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
.df-table .df-n { width: 1%; color: var(--muted); text-align: right; user-select: none; white-space: nowrap; }
.df-table .df-s { width: 1%; font-weight: 700; }
.df-add { background: rgb(52 199 89 / 14%); }
.df-del { background: rgb(255 59 48 / 12%); }
.df-table ins { background: rgb(52 199 89 / 35%); text-decoration: none; border-radius: 2px; }
.df-table del { background: rgb(255 59 48 / 30%); text-decoration: line-through; border-radius: 2px; }
.md-preview { min-height: 420px; max-height: 640px; overflow: auto; padding: 16px 18px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg); }
.md-preview > :first-child { margin-top: 0; }
.md-task { list-style: none; margin-left: -20px; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; max-height: 340px; overflow: auto; padding: 2px; }
.ch-key { min-height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 22px; cursor: pointer; }
.ch-key:hover, .ch-key:focus-visible { border-color: var(--accent-text); background: var(--accent-soft); }
.ch-info { display: flex; gap: 16px; align-items: center; margin-top: 16px; padding: 14px; border-radius: var(--r-md); background: var(--bg-alt); }
.ch-sel { display: grid; place-items: center; min-width: 64px; height: 64px; font-size: 36px; border-radius: var(--r-sm); background: var(--bg); }
.ch-info p { overflow-wrap: anywhere; }
.gr-stops, .bs-layers { display: grid; gap: 10px; }
.gr-stop { display: grid; grid-template-columns: 56px minmax(0, 1fr) 48px auto; gap: 10px; align-items: center; }
.gr-preview { height: 260px; border-radius: var(--r-lg); border: 1px solid var(--line); margin-bottom: 8px; }
.bs-layer { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 6px; min-width: 0; }
.bs-layer legend { font-size: 14px; font-weight: 600; padding: 0 4px; }
.bs-field { display: grid; grid-template-columns: 90px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 14px; }
.bs-stage { display: grid; place-items: center; min-height: 300px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.bs-box { width: 180px; height: 120px; }
.cv-swatch { width: 120px; height: 72px; border-radius: var(--r-md); border: 1px solid var(--line-strong); }
.ar-frame { display: grid; place-items: center; height: 220px; border-radius: var(--r-md); background: var(--bg-alt); margin: 10px 0; padding: 12px; }
.ar-box { max-width: 100%; max-height: 100%; height: 100%; border-radius: 8px; background: var(--accent-soft); border: 2px solid var(--accent-text); }
.vp-big { display: grid; gap: 4px; margin-bottom: 20px; font-family: var(--font-display); font-size: clamp(40px, 8vw, 72px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.vp-big small { font-family: var(--font); font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.vp-stats { grid-template-columns: 1fr; }
.vp-bps { list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.vp-bps .is-on { color: var(--text); font-weight: 600; }
.vp-bps .is-on::before { content: "\2713  "; color: var(--success); }
.sr-canvas, .sv-canvas, .vc-canvas { display: block; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-alt); }
.sr-canvas { cursor: grab; touch-action: none; }
.sr-canvas:active { cursor: grabbing; }
.sr-canvas:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.sv-stage { padding: 12px; border-radius: var(--r-md); background: repeating-conic-gradient(var(--bg-alt) 0% 25%, var(--bg) 0% 50%) 50% / 20px 20px; }
.sv-canvas { max-height: 480px; object-fit: contain; border: 0; background: none; }
.vc-canvas { max-width: 320px; }
.wa-qr { margin: 16px 0 4px; }
.wa-qr canvas { display: block; width: 100%; max-width: 320px; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.fc-list { list-style: none; display: grid; gap: 10px; }
.fc-item { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-alt); border-left: 4px solid var(--line-strong); font-size: 15px; overflow-wrap: anywhere; }
.fc-item.is-ok { border-left-color: var(--success); }
.fc-item.is-warn { border-left-color: var(--accent-text); }
.fc-item.is-fail { border-left-color: var(--danger); }
.fc-item b { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.fc-item code { font-size: 13px; font-family: var(--font-mono); color: var(--text-2); }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.pc-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin: 0; min-width: 0; }
.pc-card legend { font-weight: 600; font-size: 15px; padding: 0 4px; }
.pc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pc-row input, .pc-row select { width: 110px; min-height: 44px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); font-size: 16px; }
.pc-row select { width: auto; }
.pc-out { margin-top: 10px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ln-sched { margin-top: 24px; }
.ln-sched summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.ln-table { max-height: 420px; overflow: auto; margin-top: 12px; }
.ln-table table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ln-table th, .ln-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.ln-table thead th { position: sticky; top: 0; background: var(--surface); }
.tool-app progress { width: 100%; accent-color: var(--accent-text); }
.bn-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; margin-top: 8px; }
.bn-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-alt); }
.bn-item b { font-size: 17px; overflow-wrap: anywhere; }
.bn-item span { grid-row: 2; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.bn-item .btn { grid-row: 1 / span 2; grid-column: 2; }
.bn-favs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.bn-favs li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); }
.pp-warn { margin-bottom: 18px; }
.pp-out { font-size: 14px !important; line-height: 1.55; }
.uc-result { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin: 6px 0 16px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tz-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); margin: 10px 0; }
.tz-grid { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 760px; width: 100%; }
.tz-grid th, .tz-grid td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.tz-grid tbody th { text-align: left; padding: 6px 10px; white-space: nowrap; position: sticky; left: 0; background: var(--surface); font-weight: 600; }
.tz-grid tbody th small { font-weight: 400; color: var(--muted); }
.tz-grid thead th.tz-good { color: var(--success); }
.tz-work { background: var(--accent-soft); }
.tz-night { color: var(--muted); }
.tz-col { box-shadow: inset 0 0 0 1px var(--success); font-weight: 700; }
.tz-day { font-size: 9px; margin-left: 1px; color: var(--muted); font-weight: 600; }
.tz-rm { margin-left: 6px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; min-width: 28px; min-height: 28px; }
.tz-rm:hover { color: var(--danger); }
.es-preview { padding: 18px; border-radius: var(--r-md); background: #ffffff; color: #111111; border: 1px solid var(--line); overflow-x: auto; }
.es-logo-ph { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 8px; background: #eeeeee; color: #777777; font: 12px/1 Arial, sans-serif; }
.ps-links { margin-top: 12px; max-height: 360px; overflow: auto; }
.pv-url { font-size: 14px; color: var(--success); overflow-wrap: anywhere; min-height: 1.4em; }
@media (max-width: 560px) {
  .gr-stop { grid-template-columns: 48px minmax(0, 1fr) 44px; }
  .gr-stop .btn { grid-column: 1 / -1; justify-self: start; }
  .bs-field { grid-template-columns: 74px minmax(0, 1fr) 34px; }
  .kv-table th { width: 40%; }
  .gloss__item dt { font-size: 18px; }
  .az-nav a { min-width: 36px; min-height: 36px; }
}
/* --- Visual system v2: cover art cards, icon tiles, category accents (2026-11-28) --- */
.h-12 { --h: 12; } .h-32 { --h: 32; } .h-44 { --h: 44; } .h-112 { --h: 112; } .h-152 { --h: 152; } .h-168 { --h: 168; } .h-196 { --h: 196; }
.h-210 { --h: 210; } .h-222 { --h: 222; } .h-236 { --h: 236; } .h-250 { --h: 250; } .h-262 { --h: 262; } .h-288 { --h: 288; } .h-334 { --h: 334; }
.tile-ico { display: inline-grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; color: #fff;
  background: linear-gradient(145deg, hsl(var(--h, 220) 82% 58%), hsl(calc(var(--h, 220) + 32) 78% 42%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), inset 0 -1px 0 rgb(0 0 0 / 12%), 0 8px 18px -8px hsl(var(--h, 220) 70% 38% / 70%);
  transition: transform 0.35s var(--ease-out); }
.tile-ico .ico { width: 23px; height: 23px; }
.tile-ico--lg { width: 64px; height: 64px; border-radius: 18px; }
.tile-ico--lg .ico { width: 32px; height: 32px; }
.cat-chip { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-2); background: var(--fill); border: 1px solid var(--line); text-decoration: none; }
.cat-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h, 220) 80% 52%); box-shadow: 0 0 0 3px hsl(var(--h, 220) 80% 52% / 18%); }
a.cat-chip:hover { border-color: var(--line-strong); color: var(--text); }
.art { display: block; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* tool tiles */
.tool-tile { gap: 10px; }
.tool-tile .tile-ico { margin-bottom: 6px; }
.tool-tile .tool-card__go { margin-top: auto; }
.tool-tile:hover .tile-ico { transform: translateY(-2px) scale(1.06); }
.tile-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.tile-grid .tool-tile p { font-size: 14px; }
/* art cards (blog, news, glossary) */
.art-card { padding: 0; gap: 0; overflow: hidden; }
.art-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.art-card__media .art { height: 100%; }
.art-card__media img { transition: transform 0.7s var(--ease-out); }
.art-card:hover .art-card__media img { transform: scale(1.045); }
.art-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.art-card__body p { flex: 1; }
/* featured post */
.feature-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; margin-bottom: 28px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); color: inherit; text-decoration: none; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card__media { display: block; aspect-ratio: 16 / 9; height: 100%; overflow: hidden; }
.feature-card__media .art { height: 100%; }
.feature-card__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 4vw, 48px); }
.feature-card__body .section__kicker { margin: 0; }
.feature-card h2 { font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -0.03em; line-height: 1.12; }
.feature-card p { color: var(--text-2); font-size: 17px; line-height: 1.55; }
.feature-card .tool-card__go { font-weight: 600; }
/* page headers */
.hero-badge { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.post-cover { width: 100%; margin-top: 32px; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.cat-head p { margin-top: 4px; color: var(--text-2); font-size: 15px; }
.cat-head p .u-muted { margin-left: 6px; font-size: 13px; }
/* homepage resources block */
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; margin-bottom: 34px; }
.res-head h2 { margin-top: 0; }
.res-intro { max-width: 620px; margin-top: 14px; color: var(--text-2); font-size: 18px; line-height: 1.55; }
.res-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.res-posts { margin-bottom: 8px; }
.res-sub { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin: 48px 0 18px; }
.res-sub h3 { font-size: 22px; letter-spacing: -0.02em; }
.res-gloss { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; }
.res-gloss__label { margin-right: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.gloss-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 16px 5px 5px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; transition: border-color 0.2s, transform 0.3s var(--ease-out); }
.gloss-chip:hover { border-color: var(--text); transform: translateY(-1px); }
.gloss-chip .tile-ico { width: 34px; height: 34px; border-radius: 50%; }
.gloss-chip .tile-ico .ico { width: 17px; height: 17px; }
.art-card:focus-visible, .feature-card:focus-visible, .gloss-chip:focus-visible, .tool-tile:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
@media (max-width: 860px) {
  .feature-card { grid-template-columns: 1fr; }
  .feature-card__media { height: auto; }
  .res-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .tile-ico, .art-card__media img, .feature-card, .gloss-chip { transition: none; }
  .art-card:hover .art-card__media img, .tool-tile:hover .tile-ico, .feature-card:hover, .gloss-chip:hover { transform: none; }
}
/* end SEO tools expansion */

/* ==========================================================================
   KRA Assistant chat widget (js/chat.js). Replaces the old floating contact button.
   ========================================================================== */
.kc { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-family: var(--font); }
.kc.is-open { z-index: 1000; }
.kc-launch { display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: #1d1d1f; color: #fff; font: 600 15px/1 var(--font); cursor: pointer;
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / 45%), inset 0 1px 0 rgb(255 255 255 / 12%); transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease); }
.kc-launch:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgb(0 0 0 / 50%), inset 0 1px 0 rgb(255 255 255 / 12%); }
.kc-launch:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.kc-launch .kc-i { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #1d1d1f; }
.kc-launch .kc-i svg { width: 17px; height: 17px; }
.kc.is-open .kc-launch .kc-i::after { content: none; }
.kc-launch .kc-i::after { content: ""; position: absolute; right: -1px; top: -1px; width: 9px; height: 9px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 2px #1d1d1f; }
.kc-i { display: inline-grid; place-items: center; flex-shrink: 0; }
.kc-panel { width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 120px)); height: min(620px, calc(100dvh - 120px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 45%), 0 8px 24px -12px rgb(0 0 0 / 30%); transform-origin: bottom right; animation: kc-in 0.32s var(--ease-out); }
.kc-panel[hidden] { display: none; }
@keyframes kc-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.kc-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft), transparent); }
.kc-avatar { display: flex; align-items: center; justify-content: center; gap: 0; width: 42px; height: 42px; border-radius: 13px; background: #000; color: #fff; font: 800 13px/1 var(--font-display); letter-spacing: -0.02em; box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%); }
.kc-avatar i { font-style: normal; color: #ffc400; }
.kc-head__t { flex: 1; min-width: 0; }
.kc-title { font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
.kc-head__t p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.kc-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--fill); color: var(--text); cursor: pointer; }
.kc-x:hover { background: var(--fill-strong); }
.kc-x svg { width: 18px; height: 18px; }
.kc-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.kc-view[hidden] { display: none; }
.kc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scroll-behavior: smooth; }
.kc-log:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.kc-b { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.kc-b p { margin: 0; }
.kc-b--b { align-self: flex-start; background: var(--fill); border-bottom-left-radius: 6px; }
.kc-b--u { align-self: flex-end; background: #1d1d1f; color: #fff; border-bottom-right-radius: 6px; }
.kc-b.is-new { animation: kc-pop 0.28s var(--ease-out); }
@keyframes kc-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.kc-links { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.kc-links a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.kc-links a:hover { border-color: var(--line-strong); }
.kc-links a:focus-visible, .kc-chip:focus-visible, .kc-cta:focus-visible, .kc-leave:focus-visible, .kc-x:focus-visible, .kc-send:focus-visible, .kc-back:focus-visible, .kc-submit:focus-visible, .kc-alt:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.kc-links a span { flex: 1; }
.kc-links small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.kc-links .kc-i svg { width: 15px; height: 15px; color: var(--muted); }
.kc-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 14px/1 var(--font); cursor: pointer; }
.kc-cta svg, .kc-leave svg, .kc-back svg { width: 17px; height: 17px; }
.kc-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.kc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: kc-dot 1s infinite ease-in-out; }
.kc-typing i:nth-child(2) { animation-delay: 0.15s; } .kc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes kc-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.kc-chips { display: flex; gap: 8px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.kc-chips::-webkit-scrollbar { display: none; }
.kc-chip { flex-shrink: 0; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 500 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; }
.kc-chip:hover { border-color: var(--text); }
.kc-ask { display: flex; gap: 8px; padding: 10px 12px 8px 16px; border-top: 1px solid var(--line); }
.kc-in { flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: 400 16px/1 var(--font); }
.kc-in:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.kc-send { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.kc-send svg { width: 19px; height: 19px; }
.kc-foot { padding: 0 12px 12px; }
.kc-leave { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; border: 0; border-radius: 12px; background: var(--fill); color: var(--text); font: 600 14px/1 var(--font); cursor: pointer; }
.kc-leave:hover { background: var(--fill-strong); }
.kc-msg { overflow-y: auto; padding: 12px 18px 18px; }
.kc-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; min-height: 36px; padding: 0 10px 0 4px; border: 0; border-radius: 999px; background: none; color: var(--accent-text); font: 600 14px/1 var(--font); cursor: pointer; }
.kc-form { display: grid; gap: 12px; margin-top: 6px; }
.kc-form[hidden], .kc-done[hidden], .kc-err[hidden], .kc-check[hidden] { display: none; }
.kc-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.kc-f { display: grid; gap: 5px; }
.kc-f label { font-size: 13.5px; font-weight: 600; }
.kc-f input, .kc-f select, .kc-f textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: 400 16px/1.4 var(--font); }
.kc-f textarea { resize: vertical; min-height: 96px; }
.kc-f input:focus, .kc-f select:focus, .kc-f textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.kc-f [aria-invalid="true"] { border-color: var(--danger); }
.kc-hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.kc-err { margin: 0; font-size: 13px; color: var(--danger); }
.kc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.kc-check input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--accent-text); }
.kc-check a { color: var(--accent-text); }
.kc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.kc-status { margin: 0; min-height: 1.2em; font-size: 13.5px; color: var(--danger); }
.kc-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 15px/1 var(--font); cursor: pointer; }
.kc-submit:disabled { opacity: 0.6; cursor: progress; }
.kc-done { display: grid; justify-items: center; gap: 10px; padding: 28px 8px; text-align: center; }
.kc-done:focus { outline: none; }
.kc-done h3 { margin: 0; font-size: 19px; }
.kc-done p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.kc-done__i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #30d158; color: #fff; font-size: 26px; font-weight: 700; }
.kc-done__i--err { background: var(--danger); }
.kc-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.kc-alt { color: var(--accent-text); font-weight: 600; font-size: 14px; }
@media (prefers-color-scheme: dark) {
  .kc-launch { background: #f5f5f7; color: #1d1d1f; }
  .kc-launch .kc-i::after { box-shadow: 0 0 0 2px #f5f5f7; }
  .kc-b--u { background: #f5f5f7; color: #1d1d1f; }
  .kc-avatar { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%); }
}
@media (max-width: 600px) {
  .kc { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; align-items: flex-end; pointer-events: none; }
  .kc > * { pointer-events: auto; }
  .kc-launch { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .kc-launch__t { display: none; }
  .kc-launch .kc-i { width: 34px; height: 34px; }
  .kc-panel { width: 100%; height: calc(100dvh - 96px - env(safe-area-inset-bottom)); border-radius: 22px; }
  .footer { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .kc-panel, .kc-b.is-new { animation: none; }
  .kc-typing i { animation: none; opacity: 0.6; }
  .kc-launch, .kc-launch:hover { transition: none; transform: none; }
  .kc-log { scroll-behavior: auto; }
}
@media print { .kc { display: none !important; } }
/* end KRA Assistant chat widget */

/* ==========================================================================
   Play online: /play/, homepage "Play in your browser" strip, Play now buttons
   on product cards (generated by tools/build-products.js, 2026-11-28)
   ========================================================================== */
.play-badge { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; background: rgba(48, 209, 88, 0.14); color: var(--success); }
.play-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: play-pulse 2.4s var(--ease) infinite; }
@keyframes play-pulse { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); } }

/* hero */
.play-hero .page-hero__title { max-width: 17ch; }
.play-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 28px; list-style: none; font-size: 15px; color: var(--muted); }
.play-facts li { display: inline-flex; align-items: center; gap: 7px; }
.play-facts li::before { content: "\2713"; font-weight: 700; color: var(--accent-text); }

/* sections */
.play-sec { padding-block: var(--section-tight); scroll-margin-top: var(--nav-h); }
.play-sec--alt { background: var(--bg-alt); }
.play-sec__head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
.play-sec__head h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.032em; line-height: 1.08; }
.play-sec__head > p:not(.section__kicker) { margin-top: 12px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
.play-sec .faq { margin-top: 4px; }
.play-sec .note-small { margin-top: 24px; }

/* "Play online with real players" cards */
.play-mp { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.play-mp__card { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease); }
.play-mp__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.play-mp__media { position: relative; height: 220px; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 50% 100%, var(--p-glow, var(--glow)), transparent 70%), var(--surface-2); border-bottom: 1px solid var(--line); }
.play-mp__media .device { --dw: 150px; position: absolute; left: 50%; top: 26px; transform: translateX(-50%); transition: transform 0.6s var(--ease-out); }
.play-mp__media .device__frame::before, .play-mp__media .device__frame::after { display: none; }
.play-mp__card:hover .play-mp__media .device { transform: translateX(-50%) translateY(-16%); }
.play-mp__feat { width: 100%; height: 100%; object-fit: cover; }
.play-mp__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 22px 24px 24px; }
.play-mp__modes { flex: 1; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.play-mp__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.play-mp__btn { min-height: 50px; padding-inline: 28px; font-weight: 600; }

/* game / app cards */
.play-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.playcard { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.play-sec--alt .playcard { box-shadow: none; }
.playcard__head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.playcard__head .p-icon { width: 56px; height: 56px; }
.playcard__head h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.playcard__cat { font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.playcard__desc { flex: 1; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.playcard__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.playcard__app { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--accent-text); text-decoration: none; }
.playcard__app:hover { color: var(--accent-text-hover); text-decoration: underline; }

/* homepage strip */
.play-strip { position: relative; padding-block: clamp(56px, 7vw, 96px); }
.play-strip::before { content: ""; position: absolute; top: 0; left: 50%; width: min(var(--container), calc(100% - var(--gutter) * 2)); transform: translateX(-50%); border-top: 1px solid var(--line); }
.play-strip__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.play-strip__head > div { max-width: 720px; }
.play-strip__head h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.034em; line-height: 1.06; }
.play-strip__head .section__sub { margin-top: 12px; }

/* /products/ hub cards: Play now / Use in browser next to Details */
.pgrid > li.has-run { position: relative; }
.pgrid > li.has-run > .pcard { padding-bottom: 82px; }
.pcard__run { position: absolute; left: 23px; bottom: 23px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; transition: transform 0.3s var(--ease-out), background-color 0.2s var(--ease), color 0.2s var(--ease); }
.pcard__run:hover { background: var(--accent); color: var(--on-accent); }
.pgrid > li.has-run:hover > .pcard, .pgrid > li.has-run:hover > .pcard__run { transform: translateY(-3px); }
.pgrid > li.has-run:hover > .pcard { box-shadow: var(--shadow-md); }

/* product page hero: online multiplayer note */
.phero__online { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; max-width: 58ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
.phero__online a { color: var(--accent-text); }

/* header: room for "Play online" between the burger breakpoint and full width */
@media (min-width: 961px) and (max-width: 1120px) {
  .nav__links > a:not(.btn), .nav__toplink { padding: 0 9px; }
  .nav__cta { margin-left: 6px; }
}
@media (max-width: 960px) {
  .play-mp { grid-template-columns: minmax(0, 1fr); }
  .play-mp__card { flex-direction: row; }
  .play-mp__media { flex: 0 0 38%; height: auto; min-height: 236px; border-bottom: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .play-mp__card { flex-direction: column; }
  .play-mp__media { flex: none; min-height: 0; height: 196px; border-right: 0; border-bottom: 1px solid var(--line); }
  .play-mp__body { padding: 20px; }
  .play-mp__btn { flex: 1 1 100%; }
  .play-strip__head .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .play-badge__dot { animation: none; }
  .play-mp__card, .play-mp__media .device, .pcard__run { transition: none; }
}
/* end Play online */
