/* Lidunex site — direction A "Studio sáng" (owner choice 2026-11-20, UI-lidunex-com-001 / -002).
   Ported from the approved prototype lidunex/redesign/a/style.css (step 605). Loaded only by templates migrated to
   direction A (render.py A_TEMPLATES); every other page keeps styles.css until its own step.
   Colours by role from .ai/ui/brand.md (Lidunex Brand Kit v1.0); Inter self-hosted; icons Lucide (ISC), inline SVG.
   Images are never cropped: natural aspect ratio with width/height, or object-fit: contain inside a fixed frame.
   Motion: transform / opacity / translate / scale only, 150-600 ms ease-out, hidden-before-reveal only under the
   classes motion.js adds (.js, .reveal-on); all of it off under prefers-reduced-motion (block at the end). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2?v=693b77d4f3") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour roles (brand kit) */
  --c-primary: #2E5690;          /* --lidunex-blue */
  --c-primary-strong: #193C74;   /* --lidunex-blue-dark */
  --c-accent: #2D9C4C;           /* --lidunex-green */
  --c-accent-text: #176A36;      /* --lidunex-green-dark */
  --c-ink: #13243E;              /* --lidunex-ink */
  --c-muted: #62738A;            /* --lidunex-muted */
  --c-canvas: #F6F8FB;           /* --lidunex-background */
  --c-border: #E4EAF1;           /* --lidunex-border */
  --c-primary-tint: #EAF1F9;     /* --lidunex-blue-tint */
  --c-accent-tint: #EAF7EF;      /* --lidunex-green-tint */
  --c-surface: #FFFFFF;          /* white surface (brand guide: white text on primary blue) */
  --c-on-primary: #FFFFFF;
  --c-shadow: rgba(19, 36, 62, 0.08);        /* ink at 8 % */
  --c-shadow-strong: rgba(19, 36, 62, 0.14); /* ink at 14 % */
  --c-primary-glow: rgba(46, 86, 144, 0.55); /* primary at 55 % (button shadow) */
  --c-header-glass: rgba(255, 255, 255, 0.9);
  --c-danger: #B42318;           /* PROPOSAL (brand.md): not in brand kit, form errors */
  --c-warn-tint: #FFF6E5;        /* PROPOSAL (brand.md): not in brand kit, risk note background */
  --c-warn: #8A5A00;             /* PROPOSAL (brand.md): not in brand kit, risk note icon */
  --c-primary-line: rgba(46, 86, 144, 0.32); /* primary at 32 % (dashed placeholder outline) */

  /* type, shape, space */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --r-sm: 10px;   /* --lidunex-radius-sm */
  --r-md: 16px;   /* --lidunex-radius-md */
  --r-lg: 24px;   /* --lidunex-radius-lg */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --wrap: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--c-ink);
  background: var(--c-surface); font-feature-settings: "cv11", "ss01"; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-strong); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }
.narrow { max-width: 820px; }
.center, .center-text { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: 100; background: var(--c-ink); color: var(--c-on-primary); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s-4); color: var(--c-on-primary); }
.ico { flex: none; }
.ico.tint { color: var(--c-primary); }
.ico.ok { color: var(--c-accent-text); }
.ico.warn { color: var(--c-warn); }

/* ---------- buttons (also styles the consent banner's .button.button-outline) ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1.2 var(--font);
  text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.button-primary { background: var(--c-primary); color: var(--c-on-primary); box-shadow: 0 6px 16px -6px var(--c-primary-glow); }
.button-primary:hover { background: var(--c-primary-strong); color: var(--c-on-primary); transform: translateY(-1px); }
.button-secondary, .button-outline { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-border); }
.button-secondary:hover, .button-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.button-text { min-height: 44px; padding: 0 var(--s-1); background: transparent; color: var(--c-primary); border-radius: var(--r-sm); }
.button-text:hover { color: var(--c-primary-strong); }
.button-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.button-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.button[disabled], .button[aria-busy="true"] { opacity: .6; cursor: progress; }
/* press feedback + arrow nudge */
.button:active { transform: translateY(0) scale(.97); transition-duration: .15s; }
.button .ico { transition: transform .2s var(--ease); }
.button:hover .ico { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cta-row.center { justify-content: center; }
.cta-col { display: grid; gap: var(--s-3); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.link-arrow .ico { transition: transform .18s var(--ease); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-header-glass); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--c-border); }
.site-header .container { max-width: 1340px; }
.header-row { position: relative; display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { width: 148px; height: auto; }
.nav { display: flex; align-items: center; gap: var(--s-4); flex: 1; justify-content: flex-end; }
/* one line on wide screens (10 items since step 731): no wrapping; below 1400 px the menu button takes over */
.nav-list { display: flex; flex-wrap: nowrap; gap: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px; border-radius: 999px; color: var(--c-ink); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-end .button, .lang { white-space: nowrap; }
.nav-list a:hover { background: var(--c-canvas); color: var(--c-primary); }
.nav-list a[aria-current="page"] { color: var(--c-primary); background: var(--c-primary-tint); }
.nav-end { display: flex; align-items: center; gap: var(--s-3); }
.lang { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; color: var(--c-muted); font-size: 15px; text-decoration: none; }
.lang:hover { color: var(--c-primary); }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-ink); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle[aria-expanded="true"] { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-tint); }

/* ---------- type ---------- */
.display { font-size: clamp(40px, 5.6vw, 72px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
.display.sm { font-size: clamp(36px, 4.6vw, 60px); }
.display .ink { color: var(--c-ink); }
.display .blue, .blue { color: var(--c-primary); }
.h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.028em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--c-muted); max-width: 680px; margin: var(--s-5) auto 0; }
.lead + .lead { margin-top: var(--s-3); }
.lead.small { font-size: 17px; margin-top: var(--s-3); }
.subtitle { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; margin: var(--s-3) 0 0; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--c-accent-text); background: var(--c-accent-tint); padding: 6px 12px; border-radius: 999px; margin-bottom: var(--s-4); }
.meta { color: var(--c-muted); font-size: 15px; margin: 0 0 var(--s-2); }
.caption { color: var(--c-muted); font-size: 14px; margin-top: var(--s-4); }

/* ---------- sections ---------- */
.section { padding: var(--s-9) 0; }
.section.tinted { background: var(--c-canvas); }
.section-head { max-width: 760px; margin: 0 auto var(--s-7); }
.section-head p { color: var(--c-muted); font-size: 18px; margin-top: var(--s-4); }
.section-head.row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.section-more { display: flex; justify-content: center; margin-top: var(--s-7); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-7); align-items: start; }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s-7); align-items: start; }

/* ---------- hero ---------- */
.hero { padding: var(--s-8) 0; background: radial-gradient(1200px 480px at 50% -10%, var(--c-primary-tint), transparent 70%); }
.hero-inner { text-align: center; max-width: 920px; margin: 0 auto; }
.hero .cta-row { margin-top: var(--s-6); }
.proof { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-4) var(--s-6); margin: var(--s-7) 0 0; }
.proof a { display: grid; justify-items: center; gap: var(--s-2); min-width: 88px; color: var(--c-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.proof .app-icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 4px 14px var(--c-shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.proof a:hover .app-icon { transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 22px -6px var(--c-shadow-strong); }
.app-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--c-primary-tint); color: var(--c-primary); font-weight: 700; font-size: 22px; }

/* hero screenshots: one figure (wide screenshot in a window frame, phone screenshots beside it) + one sample note */
.hero-shots, .hero-visual { margin: var(--s-8) auto 0; max-width: 1040px; }
.hero-visual figcaption { text-align: center; color: var(--c-muted); font-size: 14px; margin-top: var(--s-4); }
.showcase { position: relative; }
/* Phone bezel: padding (not overflow: hidden) so the screenshot keeps its whole frame, corners included.
   --py is set by motion.js (scroll parallax); the float keyframes use the separate `translate` property. */
.phone { position: absolute; bottom: -32px; width: 17%; padding: 8px; border-radius: 30px; background: var(--c-ink); box-shadow: 0 24px 48px -16px var(--c-shadow-strong); }
.phone img { width: 100%; height: auto; border-radius: 22px; }
.phone-left { left: -5%; transform: translate3d(0, var(--py, 0px), 0) rotate(-4deg); }
.phone-right { right: -5%; transform: translate3d(0, var(--py, 0px), 0) rotate(4deg); }
/* phones only (no wide screenshot): side by side in the flow, never hidden */
.showcase--phones { display: flex; justify-content: center; gap: var(--s-6); }
.showcase--phones .phone { position: static; width: min(240px, 40%); transform: none; }

/* window frame for real screenshots: no overflow clipping; the screenshot sits inside a 12px mat so it is never cut
   by the rounded corners, and the hover zoom (max 2 %) stays inside that mat. */
.window { margin: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: 0 1px 2px var(--c-shadow), 0 30px 60px -24px var(--c-shadow-strong); transition: box-shadow .3s var(--ease); }
.window-bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--c-canvas); border-bottom: 1px solid var(--c-border); border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border); }
.window-body { padding: 12px; }
.window-body img { width: 100%; height: auto; transform-origin: 50% 50%; transition: transform .5s var(--ease); }
.window figcaption { padding: 12px 16px; font-size: 14px; color: var(--c-muted); border-top: 1px solid var(--c-border); }
/* --rx / --ry come from motion.js (pointer tilt, desktop only); 0 without JS. The short transform transition keeps
   the tilt smooth between pointer samples. */
.tilt-none { transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.hero .window.tilt-none { transition: transform .2s var(--ease), box-shadow .3s var(--ease); }
.tilt-l { transform: perspective(1600px) rotateY(6deg) rotate(-1deg); }
.tilt-r { transform: perspective(1600px) rotateY(-6deg) rotate(1deg); }
@media (hover: hover) and (pointer: fine) {
  .window:hover { box-shadow: 0 2px 4px var(--c-shadow), 0 40px 72px -28px var(--c-shadow-strong); }
  .window:hover .window-body img { transform: scale(1.02); }
}

/* ---------- cards ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: 0 1px 2px var(--c-shadow), 0 12px 32px -18px var(--c-shadow-strong); }
.app-card, .post-card { display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.app-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px var(--c-shadow), 0 24px 48px -20px var(--c-shadow-strong); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.app-card .app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 4px 12px var(--c-shadow); transition: transform .3s var(--ease); }
.app-card:hover .app-icon { transform: rotate(-4deg) scale(1.06); }
.pill { font-size: 13px; font-weight: 600; color: var(--c-accent-text); background: var(--c-accent-tint); padding: 6px 12px; border-radius: 999px; }
.card-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.card-title a { color: var(--c-ink); text-decoration: none; }
.card-title a:hover { color: var(--c-primary); }
.card-kicker { color: var(--c-primary); font-weight: 600; font-size: 15px; margin: 6px 0 var(--s-3); }
.card-text { color: var(--c-muted); }
.card-audience { font-size: 15px; font-weight: 500; margin: 0 0 var(--s-4); padding-left: var(--s-3); border-left: 3px solid var(--c-primary); }
.checks { display: grid; gap: var(--s-2); margin: 0 0 var(--s-4); font-size: 15px; }
.checks li { display: flex; gap: var(--s-2); align-items: flex-start; }
.checks .ico { margin-top: 4px; }
.facts { display: grid; gap: 6px; margin: 0 0 var(--s-5); padding: var(--s-4) 0 0; border-top: 1px solid var(--c-border); font-size: 14px; }
.facts li { display: flex; justify-content: space-between; gap: var(--s-3); }
.fact-k { color: var(--c-muted); }
.fact-v { font-weight: 600; text-align: right; }
.card-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); }
/* Post cover: fixed 16:9 frame so cards line up, image shown whole (contain) on a neutral mat; the 8px padding keeps
   the image corners inside the rounded frame. */
.post-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; margin: calc(var(--s-3) * -1) calc(var(--s-3) * -1) var(--s-5); padding: 8px; border-radius: var(--r-md); background: var(--c-canvas); }
.post-media picture { display: contents; }
figure.post-media { flex-direction: column; gap: 4px; }
.post-media figcaption { flex: none; width: 100%; padding: 0 4px; color: var(--c-muted); font-size: 12px; line-height: 1.3; text-align: center; }
.post-media img { width: 100%; height: 100%; min-height: 0; flex: 1 1 auto; object-fit: contain; }

/* centred tinted-icon blocks */
.block { text-align: center; padding: var(--s-5) var(--s-4); }
.block h3 { font-size: 19px; font-weight: 600; margin: var(--s-4) 0 var(--s-2); }
.block p { color: var(--c-muted); font-size: 16px; }
.block-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c-primary-tint); color: var(--c-primary); transition: transform .3s var(--ease); }
.block:hover .block-icon, .step:hover .block-icon { transform: translateY(-3px) rotate(-6deg); }
.block-icon.sm { width: 36px; height: 36px; border-radius: 10px; }
.block-wide { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-6); text-align: left; }
.block-wide h3 { font-size: 22px; }
.block-wide p { color: var(--c-ink); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.step { position: relative; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-6) var(--s-5); text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.step:hover, .panel .block:hover { transform: translateY(-4px); box-shadow: 0 2px 4px var(--c-shadow), 0 20px 40px -22px var(--c-shadow-strong); }
.step-n { position: absolute; top: 16px; right: 18px; font-size: 14px; font-weight: 600; color: var(--c-muted); }
.step h3 { font-size: 19px; margin: var(--s-4) 0 var(--s-2); }
.step p { color: var(--c-muted); font-size: 16px; margin: 0; }

.panel { background: var(--c-canvas); border-radius: calc(var(--r-lg) + 8px); padding: var(--s-8) var(--s-7); }
.panel .block { background: var(--c-surface); border-radius: var(--r-lg); border: 1px solid var(--c-border); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.panel-foot { margin-top: var(--s-7); display: grid; justify-items: center; gap: var(--s-5); }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-5); color: var(--c-muted); font-size: 15px; }
.contact-list li { display: flex; align-items: center; gap: var(--s-2); }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.band { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; background: var(--c-primary-tint); border-radius: calc(var(--r-lg) + 8px); padding: var(--s-7); }
.band > div:first-child { max-width: 560px; }
.band p { color: var(--c-muted); margin: var(--s-3) 0 0; }

/* ---------- reusable parts for later templates (app page, post, forms; from the prototype) ---------- */
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); font-size: 14px; color: var(--c-muted); margin-bottom: var(--s-6); }
.crumbs a { color: var(--c-muted); display: inline-flex; align-items: center; min-height: 32px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-6); }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-border); font-size: 14px; font-weight: 500; }
.prose { max-width: 68ch; }
.prose p { font-size: 18px; }

.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: 15px; }
.form input[type="text"], .form input[type="email"], .form textarea, .form select {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/1.4 var(--font); color: var(--c-ink);
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-tint); }
.form [aria-invalid="true"] { border-color: var(--c-danger); }
.field-error { color: var(--c-danger); font-size: 14px; margin: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* the solution demand form keeps class="hp-field" alone (spec 731): same off-screen honeypot */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }

.faq { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.qa { border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); min-height: 60px; font-weight: 600; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa p { padding: 0 var(--s-5) var(--s-5); color: var(--c-muted); margin: 0; }
.chev { transition: transform .2s var(--ease); color: var(--c-muted); }
details[open] > summary .chev { transform: rotate(180deg); }

.note { display: flex; gap: var(--s-3); background: var(--c-warn-tint); border-radius: var(--r-md); padding: var(--s-5); }
.note .ico { margin-top: 5px; }
.note p { margin: 0; }

/* ---------- app page (step 606, prototype redesign/a/apps/multi-mxh) ----------
   Screenshots sit in .window frames at their natural ratio (width/height attributes, height: auto): never cropped. */
.app-hero .crumbs { margin-bottom: var(--s-6); }
.app-icon-lg { display: inline-block; margin-bottom: var(--s-5); }
.app-icon-lg .app-icon { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 16px 36px -12px var(--c-shadow-strong); }
.app-icon-lg .app-initial { display: inline-flex; align-items: center; justify-content: center; font-size: 48px; }
.app-hero .subtitle { color: var(--c-primary); }
.app-hero .audience-line { font-size: 17px; color: var(--c-muted); max-width: 680px; margin: var(--s-3) auto 0; }
.hl-index { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin: var(--s-5) 0 0; }
.hl-index a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.hl-index a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.tilt-hero { max-width: 1040px; margin: var(--s-8) auto 0; transform: perspective(2000px) rotateX(6deg); }
.window--portrait { max-width: 380px; margin-inline: auto; }
.tilt-hero.window--portrait { max-width: 360px; }

.more, .read-more { margin-top: var(--s-3); }
.more summary, .read-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--c-primary); cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker, .read-more summary::-webkit-details-marker { display: none; }
.more summary .ico, .read-more summary .ico { transition: transform .2s var(--ease); }
.more[open] summary .ico, .read-more[open] summary .ico { transform: rotate(180deg); }
.more dl { margin: var(--s-2) 0 0; display: grid; gap: var(--s-3); }
.more dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.more dd { margin: 4px 0 0; }
.more dd p { margin: 0 0 var(--s-2); }

.glance h2 { margin-bottom: var(--s-2); }
.glance .glance-k { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin-top: var(--s-4); }
.glance .glance-v { display: flex; align-items: center; gap: var(--s-2); font-size: 20px; font-weight: 600; margin: var(--s-2) 0 var(--s-3); }
.glance p { color: var(--c-muted); font-size: 15px; }
.cta-col { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.app-links .cta-col { margin-top: var(--s-2); }

.section-nav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, .94); border-block: 1px solid var(--c-border); }
.section-nav ul { display: flex; gap: var(--s-1); overflow-x: auto; padding: 6px 0; scrollbar-width: none; }
.section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--c-ink); text-decoration: none; }
.section-nav a:hover, .section-nav a[aria-current] { background: var(--c-primary-tint); color: var(--c-primary); }

.hl-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; margin-top: var(--s-8); }
.hl-row.flip .hl-media { order: 2; }
.hl-copy h3, .hl-center h3, .block-wide h3 { margin: var(--s-4) 0 var(--s-3); }
.hl-gain { font-size: 19px; color: var(--c-ink); }
.hl-lead { margin: 0; }
.hl-lead dd { margin: 0; }
.hl-lead dt { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hl-center { max-width: 680px; margin: var(--s-8) auto 0; text-align: center; }
.hl-center .more, .block-wide .more { text-align: left; }
.highlights-a .grid-2 { margin-top: var(--s-7); }
.hl-row .window { transition: box-shadow .3s var(--ease), transform .4s var(--ease); }
.hl-row.is-current .window { box-shadow: 0 2px 4px var(--c-shadow), 0 40px 72px -28px var(--c-shadow-strong); }

.form-card { padding: var(--s-7); }
.form-card .lead-form { display: grid; gap: var(--s-5); }
.form-card .lead-form[hidden] { display: none; }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.choice legend { font-weight: 600; font-size: 15px; margin-bottom: var(--s-2); padding: 0; }
.choice-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); }
.form .choice label { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--r-md); cursor: pointer; font-weight: 500; }
.form .choice label:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-tint); }
.choice-text { display: grid; }
.choice-state { font-size: 13px; color: var(--c-muted); font-weight: 400; }
.choice input { width: 20px; height: 20px; accent-color: var(--c-primary); flex: none; }
.form-privacy { font-size: 15px; margin: 0; }
.trial-nojs, .lead-fallback { display: grid; gap: var(--s-3); }
.trial-nojs[hidden], .lead-fallback[hidden] { display: none; }
.trial-nojs .cta-row, .lead-fallback .cta-row { margin: 0; }

.fgroups { display: grid; gap: var(--s-4); max-width: 980px; margin: 0 auto; }
.fgroup { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.fgroup summary { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-5) var(--s-6); min-height: 64px; cursor: pointer; list-style: none; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary h3 { font-size: 19px; font-weight: 600; flex: 1; margin: 0; }
.fgroup--upcoming { background: var(--c-canvas); }
.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); padding: 0 var(--s-6) var(--s-6); }
.flist h4 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.flist p { font-size: 15px; color: var(--c-muted); margin: 0; }

.gallery-a { display: grid; gap: var(--s-7); }
.gallery-a--portrait { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }

.info h2 { margin: var(--s-4) 0 var(--s-3); font-size: 20px; }
.info p { color: var(--c-muted); font-size: 15px; }
.info .facts { border-top: 0; padding-top: 0; }
.platform-row { flex-wrap: wrap; }
.platform-note { flex-basis: 100%; margin: 0; color: var(--c-muted); font-size: 14px; }

.center-text .block-icon { margin-bottom: var(--s-4); }
.center-text h2 { margin-bottom: var(--s-4); }
.center-text p { color: var(--c-muted); }

.bottom-bar { display: none; }
.bottom-bar[hidden] { display: none !important; }

/* ---------- blog post (step 607, prototype redesign/a/blog/…) ----------
   post-cover / post-figure keep the old template's class names; images keep their whole frame (natural ratio,
   width / height attributes, never cropped). */
.post-head { padding-top: var(--s-8); text-align: center; }
.post-head h1 { max-width: 920px; margin: 0 auto var(--s-4); }
.post-head .meta span + span { margin-left: 2px; }
.standfirst { max-width: 68ch; margin: var(--s-5) auto 0; font-size: clamp(19px, 1.8vw, 22px); font-weight: 500; line-height: 1.5; color: var(--c-ink); text-align: center; }
.post-head .chips { margin-top: var(--s-5); }
.post-cover, .lead-figure { max-width: 1040px; margin: var(--s-7) auto 0; }
.post-figure { margin: var(--s-6) calc(var(--s-6) * -1); }
.post-cover picture, .lead-figure picture, .post-figure picture { display: block; padding: 10px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: 0 30px 60px -28px var(--c-shadow-strong); }
.post-cover img, .lead-figure img, .post-figure img { width: 100%; height: auto; border-radius: calc(var(--r-lg) - 6px); }
.post-cover--portrait, .post-figure--portrait { max-width: 420px; margin-left: auto; margin-right: auto; }
.post-cover figcaption, .lead-figure figcaption, .post-figure figcaption { font-size: 14px; color: var(--c-muted); margin-top: var(--s-3); text-align: center; }
.reading { max-width: calc(68ch + 48px); margin: 0 auto; padding: var(--s-8) var(--s-5) var(--s-9); font-size: 18px; line-height: 1.75; }
.reading h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin: var(--s-7) 0 var(--s-4); }
.reading h2:first-child { margin-top: 0; }
.reading p { margin: 0 0 var(--s-4); }
.reading ul, .reading ol { margin: 0 0 var(--s-4); padding-left: 1.4em; }
.reading ul { list-style: disc; }
.reading ol { list-style: decimal; }
.reading li + li { margin-top: var(--s-2); }
.post-blocks { display: grid; gap: var(--s-3); margin: var(--s-5) 0; }
.post-blocks .block { text-align: left; background: var(--c-canvas); border-radius: var(--r-md); padding: var(--s-5); }
.post-blocks .block h3 { margin: 0 0 4px; font-size: 18px; }
.post-blocks .block p { margin: 0; font-size: 16px; line-height: 1.6; }
/* step 741: a feature image inside its item card (images[].item) */
.post-item .post-figure { margin: var(--s-4) 0 0; }
.post-item .post-figure picture { box-shadow: 0 12px 28px -20px var(--c-shadow-strong); }
.post-item .post-figure--portrait { max-width: 260px; margin-left: auto; margin-right: auto; }
.post-item .post-figure figcaption { text-align: left; }
.post-faq { margin-top: var(--s-7); }
.post-faq h2 { margin-bottom: var(--s-2); }
.post-faq > p { color: var(--c-muted); }
.post-faq .qa p { margin: 0; }
.back-link { margin-top: var(--s-7); }
.band h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.band-list { margin-top: var(--s-5); }

/* ---------- footer ---------- */
.site-footer { background: var(--c-canvas); border-top: 1px solid var(--c-border); padding: var(--s-8) 0 var(--s-5); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer-brand img { width: 148px; height: auto; }
.footer-brand p { color: var(--c-muted); margin-top: var(--s-4); max-width: 420px; }
.footer-heading { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin-bottom: var(--s-3); }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--c-ink); text-decoration: none; }
.site-footer ul a:hover { color: var(--c-primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-border); color: var(--c-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.footer-bottom a { color: var(--c-muted); display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom a:hover { color: var(--c-primary); }
/* consent.css colours its reopen button for the old dark footer; this footer is light */
.site-footer .consent-open { color: var(--c-muted); }
.site-footer .consent-open:hover { color: var(--c-primary); }
.site-footer .consent-open:focus-visible { outline: 3px solid var(--c-primary); }

/* ---------- motion ----------
   Hide-before-reveal only happens under .js (added by motion.js) or .reveal-on (added by motion.js when motion is
   allowed), so the page is fully visible without JS; the reduced-motion block at the end switches it all off. */
@keyframes lx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lx-pop { from { opacity: 0; transform: translateY(10px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes lx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* hero entrance: short stagger on load */
.js .hero-inner > * { animation: lx-rise .6s var(--ease) both; }
.js .hero-inner > :nth-child(1) { animation-delay: 40ms; }
.js .hero-inner > :nth-child(2) { animation-delay: 110ms; }
.js .hero-inner > :nth-child(3) { animation-delay: 180ms; }
.js .hero-inner > :nth-child(4) { animation-delay: 250ms; }
.js .hero-inner > :nth-child(5) { animation-delay: 320ms; }
.js .hero-inner > :nth-child(n+6) { animation-delay: 390ms; }
/* blog post head: same entrance as the hero (step 607) */
.js .post-head > * { animation: lx-rise .6s var(--ease) both; }
.js .post-head > :nth-child(1) { animation-delay: 40ms; }
.js .post-head > :nth-child(2) { animation-delay: 110ms; }
.js .post-head > :nth-child(3) { animation-delay: 180ms; }
.js .post-head > :nth-child(4) { animation-delay: 250ms; }
.js .post-head > :nth-child(5) { animation-delay: 320ms; }
.js .post-head > :nth-child(n+6) { animation-delay: 390ms; }
/* app-icon strip: each icon pops in after the CTAs */
.js .proof li { animation: lx-pop .5s var(--ease) both; }
.js .proof li:nth-child(1) { animation-delay: 380ms; }
.js .proof li:nth-child(2) { animation-delay: 440ms; }
.js .proof li:nth-child(3) { animation-delay: 500ms; }
.js .proof li:nth-child(4) { animation-delay: 560ms; }
.js .proof li:nth-child(n+5) { animation-delay: 620ms; }
/* hero phones: gentle float (translate) on top of the scroll parallax (transform, --py) */
.js .showcase:not(.showcase--phones) .phone-left { animation: lx-float 6s ease-in-out 1s infinite; }
.js .showcase:not(.showcase--phones) .phone-right { animation: lx-float 7s ease-in-out 1.6s infinite; }

/* section reveal: fade-up, staggered by --d (sibling index, set by motion.js) */
.reveal-on [data-reveal] {
  opacity: 0; translate: 0 22px;
  transition: opacity .6s var(--ease) var(--d, 0ms), translate .6s var(--ease) var(--d, 0ms), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.reveal-on [data-reveal].is-in { opacity: 1; translate: 0 0; }
/* app page screenshots slide in from the side of their feature block (step 606) */
.reveal-on .hl-row .hl-media .window[data-reveal]:not(.is-in) { translate: -56px 0; }
.reveal-on .hl-row.flip .hl-media .window[data-reveal]:not(.is-in) { translate: 56px 0; }
.reveal-on .hl-row .hl-copy[data-reveal] { --d: 120ms; }
.fgroup .flist { transition: opacity .3s var(--ease); }
.fgroup.is-closing .flist { opacity: 0; }
/* details height animation (motion.js): keeps the content from spilling while it runs */
details.is-animating { overflow: hidden; }
.qa p { transition: opacity .3s var(--ease); }
.qa.is-closing p { opacity: 0; }

/* ---------- index pages: products list, blog index (step 608) ---------- */
.page-hero { padding: var(--s-8) 0 var(--s-7); }
.page-hero .crumbs { margin-bottom: var(--s-5); }
.page-hero .lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-hero-art { max-width: 960px; margin: var(--s-7) auto 0; }
.products-listing .card-actions .project-link { flex-basis: 100%; }
.post-card .chips { justify-content: flex-start; gap: 6px; margin: 0 0 var(--s-4); padding: 0; list-style: none; }
.post-card .chips li { padding: 4px 10px; font-size: 13px; color: var(--c-muted); background: var(--c-canvas); }
.post-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; margin-bottom: var(--s-6); }
.post-feature .post-media { margin: 0; }
.post-feature .card-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.post-feature-body { display: flex; flex-direction: column; align-items: flex-start; }
.post-listing .empty-note { color: var(--c-muted); }

/* ---------- services, contact, pricing (step 609) ---------- */
.price-line { display: inline-flex; align-items: center; gap: var(--s-2); margin: var(--s-5) 0 0; padding: 8px 16px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-border); font-size: 15px; }
.price-line span { color: var(--c-muted); }
.price-line strong { color: var(--c-primary); }
.qa summary h3, .qa-q { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0; flex: 1; }
.lead-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; margin-top: var(--s-7); }
.lead-split:has(.lead-form[hidden]) { grid-template-columns: minmax(0, 1fr); }
.lead-card:has(> .lead-form[hidden]) { display: none; }
.lead-card select, .form-card select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-muted) 50%), linear-gradient(135deg, var(--c-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field-optional { color: var(--c-muted); font-weight: 400; }
.lead-aside { display: grid; gap: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-6); }
.lead-aside .contact-list { flex-direction: column; justify-content: flex-start; font-size: 16px; }
.lead-aside .cta-row { flex-direction: column; }
.lead-aside .cta-row .button { width: 100%; }
.lead-split:has(.lead-form[hidden]) .lead-aside .cta-row { flex-direction: row; }
.lead-split:has(.lead-form[hidden]) .lead-aside .cta-row .button { width: auto; }
.price-section { padding-top: 0; }
.price-wrap { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: 0 1px 2px var(--c-shadow), 0 12px 32px -18px var(--c-shadow-strong); overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 16px; }
.price-table th, .price-table td { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.price-table thead th { background: var(--c-canvas); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody tr { transition: background-color .2s var(--ease); }
.price-table tbody tr:hover { background: var(--c-canvas); }
.price-table td { color: var(--c-muted); }
.price-table td strong { color: var(--c-ink); }
.price-app { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 600; }
.price-app a { color: var(--c-ink); text-decoration: none; }
.price-app a:hover { color: var(--c-primary); }
.price-app .app-icon { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 8px var(--c-shadow); }
.price-custom { background: var(--c-primary-tint); }
.price-table tbody tr.price-custom:hover { background: var(--c-primary-tint); }

/* ---------- projects index, project page (step 610) ---------- */
.project-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: 0 1px 2px var(--c-shadow), 0 12px 32px -18px var(--c-shadow-strong); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px var(--c-shadow), 0 24px 48px -20px var(--c-shadow-strong); }
.project-card .app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 4px 12px var(--c-shadow); transition: transform .3s var(--ease); }
.project-card:hover .app-icon { transform: rotate(-4deg) scale(1.06); }
.project-card .project-meta { justify-content: flex-end; margin: 0; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2); margin-top: var(--s-5); }
.project-kind, .project-meta .status { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.project-kind { color: var(--c-primary); background: var(--c-primary-tint); }
.project-meta .status { color: var(--c-accent-text); background: var(--c-accent-tint); }
.project-meta .status-coming-soon, .project-meta .project-status-in-progress { color: var(--c-warn); background: var(--c-warn-tint); }
.project-date { color: var(--c-muted); font-size: 14px; }
.project-listing { padding-top: 0; }
.project-listing .card-actions { justify-content: flex-start; gap: var(--s-2) var(--s-5); }
.project-hero .subtitle { color: var(--c-primary); }
.project-story .read-more p, .project-story p { font-size: 18px; }
.project-facts { display: grid; gap: var(--s-4); margin: var(--s-4) 0 0; }
.project-facts dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.project-facts dd { margin: 4px 0 0; font-size: 15px; }
.detail-platforms { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.platform-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--c-canvas); border: 1px solid var(--c-border); font-size: 14px; font-weight: 500; }
.project-client { margin: var(--s-4) 0 0; font-size: 15px; }
.project-client span { color: var(--c-muted); }
.stack-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-5); }
.stack-list li { padding: 8px 16px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-border); font-weight: 600; font-size: 15px; transition: border-color .2s var(--ease), color .2s var(--ease); }
.stack-list li:hover { border-color: var(--c-primary); color: var(--c-primary); }
.back-row { display: flex; justify-content: center; }

/* ---------- step 611: about, support, privacy, terms, 404 ---------- */
.qa summary .block-icon.sm { flex: none; }
.legal-section { padding-top: 0; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 68ch); gap: var(--s-8); justify-content: center; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + var(--s-5)); padding: var(--s-5); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-canvas); }
.legal-toc ol { display: grid; gap: var(--s-1); counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: var(--s-2); min-height: 32px; align-items: center; padding: 4px 8px; border-radius: 8px; font-size: 14px; color: var(--c-ink); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.legal-toc a::before { content: counter(toc) "."; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { background: var(--c-primary-tint); color: var(--c-primary); }
.legal-body { font-size: 17px; line-height: 1.75; }
.legal-block + .legal-block { margin-top: var(--s-7); padding-top: var(--s-7); border-top: 1px solid var(--c-border); }
.legal-block { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.legal-block h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 var(--s-4); }
.legal-block p { margin: 0 0 var(--s-4); }
.legal-item { margin-top: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--c-canvas); }
.legal-item h3 { font-size: 17px; font-weight: 600; margin: 0 0 var(--s-2); }
.legal-item p:last-child { margin-bottom: 0; }
.legal-apps { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.legal-apps a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 6px 14px 6px 6px; border: 1px solid var(--c-border); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--c-ink); text-decoration: none; transition: border-color .2s var(--ease), color .2s var(--ease); }
.legal-apps a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.legal-apps .app-icon { width: 32px; height: 32px; border-radius: 9px; }
.not-found { padding: var(--s-9) 0; }
/* 404 page: the hero look without the hero class, so tracking.tag_ctas keeps section_home / section_products */
.nf-page { background: radial-gradient(1200px 480px at 50% -10%, var(--c-primary-tint), transparent 70%); }
.nf-page .cta-row { margin-top: var(--s-6); }
.nf-page .lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.nf-code { font-size: clamp(64px, 12vw, 120px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--c-primary-tint); -webkit-text-stroke: 2px var(--c-primary); margin: 0 0 var(--s-4); }

/* ---------- solutions: index /giai-phap/ + one page per vertical (step 731) ----------
   Mobile first (390 px), two-column hero from 1024 px. Real demo screenshots sit in a light phone frame (portrait) or
   the .window frame (wide) at their natural ratio, never cropped; a vertical without screenshots shows an empty
   phone-shaped slot (data-shot-placeholder) with one short neutral line, never a fake interface. */
.status-chip { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-4); padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--c-warn-tint); color: var(--c-warn); font-size: 14px; font-weight: 600; line-height: 1.3; }
.status-chip .ico { width: 16px; height: 16px; }

/* index */
.solutions-hero .lead { max-width: 720px; }
.solutions-intro { padding: 0 0 var(--s-7); }
.prose-center { text-align: center; }
.prose-center p { font-size: 18px; color: var(--c-muted); }
.prose-center p:last-child { margin-bottom: 0; }
.solution-group[data-engine] { padding: 0 0 var(--s-8); scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
/* Jump list above the engine groups (step 737): one row of chips, scrolls sideways on a phone, 44 px tap targets. */
.jump-list { padding: 0 0 var(--s-6); }
.jump-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.jump-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-ink); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.jump-chip:hover, .jump-chip:focus-visible { background: var(--c-primary-tint); color: var(--c-primary); border-color: var(--c-primary-tint); }
@media (max-width: 640px) {
  .jump-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .jump-chips::-webkit-scrollbar { display: none; }
  .jump-chips li { flex: 0 0 auto; }
}
.group-title { display: flex; align-items: center; gap: var(--s-4); margin: 0 0 var(--s-5); }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.solution-cards { align-items: stretch; }
.solution-card { display: flex; flex-direction: column; height: 100%; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.solution-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px var(--c-shadow), 0 24px 48px -20px var(--c-shadow-strong); }
.solution-card .status-chip { align-self: flex-start; }
.solution-card .card-title { margin-bottom: var(--s-3); }
.solution-card .card-actions { padding-top: var(--s-4); margin-top: auto; }
/* step 741: one real demo screenshot on top of each directory card, shown whole in a fixed-height frame (like the
   home grid card); the card's padding is cancelled so the frame runs edge to edge under the rounded top corners. */
.solution-card { overflow: hidden; }
.solution-card-media { margin: calc(var(--s-6) * -1) calc(var(--s-6) * -1) var(--s-5); background: var(--c-canvas); border-bottom: 1px solid var(--c-border); }
.solution-card-shot { display: flex; align-items: center; justify-content: center; height: 180px; padding: 12px 12px 6px; }
.solution-card-shot picture { display: contents; }
.solution-card-shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 2px 8px var(--c-shadow); }

/* vertical page: hero */
.solution-hero { padding: var(--s-7) 0 var(--s-8); }
.solution-hero .crumbs { justify-content: flex-start; margin-bottom: var(--s-6); }
.solution-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.solution-hero-copy { min-width: 0; }
.solution-hero .lead { max-width: 600px; margin: var(--s-5) 0 0; }
.solution-hero-media { display: flex; justify-content: center; min-width: 0; }
.js .solution-hero-copy > * { animation: lx-rise .6s var(--ease) both; }
.js .solution-hero-copy > :nth-child(2) { animation-delay: 80ms; }
.js .solution-hero-copy > :nth-child(3) { animation-delay: 160ms; }
.js .solution-hero-copy > :nth-child(n+4) { animation-delay: 240ms; }
.js .solution-hero-media { animation: lx-rise .7s var(--ease) 200ms both; }

/* screenshots and the empty slot */
.sol-shot { margin: 0; width: 100%; display: grid; justify-items: center; }
.sol-shot--wide { justify-items: stretch; }
.phone-frame { width: 100%; max-width: 260px; padding: 10px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 36px; box-shadow: 0 1px 2px var(--c-shadow), 0 30px 60px -24px var(--c-shadow-strong); }
.phone-frame img { width: 100%; height: auto; border-radius: 26px; }
.sol-shot .shot-note { margin-top: var(--s-3); color: var(--c-muted); font-size: 14px; text-align: center; }
.sol-shot--wide .window { width: 100%; }
.shot-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); aspect-ratio: 9 / 19.5; padding: var(--s-5); background: var(--c-primary-tint); border: 2px dashed var(--c-primary-line); box-shadow: none; color: var(--c-primary); text-align: center; }
.shot-empty p { margin: 0; max-width: 18ch; color: var(--c-primary-strong); font-size: 15px; font-weight: 500; line-height: 1.45; }
[data-shot-placeholder] { width: 100%; display: flex; justify-content: center; }

/* pains: problem cards with a short warm marker */
.sol-pains { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.sol-pain { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.sol-pain::before { content: ""; position: absolute; top: 0; left: var(--s-5); width: 40px; height: 4px; border-radius: 0 0 4px 4px; background: var(--c-warn); }
.sol-pain h3, .sol-standout h3, .sol-why h3, .sol-check h3 { font-size: 19px; font-weight: 600; margin: 0 0 var(--s-2); }
.sol-pain p, .sol-standout p, .sol-why p, .sol-check p { color: var(--c-muted); font-size: 16px; margin: 0; }

/* standout: three numbered cards */
.sol-standouts, .sol-whys { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.sol-standout, .sol-why { position: relative; padding: var(--s-6) var(--s-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.sol-standout:hover, .sol-why:hover { transform: translateY(-4px); box-shadow: 0 2px 4px var(--c-shadow), 0 20px 40px -22px var(--c-shadow-strong); }
.sol-standout .block-icon, .sol-why .block-icon { margin-bottom: var(--s-4); }
.sol-standout:hover .block-icon, .sol-why:hover .block-icon { transform: translateY(-3px) rotate(-6deg); }
.sol-standout .step-n { top: 20px; right: 22px; font-size: 15px; }
.sol-standout .block-icon { background: var(--c-accent-tint); color: var(--c-accent-text); }

/* features: text + screenshot rows (alternating), the rest as a card grid */
.sol-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.sol-feature + .sol-feature { margin-top: var(--s-8); }
.sol-feature-copy { min-width: 0; max-width: 520px; }
.sol-feature-copy h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin: var(--s-4) 0 var(--s-3); }
.sol-feature-copy p { color: var(--c-muted); font-size: 18px; }
.sol-feature-media { min-width: 0; display: flex; justify-content: center; }
.sol-checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.sol-feature + .sol-checks { margin-top: var(--s-8); }
.sol-check { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); }
.sol-check .ico { margin-top: 1px; }
.sol-check div { min-width: 0; }

/* demo band + signup form */
.sol-demo-band .cta-row { flex: none; }
[data-section="signup"] .section-head { margin-bottom: var(--s-6); }
.choice-list.choice-list--devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .choice-list--devices label { min-height: 52px; }

@media (min-width: 720px) {
  .sol-pains, .sol-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
  .sol-whys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
  .sol-whys > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .choice-list.choice-list--devices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-3.solution-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .sol-standouts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
  .sol-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
  .sol-feature.flip .sol-feature-media { order: -1; }
  .sol-feature.flip .sol-feature-copy { justify-self: end; }
  .phone-frame { max-width: 280px; }
}
@media (min-width: 1024px) {
  .solution-hero { padding: var(--s-8) 0; }
  .solution-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-8); }
  .solution-hero-media .phone-frame { max-width: 300px; }
  .sol-pains { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sol-pains.sol-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sol-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sol-whys { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sol-whys > * { grid-column: span 2; }
  .sol-whys > :last-child:nth-child(odd) { grid-column: span 2; }
  .sol-whys > :nth-child(4):nth-last-child(2), .sol-whys > :nth-child(5):last-child { grid-column: span 3; }
  .grid-3.solution-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .solution-hero { padding: var(--s-6) 0 var(--s-7); }
  .solution-hero .crumbs { margin-bottom: var(--s-5); }
  .solution-group[data-engine] { padding-bottom: var(--s-7); }
  .group-title::after { display: none; }
  .sol-feature + .sol-feature, .sol-feature + .sol-checks { margin-top: var(--s-7); }
  .sol-demo-band .cta-row, .sol-demo-band .cta-row .button { width: 100%; }
  .solution-card .card-actions .button { width: 100%; }
  /* the card padding is --s-5 under 600 px (.card rule below) */
  .solution-card-media { margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-4); }
  .solution-card-shot { height: 160px; }
}

/* ---------- home: every app and every vertical (step 740) ----------
   Compact equal-height cards: one real screenshot shown whole (contain) in a fixed-height frame, name, one line,
   demo + sign-up links. 1 column under 360 px, 2 from 360 px, 3 from 720 px, 4 from 1280 px. */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); align-items: stretch; }
.home-card { display: flex; flex-direction: column; min-width: 0; height: 100%; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 1px 2px var(--c-shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.home-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px var(--c-shadow), 0 18px 36px -20px var(--c-shadow-strong); }
.home-card-media { margin: 0; background: var(--c-canvas); border-bottom: 1px solid var(--c-border); }
.home-card-shot { display: flex; align-items: center; justify-content: center; height: 168px; padding: 10px 10px 4px; }
.home-card-shot picture { display: contents; }
.home-card-shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 2px 8px var(--c-shadow); }
.home-card-body { flex: 1; padding: 12px 12px 4px; min-width: 0; }
.home-card-title { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 4px; }
.home-card-title a { color: var(--c-ink); text-decoration: none; }
.home-card-title a:hover { color: var(--c-primary); }
.home-card-text { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.home-card-actions { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 12px; margin-top: auto; }
.home-card-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; font-weight: 600; text-decoration: none; }
.home-card-demo { color: var(--c-ink); }
.home-card-demo .ico { width: 16px; height: 16px; flex: none; color: var(--c-primary); }
.home-card-signup { color: var(--c-primary); }
.home-card-actions a:hover { color: var(--c-primary-strong); text-decoration: underline; }
.home-apps .section-more { flex-wrap: wrap; gap: var(--s-3); }
@media (min-width: 360px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
  .home-card-shot { height: 200px; }
  .home-card-body { padding: 14px 16px 4px; }
  .home-card-actions { padding: 4px 16px 14px; }
  .home-card-title { font-size: 17px; }
}
@media (min-width: 1280px) {
  .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
  .home-card-shot { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-card:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .showcase:not(.showcase--phones) .phone { display: none; }
}
@media (min-width: 1401px) and (max-width: 1520px) {
  .header-row { gap: var(--s-4); }
  .nav { gap: var(--s-3); }
  .nav-list a { padding: 0 8px; }
}
@media (max-width: 1400px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: var(--s-4); padding: var(--s-4) var(--s-5) var(--s-5); background: var(--c-surface); border-bottom: 1px solid var(--c-border); box-shadow: 0 20px 40px -20px var(--c-shadow-strong); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .js .nav.is-open { display: flex; }
  .js .nav-list { flex-direction: column; }
  .js .nav-list a { width: 100%; font-size: 17px; }
  .js .nav-end { justify-content: space-between; }
  .header-row { flex-wrap: wrap; }
}
@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-3, .grid-2, .split, .two-col { grid-template-columns: minmax(0, 1fr); }
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .legal-toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .tilt-l, .tilt-r, .tilt-none, .tilt-hero { transform: none; }
  .reveal-on .hl-row .hl-media .window[data-reveal]:not(.is-in) { translate: 0 22px; }
  .hl-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .hl-row.flip .hl-media { order: 0; }
  .flist { grid-template-columns: minmax(0, 1fr); }
  .post-figure { margin: var(--s-5) 0; }
  .post-feature { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-feature .post-media { margin: calc(var(--s-3) * -1) calc(var(--s-3) * -1) var(--s-5); }
  .lead-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 var(--s-4); }
  .section { padding: var(--s-8) 0; }
  .hero { padding: var(--s-7) 0; }
  .display { font-size: 40px; }
  .display.sm { font-size: 34px; }
  .grid-4, .steps { grid-template-columns: minmax(0, 1fr); }
  .cta-row.center .button, .hero .cta-row .button, .nf-page .cta-row .button { width: 100%; }
  .proof { gap: var(--s-4); }
  .proof a { min-width: 72px; font-size: 13px; }
  .card, .block-wide, .project-card { padding: var(--s-5); }
  .post-media { margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-4); }
  .panel { padding: var(--s-7) var(--s-4); }
  .band { padding: var(--s-6) var(--s-5); }
  .post-head { padding-top: var(--s-6); }
  .page-hero { padding: var(--s-7) 0 var(--s-6); }
  .post-feature .post-media { margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-4); }
  .reading { padding: var(--s-7) var(--s-4) var(--s-8); font-size: 17px; }
  .showcase--phones { gap: var(--s-4); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: var(--s-5); }
  .choice-list { grid-template-columns: minmax(0, 1fr); }
  .fgroup summary { padding: var(--s-4); }
  .flist { padding: 0 var(--s-4) var(--s-5); }
  .lead-aside { padding: var(--s-5); }
  /* pricing: each row becomes a card; the cells keep their column name (data-label) */
  .price-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table tbody { display: grid; gap: var(--s-3); }
  .price-table tr { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-4); }
  .price-table th, .price-table td { padding: var(--s-2) 0; border: 0; }
  .price-table td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin-bottom: 2px; }
  .has-bottom-bar { padding-bottom: 80px; }
  .bottom-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 12px var(--s-4) calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--c-border); }
  .bottom-bar .button { width: 100%; }
}

/* ---------- reduced motion: everything visible and static (no entrance, reveal, float, parallax, tilt, lift, zoom) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal-on [data-reveal] { opacity: 1 !important; translate: none !important; scale: none !important; }
  /* parallax (--py) and pointer tilt (--rx/--ry) are never set by motion.js here, so phones and windows stay at rest */
  .tilt-none, .tilt-hero { transform: none; }
  .project-card:hover, .project-card:hover .app-icon,
  .app-card:hover, .post-card:hover, .step:hover, .panel .block:hover, .button:hover, .button:active, .button:hover .ico,
  .link-arrow:hover .ico, .proof a:hover .app-icon, .app-card:hover .app-icon, .block:hover .block-icon,
  .step:hover .block-icon, .window:hover .window-body img,
  .solution-card:hover, .sol-standout:hover, .sol-why:hover, .sol-standout:hover .block-icon,
  .sol-why:hover .block-icon { transform: none; }
}

/* solution links: CTA panel on solution posts, quiet link on solution pages */
.post-solution-cta { padding-block: var(--s-8); }
.post-solution-cta .band { display: grid; gap: var(--s-5); padding: var(--s-6) var(--s-5); background: var(--c-primary-tint); border: 1px solid var(--c-primary-line); border-radius: var(--r-lg); }
.post-solution-cta .band h2 { margin: 0 0 var(--s-3); }
.post-solution-cta .cta-row { display: flex; flex-direction: column; gap: var(--s-3); }
.post-solution-cta .cta-row .button { width: 100%; justify-content: center; }
.post-solution-link { margin: var(--s-4) 0 0; }
.post-solution-link .link-arrow { color: var(--c-primary-strong); }
.sol-read-post { margin: var(--s-5) 0 0; }
.sol-read-post .link-arrow { color: var(--c-muted); font-weight: 500; }
.sol-read-post .link-arrow:hover { color: var(--c-primary); }
@media (min-width: 768px) {
  .post-solution-cta .band { padding: var(--s-7); }
  .post-solution-cta .cta-row { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .post-solution-cta .cta-row .button { width: auto; }
}
