/* VOED — brand layer on top of the shared system.
   Warm paper, ink, one indigo. Instrument Sans for words, DM Mono for facts. */

:root {
  --p-bg: #f4f1e9;
  --p-surface: #e9e3d5;
  --p-ink: #17150f;
  --p-muted: #4a4438;
  --p-accent: #4f46e5;
  --p-accent-ink: #ffffff;
  --p-action: #4f46e5;
  --p-action-ink: #ffffff;
  --p-inv-bg: #17150f;
  --p-inv-surface: #24211a;
  --p-inv-ink: #f4f1e9;
  --p-inv-muted: #b8b1a3;
  --p-inv-accent: #a5b4fc;
  --p-inv-accent-ink: #17150f;
  --p-inv-action: #f4f1e9;
  --p-inv-action-ink: #17150f;

  --ground-bg: #e7dfcd;
  --ground-surface: #f0e9da;
  --ground-ink: #2a2622;
  --ground-muted: #5a534a;
  --ground-accent: #4f46e5;

  --font-display: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --display-stretch: 97%;
}

html { scroll-behavior: auto; }

body { background: var(--bg); }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ------------------------------------------------------------------ links */
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.t-label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ nav */
.nav__logo img, .nav__logo svg { width: 26px; height: 26px; flex: none; }
.nav__logo { letter-spacing: -0.035em; }
.nav__actions .btn { height: var(--btn-h-sm); padding-inline: var(--s-4); }
@media (max-width: 1023px) {
  .nav__actions .btn { display: none; }
}

/* ------------------------------------------------------------------ hero window */
.site-window {
  display: block;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  border-radius: var(--r-md);
  background: #f7f7f8;
}
.site-window img { display: block; width: 100%; height: auto; }

.hero--centred .hero__window { background: var(--ground-bg); }
.hero--centred .hero__window > .ly-piece { width: min(920px, calc(100% - 2 * var(--s-6))); top: var(--s-6); bottom: 0; }
main > .hero.hero--centred { padding-bottom: 24px; }
.hero--centred .hero__window { margin-bottom: 0; border-radius: var(--r-lg);
  -webkit-mask-image: none; mask-image: none; }
.hero--centred .hero__window .site-window,
.hero--centred .hero__window .site-window img { height: 100%; }
.hero--centred .hero__window .site-window img { object-fit: cover; object-position: 50% 0; }
.hero--centred h1 { max-width: 18ch; }
.hero__meta {
  display: block; margin-top: var(--s-2); text-align: center;
  font-family: var(--font-mono); font-size: var(--t-label); color: var(--muted);
}
.hero__meta span + span::before { content: "/"; margin: 0 var(--s-4); color: var(--line-strong); }

/* the app shot on the product page: a window, not a full-bleed photograph */
.hero--product .hero__stage:has(> img:not(.is-cutout)) {
  margin-inline: 0;
  margin-bottom: 0;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
  background: #f7f7f8;
  box-shadow: 0 28px 60px -34px color-mix(in oklab, var(--ink) 55%, transparent);
}
.hero--product .hero__stage > img { object-position: 50% 0; }
.hero--product .hero__head h1 { max-width: 15ch; }

/* ------------------------------------------------------------------ screenshots */
.shot {
  display: block;
  position: relative; overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
  border-radius: var(--r-md); background: #f7f7f8;
}
.shot img { display: block; width: 100%; height: auto; }
.shot--crop { max-height: 400px; }
.shot--crop img { width: 100%; height: 400px; object-fit: cover; object-position: var(--shot-pos, 0 0); }
@media (max-width: 1023px) { .shot--crop img { height: auto; max-height: 440px; } }

/* ------------------------------------------------------------------ rows */
.rows__name small { display: block; margin-top: 2px; font-size: var(--t-small); font-weight: 400; color: var(--muted); }
.rows > li { align-items: start; }
.rows__value { font-family: var(--font-mono); font-size: var(--t-small); color: var(--muted); }

/* ------------------------------------------------------------------ feature cards */
.feature-grid { align-items: stretch; }
.feature-card { display: flex; flex-direction: column; gap: var(--s-3); height: 100%; }
.feature-card h3 { font-size: var(--t-card); line-height: 1.3; letter-spacing: -0.015em; }
.feature-card p { color: var(--muted); font-size: var(--t-body); line-height: 1.55; }
.icon-tile {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  border-radius: 10px; background: color-mix(in oklab, var(--accent) 10%, var(--bg));
  color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
}
.icon-tile svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ platforms */
.platforms { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.platforms li {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 38px; padding: 0 var(--s-4);
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: var(--t-small); font-weight: 500; background: var(--bg);
}
.platforms li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }

/* ------------------------------------------------------------------ studio */
.studio__statement {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--t-h2); line-height: 1.1; letter-spacing: var(--display-tracking);
  margin: var(--s-4) 0 0; max-width: 40ch; text-wrap: balance;
}
.studio__grid { margin-top: var(--s-6); align-items: start; }
.studio__grid p { font-size: var(--t-lead); line-height: 1.55; max-width: 46ch; }
.studio__next { margin-top: var(--s-3); color: var(--muted); }
.studio__shot img { display: block; width: 100%; height: auto; }
@media (max-width: 639px) { .studio__shot img { height: 300px; object-fit: cover; object-position: 50% 0; } }
.studio__fact { display: grid; gap: var(--s-1); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.studio__fact b { font-weight: 500; }
.studio__fact span { color: var(--muted); font-size: var(--t-small); }
.studio__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
@media (max-width: 639px) { .studio__facts { grid-template-columns: 1fr; gap: 0; } }

/* a full-width app detail under a card row */
.shot--band { margin-top: var(--s-7); }
.shot--band img { width: 100%; height: 280px; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 1023px) { .shot--band img { height: 220px; } }

/* ------------------------------------------------------------------ tabs */
.tab { height: 40px; padding-inline: var(--s-4); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: var(--t-small); font-weight: 500; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab-panel { margin-top: var(--s-6); }
.tab-panel .shot { margin-top: var(--s-5); }
.tab-panel h3 { font-size: var(--t-h3); letter-spacing: -0.02em; }
.tab-panel p { color: var(--muted); max-width: 52ch; margin-top: var(--s-3); }

/* ------------------------------------------------------------------ page head (inner pages) */
main#main > .page-head {
  height: auto; min-height: 0;
  padding-top: calc(var(--nav) + var(--padt));
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line);
}
main#main > .contact-page { height: auto; min-height: 0; }

/* the sections hold their words in the middle of the screen, not at its top */
main#main > .section > .wrap:not(.grid) { justify-content: center; }
main#main > .section > .wrap.grid { align-content: center; }
.page-head h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: var(--display-tracking-xl); max-width: 16ch; }
.page-head__lead { margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.55; max-width: 56ch; color: var(--muted); }

/* ------------------------------------------------------------------ contact */
.contact-grid { align-items: start; }
.contact-form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field > label { font-size: var(--t-small); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 12px 14px; min-height: 46px;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--muted) 72%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in oklab, var(--accent) 30%, transparent); outline-offset: 0; }
.field__hint { font-size: var(--t-label); color: var(--muted); }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 639px) { .field__row { grid-template-columns: 1fr; } }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 24px; font-size: var(--t-small); line-height: 1.5; }
.form-status.is-ok { color: #1d6b45; }
.form-status.is-error { color: #a32828; }
.contact-aside { display: grid; gap: var(--s-6); }
.contact-aside h2 { font-size: var(--t-h3); letter-spacing: -0.02em; }
.contact-aside p { color: var(--muted); line-height: 1.55; }
.contact-aside .rows { font-size: var(--t-small); }

main > .contact-page { height: auto; min-height: 0; padding-top: var(--s-8); padding-bottom: var(--s-9); }

/* ------------------------------------------------------------------ legal pages */
main.doc { padding-bottom: var(--s-9); }
main.doc > section {
  height: auto; min-height: 0;
  padding-top: calc(var(--nav) + var(--s-8));
  padding-bottom: var(--s-8);
}
.doc__body { max-width: 760px; }
.doc__body h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: var(--display-tracking-xl); }
.doc__body h2 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.02em; margin-top: var(--s-8); }
.doc__body h3 { font-size: var(--t-card); margin-top: var(--s-6); }
.doc__body p, .doc__body li { font-size: var(--t-body); line-height: 1.65; color: color-mix(in oklab, var(--ink) 88%, var(--muted)); }
.doc__body p { margin-top: var(--s-4); }
.doc__body ul { margin-top: var(--s-4); padding-left: 1.25em; display: grid; gap: var(--s-2); }
.doc__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc__meta { margin-top: var(--s-4); font-family: var(--font-mono); font-size: var(--t-label); color: var(--muted); }
.doc__nav { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-small); }

/* ------------------------------------------------------------------ steps */
.steps { counter-reset: step; display: grid; margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.steps b { display: block; font-weight: 500; }
.steps span { display: block; margin-top: 2px; color: var(--muted); font-size: var(--t-small); line-height: 1.5; }

/* ------------------------------------------------------------------ notice */
.notice {
  display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-5);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: var(--r-sm); background: color-mix(in oklab, var(--accent) 6%, var(--bg));
}
.notice b { font-weight: 500; }
.notice p { font-size: var(--t-small); line-height: 1.55; color: var(--muted); }
.checksum { display: block; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------------ 404 */
main > .notfound { height: auto; min-height: calc(100svh - var(--nav)); display: grid; align-content: center; padding-top: calc(var(--nav) + var(--s-8)); padding-bottom: var(--s-8); }
.notfound h1 { font-size: var(--t-h1); letter-spacing: var(--display-tracking-xl); }
.notfound p { margin-top: var(--s-4); color: var(--muted); font-size: var(--t-lead); max-width: 48ch; }

/* ------------------------------------------------------------------ closing */
.closing__cta h2 { max-width: 18ch; }
.footer__legal a:hover { color: var(--action); }
.footer__legal { color: var(--muted); font-size: var(--t-label); }

/* a phone: the hero window sits closer to the words */
@media (max-width: 639px) {
  main > .hero.hero--centred { --hgap: 32px; }
  .hero--centred .hero__window { margin-top: 16px; }
  .hero--centred .hero__window > .ly-piece { top: var(--s-4); }
  .hero__meta { text-align: center; }
}
