/* Vela's site. The app's own palette (Vela/Vela/UI/Theme.swift): midnight navy,
   with a magenta-to-amber accent. Dark by default, as the app is; light when the
   reader's system asks for it. No web fonts, no scripts, nothing from another host. */

:root {
  color-scheme: dark light;
  --base: #0a0f20;
  --surface: #131a2e;
  --raised: #1d2540;
  --hairline: rgba(255, 255, 255, 0.09);
  --text: #f0f3fa;
  --text-2: #98a2be;
  --text-3: #626c8a;
  --accent-start: #c03b76;
  --accent-end: #f0913f;
  --accent: #e8794f;
  --positive: #4fb98a;
  --warning: #e8a33f;
  --glow: rgba(192, 59, 118, 0.22);
  --glow-2: rgba(240, 145, 63, 0.16);
  --radius: 14px;
  --gutter: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --base: #f6f7fb;
    --surface: #ffffff;
    --raised: #eef0f6;
    --hairline: rgba(10, 15, 32, 0.1);
    --text: #0a0f20;
    --text-2: #4a5470;
    --text-3: #6b7490;
    --accent: #b8492a;
    --positive: #1f7a52;
    --warning: #9a5a00;
    --glow: rgba(192, 59, 118, 0.12);
    --glow-2: rgba(240, 145, 63, 0.12);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.lang { font-size: 15px; color: var(--text-2); }
.lang a { color: var(--text-2); }

/* Hero */
.hero {
  position: relative;
  padding: 40px 0 28px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: -40px 0 auto 0; height: 420px; z-index: -1;
  background:
    radial-gradient(closest-side at 30% 40%, var(--glow), transparent),
    radial-gradient(closest-side at 70% 30%, var(--glow-2), transparent);
}
.hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
h1 {
  font-size: clamp(32px, 7vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 22px auto 14px;
  max-width: 14em;
}
.lede { color: var(--text-2); font-size: clamp(17px, 2.6vw, 20px); max-width: 34em; margin: 0 auto 26px; }
.badge { display: inline-block; line-height: 0; }
/* Apple's minimum on screen is 40 px tall; the clear space around it is a
   quarter of its height, which the margins below keep. */
.badge img { height: 54px; width: auto; margin: 14px; }
.note { color: var(--text-3); font-size: 14px; margin: 6px 0 0; }
/* The store name, which search matches, above the headline. */
.eyebrow { color: var(--text-2); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; margin: 18px 0 0; }
.eyebrow + h1 { margin-top: 8px; }

/* Screenshots */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 18px;
  margin: 16px calc(-1 * var(--gutter)) 0;
  overscroll-behavior-x: contain;
}
/* Centred only while the strip fits: a centred strip that overflows clips its
   first shot on the left, where no scroll can reach it. */
@media (min-width: 1100px) { .shots { justify-content: safe center; } }
.shots figure { margin: 0; scroll-snap-align: center; }
.shots img {
  width: 100%; height: auto; display: block;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.shots figcaption { font-size: 14px; color: var(--text-2); margin-top: 8px; text-align: center; }

section { padding: 44px 0 8px; }
h2 { font-size: clamp(24px, 4.4vw, 32px); letter-spacing: -0.01em; margin: 0 0 16px; line-height: 1.2; }
h3 { font-size: 19px; margin: 26px 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--text-2); }

.pro {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  padding: 2px 8px; border-radius: 999px; margin-left: 6px;
  color: #fff;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  vertical-align: 2px;
  white-space: nowrap;
}

/* Features */
.features {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.features li {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px 16px;
}
/* What a version adds: a heading line with its Vela Pro tag, then the detail. */
.news strong { font-weight: 650; }
.news .pro { margin-left: 4px; }
.news .detail { display: block; margin-top: 6px; color: var(--text-2); font-size: 15px; }

/* Free and Pro */
.plans { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hairline); }
.plans th, .plans td { padding: 12px 14px; border-top: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.plans thead th { border-top: 0; font-size: 14px; color: var(--text-2); }
.plans td.c, .plans th.c { text-align: center; width: 6.5em; }
.yes { color: var(--positive); font-weight: 700; }
.no { color: var(--text-3); }
.brk { color: var(--warning); font-size: 14px; }
.ok { color: var(--positive); font-size: 14px; font-weight: 600; }
.small { font-size: 15px; color: var(--text-2); }

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 4px 16px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details p { color: var(--text-2); }

/* Article */
.article { max-width: 44em; }
.article h1 { text-align: left; margin-left: 0; max-width: none; font-size: clamp(30px, 6vw, 44px); }
.article code, .article pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; }
.article code { background: var(--raised); padding: 1px 5px; border-radius: 5px; }
.article pre { background: var(--surface); border: 1px solid var(--hairline); padding: 14px; border-radius: 10px; overflow-x: auto; }
.article pre code { background: none; padding: 0; }

footer {
  margin-top: 56px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--hairline);
  color: var(--text-3);
  font-size: 14px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
footer nav a { color: var(--text-2); }
footer p { margin: 0 0 8px; }

.center { text-align: center; }
.gap { margin-top: 14px; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 480px) {
  .plans th, .plans td { padding: 10px 8px; }
  .plans tbody th { font-size: 15px; }
  .plans td.c, .plans th.c { width: 4.6em; }
  .brk, .ok { font-size: 12px; }
}
