/* Prodsystem — product-led landing page
   [PRODC-203 | S14 | v0.1.0] Landing page: product-led light redesign with real application screens

   The product is the hero: every large visual on this page is a real screen of the
   application, captured from a demo instance (landing/tools/). The palette is the
   brand's own: the violet of the Prodsystem logo (wordmark #2e0c64, mark light →
   deep violet) as the primary, the application's sky #0e91e6 as the highlight,
   slate surfaces and Inter as in the app — so logo, page and screenshots read as
   one brand. Light throughout; one deliberate dark section (self-hosting). */

/* ── [PRODC-203 | S14 | v0.1.0] Tokens ── */
:root {
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #f5f2ff;
  --bg-navy: #1a0b3d;
  --ink: #140a2e;
  --ink-2: #27223a;
  --body: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e6eaf1;
  --line-2: #d5dbe5;
  --brand: #4c1fb0;          /* logo violet, deep enough for white text (AA) */
  --brand-700: #3b1690;
  --brand-ink: #2e0c64;      /* the wordmark */
  --sky: #0e91e6;            /* the application's highlight */
  --sky-50: #f4f0ff;         /* tints lean violet so chips match the brand */
  --sky-100: #e7e0ff;
  --violet: #8b6cf0;         /* the mark's light end */
  --violet-50: #f4f0ff;
  --ok: #15803d;
  --ok-50: #ecfdf3;
  --amber: #b45309;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --max-wide: 1360px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 12px 32px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 4px 8px rgba(15, 23, 42, .04), 0 32px 80px -24px rgba(76, 31, 176, .32);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* ── [PRODC-203 | S14 | v0.1.0] Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }   /* width/height attributes reserve the box; never stretch */
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; color: var(--ink); font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sky-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--brand); color: #fff; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: var(--max-wide); }
.section { padding: clamp(88px, 12vw, 152px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%); }

/* ── [PRODC-203 | S14 | v0.1.0] Type scale ── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font: 600 13px/1 var(--font); letter-spacing: .02em; color: var(--brand); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px var(--sky-100); }
.h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.035em; }
.h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.grad { background: linear-gradient(92deg, var(--brand) 0%, var(--sky) 60%, var(--violet) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--body); max-width: 60ch; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lede { margin-top: 18px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }
.mono { font-family: var(--font-mono); font-size: .88em; }

/* ── [PRODC-203 | S14 | v0.1.0] Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 10px; border: 1px solid transparent; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .25s, transform .25s var(--ease); white-space: nowrap; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 8px 20px -8px rgba(76, 31, 176, .6); }
.btn--primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 14px 28px -10px rgba(76, 31, 176, .7); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { border-color: var(--faint); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--sky-50); }
.btn--sm { padding: 9px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { color: var(--brand); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── [PRODC-203 | S14 | v0.1.0] Navigation ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 23, 42, .15); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav__brand img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; color: var(--ink-2); margin-right: auto; }
.nav__links a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__login { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 8px 10px; }
@media (max-width: 1000px) { .nav__links { display: none; } }
@media (max-width: 440px) { .nav__login { display: none; } }

/* ── [PRODC-203 | S14 | v0.1.0] Browser frame: how every real screen is presented ── */
.frame { position: relative; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, .08); overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.frame__url { margin-left: 14px; flex: 0 1 320px; height: 20px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font: 500 11px/18px var(--font-mono); color: var(--faint); padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame img { width: 100%; height: auto; }
.frame--plain .frame__bar { display: none; }
.shot-caption { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.shot-caption::before { content: ""; width: 14px; height: 1px; background: var(--line-2); }

/* ── [PRODC-203 | S14 | v0.1.0] Hero ── */
.hero { position: relative; padding: clamp(36px, 5vw, 64px) 0 0; overflow: hidden; background:
  radial-gradient(60% 50% at 80% 0%, rgba(14, 145, 230, .10), transparent 70%),
  radial-gradient(50% 40% at 10% 10%, rgba(107, 91, 214, .07), transparent 70%), var(--bg); }
.hero__copy { max-width: 900px; margin: 0 auto; text-align: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13.5px; color: var(--ink-2); margin-bottom: 20px; text-decoration: none; }
.hero__badge b { padding: 3px 9px; border-radius: 999px; background: var(--sky-50); color: var(--brand); font-weight: 600; font-size: 12px; }
.hero .lede { margin: 22px auto 0; max-width: 680px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 26px; }
.channels li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .8); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.channels li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--sky)); }

/* ── [PRODC-203 | S14 | v0.1.0] The integration world: Higgsfield loop + HTML labels ──
   Labels sit at % positions of the 16:9 scene, so they track it at every width. */
.world { position: relative; margin-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(56px, 7vw, 96px); }
.world__glow { display: none; }
/* No frame: the scene is drawn on the page's own white and its outer edges fade out,
   so the illustration sits directly on the page. */
.world__scene { position: relative; z-index: 1; aspect-ratio: 16 / 9; background: transparent;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 5%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 5%, #000 93%, transparent 100%); mask-composite: intersect; }
.world__scene picture, .world__poster, .world__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world__video { opacity: 0; transition: opacity .8s ease; }
.world__video.is-ready { opacity: 1; }
.world__video.is-ready ~ picture, .world__scene:has(.world__video.is-ready) picture { opacity: 0; transition: opacity .8s ease .8s; }
.world__hub { position: absolute; z-index: 2; left: var(--hx, 43.1%); top: var(--hy, 49.2%); width: var(--hw, 4.6%); height: auto; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; padding: .5%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 6px 18px rgba(76, 31, 176, .35); animation: hubPulse 2.8s ease-in-out infinite; }
@keyframes hubPulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 0 0 0 rgba(139, 108, 240, .45), 0 6px 18px rgba(76, 31, 176, .35); } 50% { box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 0 0 14px rgba(139, 108, 240, 0), 0 6px 18px rgba(76, 31, 176, .35); } }
@media (prefers-reduced-motion: reduce) { .world__hub { animation: none; } }
.world__flow { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-line { fill: none; stroke: url(#flowGrad); stroke-width: 2.5; }
.flow-dash { fill: none; stroke: #8b6cf0; stroke-opacity: .5; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 14; animation: flowDash 1.2s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -16; } }
.flow-card rect { fill: #fff; stroke: rgba(76, 31, 176, .28); stroke-width: 1.2; filter: drop-shadow(0 4px 8px rgba(46, 12, 100, .18)); }
.flow-card text { font: 600 14px/1 var(--font); fill: var(--ink); }
.flow-card circle { fill: var(--brand); }
.flow-card--back circle { fill: #0e91e6; }
.flow-card--in circle { fill: #15803d; }
@media (prefers-reduced-motion: reduce) { .flow-dash { animation: none; } }
@media (max-width: 760px) { .flow-card text { font-size: 17px; } }
.world__labels { position: absolute; inset: 0; z-index: 3; }
.tag { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, 0); display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 2px rgba(20, 10, 46, .08), 0 6px 18px -6px rgba(20, 10, 46, .28); font: 600 clamp(10px, 1vw, 13.5px)/1 var(--font); color: var(--ink); white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); flex: none; }
.tag:hover, .tag[aria-expanded="true"] { transform: translate(-50%, -2px); box-shadow: 0 2px 4px rgba(20, 10, 46, .1), 0 12px 28px -8px rgba(20, 10, 46, .38); }
.world__tip { position: absolute; z-index: 4; left: 50%; bottom: 4%; transform: translateX(-50%); width: min(520px, 86%); padding: 12px 16px; border-radius: 14px; background: rgba(20, 10, 46, .92); color: #e9e5f5; font-size: 14px; line-height: 1.45; box-shadow: var(--shadow); text-align: center; }
.world__tip b { color: #fff; }
.world__legend { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.world__legend span { display: inline-flex; align-items: center; gap: 8px; }
.world__legend i { width: 22px; height: 4px; border-radius: 4px; }
.world__legend i.in { background: linear-gradient(90deg, #5e8e3e, #e68a00, #189eff, #7f54b3, #e53238); }
.world__legend i.hub { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--sky-100); }
.world__legend i.out { background: linear-gradient(90deg, #d97706, #2e7d32, #475569, #dc2626, #1d4ed8); }
.world__motion { position: absolute; z-index: 4; left: 1.6%; bottom: 3%; padding: 7px 11px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .88); font: 500 12px/1 var(--font); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow-sm); }
.world__viewport { position: relative; z-index: 1; }
.world__swipe { display: none; }
/* Phones: the scene keeps a readable size and pans sideways, opening on the hub. */
@media (max-width: 760px) {
  .world__viewport { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .world__viewport::-webkit-scrollbar { display: none; }
  .world__scene { width: 760px; max-width: none; }
  .world__swipe { display: block; margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--muted); }
  .tag { font-size: 11px; padding: 5px 9px 5px 7px; }
}

/* ── [PRODC-203 | S14 | v0.1.0] Proof strip ── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 28px 24px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts b { display: block; font: 600 20px/1.2 var(--font-display); color: var(--ink); letter-spacing: -.01em; margin-bottom: 6px; }
.facts span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .facts li:nth-child(3) { border-left: 0; } .facts li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts li { border-left: 0; border-top: 1px solid var(--line); } .facts li:first-child { border-top: 0; } }

/* ── [PRODC-203 | S14 | v0.1.0] Platform explorer (tabs → real screens) ── */
.explorer { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.explorer__tabs { display: grid; gap: 6px; position: sticky; top: 100px; }
.explorer__tab { appearance: none; text-align: left; background: transparent; border: 1px solid transparent; border-radius: var(--r); padding: 16px 18px; cursor: pointer; font: inherit; color: inherit; transition: background .25s, border-color .25s, box-shadow .25s; }
.explorer__tab:hover { background: rgba(255, 255, 255, .7); }
.explorer__tab[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.explorer__tab b { display: flex; align-items: center; gap: 10px; font: 600 16.5px/1.3 var(--font-display); color: var(--ink); }
.explorer__tab b svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.explorer__tab span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.explorer__tab[aria-selected="false"] span { display: none; }
.explorer__tab .modules { display: none; margin-top: 12px; flex-wrap: wrap; gap: 6px; }
.explorer__tab[aria-selected="true"] .modules { display: flex; }
.modules em { font-style: normal; font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 6px; background: var(--sky-50); color: var(--brand); }
.explorer__view { position: relative; }
.explorer__panel[hidden] { display: none; }
.explorer__panel .frame { animation: viewIn .6s var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@media (max-width: 960px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer__tabs { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .explorer__tab { padding: 10px 14px; }
  .explorer__tab span, .explorer__tab[aria-selected="true"] .modules { display: none; }
}

/* ── [PRODC-203 | S14 | v0.1.0] Workflow (sticky screen, scrolling steps) ── */
.flow { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); }
.flow__steps { display: grid; gap: 0; }
.flow__step { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .35; transition: opacity .5s var(--ease); }
.flow__step.is-active { opacity: 1; }
.flow__num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--sky-50); color: var(--brand); font: 600 14px/1 var(--font-mono); margin-bottom: 18px; }
.flow__step.is-active .flow__num { background: var(--brand); color: #fff; }
.flow__step h3 { margin-bottom: 12px; }
.flow__step p { color: var(--body); }
.flow__step ul { margin-top: 16px; display: grid; gap: 8px; }
.flow__step li { position: relative; padding-left: 24px; font-size: 15.5px; }
.flow__step li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); }
.flow__screen { position: sticky; top: max(96px, calc(50vh - 300px)); align-self: start; margin-top: 18vh; }
.flow__stack { position: relative; width: 100%; aspect-ratio: 1440 / 934; }
.flow__stack .frame { position: absolute; inset: 0; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.flow__stack .frame.is-active { opacity: 1; transform: none; }
.flow__stack .frame.is-past { opacity: 0; transform: translateY(-24px) scale(.97); }
.flow__mobile-shot { display: none; }
@media (max-width: 960px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__screen { display: none; }
  .flow__step { min-height: 0; opacity: 1; padding: 0 0 48px; }
  .flow__mobile-shot { display: block; margin-top: 22px; }
}

/* ── [PRODC-203 | S14 | v0.1.0] Feature chapters ── */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(96px, 12vw, 160px); }
.feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature--flip .feature__text { order: 2; }
.feature__text .h2 { font-size: clamp(30px, 3.4vw, 44px); }
.feature__text .lede { margin-top: 16px; font-size: 17.5px; }
.points { margin-top: 26px; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15.5px; }
.points svg { width: 20px; height: 20px; color: var(--sky); margin-top: 2px; }
.points b { color: var(--ink); font-weight: 600; }
.feature__visual { position: relative; }
.feature__visual .frame { transform: perspective(1800px) rotateY(var(--ry, -6deg)) rotateX(2deg); transition: transform .8s var(--ease-out); }
.feature--flip .feature__visual .frame { --ry: 6deg; }
.feature__visual:hover .frame { --ry: 0deg; }
.feature__visual .callout { position: absolute; z-index: 2; max-width: 250px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.callout b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); margin-bottom: 4px; }
.callout--bl { left: -18px; bottom: -22px; }
.callout--tr { right: -18px; top: -22px; }
@media (max-width: 960px) {
  .feature, .feature--flip { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__text { order: 0; }
  .feature__visual .frame { transform: none; }
  .feature__visual .callout { position: static; max-width: none; margin-top: 12px; }
}

/* Invoice: the real PDF and its embedded XML side by side */
.einv { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; align-items: center; }
.einv__pdf { position: relative; z-index: 2; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, .08); transform: rotate(-2deg); }
.einv__xml { margin: 0 0 0 -28px; padding: 22px 22px 22px 48px; border-radius: 14px; background: var(--bg-navy); color: #cbd5e1; font: 400 12.5px/1.75 var(--font-mono); overflow: auto; box-shadow: var(--shadow-lg); max-height: 440px; }
.einv__xml .t { color: #7dd3fc; }
.einv__xml b { color: #fde68a; font-weight: 500; }
.einv__label { display: inline-block; margin-bottom: 10px; font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
@media (max-width: 640px) { .einv { grid-template-columns: minmax(0, 1fr); } .einv__xml { margin: -20px 10px 0; padding: 40px 18px 18px; } .einv__pdf { transform: none; } }

/* ── [PRODC-203 | S14 | v0.1.0] Bento of further modules (each with its real screen) ── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { position: relative; grid-column: span 2; display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tile--wide { grid-column: span 3; }
.tile__text { padding: 24px 24px 0; }
.tile__text h3 { font-size: 19px; letter-spacing: -.01em; margin-bottom: 8px; }
.tile__text p { font-size: 15px; color: var(--muted); }
.tile__shot { margin: 22px 0 0 24px; border-radius: 10px 0 0 0; overflow: hidden; border: 1px solid var(--line); border-right: 0; border-bottom: 0; box-shadow: var(--shadow-sm); flex: 1; min-height: 180px; background: var(--bg-soft); }
.tile__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .tile, .tile--wide { grid-column: span 1; } }
@media (max-width: 620px) { .bento { grid-template-columns: minmax(0, 1fr); } }

/* ── [PRODC-203 | S14 | v0.1.0] Ownership (the one deliberate dark section) ── */
.own { background: var(--bg-navy); color: #cbd5e1; position: relative; overflow: hidden; }
.own::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 85% 0%, rgba(14, 145, 230, .25), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(107, 91, 214, .2), transparent 70%); }
.own .wrap { position: relative; }
.own h2, .own h3 { color: #fff; }
.own .eyebrow { color: #7dd3fc; }
.own .lede { color: #cbd5e1; }
.own__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; background: rgba(255, 255, 255, .08); border-radius: var(--r-lg); overflow: hidden; }
.own__grid > div { background: rgba(26, 11, 61, .92); padding: 28px 24px; }
.own__grid h3 { font-size: 18px; margin: 14px 0 8px; }
.own__grid p { font-size: 15px; color: #94a3b8; }
.own__grid svg { width: 24px; height: 24px; color: #7dd3fc; }
.own__code { margin-top: 40px; display: inline-flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font: 400 14px/1 var(--font-mono); color: #e2e8f0; }
.own__code span { color: #7dd3fc; }
@media (max-width: 960px) { .own__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .own__grid { grid-template-columns: minmax(0, 1fr); } }

/* ── [PRODC-203 | S14 | v0.1.0] Trust ── */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust article { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.trust .mono { display: inline-block; padding: 4px 8px; border-radius: 6px; background: var(--ok-50); color: var(--ok); font-size: 12px; font-weight: 500; margin-bottom: 18px; }
.trust h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.01em; }
.trust p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* ── [PRODC-203 | S14 | v0.1.0] Go-live path ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font: 600 13px/1 var(--font-mono); color: var(--sky); margin-bottom: 16px; }
.steps h3 { font-size: 17.5px; margin-bottom: 8px; letter-spacing: -.01em; }
.steps p { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ── [PRODC-203 | S14 | v0.1.0] FAQ ── */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font: 600 17px/1.4 var(--font); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--font); color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 36px 22px 0; color: var(--body); }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ── [PRODC-203 | S14 | v0.1.0] Final CTA + form ── */
.cta { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-soft), var(--bg-tint)); }
.cta__grid { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.cta__shot { margin-top: 36px; }
.ticks { display: grid; gap: 10px; margin-top: 26px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
@media (max-width: 960px) { .cta__grid { grid-template-columns: minmax(0, 1fr); } }

.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form h3 { font-size: 22px; }
.form__sub { font-size: 14.5px; color: var(--muted); margin-top: -8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.form .opt { color: var(--faint); font-weight: 400; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 400 15px/1.3 var(--font); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 80px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-100); }
.form [aria-invalid="true"] { border-color: #dc2626 !important; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.chips label { display: inline-block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--body); transition: all .15s; }
.chips input:checked + span { background: var(--sky-50); border-color: var(--sky); color: var(--brand); }
.chips input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.3em; font-size: 14px; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: #b91c1c; }
.form__legal { font-size: 12.5px; color: var(--muted); }
.form.is-done > :not(.form__status):not(.form__done) { display: none; }
.form__done { text-align: center; padding: 28px 8px; outline: none; }
.form__done .ok { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; font-size: 22px; }
.form__done h3 { margin-bottom: 8px; }

/* ── [PRODC-203 | S14 | v0.1.0] Footer + sticky CTA ── */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot__inner img { height: 24px; width: auto; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: none; justify-content: center; gap: 8px; padding: 14px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 16px 40px -10px rgba(15, 23, 42, .5); transform: translateY(150%); transition: transform .4s var(--ease-out); }
.sticky-cta.is-shown { transform: none; }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* ── [PRODC-203 | S14 | v0.1.0] Reveal + reduced motion ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .feature__visual .frame { transform: none; }
  .flow__stack .frame { transition: none; }
  .explorer__panel .frame { animation: none; }
}
