/* ==========================================================================
   dcArock — public site design system (mockup)
   Fonts: Archivo (variable, width + weight) / Space Mono
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --paper: #ffffff;
  --paper-2: #f4f3ef;
  --line: #e6e6e6;
  --line-2: #d2d2d2;
  --mute: #6b6b6b;
  --mute-2: #9a9a9a;
  --accent: #ff1053;
  --accent-2: #ff4d7e;
  --amber: #fdaf01;
  --violet: #7c5cff;
  --teal: #00e0c6;

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: var(--mute);
  --rule: var(--line);
  --card: var(--paper);

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, 0, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
.mono, .eyebrow { font-family: var(--f-mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
}
.display {
  font-weight: 900; font-stretch: 112%;
  font-size: clamp(3.1rem, 9vw, 9.6rem);
  line-height: .9; letter-spacing: -.045em; margin: 0;
}
.h2 {
  font-weight: 900; font-stretch: 108%;
  font-size: clamp(2.4rem, 6.2vw, 5.8rem);
  line-height: .92; letter-spacing: -.04em; margin: 0;
}
.h3 { font-weight: 800; font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--fg-2); max-width: 46ch; }
.accent { color: var(--accent); }
.outline { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.u-line { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 26px; min-height: 56px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--b-fg); background: var(--b-bg); border: 1.5px solid var(--b-bd);
  overflow: hidden; isolation: isolate; transition: color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { --b-bd: var(--accent); }
.btn__line { position: relative; width: 26px; height: 1.5px; background: currentColor; transition: width .4s var(--ease); }
.btn__line::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg); opacity: 0; transition: opacity .3s;
}
.btn:hover .btn__line { width: 42px; }
.btn:hover .btn__line::after { opacity: 1; }
.btn--ghost { --b-bg: transparent; --b-fg: var(--fg); --b-bd: var(--rule); }
.btn--ghost:hover { --b-fg: #fff; }
.btn--light { --b-bg: #fff; --b-fg: var(--ink); --b-bd: #fff; }
.btn--light:hover { --b-fg: #fff; }
.btn--accent { --b-bg: var(--accent); --b-fg: #fff; --b-bd: var(--accent); }
.btn--accent::before { background: var(--ink); }
.btn--sm { padding: 12px 18px; min-height: 44px; font-size: 12px; gap: 12px; }
.btn--sm .btn__line { width: 18px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }
.link-arrow.ext:hover span { transform: translate(3px, -3px); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2);
  white-space: nowrap;
}
.tag--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tag--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: #18c964; box-shadow: 0 0 0 0 rgba(24, 201, 100, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(24, 201, 100, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 201, 100, 0); } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); }
.logo svg { height: 30px; width: auto; overflow: visible; }
/* Logo: shapes morph into the letters AROCK on hover (nav + footer mark) */
.lg-shapes > *, .lg-word .lt { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .55s var(--ease), opacity .3s ease; }
.lg-word .lt { opacity: 0; transform: translateY(10%) scaleY(.12); }
.lg-shapes > :nth-child(2), .lg-word > g:nth-child(2) .lt { transition-delay: .04s; }
.lg-shapes > :nth-child(3), .lg-word > g:nth-child(3) .lt { transition-delay: .08s; }
.lg-shapes > :nth-child(4), .lg-word > g:nth-child(4) .lt { transition-delay: .12s; }
.lg-word > g:nth-child(5) .lt { transition-delay: .16s; }
.logo:hover .lg-shapes > *, .footer__mark:hover .lg-shapes > *, .logo:focus-visible .lg-shapes > * { opacity: 0; transform: scaleY(0); }
.logo:hover .lg-word .lt, .footer__mark:hover .lg-word .lt, .logo:focus-visible .lg-word .lt { opacity: 1; transform: none; }
.footer__mark:hover .lg-word > g:nth-child(3) .lt { fill: var(--accent); }





/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  position: relative; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute);
  padding: 6px 0; transition: color .2s;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink); color: #fff;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; }
.menu-open .nav { background: var(--ink); color: #fff; border-color: transparent; }
.menu-open .nav .logo { color: #fff; }
.menu-open .nav .btn { display: none; }
.menu a.menu__link { display: block; font-weight: 900; font-stretch: 110%; font-size: clamp(2.6rem, 11vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; }
.menu a.menu__link:hover { color: var(--accent); }
.menu__foot { font-family: var(--f-mono); font-size: 13px; color: var(--mute-2); display: grid; gap: 6px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 168px) 0; }
.section--tight { padding: clamp(56px, 8vw, 104px) 0; }
.theme-dark { --bg: var(--ink); --fg: #f4f3ef; --fg-2: #9b9a96; --rule: #2a2a2a; --card: #121212; background: var(--bg); color: var(--fg); }
.theme-pink { --bg: var(--accent); --fg: var(--ink); --fg-2: rgba(10,10,10,.72); --rule: rgba(10,10,10,.22); background: var(--bg); color: var(--fg); }
.theme-paper { --bg: var(--paper-2); background: var(--bg); }

.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head__num { font-family: var(--f-mono); font-size: 13px; color: var(--fg-2); letter-spacing: .08em; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.section-head__num svg { width: 14px; height: 14px; }
.section-head .lead { margin: 0; }
.section-head--stack { grid-template-columns: 1fr; }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.rv-line { display: block; overflow: hidden; padding: .06em 0 .16em; margin: -.06em 0 -.16em; }
.rv-line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.in .rv-line > span, .rv-line.in > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-line > span { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   HOME — HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + clamp(40px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px); display: flex; flex-direction: column; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; flex: 1; }
.hero__status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink); margin-bottom: 36px; }
.hero__status b { font-weight: 700; }
.hero h1 { font-size: clamp(2.6rem, min(7.4vw, 12.6vh), 8.2rem); }
.hero h1 .swap { position: relative; display: inline-block; color: var(--accent); white-space: nowrap; }
.hero h1 .swap::after { content: ""; display: inline-block; width: .08em; height: .78em; margin-left: .06em; background: var(--ink); vertical-align: -.04em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { margin: 36px 0 44px; max-width: 52ch; color: #3d3d3d; font-size: clamp(1.05rem, 1.3vw, 1.25rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero:has(.hero__cue-row) { padding-bottom: clamp(100px, 8vw, 116px); }
.hero__cue-row { position: absolute; left: 0; right: 0; bottom: clamp(14px, 2.2vh, 24px); display: flex; justify-content: flex-end; pointer-events: none; }
.hero__cue { display: inline-flex; align-items: flex-end; gap: 12px; padding: 6px 0 6px 12px; color: var(--ink); pointer-events: auto; transition: opacity .4s var(--ease), transform .4s var(--ease), color .3s var(--ease); animation: cue-in .9s var(--ease) 1s backwards; }
@keyframes cue-in { from { opacity: 0; transform: translateY(14px); } }
.hero__cue-txt { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); transition: color .3s var(--ease); }
.hero__cue-arrow { width: 16px; height: 76px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; overflow: visible; animation: cue-bob 1.6s ease-in-out infinite alternate; }
.hero__cue:hover { color: var(--accent); }
.hero__cue:hover .hero__cue-txt { color: var(--ink); }
.hero__cue.is-gone { opacity: 0; transform: translateY(12px); pointer-events: none; }
@keyframes cue-bob { from { transform: translateY(-6px); } to { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hero__cue-arrow { animation: none; } }
@media (min-width: 981px) and (max-height: 900px) { /* laptops: keep the hero, scroll arrow included, on the first screen */
  .hero { padding-top: calc(var(--nav-h) + clamp(24px, 4.5vh, 40px)); }
  .hero:has(.hero__cue-row) { padding-bottom: 104px; }
  .hero__lead { margin: 24px 0 32px; }
}
@media (max-width: 980px) { .hero__cue-row { display: none; } .hero:has(.hero__cue-row) { padding-bottom: clamp(56px, 7vw, 96px); } }

.pillars { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.pillar {
  position: relative; aspect-ratio: 1; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: clamp(14px, 1.6vw, 22px); display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; transition: background .45s var(--ease), color .45s var(--ease); cursor: default;
}
.pillar__top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.pillar__shape { position: absolute; inset: 22% 22% 26%; display: grid; place-items: center; }
.pillar__shape svg { width: 100%; height: 100%; overflow: visible; transition: transform .8s var(--ease); }
.pillar__shape svg * { transition: fill .45s var(--ease); }
.pillar__name { font-weight: 900; font-stretch: 110%; font-size: clamp(1.1rem, 1.7vw, 1.6rem); letter-spacing: -.03em; line-height: 1; position: relative; }
.pillar__name small { display: block; margin-top: 6px; font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: 11px; letter-spacing: .06em; color: var(--mute); text-transform: uppercase; transition: color .45s; }
.pillar.is-on, .pillar:hover { background: var(--ink); color: #fff; }
.pillar.is-on .pillar__name small, .pillar:hover .pillar__name small { color: #aaa; }
.pillar.is-on .pillar__shape svg *, .pillar:hover .pillar__shape svg * { fill: var(--accent); }
.pillar:hover[data-p="0"] .pillar__shape svg { transform: rotate(-12deg) scale(1.06); }
.pillar:hover[data-p="1"] .pillar__shape svg { transform: rotate(45deg) scale(.86); }
.pillar:hover[data-p="2"] .pillar__shape svg { transform: scale(1.1); }
.pillar:hover[data-p="3"] .pillar__shape svg { transform: scaleY(1.12) skewX(-8deg); }


/* Marquee */
.marquee { overflow: hidden; display: flex; user-select: none; --speed: 48s; }
.marquee__track { display: flex; flex: none; align-items: center; gap: 0; animation: marquee var(--speed) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat { padding: clamp(28px, 4vw, 52px) clamp(16px, 2vw, 28px); border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat__n { font-weight: 900; font-stretch: 115%; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .9; letter-spacing: -.05em; }
.stat__n sup { font-size: .45em; vertical-align: .9em; color: var(--accent); margin-left: .04em; }
.stat__l { margin-top: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.svc {
  position: relative; padding: clamp(28px, 3vw, 44px); min-height: 380px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 18px; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.svc::before { content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1; clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .7s var(--ease); }
.svc:hover { color: #fff; }
.svc:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc__num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.svc:hover .svc__num, .svc:hover p { color: #a9a9a9; }
.svc__icon { width: 44px; height: 44px; }
.svc__icon * { fill: var(--ink); transition: fill .5s var(--ease); }
.svc:hover .svc__icon * { fill: var(--accent); }
.svc__icon svg { transition: transform .8s var(--ease); }
.svc:hover .svc__icon svg { transform: rotate(90deg); }
.svc h3 { margin-top: auto; }
.svc p { margin: 0; color: var(--mute); font-size: 16px; max-width: 38ch; transition: color .5s; }
.svc .tags .tag { transition: border-color .5s, color .5s; }
.svc:hover .tags .tag { border-color: #333; color: #bbb; }

/* ---------- Apps (home bento) ---------- */
.apps-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.app-card {
  --app: var(--amber);
  position: relative; grid-column: span 6; display: flex; flex-direction: column;
  background: #141413; border: 1px solid #262624; overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .6s var(--ease);
}
.app-card:hover { border-color: color-mix(in srgb, var(--app) 60%, transparent); }
.app-card--xl { grid-column: span 7; }
.app-card--md { grid-column: span 5; }
.app-card__art { position: relative; flex: 1 0 auto; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #1e1d1b 0%, #121211 70%); }
.app-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.app-card:hover .app-card__art img { transform: scale(1.045); }
.app-card__art::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, #141413); pointer-events: none; }
.app-card__body { padding: 0 clamp(20px, 2.4vw, 32px) clamp(22px, 2.4vw, 32px); display: grid; gap: 14px; margin-top: -24px; position: relative; }
.app-card__id { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--app); color: #17160f; box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--app) 70%, transparent); }
.app-icon svg { width: 26px; height: 26px; }
.app-icon--img { background: none; box-shadow: none; border-radius: 0; }
.app-icon--img img { width: 100%; height: 100%; object-fit: contain; border-radius: 22%; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.app-card h3 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 0; color: #f4f3ef; }
.app-card .url { font-family: var(--f-mono); font-size: 12px; color: #8a8984; }
.app-card p { margin: 0; color: #a8a49c; max-width: 48ch; }
.app-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.app-card .tag { border-color: #2f2e2b; color: #a8a49c; }
.app-card .tag--key { background: color-mix(in srgb, var(--app) 14%, transparent); border-color: color-mix(in srgb, var(--app) 40%, transparent); color: var(--app); }
.app-card__links { display: flex; gap: 22px; }
.app-card__links a { color: #f4f3ef; }
.app-card__links a:hover { color: var(--app); }
.app-card__stretch { position: absolute; inset: 0; z-index: 3; }
.app-card__links, .app-card__links a { position: relative; z-index: 4; }

.apps-more { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px clamp(20px, 2.4vw, 32px); border: 1px dashed #333; }
.apps-more p { margin: 0; color: #a8a49c; font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; }
.apps-more p b { color: #f4f3ef; }

/* ---------- App making ---------- */
.idea-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.auto-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.auto-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 18px; transition: padding .4s var(--ease), color .3s; }
.auto-list li span:first-child { font-family: var(--f-mono); font-size: 12px; color: var(--mute-2); font-weight: 400; }
.auto-list li span:last-child { font-family: var(--f-mono); font-size: 12px; color: var(--mute-2); font-weight: 400; opacity: 0; transform: translateX(-6px); transition: .35s var(--ease); }
.auto-list li:hover { padding-left: 10px; color: var(--accent); }
.auto-list li:hover span:last-child { opacity: 1; transform: none; color: var(--accent); }

.compiler { position: sticky; top: calc(var(--nav-h) + 24px); background: #0e0e0e; color: #e8e6e1; border: 1px solid #222; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45), 14px 14px 0 var(--accent); }
.compiler__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #222; font-family: var(--f-mono); font-size: 12px; color: #8a8984; }
.compiler__bar i { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.compiler__bar i:nth-child(1) { background: #ff5f57; } .compiler__bar i:nth-child(2) { background: #febc2e; } .compiler__bar i:nth-child(3) { background: #28c840; }
.compiler__bar span { margin-left: 10px; }
.compiler__body { padding: clamp(20px, 2.4vw, 32px); }
.compiler label { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8a8984; margin-bottom: 12px; }
.compiler textarea { width: 100%; min-height: 104px; resize: vertical; background: #161616; border: 1px solid #2a2a2a; color: #fff; padding: 16px; font-size: 17px; line-height: 1.45; outline: none; transition: border-color .2s; }
.compiler textarea:focus { border-color: var(--accent); }
.compiler textarea::placeholder { color: #5f5e5a; }
.chips-head { display: flex; justify-content: space-between; gap: 12px; margin: 20px 0 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8a8984; }
.chips-count { color: var(--accent); letter-spacing: .06em; white-space: nowrap; }
.compiler__run .btn { flex: none; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; }
.chip { padding: 7px 11px; border: 1px solid #333; font-family: var(--f-mono); font-size: 12px; color: #cfcdc8; transition: .25s; }
.chip:hover { border-color: var(--accent); color: #fff; }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.is-on::before { content: "✓ "; }
@media (max-height: 820px) { .compiler { position: relative; top: 0; } }
.compiler__run { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compiler__run small { font-family: var(--f-mono); font-size: 11px; color: #6c6b67; }
.compiler__out { margin-top: 22px; border-top: 1px dashed #2c2c2c; padding-top: 18px; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.75; min-height: 210px; color: #bdbbb5; }
.compiler__out .ln { opacity: 0; transform: translateY(4px); animation: lnIn .35s var(--ease) forwards; }
.compiler__out .ok { color: #28c840; }
.compiler__out .k { color: var(--amber); }
.compiler__out .a { color: var(--accent); }
.compiler__out .mod { display: inline-block; margin: 3px 6px 3px 0; padding: 1px 8px; border: 1px solid #333; color: #e8e6e1; }
.compiler__out .muted { color: #5f5e5a; }
.compiler__out .compiler__send { margin-top: 12px; }
@keyframes lnIn { to { opacity: 1; transform: none; } }

.process { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(72px, 9vw, 128px); border-top: 1px solid var(--ink); counter-reset: step; }
.step { position: relative; padding: 28px 24px 0 0; }
.step::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--ink); transition: background .3s, transform .5s var(--ease); }
.step:hover::before { background: var(--accent); transform: rotate(45deg) scale(1.3); }
.step__n { font-family: var(--f-mono); font-size: 12px; color: var(--mute); letter-spacing: .1em; }
.step h4 { margin: 14px 0 10px; font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 900; letter-spacing: -.03em; }
.step p { margin: 0; color: var(--mute); font-size: 15.5px; max-width: 30ch; }
.step__time { display: inline-block; margin-top: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; background: var(--paper-2); }
.proof { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 22px 26px; background: var(--paper-2); font-size: 16px; }
.proof b { font-weight: 800; }
.proof .mini-icons { display: flex; }
.proof .mini-icons span { width: 34px; height: 34px; border-radius: 9px; margin-left: -8px; border: 2px solid var(--paper-2); display: grid; place-items: center; }
.proof .mini-icons span:first-child { margin-left: 0; }
.proof .mini-icons svg { width: 18px; height: 18px; }

/* ---------- Marketing (pink) ---------- */
.mkt-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: clamp(56px, 7vw, 96px); }
.mkt-head .lead { max-width: 60ch; justify-self: end; }
.mkt-head .h2 { font-size: clamp(2.8rem, 7.4vw, 7.2rem); }
.mkt-head .h2 span { display: block; }
.mkt-head .h2 span:nth-child(2) { padding-left: .6em; }
.mkt-head .h2 span:nth-child(3) { padding-left: 1.2em; }
.mkt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mkt-card { background: var(--ink); color: #f4f3ef; padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 20px; min-height: 520px; transition: transform .5s var(--ease); }
.mkt-card:hover { transform: translateY(-6px) rotate(-.4deg); }
.mkt-card:nth-child(2) { background: #fff; color: var(--ink); }
.mkt-card__k { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.mkt-card h3 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 900; letter-spacing: -.035em; line-height: .95; margin: 0; }
.mkt-card p { margin: 0; font-size: 15.5px; opacity: .75; }
.mkt-card ul { margin: auto 0 0; padding: 0; list-style: none; font-family: var(--f-mono); font-size: 12.5px; display: grid; gap: 8px; }
.mkt-card ul li::before { content: "→ "; color: var(--accent); }
.mkt-vis { position: relative; height: 190px; border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.mkt-card:nth-child(2) .mkt-vis { border-color: var(--line); }

/* SERP mock */
.serp { padding: 16px; display: grid; gap: 12px; font-family: Arial, sans-serif; }
.serp__q { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: #1f1f1f; font-size: 13px; color: #e8e8e8; }
.serp__q svg { width: 14px; height: 14px; flex: none; }
.serp__q .typed::after { content: "|"; margin-left: 1px; animation: blink 1s steps(1) infinite; color: var(--accent); }
.serp__r { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; font-size: 12px; line-height: 1.35; }
.serp__r .pos { font-family: var(--f-mono); font-size: 11px; color: #777; padding-top: 2px; }
.serp__r b { display: block; color: #8ab4f8; font-weight: 400; font-size: 14px; }
.serp__r i { font-style: normal; color: #9aa0a6; font-size: 11px; }
.serp__r.win { background: rgba(255, 16, 83, .12); outline: 1px solid rgba(255, 16, 83, .5); padding: 8px; margin: -4px -8px; }
.serp__r.win .pos { color: var(--accent); font-weight: 700; }
.serp__r.dim { opacity: .35; }

/* Ads chart */
.ads-chart { width: 100%; height: 100%; }
.ads-legend { position: absolute; top: 12px; left: 14px; display: flex; gap: 14px; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); }
.ads-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--ink); }
.ads-legend span:last-child::before { background: var(--accent); height: 2px; vertical-align: 3px; width: 12px; }

/* Guerrilla */
.guer { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, #141414 0 12px, #181818 12px 24px); }
.sticker { position: absolute; display: grid; place-items: center; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; text-align: center; transition: transform .6s var(--ease); }
.mkt-card:hover .sticker--a { transform: rotate(-4deg) scale(1.04); }
.mkt-card:hover .sticker--b { transform: rotate(14deg) scale(1.08); }
.sticker--a { left: 8%; top: 18%; padding: 14px 18px; background: var(--accent); color: #fff; font-size: 22px; transform: rotate(-9deg); box-shadow: 4px 4px 0 #000; }
.sticker--b { right: 10%; top: 12%; width: 96px; height: 96px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 13px; transform: rotate(8deg); box-shadow: 4px 4px 0 #000; }
.sticker--c { left: 32%; bottom: 12%; padding: 8px 12px; background: var(--amber); color: #111; font-family: var(--f-mono); font-size: 12px; font-weight: 700; transform: rotate(3deg); }
.sticker--qr { right: 14%; bottom: 10%; width: 62px; height: 62px; background: #fff; padding: 5px; transform: rotate(-6deg); }

.mkt-close { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 32px 64px; align-items: end; border-top: 2px solid var(--ink); padding-top: 36px; }
.mkt-close p { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; max-width: 30ch; }
.mkt-close p em { font-style: normal; background: var(--ink); color: var(--accent); padding: 0 .18em; }

/* ---------- Clients list (home) ---------- */
.client-list { border-top: 1px solid var(--rule); }
.c-row {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 340px) 48px; align-items: center; gap: 20px;
  padding: clamp(18px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--rule); isolation: isolate;
}
.c-row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--ink); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.c-row:hover { color: #fff; }
.c-row:hover::before { transform: scaleY(1); transform-origin: top; }
.c-row__i { font-family: var(--f-mono); font-size: 12px; color: var(--mute-2); }
.c-row__n { font-weight: 900; font-stretch: 108%; font-size: clamp(1.6rem, 4.2vw, 3.8rem); letter-spacing: -.04em; line-height: 1; transition: transform .5s var(--ease); }
.c-row:hover .c-row__n { transform: translateX(14px); }
.c-row__s { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); transition: color .3s; }
.c-row:hover .c-row__s { color: #aaa; }
.c-row__go { width: 48px; height: 48px; border: 1px solid var(--rule); display: grid; place-items: center; transition: .4s var(--ease); }
.c-row:hover .c-row__go { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.c-row__go svg { width: 16px; height: 16px; }

.peek {
  position: fixed; left: 0; top: 0; z-index: 50; width: 380px; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .4s var(--ease);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5);
}
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek .browser__bar { background: #fff; }

/* ---------- Browser + phone frames ---------- */
.browser { background: #fff; border: 1px solid #d9d9d9; overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f1f1ef; border-bottom: 1px solid #e2e2e2; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d6d3; }
.browser__bar span { margin: 0 auto; padding: 2px 14px; background: #fff; border-radius: 6px; font-family: var(--f-mono); font-size: 10.5px; color: #8b8b8b; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone { position: relative; width: 100%; padding: 10px; background: #0b0b0b; border-radius: 42px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), inset 0 0 0 2px #2a2a2a; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; border-radius: 20px; background: #0b0b0b; transform: translateX(-50%); z-index: 2; }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 33px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); }
.contact .h2 { font-size: clamp(2.8rem, 6.6vw, 6.4rem); }
.contact-info { margin-top: 48px; display: grid; gap: 28px; }
.contact-info .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 6px; }
.contact-info a.v { font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -.02em; }
.contact-info a.v:hover { color: var(--accent); }
.form { display: grid; gap: 26px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label, .field .lbl { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 10px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--rule); padding: 10px 0 12px; font-size: 19px; color: var(--fg); outline: none; transition: border-color .25s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field textarea.ta-tall { min-height: 180px; }
.field--features:not([hidden]) { animation: fieldIn .45s var(--ease); }
@keyframes fieldIn { from { opacity: 0; transform: translateY(8px); } }

/* Brief carried over from the idea compiler into the project form */
.brief-card { display: grid; gap: 8px; padding: 18px 20px; background: #171717; border: 1px solid #2c2c2c; border-left: 3px solid var(--accent); }
.brief-card.is-new { animation: briefIn .8s var(--ease); }
@keyframes briefIn { from { opacity: 0; transform: translateY(12px); box-shadow: 0 0 0 8px rgba(255, 16, 83, .28); } }
.brief-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brief-card__tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.brief-card__x { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: #8a8984; transition: color .2s; }
.brief-card__x:hover { color: #fff; }
.brief-card__title { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.brief-card__meta { margin: 0; font-family: var(--f-mono); font-size: 12.5px; color: var(--amber); }
.brief-card__mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.brief-card__mods span { padding: 2px 8px; border: 1px solid #333; font-family: var(--f-mono); font-size: 11.5px; color: #cfcdc8; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: #55534f; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { padding: 10px 14px; border: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12.5px; color: var(--fg-2); transition: .2s; }
.pick button:hover { border-color: var(--fg); color: var(--fg); }
.pick button.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form__foot small { font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #f4f3ef; padding: clamp(64px, 8vw, 112px) 0 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: clamp(56px, 7vw, 96px); }
.footer__top h5 { margin: 0 0 18px; font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: #77756f; }
.footer__top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__top a:hover { color: var(--accent); }
.footer__pitch { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; max-width: 18ch; margin: 0 0 24px; }
.footer__area { max-width: 36ch; margin: -8px 0 24px; font-size: 15px; line-height: 1.5; color: #a9a7a0; }
.footer__mark { display: block; width: 100%; color: #f4f3ef; }
.footer__mark svg { width: 100%; height: auto; }
.footer__mark svg { overflow: visible; }



.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; font-family: var(--f-mono); font-size: 12px; color: #77756f; }

/* ==========================================================================
   ARCHIVES (apps / clients)
   ========================================================================== */
.page-hero { padding: calc(var(--nav-h) + clamp(56px, 8vw, 120px)) 0 clamp(40px, 5vw, 72px); }
.page-hero__row { display: grid; grid-template-columns: minmax(min-content, 1.4fr) minmax(0, 1fr); gap: 40px 80px; align-items: end; }
.page-hero .display { font-size: clamp(3.2rem, 8.4vw, 8.8rem); }
.crumbs { display: flex; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 28px; }
.crumbs a:hover { color: var(--accent); }
.counts { display: flex; gap: 0; border-top: 1px solid var(--rule); margin-top: 32px; }
.counts div { flex: 1; padding: 18px 16px 0 0; }
.counts b { display: block; font-weight: 900; font-stretch: 112%; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.04em; line-height: 1; }
.counts span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }

.filterbar { position: sticky; top: var(--nav-h); z-index: 20; transition: top .4s var(--ease); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.nav.is-hidden ~ main .filterbar { top: 0; }
.filterbar__in { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); transition: .2s; }
.filters button sup { font-size: 10px; opacity: .7; }
.filters button:hover { color: var(--fg); border-color: var(--fg); }
.filters button.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; border-bottom: 1.5px solid var(--rule); padding: 6px 0; min-width: 220px; }
.search:focus-within { border-color: var(--accent); }
.search svg { width: 16px; height: 16px; color: var(--fg-2); flex: none; }
.search input { border: 0; outline: 0; background: transparent; font-family: var(--f-mono); font-size: 13px; width: 100%; }

.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: clamp(56px, 7vw, 104px) 0 24px; padding-bottom: 18px; border-bottom: 1.5px solid var(--fg); }
.group-head:first-child { margin-top: clamp(40px, 5vw, 64px); }
.group-head h2 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 3.2rem); font-weight: 900; font-stretch: 108%; letter-spacing: -.04em; line-height: 1; display: flex; align-items: baseline; gap: 14px; }
.group-head h2 sup { font-family: var(--f-mono); font-size: 13px; font-weight: 400; font-stretch: 100%; letter-spacing: .04em; color: var(--accent); }
.group-head p { margin: 0; font-family: var(--f-mono); font-size: 12.5px; color: var(--fg-2); max-width: 48ch; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool.tool--cta { background: var(--ink); color: #f4f3ef; border-color: var(--ink); justify-content: space-between; }
.tool.tool--cta:hover { box-shadow: 8px 8px 0 var(--accent); border-color: var(--ink); }
.tool--cta h3 { font-size: 1.7rem; font-weight: 900; letter-spacing: -.03em; }
.tool--cta p { color: #a9a9a9; }
.tool--cta .tool__ic { background: var(--accent); color: #fff; }
.apps-light .app-card { grid-column: span 6; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.is-filtered-out { display: none !important; }
.empty { display: none; padding: 80px 0; text-align: center; font-family: var(--f-mono); color: var(--fg-2); }
.empty.show { display: block; }

/* Tool card (apps archive compact) */
.tool { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--rule); background: var(--card); min-height: 300px; transition: border-color .3s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.tool:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 8px 8px 0 var(--ink); }
.tool__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tool__ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper-2); }
.tool__ic svg { width: 22px; height: 22px; }
.tool h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 0; }
.tool p { margin: 0; color: var(--mute); font-size: 15px; }
.tool__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); }
.tool__meta span + span::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.tool__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--rule); }
.price { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.price.free { color: #0e9f53; }

.cta-band { position: relative; overflow: hidden; }
.cta-band__in { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 64px; align-items: end; }
.cta-band .h2 { font-size: clamp(2.4rem, 5.6vw, 5.2rem); }
.cta-band__shapes { position: absolute; right: -40px; top: -60px; width: 420px; opacity: .08; pointer-events: none; }

/* Client card */
.client-card { position: relative; display: flex; flex-direction: column; gap: 18px; }
.client-card .browser { transition: transform .6s var(--ease), box-shadow .6s var(--ease); position: relative; }
.client-card .browser img { transition: transform 1.4s var(--ease); }
.client-card:hover .browser { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.client-card:hover .browser img { transform: scale(1.04); }
.client-card__ov { position: absolute; inset: 30px 0 0; display: grid; place-items: center; background: rgba(10, 10, 10, .55); opacity: 0; transition: opacity .4s; }
.client-card__ov span { padding: 12px 18px; background: #fff; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transform: translateY(10px); transition: transform .5s var(--ease); }
.client-card:hover .client-card__ov { opacity: 1; }
.client-card:hover .client-card__ov span { transform: none; }
.client-card__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.client-card h3 { margin: 0; font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.client-card .ind { font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.client-card .yr { font-family: var(--f-mono); font-size: 12px; color: var(--mute); white-space: nowrap; }
.client-card--wide { grid-column: span 2; }
.client-card--wide .browser img { aspect-ratio: 16 / 7; }

.industries { display: flex; flex-wrap: wrap; gap: 10px 0; }
.industries span { font-weight: 900; font-stretch: 110%; font-size: clamp(1.6rem, 3.6vw, 3.2rem); letter-spacing: -.04em; line-height: 1.1; color: var(--fg); }
.industries span:nth-child(odd) { color: transparent; -webkit-text-stroke: 1.2px var(--fg); }
.industries span::after { content: "/"; margin: 0 .35em; color: var(--accent); -webkit-text-stroke: 0; }
.industries span:last-child::after { content: ""; }

/* ==========================================================================
   CLIENT DETAIL (case study)
   ========================================================================== */
.case { --client: #f7941d; }
.case-hero { padding: calc(var(--nav-h) + clamp(48px, 7vw, 104px)) 0 0; }
.case-hero__title { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end; }
.case-hero .display { font-size: clamp(3.6rem, 12vw, 12.5rem); }
.case-hero .display .o { color: var(--client); }
.case-quote { font-family: var(--f-mono); font-size: 14px; color: var(--mute); max-width: 32ch; line-height: 1.6; padding-left: 18px; border-left: 3px solid var(--client); }
.case-meta { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); margin-top: clamp(40px, 5vw, 72px); }
.case-meta > div { padding: 20px 20px 22px 0; border-right: 1px solid var(--line); }
.case-meta > div + div { padding-left: 20px; }
.case-meta > div:last-child { border-right: 0; }
.case-meta .k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.case-meta .v { font-weight: 700; font-size: 16px; line-height: 1.35; }
.case-meta a.v:hover { color: var(--accent); }

.case-stage { position: relative; margin-top: clamp(40px, 5vw, 64px); padding: clamp(32px, 6vw, 96px) 0; background: var(--client); overflow: hidden; }
.case-stage::before { content: "FLOAT8"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-weight: 900; font-stretch: 125%; font-size: 34vw; line-height: 1; letter-spacing: -.06em; color: rgba(0, 0, 0, .07); white-space: nowrap; pointer-events: none; }
.case-stage__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px); gap: clamp(20px, 3vw, 48px); align-items: end; }
.case-stage .browser { box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .55); border: 0; }
.case-stage .phone { transform: translateY(clamp(20px, 3vw, 48px)); }

.case-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.case-cols .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--client); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.case-cols .k::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.case-cols h3 { margin-bottom: 14px; }
.case-cols p { margin: 0; color: var(--mute); }

.deliver { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.deliver ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.deliver li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.deliver li .n { font-family: var(--f-mono); font-size: 12px; color: var(--mute-2); }
.deliver li b { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.deliver li small { display: block; color: var(--mute); font-size: 14.5px; margin-top: 4px; font-weight: 400; }
.deliver li .t { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery .g1 { grid-column: span 8; }
.gallery .g2 { grid-column: span 4; display: grid; gap: 16px; align-content: start; }
.gallery .g3 { grid-column: span 6; }
.gallery .g4 { grid-column: span 6; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); letter-spacing: .06em; }
.gallery .phone { max-width: 260px; margin: 0 auto; }

.results { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.results > div { padding: 32px 24px 0 0; }
.results b { display: block; font-weight: 900; font-stretch: 115%; font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -.05em; line-height: .9; }
.results b em { font-style: normal; color: var(--client); }
.results span { display: block; margin-top: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); max-width: 26ch; }

.quote-block { position: relative; padding: clamp(32px, 5vw, 64px); border: 1.5px solid var(--ink); background: #fff; }
.quote-block::before { content: "\201C"; position: absolute; top: -.35em; left: .2em; font-weight: 900; font-size: 9rem; line-height: 1; color: var(--client); }
.quote-block p { margin: 0; font-size: clamp(1.3rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--mute-2); }
.quote-block small { display: block; margin-top: 22px; font-family: var(--f-mono); font-size: 12px; color: var(--mute); letter-spacing: .06em; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pager a { padding: clamp(32px, 4vw, 56px) 0; display: grid; gap: 10px; transition: color .3s; }
.pager a + a { text-align: right; border-left: 1px solid var(--rule); padding-left: 24px; }
.pager a:first-child { padding-right: 24px; }
.pager .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.pager .v { font-weight: 900; font-stretch: 108%; font-size: clamp(1.8rem, 4.4vw, 4rem); letter-spacing: -.04em; line-height: 1; }
.pager a:hover { color: var(--accent); }

/* ==========================================================================
   APP PAGE (STL Ruler) — themed with the app's own palette
   ========================================================================== */
.app-theme {
  --bg: #131311; --fg: #ece9e3; --fg-2: #a8a49c; --rule: #2e2c29; --card: #1b1a18;
  --key: #fdaf01; --key-ink: #2a1e00; --chrome: #1b1a18; --chrome-2: #232220; --ink-3: #7a766f;
  background: var(--bg); color: var(--fg);
}
.app-theme .nav { background: rgba(19, 19, 17, .78); color: var(--fg); }
.app-theme .nav.is-scrolled { border-bottom-color: var(--rule); }
.app-theme .nav__links a { color: var(--fg-2); }
.app-theme .nav__links a:hover { color: var(--fg); }
.app-theme .logo { color: var(--fg); }
.app-theme .btn { --b-bg: var(--key); --b-fg: var(--key-ink); --b-bd: var(--key); }
.app-theme .btn::before { background: #fff; }
.app-theme .btn:hover { --b-fg: #111; --b-bd: #fff; }
.app-theme .btn--ghost { --b-bg: transparent; --b-fg: var(--fg); --b-bd: var(--rule); }
.app-theme .btn--ghost::before { background: var(--fg); }
.app-theme .btn--ghost:hover { --b-fg: #111; }
.app-theme ::selection { background: var(--key); color: #111; }
.app-theme .tag { border-color: var(--rule); color: var(--fg-2); }
.app-theme .eyebrow { color: var(--fg-2); }

.ah { padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 0; text-align: center; position: relative; overflow: hidden; }
.ah::before { content: ""; position: absolute; left: 50%; top: -20%; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(253, 175, 1, .16), transparent 70%); pointer-events: none; }
.ah__id { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border: 1px solid var(--rule); border-radius: 999px; font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); margin-bottom: 36px; background: rgba(27, 26, 24, .6); }
.ah__id .app-icon { width: 30px; height: 30px; border-radius: 8px; --app: var(--key); box-shadow: none; }
.ah__id .app-icon svg { width: 17px; height: 17px; }
.ah__id b { color: var(--fg); }
.ah h1 { font-weight: 900; font-stretch: 108%; font-size: clamp(3rem, 8.4vw, 8.6rem); line-height: .9; letter-spacing: -.05em; margin: 0 auto; max-width: 14ch; }
.ah h1 .k { color: var(--key); }
.ah__lead { margin: 30px auto 40px; max-width: 58ch; color: var(--fg-2); font-size: clamp(1.05rem, 1.35vw, 1.25rem); }
.ah__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.ah__trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.ah__trust span::before { content: "✓ "; color: var(--key); }

/* The faux app UI */
.ui { position: relative; margin: clamp(56px, 7vw, 96px) auto 0; max-width: 1240px; border: 1px solid #34322e; border-radius: 14px 14px 0 0; background: var(--chrome); overflow: hidden; text-align: left; box-shadow: 0 -30px 120px -40px rgba(253, 175, 1, .28); }
.ui__top { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-bottom: 1px solid #2e2c29; font-size: 12px; color: var(--fg-2); }
.ui__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--fg); margin-right: 8px; }
.ui__brand i { width: 22px; height: 22px; border-radius: 6px; background: var(--key); display: grid; place-items: center; }
.ui__brand i svg { width: 13px; height: 13px; }
.ui__brand em { font-style: normal; color: var(--key); }
.ui__btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid #34322e; border-radius: 7px; background: var(--chrome-2); white-space: nowrap; }
.ui__btn--key { background: var(--fg); color: #111; border-color: var(--fg); font-weight: 700; }
.ui__sp { flex: 1; }
.ui__main { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; height: clamp(360px, 46vw, 600px); }
.ui__dock { border-right: 1px solid #2e2c29; padding: 12px; display: grid; align-content: start; gap: 12px; font-size: 11.5px; color: var(--fg-2); overflow: hidden; }
.ui__dock--r { border-right: 0; border-left: 1px solid #2e2c29; }
.ui__h { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); padding-bottom: 8px; border-bottom: 1px solid #2e2c29; }
.ui__h span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: var(--key); border-radius: 2px; vertical-align: 1px; }
.ui__presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ui__presets div { padding: 7px 4px; text-align: center; border: 1px solid #34322e; border-radius: 7px; background: var(--chrome-2); line-height: 1.2; }
.ui__presets div small { display: block; font-size: 9px; color: var(--ink-3); }
.ui__presets div.on { background: var(--fg); color: #111; border-color: var(--fg); }
.ui__presets div.on small { color: #555; }
.ui__field { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border: 1px solid #34322e; border-radius: 7px; background: #161513; }
.ui__seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #34322e; border-radius: 7px; overflow: hidden; }
.ui__seg span { padding: 6px 0; text-align: center; }
.ui__seg span.on { background: var(--key); color: #2a1e00; font-weight: 700; }
.ui__toggle { display: flex; justify-content: space-between; align-items: center; }
.ui__toggle i { width: 28px; height: 16px; border-radius: 10px; background: var(--key); position: relative; }
.ui__toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #2a1e00; }
.ui__toggle i.off { background: #34322e; }
.ui__toggle i.off::after { right: auto; left: 2px; background: #7a766f; }
.ui__canvas { position: relative; background: #252421; background-image: radial-gradient(rgba(236, 233, 227, .09) 1px, transparent 1px); background-size: 18px 18px; display: grid; place-items: center; padding: 28px; }
.ui__board { position: relative; width: 100%; max-width: 640px; aspect-ratio: 4 / 3; background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); overflow: hidden; }
.ui__board img { width: 100%; height: 100%; object-fit: contain; }
.ui__zoom { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px; border: 1px solid #34322e; border-radius: 10px; background: var(--chrome); font-size: 11px; color: var(--fg-2); }
.ui__zoom span { padding: 3px 8px; border-radius: 6px; background: var(--chrome-2); }
.ui__ruler { display: grid; gap: 6px; }
.ui__ruler div { display: flex; justify-content: space-between; padding: 7px 8px; border: 1px solid #34322e; border-radius: 7px; background: #161513; }
.ui__ruler div b { color: var(--key); font-weight: 700; font-family: var(--f-mono); font-size: 11px; }
.ui__pro { margin-top: auto; padding: 10px; border-radius: 9px; background: linear-gradient(135deg, rgba(253, 175, 1, .16), rgba(253, 175, 1, .04)); border: 1px solid rgba(253, 175, 1, .3); color: var(--fg); }
.ui__pro b { color: var(--key); }
.ui-fade { position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: 2; }

.usecases { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.usecases .marquee__track span { display: inline-flex; align-items: center; gap: 26px; padding: 26px 26px 26px 0; font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: -.02em; color: var(--fg-2); white-space: nowrap; }
.usecases .marquee__track span::after { content: ""; width: 8px; height: 8px; background: var(--key); transform: rotate(45deg); }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.feat { padding: 28px 26px 32px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 12px; align-content: start; transition: background .3s; }
.feat:hover { background: #1a1917; }
.feat__ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(253, 175, 1, .1); color: var(--key); border: 1px solid rgba(253, 175, 1, .25); }
.feat__ic svg { width: 20px; height: 20px; }
.feat h4 { margin: 6px 0 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--fg-2); font-size: 15px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how__step { position: relative; padding: 28px; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); overflow: hidden; }
.how__n { position: absolute; right: 18px; top: 4px; font-weight: 900; font-stretch: 125%; font-size: 7rem; line-height: 1; color: rgba(253, 175, 1, .09); letter-spacing: -.06em; }
.how__step h4 { margin: 120px 0 8px; font-size: 1.6rem; font-weight: 900; letter-spacing: -.03em; position: relative; }
.how__step p { margin: 0; color: var(--fg-2); position: relative; }
.how__vis { position: absolute; left: 28px; top: 28px; height: 76px; display: flex; align-items: center; gap: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed rgba(253, 175, 1, .55); border-radius: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--key); background: rgba(253, 175, 1, .05); }

.exports { display: flex; flex-wrap: wrap; gap: 10px; }
.exports span { display: inline-flex; flex-direction: column; justify-content: center; width: 104px; height: 120px; padding: 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; position: relative; }
.exports span small { font-family: var(--f-mono); font-weight: 400; font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; margin-top: 4px; }
.exports span.pro::after { content: "PRO"; position: absolute; top: 10px; right: 10px; padding: 2px 6px; border-radius: 4px; background: var(--key); color: #2a1e00; font-family: var(--f-mono); font-size: 9px; font-weight: 700; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 16px; }
.plan { padding: 32px; border: 1px solid var(--rule); border-radius: 16px; background: var(--card); display: grid; gap: 18px; align-content: start; }
.plan--pro { border-color: rgba(253, 175, 1, .55); background: linear-gradient(180deg, rgba(253, 175, 1, .08), var(--card) 40%); position: relative; }
.plan--pro::before { content: "Most popular"; position: absolute; top: -12px; left: 32px; padding: 4px 10px; border-radius: 999px; background: var(--key); color: #2a1e00; font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.plan__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.plan__p { font-weight: 900; font-stretch: 112%; font-size: 4rem; line-height: 1; letter-spacing: -.05em; }
.plan__p small { font-size: 1rem; font-weight: 500; font-stretch: 100%; color: var(--fg-2); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--key); font-weight: 700; }
.plan li.no { color: var(--ink-3); }
.plan li.no::before { content: "—"; color: var(--ink-3); }
.plan .btn { justify-content: space-between; }

.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-weight: 800; font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: -.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 18px; height: 18px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--key); transition: transform .35s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { margin: 0 0 24px; color: var(--fg-2); max-width: 64ch; }

.more-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more-apps .app-card { grid-column: auto; border-radius: 14px; }

.builder { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: clamp(32px, 5vw, 64px); border-radius: 18px; background: #fff; color: var(--ink); }
.builder .h2 { font-size: clamp(2rem, 4.4vw, 4rem); }
.builder p { margin: 16px 0 0; color: var(--mute); max-width: 52ch; }
.builder .btn { --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink); }
.builder .btn::before { background: var(--accent); }
.builder .btn:hover { --b-fg: #fff; --b-bd: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links { gap: 20px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ui__main { grid-template-columns: 190px minmax(0, 1fr); }
  .ui__dock--r { display: none; }
  .case-meta { grid-template-columns: repeat(3, 1fr); }
  .case-meta > div:nth-child(3) { border-right: 0; }
  .case-meta > div:nth-child(4) { padding-left: 0; }
  .case-meta > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 980px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav .btn { display: none; }
  .nav__burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .pillars { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
  .section-head { grid-template-columns: 1fr; }
  .apps-bento .app-card, .app-card--xl, .app-card--md, .apps-light .app-card { grid-column: span 12; }
  .idea-grid, .contact-grid, .deliver, .mkt-head, .page-hero__row { grid-template-columns: 1fr; }
  .compiler { position: relative; top: 0; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 40px 0; border-top: 0; }
  .step { border-top: 1px solid var(--ink); }
  .mkt-grid { grid-template-columns: 1fr; }
  .mkt-card { min-height: 0; }
  .mkt-close, .cta-band__in, .builder { grid-template-columns: 1fr; align-items: start; }
  .c-row { grid-template-columns: 40px minmax(0, 1fr) 44px; }
  .c-row__s { grid-column: 2; grid-row: 2; margin-top: -8px; }
  .c-row__go { grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 44px; }
  .peek { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > div:first-child { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .case-hero__title { grid-template-columns: 1fr; }
  .case-stage__in { grid-template-columns: minmax(0, 1fr) 180px; }
  .case-cols, .results, .more-apps, .how { grid-template-columns: 1fr; }
  .results > div { border-bottom: 1px solid var(--rule); padding-bottom: 28px; }
  .gallery .g1, .gallery .g2, .gallery .g3, .gallery .g4 { grid-column: span 12; }
  .gallery .g2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .pricing { grid-template-columns: 1fr; }
  .ui__main { grid-template-columns: minmax(0, 1fr); }
  .ui__dock { display: none; }
  .ui__top .ui__btn:not(.ui__btn--key) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn { padding: 16px 20px; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
  .pillars { max-width: none; }
  .svc-grid, .grid-3, .grid-2, .grid-4, .feat-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .process { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .client-card--wide { grid-column: auto; }
  .client-card--wide .browser img { aspect-ratio: 16 / 10; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta > div { padding-left: 0 !important; border-right: 0 !important; border-top: 1px solid var(--line); }
  .case-stage__in { grid-template-columns: 1fr; }
  .case-stage .phone { display: none; }
  .gallery .g2 { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager a + a { text-align: left; border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .search { margin-left: 0; width: 100%; }
  .filterbar { position: static; }
  .mkt-head .h2 span:nth-child(n) { padding-left: 0; }
  .counts { flex-wrap: wrap; }
  .counts div { flex: 1 1 40%; }
  .exports span { width: calc(33.33% - 7px); }
}

/* ==========================================================================
   v2 — Services (8 tiles), testimonials, freeware/shop, product pages
   ========================================================================== */
.svc-grid--4 { grid-template-columns: repeat(4, 1fr); }
.svc-grid--4 .svc { min-height: 340px; padding: clamp(24px, 2.4vw, 34px); }
.svc--cta { background: var(--accent); color: #fff; justify-content: space-between; }
.svc--cta::before { background: var(--ink); }
.svc--cta h3 { margin-top: 0; font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.svc--cta p, .svc--cta .svc__num { color: rgba(255, 255, 255, .8) !important; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.q { position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 2.6vw, 36px); background: var(--card); border: 1px solid var(--rule); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.q:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--fg); }
.q__theme { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.q__theme svg { width: 26px; height: 20px; fill: currentColor; opacity: .9; }
.q blockquote { margin: 0; font-size: clamp(1.1rem, 1.35vw, 1.28rem); font-weight: 600; line-height: 1.42; letter-spacing: -.01em; }
.q blockquote em { font-style: normal; background: linear-gradient(transparent 62%, rgba(255, 16, 83, .22) 62%); }
.q__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); }
.q__av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); font-weight: 800; font-size: 13px; flex: none; }
.q__who b { display: block; font-weight: 800; font-size: 15px; }
.q__who small { font-family: var(--f-mono); font-size: 11.5px; color: var(--fg-2); letter-spacing: .04em; }
.q--feature { grid-row: span 2; background: var(--ink); color: #f4f3ef; border-color: var(--ink); }
.q--feature blockquote { font-size: clamp(1.5rem, 2.3vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.16; }
.q--feature blockquote em { background: linear-gradient(transparent 62%, rgba(255, 16, 83, .5) 62%); }
.q--feature .q__who { border-color: #2a2a2a; }
.q--feature .q__av { background: var(--accent); color: #fff; }
.q--feature .q__who small { color: #8f8d88; }
.q--feature:hover { box-shadow: 8px 8px 0 var(--accent); }
.quotes--3 .q--feature { grid-row: auto; }

/* Freeware + shop teaser */
.fs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fs-panel { position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 3vw, 44px); border: 1px solid var(--rule); background: var(--card); overflow: hidden; }
.fs-panel--dark { background: var(--ink); color: #f4f3ef; border-color: var(--ink); }
.fs-panel h3 { margin: 0; font-size: clamp(1.9rem, 3.2vw, 3rem); font-weight: 900; font-stretch: 108%; letter-spacing: -.04em; line-height: .95; }
.fs-panel > p { margin: 0; color: var(--fg-2); max-width: 44ch; }
.fs-panel--dark > p { color: #9b9a96; }
.fs-panel .btn { align-self: flex-start; margin-top: auto; }
.mini-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.mini-list li a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); transition: padding .35s var(--ease); }
.mini-list li a:hover { padding-left: 8px; }
.mini-list .ic { width: 40px; height: 40px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.mini-list .ic svg { width: 20px; height: 20px; }
.mini-list b { display: block; font-weight: 700; font-size: 16px; line-height: 1.2; }
.mini-list small { font-family: var(--f-mono); font-size: 11px; color: var(--fg-2); letter-spacing: .06em; text-transform: uppercase; }
.mini-list .pr { font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.mini-list .pr.free { color: #0e9f53; }
.fs-panel--dark .mini-list, .fs-panel--dark .mini-list li a { border-color: #262626; }
.fs-panel--dark .mini-list .ic { background: #1c1c1c; color: #f4f3ef; }
.fs-panel--dark .mini-list small { color: #8f8d88; }
.fs-panel--dark .mini-list .pr { color: var(--amber); }
.fs-shop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fs-shop-row a { display: block; background: #f7f5e6; color: var(--ink); transition: transform .5s var(--ease); }
.fs-shop-row a:hover { transform: translateY(-4px); }
.fs-shop-row svg { width: 100%; aspect-ratio: 4 / 3; display: block; }
.fs-shop-row span { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #1a1a1a; color: #f4f3ef; font-weight: 700; font-size: 14px; }
.fs-shop-row span em { font-style: normal; font-family: var(--f-mono); color: var(--amber); }

/* Hosted badge on client cards */
.hosted { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #0e9f53; white-space: nowrap; }
.hosted::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(14, 159, 83, .15); }

/* ---------- Product cards (shop) ---------- */
.product { position: relative; display: flex; flex-direction: column; border: 1px solid var(--rule); background: var(--card); transition: border-color .3s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.product:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 8px 8px 0 var(--ink); }
.product__art { position: relative; aspect-ratio: 4 / 3; background: #f7f5e6; overflow: hidden; border-bottom: 1px solid var(--rule); }
.product__art svg.scad { width: 100%; height: 100%; display: block; transition: transform 1s var(--ease); }
.product:hover .product__art svg.scad { transform: scale(1.05); }
.product__art .badge { position: absolute; left: 12px; top: 12px; z-index: 1; }
.product__tile { width: 100%; height: 100%; display: grid; place-items: center; }
.product__tile .big { width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); transition: transform .8s var(--ease); }
.product:hover .product__tile .big { transform: rotate(-8deg) scale(1.06); }
.product__tile .big svg { width: 46px; height: 46px; }
.product__body { padding: 20px 22px 22px; display: grid; gap: 10px; flex: 1; align-content: start; }
.product__type { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.product h3 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.product p { margin: 0; color: var(--fg-2); font-size: 15px; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--rule); }
.product__price { font-weight: 900; font-stretch: 110%; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1; }
.product__price small { font-size: .8rem; font-weight: 500; color: var(--fg-2); letter-spacing: 0; }
.product__stretch { position: absolute; inset: 0; z-index: 1; }
.product__foot .btn { position: relative; z-index: 2; }

.bundle { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: clamp(28px, 4vw, 52px); background: var(--ink); color: #f4f3ef; position: relative; overflow: hidden; }
.bundle h3 { margin: 10px 0 12px; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 900; font-stretch: 110%; letter-spacing: -.045em; line-height: .95; }
.bundle p { margin: 0; color: #9b9a96; max-width: 46ch; }
.bundle__art { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bundle__art svg { width: 100%; aspect-ratio: 4 / 3; background: #f7f5e6; display: block; }
.bundle__buy { display: flex; align-items: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.bundle__buy b { font-size: 2.4rem; font-weight: 900; font-stretch: 110%; letter-spacing: -.04em; }
.bundle__buy s { color: #77756f; font-size: 1.1rem; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); }
.trust-row span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ---------- Product detail page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-top: calc(var(--nav-h) + clamp(28px, 4vw, 56px)); }
.pdp__gallery { display: grid; gap: 12px; min-width: 0; }
.stage { position: relative; aspect-ratio: 4 / 3; background: #f7f5e6; border: 1px solid var(--rule); overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 0, 0, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .045) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.stage > svg.scad { position: relative; width: 100%; height: 100%; display: block; }
.stage__hud { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; font-family: var(--f-mono); font-size: 11px; }
.stage__hud span { padding: 4px 8px; background: rgba(10, 10, 10, .82); color: #fff; }
.stage__hud span.k { background: var(--accent); }
.gizmo { position: absolute; left: 14px; bottom: 12px; width: 56px; height: 56px; }
.stage__dims { position: absolute; right: 14px; bottom: 14px; padding: 6px 10px; background: #fff; border: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; font-weight: 700; }
.thumbs-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs-row button { position: relative; aspect-ratio: 4 / 3; background: #f7f5e6; border: 1px solid var(--rule); overflow: hidden; transition: border-color .2s; }
.thumbs-row button.is-on { outline: 2px solid var(--ink); outline-offset: -2px; }
.thumbs-row button svg { width: 100%; height: 100%; display: block; }
.thumbs-row button span { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; background: rgba(10, 10, 10, .8); color: #fff; font-family: var(--f-mono); font-size: 10px; }

.buybox { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 20px; }
.buybox h1 { margin: 0; font-weight: 900; font-stretch: 108%; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: .92; letter-spacing: -.045em; }
.buybox .lead { margin: 0; max-width: none; }
.lic { display: grid; gap: 8px; }
.lic label { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--rule); cursor: pointer; transition: border-color .2s, background .2s; }
.lic label:hover { border-color: var(--mute-2); }
.lic input { position: absolute; opacity: 0; }
.lic i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; }
.lic input:checked ~ i { border-color: var(--ink); }
.lic input:checked ~ i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.lic label:has(input:checked) { border-color: var(--ink); background: #fbfaf7; }
.lic b { display: block; font-weight: 800; }
.lic small { color: var(--fg-2); font-size: 13.5px; }
.lic .p { font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em; }
.buy-cta { display: grid; gap: 10px; }
.buy-cta .btn { justify-content: space-between; width: 100%; font-size: 14px; min-height: 62px; }
.paybadges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--f-mono); font-size: 11px; color: var(--fg-2); }
.paybadges span { padding: 4px 8px; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); font-weight: 700; }
.included { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; font-size: 15px; }
.included li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.included li::before { content: "✓"; color: var(--accent); font-weight: 900; }
.included code { font-family: var(--f-mono); font-size: 12.5px; background: var(--paper-2); padding: 1px 6px; }

.scad-ctrl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 16px 18px; border: 1px solid var(--rule); background: #fff; }
.scad-ctrl label { display: grid; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.scad-ctrl label b { color: var(--ink); font-size: 13px; letter-spacing: 0; }
.scad-ctrl input[type=range] { width: 100%; accent-color: var(--accent); }
.scad-code { margin: 0; padding: 14px 16px; background: #0e0e0e; color: #d6d4ce; font-family: var(--f-mono); font-size: 13px; overflow-x: auto; white-space: pre; }
.scad-code .fn { color: var(--amber); }
.scad-code .n { color: #7fd1ff; }
.scad-code .c { color: #5f5e5a; }

.ptable-wrap { overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th { text-align: left; font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); padding: 0 12px 12px 0; border-bottom: 1.5px solid var(--ink); }
.ptable td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ptable td:first-child { font-family: var(--f-mono); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.ptable td:nth-child(2) { font-family: var(--f-mono); font-size: 13px; color: var(--accent); white-space: nowrap; }
.ptable td:last-child { color: var(--fg-2); min-width: 180px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.prose { font-size: 17px; color: #333; }
.prose p { margin: 0 0 16px; }
.prose h3 { margin: 30px 0 12px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.prose ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--accent); }
.prose code { font-family: var(--f-mono); font-size: 14px; background: var(--paper-2); padding: 1px 6px; }
.prose strong { color: var(--ink); }
.faq--light summary i::before, .faq--light summary i::after { background: var(--accent); }

/* ---------- Freeware detail ---------- */
.fw-hero { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(36px, 5vw, 64px); }
.fw-id { display: flex; align-items: flex-start; gap: 24px; }
.fw-icon { width: 88px; height: 88px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; }
.fw-icon svg { width: 42px; height: 42px; }
.fw-hero h1 { margin: 0; font-weight: 900; font-stretch: 108%; font-size: clamp(2.4rem, 5.6vw, 5.4rem); line-height: .92; letter-spacing: -.045em; max-width: 16ch; }
.fw-meta { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 22px; font-family: var(--f-mono); font-size: 12.5px; color: var(--fg-2); }
.fw-meta span + span::before { content: "/"; margin: 0 12px; color: var(--line-2); }
.fw-meta b { color: var(--ink); font-weight: 700; }
.fw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.dlbox { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 16px; padding: 26px; background: var(--ink); color: #f4f3ef; }
.dlbox h3 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.dlbox .btn { width: 100%; justify-content: space-between; --b-bg: var(--accent); --b-bd: var(--accent); }
.dlbox .btn::before { background: #fff; }
.dlbox .btn:hover { --b-fg: var(--ink); --b-bd: #fff; }
.dlbox dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.dlbox dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #77756f; padding-top: 2px; }
.dlbox dd { margin: 0; text-align: right; }
.dlbox hr { border: 0; border-top: 1px solid #262626; margin: 4px 0; }
.dlbox small { font-family: var(--f-mono); font-size: 11.5px; color: #8f8d88; line-height: 1.6; }

.carousel { position: relative; border: 1px solid var(--rule); background: var(--paper-2); }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.carousel__track img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.carousel__track figcaption { padding: 12px 120px 12px 16px; font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); border-top: 1px solid var(--rule); background: #fff; }
.carousel__nav { position: absolute; right: 10px; bottom: 6px; display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; }
.carousel__nav button { width: 30px; height: 30px; border: 1px solid var(--rule); background: #fff; display: grid; place-items: center; }
.carousel__nav button:hover { border-color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--rule); background: #fff; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: #fff; background: var(--ink); width: 44px; height: 28px; display: grid; place-items: center; }
.steps code { font-family: var(--f-mono); font-size: 13px; background: var(--paper-2); padding: 1px 6px; }
.reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reqs div { padding: 18px; border: 1px solid var(--rule); background: #fff; }
.reqs b { display: block; font-weight: 900; font-size: 1.6rem; letter-spacing: -.03em; }
.reqs span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.changelog { border-left: 2px solid var(--ink); padding-left: 22px; display: grid; gap: 22px; margin-left: 6px; }
.changelog > div { position: relative; }
.changelog > div::before { content: ""; position: absolute; left: -30px; top: 6px; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--ink); }
.changelog > div:first-child::before { background: var(--accent); border-color: var(--accent); }
.changelog b { font-weight: 900; font-size: 1.2rem; }
.changelog small { margin-left: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); }
.changelog ul { margin: 8px 0 0; padding-left: 18px; color: #444; font-size: 15px; }
.upsell { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px 26px; border: 1.5px solid var(--ink); background: #fff; }
.upsell .ic { width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.upsell .ic svg { width: 24px; height: 24px; }
.upsell b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.upsell p { margin: 4px 0 0; color: var(--fg-2); font-size: 15px; }
.sub-h { display: flex; align-items: baseline; gap: 14px; margin: 0 0 22px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 900; letter-spacing: -.035em; }
.sub-h small { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; color: var(--accent); }
.block + .block { margin-top: clamp(48px, 6vw, 80px); }

@media (max-width: 1180px) {
  .svc-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .q--feature { grid-row: auto; grid-column: 1 / -1; }
  .fw-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .scad-ctrl { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .fs-grid, .pdp, .split, .fw-layout, .bundle { grid-template-columns: minmax(0, 1fr); }
  .buybox, .dlbox { position: static; }
  .upsell { grid-template-columns: auto 1fr; }
  .upsell .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .svc-grid--4, .quotes, .reqs { grid-template-columns: 1fr; }
  .scad-ctrl { grid-template-columns: 1fr 1fr; }
  .thumbs-row { gap: 6px; }
  .fw-id { flex-direction: column; }
}

.scad polygon, .scad path, .scad polyline { vector-effect: non-scaling-stroke; }

@media (max-width: 640px) { .scad-code { display: none; } }

/* ==========================================================================
   v3 — Comments (moderated), on-site checkout, invoice payment (Square API)
   ========================================================================== */
.comments { max-width: 880px; }
.comments__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.comments__head h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; letter-spacing: -.035em; display: flex; align-items: baseline; gap: 12px; }
.comments__head h2 sup { font-family: var(--f-mono); font-size: 13px; font-weight: 400; color: var(--accent); }
.comments__head p { margin: 0; font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); }
.cmt-list, .cmt-children { list-style: none; margin: 0; padding: 0; }
.cmt-list { border-top: 1px solid var(--rule); }
.cmt { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.cmt-children { grid-column: 2; }
.cmt-children .cmt { padding: 18px 0 0; border-bottom: 0; }
.cmt__av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); font-weight: 800; font-size: 14px; }
.cmt--author .cmt__av { background: var(--ink); color: #fff; }
.cmt--author .cmt__av svg { width: 24px; height: auto; }
.cmt__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.cmt__meta b { font-weight: 800; }
.cmt__meta time { font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); }
.cmt__badge { padding: 2px 8px; background: var(--accent); color: #fff; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.cmt__pend { padding: 2px 8px; background: #fff3d6; color: #8a5a00; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.cmt p { margin: 8px 0 10px; line-height: 1.6; color: var(--fg); opacity: .86; }
.cmt__reply { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.cmt__reply:hover { color: var(--accent); }
.cmt--pending { opacity: .62; }
.cmt--new { animation: rowIn2 .5s var(--ease); }
@keyframes rowIn2 { from { opacity: 0; transform: translateY(-8px); } }
.cmt-form { margin-top: 32px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--rule); background: var(--card); display: grid; gap: 18px; position: relative; }
.cmt-form h3 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.cmt-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmt-form label { display: grid; gap: 7px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.cmt-form input, .cmt-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--rule); background: transparent; color: var(--fg); font-family: var(--f-sans); font-size: 16px; letter-spacing: 0; text-transform: none; outline: none; transition: border-color .2s; }
.cmt-form textarea { min-height: 120px; resize: vertical; }
.cmt-form input:focus, .cmt-form textarea:focus { border-color: var(--accent); }
.cmt-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cmt-form__note { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); max-width: 46ch; }
.cmt-form__note svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.replying { display: none; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); }
.replying.show { display: flex; }
.replying button { color: var(--accent); font-family: var(--f-mono); font-size: 12px; }
.cmt-ok { display: none; padding: 14px 16px; background: #e9f8ef; color: #0b6b36; font-size: 15px; border-left: 3px solid #12a150; }
.cmt-ok.show { display: block; animation: rowIn2 .4s var(--ease); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.app-theme .cmt__av { background: #2a2925; color: var(--fg); }
.app-theme .cmt--author .cmt__av { background: var(--key); color: #2a1e00; }
.app-theme .cmt__badge { background: var(--key); color: #2a1e00; }
.app-theme .cmt-form input:focus, .app-theme .cmt-form textarea:focus { border-color: var(--key); }
.app-theme .cmt-form__note svg, .app-theme .replying button { color: var(--key); }

/* ---------- Checkout / pay pages ---------- */
.co-page { background: var(--paper-2); }
.co-top { height: 72px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: #fff; }
.co-top .wrap { display: flex; align-items: center; gap: 20px; }
.co-top .secure { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.co-top .secure svg { width: 15px; height: 15px; color: #12a150; }
.co-back { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.co-back:hover { color: var(--accent); }
.co { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 120px); }
.co h1 { margin: 0; font-weight: 900; font-stretch: 108%; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: .95; letter-spacing: -.045em; }
.co-step { margin-top: 30px; padding-top: 22px; border-top: 1.5px solid var(--ink); display: grid; gap: 14px; }
.co-step h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.co-step h2 span { width: 28px; height: 28px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: 12px; }
.bx { display: grid; gap: 7px; }
.bx > span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.bx input { width: 100%; height: 54px; padding: 0 16px; border: 1.5px solid var(--line-2); background: #fff; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.bx input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10, 10, 10, .06); }
.bx2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet { height: 54px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 17px; background: #000; color: #fff; letter-spacing: -.01em; transition: opacity .2s; }
.wallet:hover { opacity: .85; }
.wallet--g { background: #fff; color: #3c4043; border: 1.5px solid #dadce0; }
.wallet svg { height: 20px; width: auto; }
.or { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.sq-card { display: grid; grid-template-columns: minmax(0, 1fr) 84px 64px 84px; height: 54px; border: 1.5px solid var(--line-2); border-radius: 8px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.sq-card:focus-within { border-color: #006aff; box-shadow: 0 0 0 4px rgba(0, 106, 255, .12); }
.sq-card label { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-left: 1px solid #eceae5; }
.sq-card label:first-child { border-left: 0; }
.sq-card label svg { width: 24px; height: 16px; flex: none; color: #9a978f; }
.sq-card input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; font-family: var(--f-sans); }
.sq-card input::placeholder { color: #a9a6a0; }
.sq-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.sq-note svg { width: 14px; height: 14px; color: #12a150; flex: none; }
.sq-note b { color: var(--ink); }
.co-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.co-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.co-check small { display: block; color: var(--mute); font-size: 13px; }
.co-pay { width: 100%; justify-content: space-between; min-height: 64px; font-size: 14px; margin-top: 6px; }
.co-pay.is-loading { pointer-events: none; }
.co-pay.is-loading .btn__line { animation: lineLoad .8s ease-in-out infinite alternate; }
@keyframes lineLoad { from { width: 10px; } to { width: 56px; } }
.co-legal { font-size: 12.5px; color: var(--mute); }
.co-legal a { text-decoration: underline; }

.summary { position: sticky; top: 24px; background: #fff; border: 1px solid var(--line); }
.summary__h { padding: 18px 20px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); display: flex; justify-content: space-between; }
.summary__item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.summary__item .th { aspect-ratio: 4 / 3; background: #f7f5e6; border: 1px solid var(--line); }
.summary__item .th svg { width: 100%; height: 100%; display: block; }
.summary__item b { display: block; font-weight: 800; font-size: 16px; line-height: 1.2; }
.summary__item small { font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); }
.summary__item .amt { font-weight: 800; font-size: 16px; }
.promo { display: flex; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.promo input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1.5px solid var(--line-2); font-size: 14px; outline: none; }
.promo input:focus { border-color: var(--ink); }
.promo button { height: 42px; padding: 0 16px; border: 1.5px solid var(--ink); font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.summary__rows { padding: 16px 20px; display: grid; gap: 9px; font-size: 15px; }
.summary__rows div { display: flex; justify-content: space-between; color: var(--mute); }
.summary__rows .total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 900; font-size: 1.6rem; letter-spacing: -.03em; align-items: baseline; }
.summary__rows .total small { font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--mute); letter-spacing: .06em; }
.summary__trust { list-style: none; margin: 0; padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 14px; color: var(--mute); }
.summary__trust li::before { content: "✓  "; color: var(--accent); font-weight: 900; }

.co-done { display: none; }
.is-done .co-form { display: none; }
.is-done .co-done { display: block; animation: rowIn2 .6s var(--ease); }
.done-check { width: 76px; height: 76px; border-radius: 50%; background: #12a150; display: grid; place-items: center; margin-bottom: 26px; box-shadow: 0 0 0 10px rgba(18, 161, 80, .14); }
.done-check svg { width: 38px; height: 38px; }
.done-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw2 .6s .2s var(--ease) forwards; }
@keyframes draw2 { to { stroke-dashoffset: 0; } }
.co-done .lead { margin: 16px 0 0; }
.dl-list { margin-top: 28px; border-top: 1.5px solid var(--ink); }
.dl-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.dl-item .ic { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); }
.dl-item .ic svg { width: 20px; height: 20px; }
.dl-item b { display: block; font-weight: 700; }
.dl-item small { font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); }
.keybox { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 16px; background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: 14px; letter-spacing: .06em; }
.keybox span { color: #8f8d88; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.keybox code { flex: 1; color: var(--amber); }
.keybox button { color: #fff; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid #444; padding: 6px 10px; }
.keybox button:hover { border-color: #fff; }

/* Invoice */
.inv { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 120px); }
.invoice { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); }
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.inv-top .logo svg { height: 26px; }
.inv-top h1 { margin: 18px 0 0; font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 900; font-stretch: 110%; letter-spacing: -.045em; line-height: .9; }
.inv-status { padding: 6px 12px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fff3d6; color: #8a5a00; }
.is-paid .inv-status { background: #e9f8ef; color: #0b6b36; }
.inv-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; padding: 18px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.inv-meta span, .inv-parties span { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.inv-meta b { font-weight: 800; font-size: 15px; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; font-size: 15px; line-height: 1.55; }
.inv-items { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 15px; }
.inv-items th { text-align: left; font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 0 8px 10px 0; border-bottom: 1.5px solid var(--ink); }
.inv-items th:not(:first-child), .inv-items td:not(:first-child) { text-align: right; white-space: nowrap; }
.inv-items td { padding: 16px 8px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-items td small { display: block; color: var(--mute); font-size: 13px; margin-top: 3px; }
.inv-tot { margin-left: auto; margin-top: 18px; width: min(320px, 100%); display: grid; gap: 8px; font-size: 15px; }
.inv-tot div { display: flex; justify-content: space-between; color: var(--mute); }
.inv-tot .due { padding-top: 12px; border-top: 1.5px solid var(--ink); color: var(--ink); font-weight: 900; font-size: 1.7rem; letter-spacing: -.03em; }
.inv-note { margin-top: 30px; padding: 16px 18px; background: var(--paper-2); font-size: 14px; color: var(--mute); }
.stamp { position: absolute; right: 7%; top: 30%; padding: 6px 22px; border: 5px solid #12a150; color: #12a150; font-weight: 900; font-stretch: 115%; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: .04em; transform: rotate(-14deg) scale(1.6); opacity: 0; pointer-events: none; }
.is-paid .stamp { opacity: .9; transform: rotate(-14deg) scale(1); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.paybox { position: sticky; top: 24px; background: #fff; border: 1px solid var(--line); padding: 24px; display: grid; gap: 16px; }
.paybox h2 { margin: 0; font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; }
.paybox .amount { font-weight: 900; font-stretch: 110%; font-size: 3rem; letter-spacing: -.05em; line-height: 1; }
.paybox .amount small { font-size: 1rem; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.saved-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 8px; font-size: 15px; }
.saved-card svg { width: 34px; height: 22px; }
.paybox .paid-msg { display: none; }
.is-paid .paybox .pay-form { display: none; }
.is-paid .paybox .paid-msg { display: grid; gap: 14px; animation: rowIn2 .5s var(--ease); }

@media (max-width: 980px) {
  .co, .inv { grid-template-columns: minmax(0, 1fr); }
  .summary, .paybox { position: static; }
  .co .summary { order: -1; }
}
@media (max-width: 640px) {
  .cmt-form .row2, .bx2, .inv-parties { grid-template-columns: 1fr; }
  .cmt-children { grid-column: 1 / -1; }
  .sq-card { grid-template-columns: minmax(0, 1fr) 84px 76px; height: auto; }
  .sq-card label { padding: 0 10px; }
  .sq-card label { height: 52px; }
  .sq-card label:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #eceae5; }
  .inv-meta { grid-template-columns: 1fr 1fr; }
  .co-top .secure span { display: none; }
}

.paybox .pay-form { display: grid; gap: 16px; }

[hidden] { display: none !important; }

/* ==========================================================================
   v4 — wide headings, boxed project form, contact pages, download counter
   ========================================================================== */
.h2--wide { font-size: clamp(2.2rem, 4.9vw, 5.2rem); }
.h2--wide .rv-line > span { white-space: nowrap; }
.section-head--wide { grid-template-columns: 1fr; gap: 28px; }
.section-head--wide .lead { max-width: 62ch; }
.hero h1 .accent { color: var(--accent); }
.form--boxed { position: relative; padding: clamp(24px, 3vw, 40px); border: 1.5px solid rgba(255, 255, 255, .22); background: #101010; box-shadow: 14px 14px 0 var(--accent); }
.form--boxed::before { content: attr(data-label); position: absolute; top: -11px; left: 24px; padding: 2px 10px; background: var(--accent); color: #fff; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.form--light { border-color: var(--ink); background: #fff; box-shadow: 14px 14px 0 var(--ink); }
.form .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.field .opt { opacity: .6; text-transform: none; letter-spacing: 0; }
.field select { width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--rule); padding: 10px 0 12px; font-size: 19px; color: var(--fg); outline: none; }
.field select option { color: #111; }
.ct-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ct-card { display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.ct-card:first-child { border-top: 1.5px solid var(--fg); }
.ct-card .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.ct-card a, .ct-card b { font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: -.02em; }
.ct-card a:hover { color: var(--accent); }
.ct-card small { color: var(--fg-2); font-size: 15px; }
.ct-card--project { color: inherit; }
.ct-card--project b { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); }
.ct-card--project .arr { transition: transform .35s var(--ease); }
.ct-card--project:hover .arr { transform: translateX(8px); }
.next { display: grid; gap: 0; margin-top: 36px; border-top: 1.5px solid var(--fg); }
.next li { list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.next li b { display: block; font-weight: 800; font-size: 1.1rem; }
.next li span:first-child { font-family: var(--f-mono); font-size: 12px; color: var(--accent); padding-top: 4px; }
.next li small { color: var(--fg-2); font-size: 15px; }
.next { padding: 0; margin-bottom: 0; }
.dlcount { display: inline-flex; align-items: baseline; gap: 8px; }
.dlcount b { font-variant-numeric: tabular-nums; }
.dlbox .dlstat { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; background: #161616; }
.dlbox .dlstat b { font-size: 2rem; font-weight: 900; font-stretch: 110%; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.dlbox .dlstat span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #77756f; }
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); color: var(--accent); } }
@media (max-width: 980px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .h2--wide .rv-line > span { white-space: normal; }
}
@media (max-width: 640px) {
  .form .row3 { grid-template-columns: 1fr; }
  .form--boxed { box-shadow: 8px 8px 0 var(--accent); }
}
.ui__brand img { width: 22px; height: 22px; border-radius: 6px; }
.fw-meta .dlcount b, .dlstat b { display: inline-block; }

/* v5 — app cards use the apps' own 1200×630 social images */
.app-card__art { flex: none; aspect-ratio: 1200 / 630; }
.app-card__art::after { height: 18%; }
.app-card__body { margin-top: 0; padding-top: 22px; }
.app-card:hover .app-card__art img { transform: scale(1.03); }
/* Client portal links */
.nav__portal { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding-left: 24px; border-left: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); white-space: nowrap; transition: color .2s; }
.nav__portal svg { width: 15px; height: 15px; }
.nav__portal:hover { color: var(--accent); }
.nav__links + .nav__portal { margin-left: -4px; }
.app-theme .nav__portal { color: var(--fg-2); border-color: var(--rule); }
.app-theme .nav__portal:hover { color: var(--key); }
.footer__portal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: clamp(48px, 6vw, 80px); padding: 18px 22px; border: 1px solid #2a2a2a; background: #111; color: #cfcdc8; font-size: 16px; transition: border-color .3s, background .3s; }
.footer__portal:hover { border-color: var(--accent); background: #151515; }
.footer__portal b { color: #fff; font-weight: 800; margin-right: 4px; }
.footer__portal-ic { width: 40px; height: 40px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.footer__portal-ic svg { width: 20px; height: 20px; }
.footer__portal .link-arrow { color: #fff; white-space: nowrap; }
@media (max-width: 1180px) { .nav__portal { padding-left: 16px; } .nav__links { gap: 18px; } }
@media (max-width: 980px) { .nav__portal { display: none; } }
@media (max-width: 640px) { .footer__portal { grid-template-columns: auto minmax(0, 1fr); } .footer__portal .link-arrow { grid-column: 1 / -1; } }
/* ==========================================================================
   Production additions (PHP build)
   ========================================================================== */
/* Forms: inline states */
.form__ok { padding: 22px 24px; border-left: 3px solid #12a150; background: rgba(18, 161, 80, .1); font-size: 17px; line-height: 1.5; }
.form__ok b { display: block; font-size: 22px; margin-bottom: 4px; }
.form--light .form__ok { background: #e9f8ef; color: #0b6b36; }
.form__err { padding: 12px 16px; border-left: 3px solid #d92d20; background: rgba(217, 45, 32, .12); font-size: 15px; }
.form--light .form__err, .cmt-form .form__err { background: #fdecea; color: #a8180d; }
.field input.is-bad, .field textarea.is-bad, .cmt-form .is-bad { border-color: #d92d20 !important; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-disabled { opacity: .55; pointer-events: none; cursor: default; }
.cmt-empty { margin: 0 0 32px; color: var(--mute); }
.cmt-form .form__err { margin: 0; }
[hidden] { display: none !important; }

/* App page: per-app accent everywhere the mockup used amber */
.app-theme .plan--pro { border-color: color-mix(in srgb, var(--key) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--key) 9%, transparent), var(--card) 40%); }
.app-theme .plan--pro::before { background: var(--key); color: var(--key-ink); }
.app-theme .how__n { color: color-mix(in srgb, var(--key) 10%, transparent); }
.app-theme .plan li::before { color: var(--key); }
.pricing--3 { grid-template-columns: repeat(3, minmax(0, 380px)); }
.how__note { margin: 40px 0 0; max-width: 62ch; color: var(--fg-2); font-size: 17px; }
.ah-shot { position: relative; max-width: 1100px; margin: clamp(48px, 6vw, 80px) auto 0; }
.ah-shot .browser img { aspect-ratio: auto; object-fit: contain; }
.browser--dark { background: #1b1a18; border-color: #34322e; border-radius: 12px 12px 0 0; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); }
.browser--dark .browser__bar { background: #232220; border-color: #34322e; }
.browser--dark .browser__bar i { background: #3a3833; }
.browser--dark .browser__bar span { background: #1b1a18; color: #8f8b82; }
.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.app-theme .prose { color: var(--fg-2); font-size: 18px; line-height: 1.65; }
.app-theme .prose strong { color: var(--fg); }
.app-theme .prose a { color: var(--key); }
.app-theme .prose p { margin: 0 0 1.1em; }
.app-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.app-gallery figure { margin: 0; }
.app-gallery figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); }
.app-gallery .browser img { aspect-ratio: 16 / 10; }

/* Client gallery built from any number of shots */
.gallery--auto .g-wide { grid-column: span 8; }
.gallery--auto .g-side { grid-column: span 4; align-self: start; }
.gallery--auto .g-half { grid-column: span 6; }
.gallery--auto .is-phone .phone { max-width: 300px; margin: 0 auto; }
.case-stage__in--solo { grid-template-columns: minmax(0, 1fr); }
.prose--page { max-width: 760px; font-size: 18px; line-height: 1.7; }
.prose--page h2 { margin: 1.6em 0 .5em; font-size: 1.6rem; letter-spacing: -.02em; }
.prose--page ul { padding-left: 1.2em; }
.prose--page li { margin-bottom: .5em; }
.prose--page a { color: var(--accent); }

@media (max-width: 980px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .pricing--3 { grid-template-columns: minmax(0, 1fr); }
  .gallery--auto .g-wide, .gallery--auto .g-side, .gallery--auto .g-half { grid-column: span 12; }
}
@media (max-width: 640px) { .app-gallery { grid-template-columns: minmax(0, 1fr); } }
/* width/height attributes (for layout stability) must not fight the CSS aspect ratios */
.browser img, .phone img, .carousel img, .app-gallery img, .gallery img, .prose img { height: auto; }
.ah::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--key) 16%, transparent), transparent 70%); }
.feat__ic { background: color-mix(in srgb, var(--key) 10%, transparent); border-color: color-mix(in srgb, var(--key) 25%, transparent); }
.file-chip { border-color: color-mix(in srgb, var(--key) 55%, transparent); }
