/* Vobz — shared styles for the public legal / subscription site (GitLab Pages). */
:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1e222b;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --brand: #6c8cff;
  --brand-2: #9a6cff;
  --border: #272c37;
  --radius: 14px;
  --max: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header / nav */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
/* Design "9c" lockup: the badge next to the wordmark. Both are SVG carrying
   their own geometry — the badge has its own rounded corners, and the wordmark's
   letterforms are baked outlines, so neither needs a webfont or extra styling.
   Gap is the badge width / 4, per the design's spacing rule. */
.brand { gap: 7px; }
.brand .mark { width: 30px; height: 30px; display: block; flex: none; }
/* Taller than the badge on purpose: the wordmark's box carries padding above and
   below the letters, so matching box heights would leave the name much smaller
   than the 18px text it replaced. */
.brand .wordmark { height: 40px; width: auto; display: block; flex: none; }
nav.site a { color: var(--muted); margin-left: 18px; font-size: 14px; }
nav.site a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 72px 0 40px; }
/* Wordmark above the headline. Margin is small because the wordmark's own SVG
   box already pads below the letters. */
.hero-brand { display: flex; justify-content: center; margin: 0 0 14px; }
.hero-brand .wordmark { width: clamp(96px, 18vw, 128px); height: auto; display: block; }
.hero h1 {
  font-size: clamp(32px, 6vw, 52px); margin: 0 0 14px; letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 auto 28px; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-primary:hover { opacity: 0.92; text-decoration: none; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }

/* Cards / pricing */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 32px 0; }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
/* Feature-card icon tile. Same gradient and corner ratio as the app-icon badge
   (10px of 44 ≈ the badge's rx 23 of 100), so the row reads as the same family
   as the mark in the hero. The glyphs are inline SVG — no icon font, no extra
   request, and they inherit nothing, so a CSS change can't silently break them. */
.card .icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(150deg, #DF84A8, #897ED4);
  margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; display: block; }
.price { font-size: 34px; font-weight: 800; margin: 8px 0 4px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 18px 0; }
.card li { padding: 6px 0 6px 26px; position: relative; color: var(--text); }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.card li.no { color: var(--muted); }
.card li.no::before { content: "—"; color: var(--muted); }

/* Legal article */
article.legal { padding: 40px 0 80px; }
article.legal h1 { font-size: 30px; margin-bottom: 4px; }
article.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
article.legal h2 { font-size: 20px; margin: 34px 0 10px; }
article.legal h3 { font-size: 16px; margin: 22px 0 6px; }
article.legal p, article.legal li { color: #cdd2dc; }
article.legal ul { padding-left: 20px; }
article.legal .note {
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 3px solid var(--brand); border-radius: 8px;
  padding: 12px 16px; margin: 18px 0; color: var(--muted); font-size: 14px;
}
table.tos { width: 100%; border-collapse: collapse; margin: 16px 0; }
table.tos th, table.tos td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; font-size: 14px; }
table.tos th { background: var(--surface-2); }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 30px 0; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; }
footer.site a { color: var(--muted); }
footer.site nav a { margin-right: 16px; }
