/* VentaVerse site, built from draft T3: a navy rail like the products' own apps,
   a paper stage, white sheets. One page per product, one home page. */

:root {
  --navy: #0b1228;
  --navy-2: #131d3d;
  --navy-line: #24305a;
  --paper: #eef2f8;
  --sheet: #ffffff;
  --ink: #0f1830;
  --muted: #566079;
  --steel: #d3dae6;
  --steel-strong: #b3bdcf;
  --hair: #e6ebf3;
  --on-navy: #e8ecf6;
  --on-navy-soft: #a3adc6;
  --on-navy-mute: #8792b0; /* 5.98:1 on navy; the old #6d7896 was 4.22:1 */
  --vv: #2f5bea;
  --vv-hover: #2449c4;
  --vv-soft: #9db4ff;
  --sync: #6dc6d8; --sync-text: #1c7f9b;
  --cart: #f0a23e; --cart-text: #a2600f;
  --pro: #23a47a; --pro-text: #136b4f;
  --ship: #8b7cf6; --ship-text: #4c38c2;
  --good: #0c7a54; --good-w: #e3f4ec;
  --wait: #9e5c05; --wait-w: #fdf3e2;
  --sans: "Archivo", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lift: 0 1px 2px rgba(11, 18, 40, 0.06), 0 8px 24px -12px rgba(11, 18, 40, 0.18);
  --lift-2: 0 2px 4px rgba(11, 18, 40, 0.1), 0 30px 60px -24px rgba(11, 18, 40, 0.4);
  --rail-w: 292px;
  --content: 1180px;

  /* One radius per tier: sheets (cards, shots, CTA), controls, small marks. */
  --r-sheet: 16px;
  --r-ctl: 11px;
  --r-mark: 6px;
  /* One spacing rhythm for every page. */
  --pad-sheet: 24px;
  --gap-grid: 16px;
  --head-h: 88px;                               /* first row: same height on every page so h1 lands at one y */
  --hero-top: clamp(40px, 5.5vw, 80px);
  --hero-bottom: clamp(32px, 4vw, 56px);
  --s-section: clamp(64px, 7.5vw, 104px);       /* between major sections */
  --s-close: clamp(48px, 5.5vw, 72px);          /* before the closing "next" row */
  --s-title: clamp(24px, 2.6vw, 32px);          /* section title to its grid */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--steel) transparent; }
body { margin: 0; font: 400 1rem/1.55 var(--sans); color: var(--ink); background: var(--paper); }
::selection { background: var(--vv); color: #fff; }
:focus-visible { outline: 2px solid var(--vv); outline-offset: 3px; border-radius: 4px; }
/* On navy the brand blue is 3.36:1; the soft tint is 9.2:1 and reads as the same ring. */
.rail :focus-visible, .foot :focus-visible, .on-dark :focus-visible { outline-color: var(--vv-soft); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--vv); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.accent-sync { --acc: var(--sync); --acc-t: var(--sync-text); }
.accent-cart { --acc: var(--cart); --acc-t: var(--cart-text); }
.accent-pro { --acc: var(--pro); --acc-t: var(--pro-text); }
.accent-ship { --acc: var(--ship); --acc-t: var(--ship-text); }

/* Shell. The rail is the menu and stays put while the stage scrolls. */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; z-index: 20; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 22px 14px; background: var(--navy); color: var(--on-navy-soft); }
.rail__brand { display: flex; align-items: center; min-height: 44px; padding: 0 10px; margin-bottom: 14px; border-radius: 8px; }
.rail__brand img { height: 20px; width: auto; }
.rail__label { font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-mute); padding: 18px 10px 8px; }
.rail__item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 10px; font-weight: 500; color: var(--on-navy); text-decoration: none; transition: background 0.2s, color 0.2s; }
.rail__item:hover { background: var(--navy-2); color: #fff; }
.rail__item[aria-current="page"] { background: var(--navy-2); color: #fff; box-shadow: inset 3px 0 0 var(--vv); }
.rail__item .icon { width: 28px; height: 28px; flex: none; }
.rail__name { white-space: nowrap; }
.rail__item .pill { margin-left: auto; height: 20px; padding: 0 7px; font-size: 0.6875rem; }
.rail__home { width: 28px; height: 28px; flex: none; border-radius: 8px; background: conic-gradient(var(--sync) 0 25%, var(--cart) 0 50%, var(--pro) 0 75%, var(--ship) 0); }
.rail__foot { margin-top: auto; display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--navy-line); font-size: 0.875rem; }
.rail__foot a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; text-decoration: none; }
.rail__foot a:hover, .rail__foot a[aria-current="page"] { color: #fff; background: var(--navy-2); }

.body { min-width: 0; display: flex; flex-direction: column; }
/* Content is one centred column: wide screens grow the margins, not the line length. */
.stage, .foot { --side: max(clamp(20px, 4vw, 56px), calc((100% - var(--content)) / 2)); padding-inline: var(--side); }
.stage { flex: 1; min-width: 0; padding-bottom: var(--s-section); }

/* Shared type. Four roles only: display, h2, h3, body (lede is body at a larger size). */
.display { font-weight: 800; font-stretch: 118%; letter-spacing: -0.035em; line-height: 1; margin: 0; text-wrap: balance; font-size: clamp(2.5rem, 4.8vw, 4.5rem); max-width: 14ch; }
.lede { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.55; color: var(--muted); max-width: 54ch; margin: clamp(18px, 2vw, 24px) 0 0; }
.h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); font-weight: 800; font-stretch: 116%; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
.h3 { margin: 0; font-size: 1.1875rem; font-weight: 700; font-stretch: 110%; letter-spacing: -0.015em; line-height: 1.25; text-wrap: balance; }

/* Controls. */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: var(--r-ctl); background: var(--vv); color: #fff; font: 700 0.9375rem/1 var(--sans); text-decoration: none; transition: transform 0.25s var(--ease), background 0.25s; }
.btn:hover { background: var(--vv-hover); transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--steel-strong); }
.btn--ghost:hover { background: var(--sheet); }
.on-dark .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.32); }
.on-dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--vv); text-decoration: none; }
a.link { min-height: 44px; }
.link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link:hover svg, .card:hover .link svg { transform: translateX(3px); }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: var(--r-mark); font: 600 0.75rem/1 var(--sans); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.pill--live { background: var(--good-w); color: var(--good); }
.pill--soon { background: var(--wait-w); color: var(--wait); }
.lock { display: block; height: 44px; width: auto; max-width: 100%; }

/* Sheets: every white surface shares radius, padding and lift. */
.feat, .card, .step, .y { background: var(--sheet); border-radius: var(--r-sheet); padding: var(--pad-sheet); box-shadow: var(--lift); }
.feat p, .card p, .step p, .y p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.feat .h3, .card .h3, .step .h3, .y .h3 { margin-bottom: 8px; }

/* First row: logo + status on product pages, a meta strip on home. Same height on both. */
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--head-h); border-bottom: 1px solid var(--steel); }
.p-hero { padding: var(--hero-top) 0 var(--hero-bottom); }
/* Pages without a product header add its height, so every h1 still lands at one y. */
.h-hero { padding: calc(var(--head-h) + 1px + var(--hero-top)) 0 var(--hero-bottom); }

/* Contact form. No address on the page: messages go through mail/send.php. */
.form { display: grid; gap: 20px; max-width: 760px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-sheet); background: var(--sheet); box-shadow: var(--lift); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; font-weight: 600; font-size: 0.9375rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--on-navy-mute); border-radius: 11px; background: var(--sheet); color: var(--ink); font: 400 1rem/1.5 var(--sans); transition: border-color 0.2s; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--vv); outline-offset: 1px; border-color: var(--vv); border-radius: 11px; }
.form .actions { margin-top: 4px; }
button.btn { border: 0; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: none; max-width: 760px; margin: 0 0 20px; padding: 14px 18px; border-radius: 11px; font-weight: 600; }
.notice:target { display: block; }
.notice--ok { background: var(--good-w); color: var(--good); }
.notice--err { background: #fdecec; color: #a3231f; }

/* Product page. */
.shot { margin: 0; border-radius: var(--r-sheet); overflow: hidden; background: var(--sheet); box-shadow: var(--lift-2); border: 1px solid rgba(11, 18, 40, 0.08); }
/* Every product screenshot shows in one 4:3 frame, cropped from the top, so pages match. */
.shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; }
.shot--empty { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--muted); font: 500 0.8125rem/1 var(--mono); background: repeating-linear-gradient(135deg, var(--sheet) 0 14px, #f6f8fc 14px 28px); }
.shots { display: grid; gap: 20px; }
/* Two screenshots stack at full width: side by side they shrink past readable. */
.shots--two { gap: clamp(28px, 3vw, 40px); }
.shots figcaption { padding: 12px 16px; border-top: 1px solid var(--hair); font: 600 0.8125rem/1.2 var(--sans); color: var(--muted); }

/* Explicit columns: auto-fit left a 3 + 1 orphan between 960 and 1280px. */
.feats { list-style: none; margin: var(--s-section) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-grid); }
.feat__mark { display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--acc); margin-bottom: 18px; }

.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: var(--s-close); padding-top: 12px; border-top: 1px solid var(--steel); }
.next span { color: var(--muted); }

/* Home page. */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-grid); }
.card { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--lift-2); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card .lock { height: 38px; }
.card .link { margin-top: auto; padding-top: 16px; }
.block { padding-top: var(--s-section); }
.steps, .yours { list-style: none; margin: var(--s-title) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-grid); }
.step .mono { display: block; margin-bottom: 12px; font-size: 0.75rem; line-height: 1; color: var(--acc-t); }
.step small { display: block; margin-top: 14px; font-size: 0.75rem; color: var(--muted); }
.cta { margin-top: var(--s-section); border-radius: var(--r-sheet); padding: clamp(32px, 5vw, 64px); background: var(--navy); color: var(--on-navy-soft); background-image: radial-gradient(600px 300px at 90% 0%, rgba(47, 91, 234, 0.35), transparent 70%); }
.cta .h2 { color: #fff; max-width: 18ch; }
.cta p { margin: 14px 0 0; }

/* Footer. */
.foot { background: var(--navy); color: var(--on-navy-soft); padding-top: clamp(48px, 6vw, 72px); padding-bottom: 32px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot__brand { display: inline-flex; align-items: center; min-height: 44px; margin-top: -11px; }
.foot__brand img { height: 22px; width: auto; }
.foot__tag { margin: 5px 0 0; max-width: 34ch; }
.foot__h { margin: 0 0 6px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-navy-mute); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot ul a { display: inline-flex; align-items: center; min-height: 36px; }
.foot a { color: var(--on-navy); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--navy-line); font: 0.75rem var(--mono); color: var(--on-navy-mute); }

@media (max-width: 1279px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
}
/* Narrow screens: the rail becomes a sticky top bar that scrolls sideways. */
@media (max-width: 960px) {
  :root { --head-h: 72px; }
  .shell { grid-template-columns: 1fr; }
  .rail { height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 6px 12px; gap: 4px; scrollbar-width: none; }
  /* Fade at the right edge says the bar scrolls; it rides along at the end of the row. */
  .rail::after { content: ""; position: sticky; right: -12px; flex: none; width: 40px; height: 44px; margin-left: -40px; background: linear-gradient(to right, rgba(11, 18, 40, 0), var(--navy) 80%); pointer-events: none; }
  .rail__brand { margin: 0; padding: 0 10px 0 4px; flex: none; }
  .rail__brand img { height: 17px; }
  .rail__label, .rail__foot, .rail__item .pill, .rail__home { display: none; }
  .rail__item { flex: none; min-height: 44px; padding: 6px 10px; gap: 8px; }
  .rail__item .icon { width: 24px; height: 24px; }
  .rail__item[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--vv); }
  .cards, .steps, .yours, .form__row { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > :first-child { grid-column: 1 / -1; }
  .foot ul a { min-height: 44px; }
}
@media (max-width: 560px) {
  :root { --pad-sheet: 20px; }
  .feats { grid-template-columns: 1fr; }
  .lock { height: 36px; }
  /* Equal-width, thumb-sized actions instead of two ragged rows. */
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Connection map (home, "Built to work together"). Lines are drawn in CSS from
   fixed node heights, so the forks always meet the middle of each card. */
.lm { --lm-node-h: 116px; --lm-join: 64px; --lm-fork: clamp(132px, 15vw, 188px); --lm-line: 2px solid var(--steel-strong);
  display: grid; grid-template-columns: minmax(0, 1fr) var(--lm-fork) minmax(0, 1.15fr) var(--lm-fork) minmax(0, 1fr);
  align-items: center; margin-top: var(--s-title); }
#together .lede { margin-top: 16px; }
.lm-node { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; height: var(--lm-node-h); padding: 20px 22px; border-radius: var(--r-sheet); background: var(--sheet); box-shadow: var(--lift), inset 0 3px 0 var(--acc); text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.lm-node:hover { transform: translateY(-2px); box-shadow: var(--lift-2), inset 0 3px 0 var(--acc); }
.lm-node .lock { height: 34px; }
.lm-node span { font-size: 0.875rem; color: var(--muted); }
.lm-hub { display: grid; }
.lm-hub__join { position: relative; display: flex; align-items: center; height: var(--lm-join); padding-left: calc(50% + 14px); font: 500 0.75rem/1.2 var(--mono); color: var(--muted); }
.lm-hub__join::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: var(--lm-line); }

.lm-fork { position: relative; align-self: stretch; }
.lm-fork::before, .lm-fork::after, .lm-fork i { content: ""; position: absolute; }
.lm-fork::before { left: 50%; top: calc(var(--lm-node-h) / 2); bottom: calc(var(--lm-node-h) / 2); border-left: var(--lm-line); }
.lm-fork::after { top: 50%; border-top: var(--lm-line); width: 50%; }
.lm-fork i { border-top: var(--lm-line); width: 50%; }
.lm-fork__top { top: calc(var(--lm-node-h) / 2); }
.lm-fork__bottom { top: calc(100% - var(--lm-node-h) / 2); }
.lm-fork--left::after { left: 0; }
.lm-fork--left i { left: 50%; }
.lm-fork--right::after { right: 0; }
.lm-fork--right i { right: 50%; }
.lm-fork i.is-off { border-top-style: dashed; opacity: 0.5; }
.lm-fork__label { position: absolute; top: 50%; transform: translateY(-50%); width: calc(50% - 16px); font: 500 0.75rem/1.35 var(--mono); color: var(--muted); }
.lm-fork--left .lm-fork__label { left: calc(50% + 12px); }
.lm-fork--right .lm-fork__label { right: calc(50% + 12px); text-align: right; }

/* Future link VentaSync <-> Ventaship: a U under the map from one side card to the other. */
.lm-direct { position: relative; grid-column: 1 / -1; margin-top: calc((var(--lm-node-h) + var(--lm-join)) / -2); height: calc((var(--lm-node-h) + var(--lm-join)) / 2 + 40px); margin-inline: calc((100% - 2 * var(--lm-fork)) / 3.15 / 2); border: var(--lm-line); border-top: 0; border-radius: 0 0 14px 14px; }
.lm-direct .lm-fork__label { position: absolute; left: 50%; bottom: -1.6em; top: auto; width: max-content; transform: translateX(-50%); }

@media (max-width: 960px) {
  .lm { grid-template-columns: 1fr; --lm-node-h: auto; }
  .lm-node { height: auto; min-height: 96px; }
  .lm-fork { height: 56px; align-self: auto; }
  .lm-fork::before { left: 28px; top: 0; bottom: 0; }
  .lm-fork::after, .lm-fork i { display: none; }
  .lm-fork__label, .lm-fork--left .lm-fork__label, .lm-fork--right .lm-fork__label { left: 44px; right: auto; width: auto; text-align: left; }
  .lm-hub__join { padding-left: 44px; }
  .lm-hub__join::before { left: 28px; }
  .lm-direct { display: none; }
}
