/* ═══════════════════════════════════════════════════════════════════════════
   DSPACE STUDIO — PRODUCT DESIGN SYSTEM  (DAMAS · Nova POS · VTMS · SDMS · AlbArt)
   One language for every product page; each product only sets its accent:
     <html style="--accent:#…; --accent-soft:#…; --accent-deep:#…">
   Sibling of dspace.icu: same typefaces, same paper/ink, hairlines and mono
   labels — but softer corners and more colour, because these are products.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Bricolage"; src: url(fonts/bricolage-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/geist-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono-latin.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-italic-latin.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans Sinhala"; src: url(fonts/noto-sans-sinhala-sinhala.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0964-0965, U+0D81-0DF4, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Tamil"; src: url(fonts/noto-sans-tamil-tamil.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Ground */
  --paper: #f3eee6;      /* primary background */
  --paper-2: #ebe4d8;    /* secondary background */
  --card: #fbf9f5;       /* surfaces */
  --ink: #0d0b0a;        /* primary text / dark sections */
  --ink-2: #1b1715;
  --muted: #5e564e;      /* secondary text (AA on paper) */
  --faint: #8e857b;      /* metadata */
  --line: rgba(13, 11, 10, 0.12);
  --line-2: rgba(13, 11, 10, 0.24);

  /* Product accent (overridden per product) */
  --accent: #4452d9;
  --accent-soft: #e6e8fb;
  --accent-deep: #2b36a8;
  --on-accent: #fff;

  /* Status */
  --ok: #1f7a4d;
  --warn: #9a5b00;
  --err: #b3261e;
  --info: #2b5fb3;

  /* Studio credit only */
  --vdr: #ff5f15;

  /* Type */
  --ff-display: "Bricolage", "Noto Sans Sinhala", "Noto Sans Tamil", ui-sans-serif, system-ui, sans-serif;
  --ff-sans: "Geist", "Noto Sans Sinhala", "Noto Sans Tamil", ui-sans-serif, system-ui, sans-serif;
  --ff-mono: "Geist Mono", "Noto Sans Sinhala", "Noto Sans Tamil", ui-monospace, monospace;
  --ff-serif: "Instrument Serif", Georgia, serif;
  --fs-label: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.06rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --fs-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  --fs-h1: clamp(2.6rem, 1.2rem + 5.2vw, 5.6rem);

  /* Space, shape, depth, motion */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --sec: clamp(4rem, 3rem + 5vw, 8rem);
  --max: 1240px;
  --pad: clamp(1rem, 0.4rem + 3vw, 3rem);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(13, 11, 10, 0.06), 0 18px 48px -22px rgba(13, 11, 10, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 4rem;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--ff-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
:lang(si) body, :lang(ta) body { line-height: 1.75; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.vp-shell { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.vp-skip { position: fixed; left: 1rem; top: 1rem; z-index: 99; padding: 0.6rem 1rem; background: var(--ink); color: var(--paper); border-radius: var(--r-sm); transform: translateY(-200%); }
.vp-skip:focus { transform: none; }
.vp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type ───────────────────────────────────────────────────────────────── */
.vp-kicker { display: inline-flex; align-items: center; gap: 0.6em; font: 500 var(--fs-label)/1.4 var(--ff-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.vp-kicker::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--accent); }
:lang(si) .vp-kicker, :lang(ta) .vp-kicker { letter-spacing: 0.02em; font-size: 0.82rem; }
.vp-h1 { font: 700 var(--fs-h1)/0.92 var(--ff-display); letter-spacing: -0.05em; }
.vp-h2 { font: 650 var(--fs-h2)/1 var(--ff-display); letter-spacing: -0.04em; }
.vp-h3 { font: 600 var(--fs-h3)/1.2 var(--ff-display); letter-spacing: -0.02em; }
:lang(si) :is(.vp-h1, .vp-h2, .vp-h3), :lang(ta) :is(.vp-h1, .vp-h2, .vp-h3) { line-height: 1.25; letter-spacing: -0.01em; }
:lang(si) .vp-h1, :lang(ta) .vp-h1 { font-size: clamp(2.2rem, 1rem + 4vw, 4.4rem); }
.vp-h1 em, .vp-h2 em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--accent); }
:lang(si) :is(.vp-h1, .vp-h2) em, :lang(ta) :is(.vp-h1, .vp-h2) em { font-family: inherit; font-style: normal; font-weight: inherit; }
.vp-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 44ch; }
.vp-muted { color: var(--muted); }
.vp-mono { font-family: var(--ff-mono); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.vp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0 1.35rem; border: 1px solid var(--accent); border-radius: var(--r); background: var(--accent); color: var(--on-accent); font: 600 0.95rem/1 var(--ff-sans); cursor: pointer; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease); }
.vp-btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.vp-btn:active { transform: translateY(1px); }
.vp-btn svg { width: 1.1em; height: 1.1em; flex: none; }
.vp-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.vp-btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vp-btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.vp-btn--light:hover { background: #fff; border-color: #fff; }
.vp-btn--sm { min-height: 2.5rem; padding: 0 1rem; font-size: 0.875rem; }
.vp-btn[aria-busy="true"] { opacity: 0.65; pointer-events: none; }
.vp-btn small { display: block; font: 500 0.7rem var(--ff-mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.vp-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.vp-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font: 500 var(--fs-label)/1.5 var(--ff-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.vp-facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.vp-facts li::before { content: ""; width: 4px; height: 4px; background: var(--accent); }
.vp-tag { display: inline-flex; align-items: center; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font: 600 0.7rem/1.4 var(--ff-mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.vp-nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); }
.vp-nav__in { display: flex; align-items: center; gap: var(--s5); height: var(--nav-h); }
.vp-brand { display: inline-flex; align-items: center; gap: 0.65rem; flex: none; }
.vp-brand svg, .vp-brand img { width: 2rem; height: 2rem; }
.vp-brand b { font: 700 1.15rem/1 var(--ff-display); letter-spacing: -0.03em; }
.vp-brand__text { display: grid; }
.vp-brand small { display: block; font: 500 0.62rem/1.2 var(--ff-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-top: 0.2rem; }
.vp-links { display: flex; gap: 0.15rem; margin-left: var(--s4); }
.vp-links a { padding: 0.45rem 0.7rem; border-radius: var(--r-sm); font-size: 0.92rem; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.vp-links a:hover { color: var(--ink); background: rgba(13, 11, 10, 0.05); }
.vp-nav__end { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
.vp-langs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.vp-langs a { padding: 0.35rem 0.6rem; font: 500 0.8rem/1 var(--ff-sans); color: var(--muted); }
.vp-langs a[aria-current] { background: var(--ink); color: var(--paper); }
.vp-menu { display: none; }
.vp-menu summary { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); list-style: none; cursor: pointer; }
.vp-menu summary::-webkit-details-marker { display: none; }
.vp-menu summary span { position: relative; width: 1.1rem; height: 1.5px; background: currentColor; transition: background 0.2s; }
.vp-menu summary span::before, .vp-menu summary span::after { content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.vp-menu summary span::before { transform: translateY(-5px); }
.vp-menu summary span::after { transform: translateY(5px); }
.vp-menu[open] summary span { background: transparent; }
.vp-menu[open] summary span::before { transform: rotate(45deg); }
.vp-menu[open] summary span::after { transform: rotate(-45deg); }
.vp-menu__panel { position: fixed; inset: var(--nav-h) 0 0; z-index: 39; display: grid; align-content: start; gap: var(--s5); padding: var(--s6) var(--pad) calc(var(--s6) + env(safe-area-inset-bottom)); background: var(--paper); overflow-y: auto; }
.vp-menu__panel nav a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font: 600 1.6rem/1.2 var(--ff-display); letter-spacing: -0.03em; }
html.vp-lock { overflow: hidden; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.vp-sec { padding-block: var(--sec); }
.vp-sec--tight { padding-block: calc(var(--sec) * 0.6); }
.vp-sec--soft { background: var(--accent-soft); }
.vp-sec--ink { --line: rgba(243, 238, 230, 0.14); --line-2: rgba(243, 238, 230, 0.3); --muted: #b3aaa0; --faint: #8e857b; background: var(--ink); color: var(--paper); }
.vp-sec--ink .vp-btn--ghost { color: var(--paper); }
.vp-sec--ink .vp-btn--ghost:hover { background: var(--paper); color: var(--ink); }
.vp-head { display: grid; gap: var(--s4); max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.vp-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: end; gap: var(--s5) var(--s8); }
.vp-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ── App window frame (real screenshots only) ───────────────────────────── */
.vp-frame { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.vp-frame__bar { display: flex; align-items: center; gap: 0.75rem; height: 2.25rem; padding: 0 0.9rem; border-bottom: 1px solid var(--line); background: var(--paper-2); font: 500 0.7rem var(--ff-mono); letter-spacing: 0.08em; color: var(--muted); }
.vp-frame__bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--line-2); }
.vp-frame__bar i:first-child { margin-left: 0; }
.vp-frame__bar span { margin-left: auto; }
.vp-frame img { width: 100%; }
.vp-shot-cap { margin-top: var(--s3); font: 500 var(--fs-label)/1.5 var(--ff-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

/* ── Editorial feature list (numbered, hairlines — not cards) ───────────── */
.vp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s7); counter-reset: vp; }
.vp-list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.2rem var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--line); counter-increment: vp; }
.vp-list li::before { content: counter(vp, decimal-leading-zero); grid-row: span 2; font: 500 var(--fs-label) var(--ff-mono); color: var(--accent); padding-top: 0.3rem; }
.vp-list h3 { font: 600 1.08rem/1.3 var(--ff-display); letter-spacing: -0.015em; }
.vp-list p { color: var(--muted); font-size: 0.95rem; }

/* ── Steps (vertical, with a line) ──────────────────────────────────────── */
.vp-steps { display: grid; gap: 0; counter-reset: st; }
.vp-steps li { position: relative; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 var(--s4); padding-bottom: var(--s6); counter-increment: st; }
.vp-steps li::before { content: counter(st); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 600 1rem var(--ff-display); grid-row: span 2; }
.vp-steps li::after { content: ""; position: absolute; left: calc(1.375rem - 0.5px); top: 3rem; bottom: 0.25rem; width: 1px; background: var(--line-2); }
.vp-steps li:last-child::after { display: none; }
.vp-steps h3 { font: 600 1.05rem/1.3 var(--ff-display); padding-top: 0.55rem; }
.vp-steps p { color: var(--muted); font-size: 0.95rem; }

/* ── Pricing (rows on a ruled table, one highlighted) ───────────────────── */
.vp-price { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.vp-price > div { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s6); border-left: 1px solid var(--line); }
.vp-price > div:first-child { border-left: 0; }
.vp-price .is-pick { background: var(--ink); color: var(--paper); --muted: #b3aaa0; --line: rgba(243, 238, 230, 0.16); }
.vp-price__name { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font: 600 1.1rem var(--ff-display); }
.vp-price__amt { font: 700 clamp(2rem, 1.4rem + 1.6vw, 2.8rem)/1 var(--ff-display); letter-spacing: -0.04em; }
.vp-price__amt small { font: 500 0.85rem var(--ff-sans); letter-spacing: 0; color: var(--muted); margin-left: 0.25rem; }
.vp-price ul { display: grid; gap: 0.45rem; padding-top: var(--s4); border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.vp-price li { position: relative; padding-left: 1.2rem; }
.vp-price li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.55rem; height: 1px; background: var(--accent); }
.vp-price .is-pick li::before { background: var(--paper); }
.vp-price .vp-btn { margin-top: auto; }
.vp-price .is-pick .vp-btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.vp-price .is-pick .vp-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ── Tabs (interactive screen switcher) ─────────────────────────────────── */
.vp-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: var(--s5); }
.vp-tabs button { min-height: 2.5rem; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.vp-tabs button:hover { border-color: var(--ink); }
.vp-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vp-sec--ink .vp-tabs button[aria-selected="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.vp-panel[hidden] { display: none; }

/* ── Code ───────────────────────────────────────────────────────────────── */
.vp-code { margin: 0; padding: var(--s5); border-radius: var(--r-lg); background: var(--ink-2); color: #e8e2d8; font: 400 0.85rem/1.7 var(--ff-mono); overflow-x: auto; border: 1px solid rgba(243, 238, 230, 0.1); }
.vp-code b { color: var(--accent-soft); font-weight: 500; }
.vp-code i { color: #8e857b; font-style: normal; }

/* ── Closing call to action ─────────────────────────────────────────────── */
.vp-cta { background: var(--accent); color: var(--on-accent); }
.vp-cta__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s6); }
.vp-cta .vp-h2 em { color: inherit; }
.vp-cta p { color: color-mix(in srgb, var(--on-accent) 80%, transparent); max-width: 46ch; margin-top: var(--s4); }
.vp-cta small { display: block; margin-top: var(--s4); font: 500 var(--fs-label) var(--ff-mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }

/* ── Footer + the "Designed by VDR" credit ──────────────────────────────── */
.vp-foot { --line: rgba(243, 238, 230, 0.14); background: var(--ink); color: #cfc7bc; padding-block: var(--s8) var(--s5); font-size: 0.92rem; }
.vp-foot__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--s6); padding-bottom: var(--s7); }
.vp-foot .vp-brand b { color: var(--paper); }
.vp-foot__about { max-width: 34ch; margin-top: var(--s4); color: #a39a90; }
.vp-foot h2 { margin-bottom: var(--s3); font: 500 var(--fs-label) var(--ff-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #8e857b; }
.vp-foot ul { display: grid; gap: 0.4rem; }
.vp-foot ul a:hover { color: var(--paper); }
.vp-foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s5); border-top: 1px solid var(--line); font: 500 var(--fs-label) var(--ff-mono); letter-spacing: 0.06em; color: #8e857b; }
.vp-credit { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.8rem 0.4rem 0.55rem; border: 1px solid rgba(243, 238, 230, 0.18); border-radius: 999px; color: var(--paper); font: 500 var(--fs-label) var(--ff-mono); letter-spacing: 0.12em; text-transform: uppercase; transition: border-color 0.3s, background-color 0.3s; }
.vp-credit:hover { border-color: var(--vdr); background: rgba(255, 95, 21, 0.08); }
.vp-credit__mark { width: 1.9rem; aspect-ratio: 640 / 335; background: var(--vdr); -webkit-mask: url(img/vdr-mark.png) center / contain no-repeat; mask: url(img/vdr-mark.png) center / contain no-repeat; }

/* ── Motion: CSS-only reveals; everything is visible without support ────── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .vp-reveal { animation: vp-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  }
  .vp-in { animation: vp-rise 0.9s var(--ease) both; }
  .vp-in--2 { animation-delay: 0.12s; }
  .vp-in--3 { animation-delay: 0.24s; }
}
@keyframes vp-rise { from { opacity: 0; transform: translateY(1.5rem); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0.01ms !important; } }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .vp-links, .vp-nav__end .vp-langs, .vp-nav__end > .vp-btn { display: none; }
  .vp-menu { display: block; }
  .vp-head--split { grid-template-columns: 1fr; }
  .vp-list { grid-template-columns: 1fr; }
  .vp-price { --cols: 1 !important; }
  .vp-price > div { border-left: 0; border-top: 1px solid var(--line); }
  .vp-price > div:first-child { border-top: 0; }
  .vp-cta__in { grid-template-columns: 1fr; align-items: start; }
  .vp-foot__top { grid-template-columns: 1fr 1fr; }
  .vp-foot__top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .vp-actions .vp-btn { width: 100%; }
  .vp-foot__top { grid-template-columns: 1fr; }
}
@media (pointer: coarse) { .vp-btn--sm, .vp-tabs button, .vp-langs a { min-height: 2.75rem; display: inline-flex; align-items: center; } }
