/* VMSTA Inc. — site styles. No external fonts or scripts: everything is served from vmsta.com. */

:root {
  color-scheme: light dark;
  --bg: #F7F7F3;
  --surface: #FFFFFF;
  --surface-2: #EFEFE8;
  --text: #15171C;
  --muted: #555B67;
  --line: #E1E1D9;
  --brand: #1A2C4E;
  --brand-text: #FFFFFF;
  --link: #1C4FA6;
  --cloora: #0D6A68;
  --cloora-soft: #D6EFEC;
  --saymark: #5A44C6;
  --saymark-soft: #E8E3FB;
  --cards: #1E5B49;
  --cards-soft: #F3E9D3;
  --ok: #1D6A39;
  --ok-soft: #DCF1E2;
  --warn: #8A5300;
  --warn-soft: #FBEBD0;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 12px 32px rgb(16 24 40 / 6%);
  --wrap: 70rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1014;
    --surface: #161A21;
    --surface-2: #1E232C;
    --text: #ECEEF2;
    --muted: #A5ACB9;
    --line: #2A303B;
    --brand: #DCE6FF;
    --brand-text: #0E1014;
    --link: #98BAFF;
    --cloora: #6FD3CB;
    --cloora-soft: #12302F;
    --saymark: #B9ACFF;
    --saymark-soft: #262046;
    --cards: #88CFB2;
    --cards-soft: #2C2718;
    --ok: #8EDBA8;
    --ok-soft: #163222;
    --warn: #F2C27A;
    --warn-soft: #33270F;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 22%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--brand); color: var(--brand-text); padding: .6rem 1rem; border-radius: 10px;
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  flex-wrap: wrap; min-height: 4rem; padding-top: .5rem; padding-bottom: .5rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: .02em;
}
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark .tile { fill: var(--brand); }
.brand-mark .glyph { stroke: var(--brand-text); }
.brand small { font-weight: 500; color: var(--muted); font-size: .95rem; letter-spacing: 0; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
  color: var(--text); text-decoration: none; border-radius: 10px; font-weight: 550; font-size: .97rem;
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { background: var(--surface-2); }

@media (max-width: 560px) {
  .site-header { position: static; }
  .site-nav { width: 100%; margin: 0 -.7rem; }
  .site-nav ul { gap: 0; }
  .site-nav a { min-height: 40px; padding: 0 .7rem; font-size: .95rem; }
}

/* ---------- Buttons, chips ---------- */

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: 12px;
  font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: var(--brand-text); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-2); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .2rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 650; line-height: 1.5;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.chip::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; opacity: .85; }
.chip-live { background: var(--ok-soft); color: var(--ok); }
.chip-soon { background: var(--warn-soft); color: var(--warn); }
.chip-dev { background: var(--saymark-soft); color: var(--saymark); }

/* ---------- Sections ---------- */

main { display: block; }

.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.hero h1 { max-width: 16ch; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 40rem; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem;
}

/* ---------- App cards (home) ---------- */

.app-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }

.app-card { display: flex; flex-direction: column; gap: 1rem; }
.app-card-head { display: flex; align-items: center; gap: 1rem; }
.app-card-head h3 { margin: 0 0 .2rem; font-size: 1.3rem; }
.app-card p { color: var(--muted); margin: 0; }
.app-card .app-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding-top: .5rem; font-weight: 600; font-size: .97rem; }

.app-icon { width: 64px; height: 64px; border-radius: 22%; flex: none; box-shadow: 0 2px 8px rgb(16 24 40 / 14%); }
.app-icon-lg { width: 112px; height: 112px; }

/* ---------- About / principles / facts ---------- */

.two-col { display: grid; gap: 2rem 3.5rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.2fr 1fr; align-items: start; } }

.principles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-top: 2rem; }
.principle h3 { margin-bottom: .35rem; }
.principle p { color: var(--muted); margin: 0; }
.principle .num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .75rem;
  border-radius: 10px; background: var(--surface-2); font-weight: 750; font-size: .95rem;
}

.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 420px) { .facts div { grid-template-columns: 1fr; gap: .1rem; } }

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
}
.cta h2 { margin-bottom: .25rem; }
.cta p { margin: 0; color: var(--muted); }
.cta .actions { margin-top: 0; }

/* ---------- App pages ---------- */

.app-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.app-hero-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; }
.app-hero h1 { margin-bottom: .25rem; }
.app-hero .tagline { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--muted); margin-bottom: .75rem; }

.theme-cloora { --accent: var(--cloora); --accent-soft: var(--cloora-soft); }
.theme-saymark { --accent: var(--saymark); --accent-soft: var(--saymark-soft); }

.badge-line {
  display: inline-block; margin: 1.25rem 0 0; padding: .6rem 1rem; border-radius: 14px;
  background: var(--accent-soft, var(--surface-2)); color: var(--text); font-weight: 650; font-size: .97rem;
}

.appbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav .app-name {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px;
  padding-right: .9rem; margin-right: .35rem; border-right: 1px solid var(--line);
  font-weight: 750; white-space: nowrap;
}
.subnav .app-name img { width: 24px; height: 24px; border-radius: 6px; }
.subnav ul {
  display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 .9rem;
  color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent, var(--brand)); }
.subnav .lang { margin-left: auto; }

@media (max-width: 560px) {
  .subnav ul { flex-wrap: wrap; overflow: visible; gap: 0; margin-left: -.6rem; }
  .subnav .app-name { width: 100%; min-height: 40px; border-right: 0; margin: 0; padding: .5rem 0 0 .6rem; }
  .subnav a { min-height: 44px; padding: 0 .6rem; }
  .subnav .lang { margin-left: 0; }
}

.app-hero .lead { margin-top: 1.75rem; }
.h1-sub {
  display: block; margin-top: .45rem; font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--muted);
}
.app-hero .chip { margin-top: .9rem; }
.app-kind { font-size: .95rem; font-weight: 600; margin: 0 0 .4rem !important; }

.narrow { max-width: 46rem; }
.steps { margin-top: 0; }

.use-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.use-list li { padding-left: 1rem; border-left: 3px solid var(--accent, var(--brand)); }
.use-list strong { display: block; margin-bottom: .15rem; }
.use-list span { color: var(--muted); }

.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
@media (min-width: 760px) { .feature-grid.two-by-two { grid-template-columns: repeat(2, 1fr); } }
.feature h3 { display: flex; align-items: center; gap: .6rem; }
.feature h3::before {
  content: ""; width: .7rem; height: .7rem; border-radius: 4px; background: var(--accent, var(--brand)); flex: none;
}
.feature ul { margin: 0; padding-left: 1.15rem; color: var(--muted); }
.feature li + li { margin-top: .35rem; }
.feature p { color: var(--muted); margin: 0; }

.callout {
  border-left: 4px solid var(--accent, var(--brand)); background: var(--accent-soft, var(--surface-2));
  padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Long-form (policies, terms, support) ---------- */

.doc { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; padding-top: .25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li + li { margin-top: .35rem; }
.prose .meta { color: var(--muted); font-size: .95rem; }
.prose .summary { margin: 1.5rem 0 2rem; }
.prose .summary ul { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.part-label {
  display: inline-block; margin-top: 2.5rem; font-size: .8rem; font-weight: 750;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent, var(--muted));
}
.part-label + h2 { margin-top: .35rem; }

.toc { margin: 1.5rem 0 2rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toc p { margin: 0 0 .4rem; font-weight: 700; }
.toc ul { margin: 0; padding-left: 1.2rem; }

.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.25rem; margin-bottom: .75rem;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: .85rem; font-size: 1.35rem; line-height: 1; color: var(--muted);
}
.faq details[open] summary::after { content: "–"; }
.faq details > :not(summary) { color: var(--muted); }
.faq details[open] { padding-bottom: .25rem; }

.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin: 2rem 0; }
.contact-grid .card h2 { font-size: 1.15rem; margin: 0 0 .4rem; padding-top: 0; }
.contact-grid .card p:last-child { margin-bottom: 0; }
.big-link { font-size: 1.2rem; font-weight: 700; }

.support-list { display: grid; gap: 1rem; margin: 2rem 0; }
.support-item { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text); }
.support-item:hover { border-color: var(--muted); }
.support-item .app-icon { width: 52px; height: 52px; }
.support-item strong { display: block; font-size: 1.1rem; }
.support-item span { color: var(--muted); font-size: .97rem; }
.support-item .arrow { margin-left: auto; color: var(--muted); font-size: 1.4rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 0; padding: 3rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: .4rem; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-about p { color: var(--muted); margin: .75rem 0 0; max-width: 22rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- 404 ---------- */

.notfound { padding: clamp(4rem, 12vw, 8rem) 0; text-align: center; }
.notfound .lead { margin: 0 auto; }
.notfound .actions { justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header, .site-footer, .subnav, .skip { display: none; }
  body { background: #fff; color: #000; }
}
