/* The project page, in the app's own palette (packages/vh_ui palette.dart):
   a warm white ground and the ink by day, black by night, and the one blue
   that marks an action. The fonts are the app's, served from here. */

@font-face { font-family: 'VH Latin'; src: url(fonts/NotoSans-Regular.ttf); font-weight: 400; font-display: swap; unicode-range: U+0000-05FF, U+1E00-1FFF, U+2000-206F, U+20A0-20CF, U+2100-218F; }
@font-face { font-family: 'VH Latin'; src: url(fonts/NotoSans-Medium.ttf); font-weight: 500; font-display: swap; unicode-range: U+0000-05FF, U+1E00-1FFF, U+2000-206F, U+20A0-20CF, U+2100-218F; }
@font-face { font-family: 'VH Latin'; src: url(fonts/NotoSans-Bold.ttf); font-weight: 700; font-display: swap; unicode-range: U+0000-05FF, U+1E00-1FFF, U+2000-206F, U+20A0-20CF, U+2100-218F; }
@font-face { font-family: 'VH Arabic'; src: url(fonts/Tajawal-Regular.ttf); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'VH Arabic'; src: url(fonts/Tajawal-Medium.ttf); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'VH Arabic'; src: url(fonts/Tajawal-Bold.ttf); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --bg: #F2F1EE;
  --card: #FFFFFF;
  --card-alt: #E8E6E2;
  --ink: #2B211B;
  --ink2: #574F49;
  --ink3: #6D6661;
  --accent: #2457D6;
  --accent-deep: #1B44AB;
  --accent-soft: #EAF0FC;
  --accent-ink: #173A8F;
  --on-accent: #F4F7FF;
  --band: #2B211B;
  --band-ink: #F0EBE4;
  --line: rgba(43, 33, 27, .12);
  --shot-ground: #F2F1EE;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #121212;
    --card-alt: #1C1C1C;
    --ink: #F0EBE4;
    --ink2: #9E9B96;
    --ink3: #868480;
    --accent: #7FA3FF;
    --accent-deep: #5F87EA;
    --accent-soft: #0A1636;
    --accent-ink: #B3C6FF;
    --on-accent: #0A1636;
    --band: #121212;
    --band-ink: #F0EBE4;
    --line: rgba(240, 235, 228, .14);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 'VH Latin', 'VH Arabic', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[dir=rtl] body { font-size: 18px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { letter-spacing: 0; line-height: 1.35; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 28px; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
svg { width: 24px; height: 24px; flex: none; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

/* The bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { border-radius: 8px; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { text-decoration: none; color: var(--ink2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
nav a:hover { color: var(--ink); background: var(--card-alt); }
nav .lang { color: var(--accent); }
nav .gh { display: inline-flex; padding: 8px; }

/* The hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.mark {
  position: absolute; inset-inline-end: -140px; top: -80px;
  width: 620px; height: 620px; opacity: .06; pointer-events: none;
  background: var(--ink);
  -webkit-mask: url(vidhoist-mark.svg) center / contain no-repeat;
  mask: url(vidhoist-mark.svg) center / contain no-repeat;
}
[dir=rtl] .mark { transform: scaleX(-1); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
[dir=rtl] .kicker { letter-spacing: 0; font-size: 15px; }
h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 700; letter-spacing: -.03em; }
[dir=rtl] h1 { font-size: clamp(40px, 5.8vw, 70px); letter-spacing: 0; }
/* The word lit, as the library lights a word found in what was said. */
h1 em {
  font-style: normal; color: var(--accent-ink);
  background: linear-gradient(transparent 58%, var(--accent-soft) 58%);
  padding: 0 .08em; border-radius: 4px;
}
.lede { color: var(--ink2); font-size: 19px; max-width: 560px; margin-top: 22px; }
[dir=rtl] .lede { font-size: 20px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; text-decoration: none;
  font-weight: 700; font-size: 16px; transition: transform .16s ease, background .16s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-alt { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-alt:hover { transform: translateY(-1px); }
.promise { color: var(--ink3); font-size: 14px; margin-top: 18px; font-weight: 500; }
.hero-gif { justify-self: center; }
.hero-gif img { width: min(400px, 100%); border-radius: 28px; background: var(--shot-ground); }

/* How a download goes */
.flow { padding-top: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.step {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.steps p { color: var(--ink2); font-size: 15px; margin-top: 4px; }

/* What it does */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 24px; background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); transition: transform .18s ease, box-shadow .18s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -18px rgba(43, 33, 27, .35); }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
.feature p { color: var(--ink2); font-size: 15px; margin-top: 8px; }

/* The screens */
.shot { margin: 0 0 40px; }
.shot img { border-radius: var(--radius); background: var(--shot-ground); box-shadow: 0 0 0 1px var(--line); }
.shot figcaption { color: var(--ink2); font-size: 15px; margin-top: 12px; max-width: 760px; }
.shot figcaption strong { color: var(--ink); margin-inline-end: 6px; }

/* Privacy: the ink band, inverted as the mini player is by day */
.privacy { background: var(--band); color: var(--band-ink); padding: 72px 0; }
.privacy-in { display: flex; gap: 28px; align-items: flex-start; }
.privacy-icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(240, 235, 228, .1); }
.privacy-icon svg { width: 32px; height: 32px; }
.privacy h2 { margin-bottom: 14px; }
.privacy p { color: rgba(240, 235, 228, .78); font-size: 18px; max-width: 720px; }

/* Download */
.download .lede { margin: -12px 0 28px; }
.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.file {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px;
  padding: 22px; border-radius: var(--radius); background: var(--card);
  box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.file:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--accent); }
.file-icon { grid-row: span 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent); color: var(--on-accent); }
.file-name { font-weight: 700; font-size: 18px; }
.file-kind { color: var(--accent); font-weight: 500; font-size: 14px; }
.file-note { color: var(--ink2); font-size: 14px; margin-top: 6px; }
.signed { color: var(--ink3); font-size: 14px; margin-top: 24px; }
/* The badge is Obtainium's own, kept as they draw it. */
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 24px; color: var(--ink2); font-size: 15px; }
.also img { width: 194px; }

/* The foot */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.foot-in { display: grid; gap: 12px; color: var(--ink2); font-size: 14px; }
.foot-in p { max-width: 760px; }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-gif { justify-self: start; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .files { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  nav a:not(.lang):not(.gh) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .privacy-in { flex-direction: column; }
  .hero-gif { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
