/*
 * site.css: the one stylesheet for velaroglobal.com.
 *
 * Dark-first theme taken from HabitStack's dark colour scheme
 * (indie-apps: habitstack/ui/.../theme/Color.kt and design/brand/logo-dark.svg):
 * Neutral900 #0D1B0F background, Green900Card #16291B cards, Green400 #4ADE80 accent.
 * Every colour is a token below; change it here, never inline.
 */

:root {
  color-scheme: dark;
  --bg: #0d1b0f;            /* Neutral900, logo dark background */
  --bg-deep: #0a160c;       /* Neutral950 */
  --surface: #16291b;       /* Green900Card */
  --surface-2: #1e3a27;     /* Green900Surface */
  --surface-3: #244430;     /* Green800Surface */
  --ink: #f0faf2;
  --muted: #a7c4b2;         /* Sage300 */
  --faint: #6b8a7a;         /* Sage500 */
  --border: #1e3a27;
  --accent: #4ade80;        /* Green400 */
  --accent-2: #86efac;      /* Green300 */
  --accent-deep: #1aa35a;   /* logo gradient end */
  --on-accent: #0d1b0f;
  --amber: #fbbf24;         /* Amber400, streaks */
  --rocket: #ff8a78;        /* GameBooster accent */
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(74, 222, 128, 0.18), 0 20px 60px rgba(26, 163, 90, 0.18);
  --serif: "Old Standard TT", Georgia, "Times New Roman", serif;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 20px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(74, 222, 128, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(26, 163, 90, 0.10), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -0.025em; }
p { margin: 0 0 14px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; }
.grad { background: linear-gradient(90deg, var(--accent-2), var(--accent) 50%, var(--accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(13, 27, 15, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .vg-mark { width: 48px; height: 48px; flex: none; }
.brand .wordmark { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: 0; }

/* The Velaro Global logo is the original file (assets/img/vg-logo.png), shown as is. */
.vg-mark { display: inline-block; }
.site-nav { margin-left: auto; display: flex; gap: 4px 22px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 600px) {
  .site-header .wrap { flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { margin-left: 0; width: 100%; justify-content: flex-start; gap: 4px 18px; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding: 80px 0; }
section.alt { background: rgba(10, 22, 12, 0.6); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 96px 0 80px; text-align: center; }
.hero .vg-mark { display: block; width: 180px; height: 180px; margin: 0 auto 30px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 76px); margin-bottom: 20px; }
.hero .lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--surface-3); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.rocket { background: var(--rocket); border-color: var(--rocket); color: #1b1e24; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(74, 222, 128, 0.12); color: var(--accent);
  border: 1px solid rgba(74, 222, 128, 0.28);
  vertical-align: middle; white-space: nowrap;
}
.pill.live { background: rgba(255, 138, 120, 0.12); color: var(--rocket); border-color: rgba(255, 138, 120, 0.3); }
.pill.off { background: rgba(167, 196, 178, 0.10); color: var(--muted); border-color: rgba(167, 196, 178, 0.28); }
.note { color: var(--muted); font-size: 15px; font-style: italic; }

/* ── Product hero (app pages) ─────────────────────────────────────────── */
.product-hero { padding: 80px 0 64px; }
.product-hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.product-hero .app-icon { width: 92px; height: 92px; border-radius: 22%; margin-bottom: 24px; box-shadow: var(--glow); }
.product-hero h1 { font-size: clamp(40px, 6.4vw, 64px); margin-bottom: 16px; }
.product-hero .lede { font-size: 19px; color: var(--muted); margin-bottom: 24px; max-width: 530px; }
.product-hero .actions { justify-content: flex-start; margin-top: 8px; }
.hero-phones { position: relative; display: flex; justify-content: center; }
.hero-phones .phone { width: 56%; }
.hero-phones .phone + .phone { margin-left: -12%; margin-top: 56px; }
@media (max-width: 840px) {
  .product-hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-phones { max-width: 440px; margin: 0 auto; }
}

/* ── Phone frame + screenshot strip ───────────────────────────────────── */
.phone {
  border-radius: 30px;
  padding: 7px;
  background: linear-gradient(160deg, var(--surface-3), var(--bg-deep));
  border: 1px solid var(--surface-2);
  box-shadow: var(--shadow);
  flex: none;
}
.phone img { border-radius: 24px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; background: var(--bg-deep); }
.shots {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 20px 30px; margin: 0 -20px;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.shots figure { margin: 0; scroll-snap-align: start; flex: none; width: 236px; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }
.shots figcaption strong { display: block; color: var(--ink); font-size: 15px; }

/* ── Cards / grids ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 880px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 16px; }
.card p:last-child { margin-bottom: 0; }
.card .emoji {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--surface-2); font-size: 22px; line-height: 1; margin-bottom: 16px;
}
.card .pro-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--amber); margin-left: 6px; vertical-align: 2px; }

/* App card on the studio home page */
.app-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: linear-gradient(145deg, var(--surface), var(--bg-deep));
  border: 1px solid var(--surface-2);
  border-radius: 28px; padding: 36px;
}
.app-card + .app-card { margin-top: 26px; }
.app-card.habitstack { box-shadow: var(--glow); }
.app-card .app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.app-card .app-head img { width: 68px; height: 68px; border-radius: 22%; flex: none; }
.app-card h3 { font-size: 28px; }
.app-card .tag { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.app-card p { color: var(--muted); }
.app-card ul.points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; }
.app-card ul.points li { padding-left: 26px; position: relative; color: var(--ink); font-size: 16px; }
.app-card ul.points li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 800; }
.app-card.gamebooster ul.points li::before { color: var(--rocket); }
.app-card .links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; margin-top: 18px; }
.app-card .links a { color: var(--muted); font-weight: 500; }
.app-card .links a:hover { color: var(--ink); }
.app-card .app-shots { display: flex; gap: 12px; }
.app-card .app-shots .phone { width: 160px; padding: 5px; border-radius: 22px; }
.app-card .app-shots .phone img { border-radius: 17px; }
.app-card .app-shots .phone:nth-child(2) { margin-top: 34px; }
@media (max-width: 880px) {
  .app-card { grid-template-columns: 1fr; padding: 26px; }
  .app-card .app-shots { overflow-x: auto; padding-bottom: 6px; }
  .app-card .app-shots .phone { width: 140px; }
  .app-card .app-shots .phone:nth-child(2) { margin-top: 0; }
}

/* Free vs Pro */
.plan h3 { font-size: 24px; margin-bottom: 4px; }
.plan .sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 10px 0 10px 28px; position: relative; border-top: 1px solid var(--surface-2); font-size: 16px; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.plan.pro { border: 1px solid rgba(74, 222, 128, 0.45); box-shadow: var(--glow); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.plan.pro h3 .pill { margin-left: 8px; }

/* Values */
.values .card { background: transparent; border: 0; border-top: 2px solid var(--accent); border-radius: 0; padding: 22px 0 0; }

/* Data / privacy strip */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--radius); padding: 28px;
}
.callout .emoji { font-size: 30px; line-height: 1; }
.callout p { color: var(--muted); }
.callout p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .callout { grid-template-columns: 1fr; } }

/* Contact */
.contact { text-align: center; }
.contact .mail { display: inline-block; font-size: clamp(22px, 4.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; word-break: break-word; margin: 6px 0 10px; }

/* ── Legal pages ──────────────────────────────────────────────────────── */
.subnav { border-bottom: 1px solid var(--border); background: rgba(10, 22, 12, 0.7); }
.subnav .wrap { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
.subnav .app { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; margin-right: 4px; }
.subnav .app img { width: 22px; height: 22px; border-radius: 6px; }
.subnav a { color: var(--muted); font-weight: 500; }
.subnav a:hover { color: var(--ink); text-decoration: none; }
.subnav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.legal { padding: 52px 0 80px; }
.legal h1 { font-size: clamp(34px, 5.4vw, 48px); margin-bottom: 10px; }
.legal .updated { color: var(--faint); font-size: 15px; margin-bottom: 30px; }
.legal .intro { color: var(--muted); font-size: 18px; }
.legal h2 { font-size: 20px; margin: 36px 0 12px; letter-spacing: -0.01em; }
.legal .card { padding: 22px 24px; }
.legal .card p, .legal .card li { color: #dbe9df; font-size: 16px; }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal li:last-child { margin-bottom: 0; }
.legal li::marker { color: var(--accent); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 4px 0 14px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--surface-2); color: #dbe9df; }
.legal th { color: var(--muted); font-weight: 700; }
.legal code { font-size: 0.9em; background: var(--surface-2); color: var(--accent-2); padding: 1px 6px; border-radius: 6px; word-break: break-word; }
.legal .button { display: inline-block; margin-top: 6px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-deep); padding: 52px 0 32px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { color: var(--muted); font-weight: 500; }
.site-footer li a:hover { color: var(--ink); }
.site-footer .about .brand { margin-bottom: 12px; }
.site-footer .about p { color: var(--faint); max-width: 300px; }
.site-footer .legal-line { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.notfound { padding: 130px 0; text-align: center; }
.notfound .code { font-size: clamp(64px, 14vw, 140px); font-weight: 800; line-height: 1; margin-bottom: 8px; }
.notfound h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }
