/* Pexer homepage. Centered, one wide column; the product video is the biggest thing on the page. */

@font-face { font-family: 'Geist'; font-weight: 400; font-display: swap; src: url(assets/fonts/geist-0.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-display: swap; src: url(assets/fonts/geist-1.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-display: swap; src: url(assets/fonts/geist-2.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(assets/fonts/jetbrains-mono-0.woff2) format('woff2'); } /* taste-skill-ignore: real code only */

:root {
  --bg: #101114;
  --surface: #16181c;
  --surface-2: #1d2025;
  --line: #292c32;
  --ink: #edeef0;
  --muted: #a3a8b1;
  --accent: #edb35f;
  --accent-strong: #f4c781;
  --accent-ink: #18130c;

  --page: min(1280px, calc(100% - 48px));
  --read: min(640px, calc(100% - 48px));

  --t-display: clamp(34px, 4.6vw, 64px);
  --t-h: clamp(24px, 2.2vw, 32px);
  --t-body: 18px;
  --t-small: 15px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/1.55 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, pre, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
code, kbd { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.86em; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { top: 8px; }

.note, .small, .meta { color: var(--muted); font-size: var(--t-small); }
.center { text-align: center; }
.text-link {
  font-weight: 500; color: var(--ink);
  text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px;
  text-decoration-color: #5a5f69;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.button-quiet { background: var(--surface-2); color: var(--ink); }
.button:active { transform: scale(0.97); }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface-2); transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: var(--accent); }
  .button:hover { background: var(--accent-strong); }
  .button-quiet:hover { background: #2b2f36; }
  .icon-button:hover { background: #2b2f36; }
}

/* header */
.header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: var(--page); margin: 0 auto; padding: 24px 0 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.navigation { display: flex; gap: 28px; font-size: var(--t-small); }
.nav-link { color: var(--muted); transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { color: var(--ink); } }

/* hero: short text, then the video as large as the page allows */
.hero { width: var(--page); margin: 0 auto; padding-top: clamp(48px, 9svh, 96px); text-align: center; }
.hero h1 { font-size: var(--t-display); max-width: 18ch; margin: 0 auto; letter-spacing: -0.035em; line-height: 1.05; }
.lead { margin: 22px auto 0; max-width: 44ch; color: var(--muted); }
.actions { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.meta { margin-top: 18px; }

.media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.media video { width: 100%; height: 100%; object-fit: contain; }
.hero-media { margin-top: 56px; border: 1px solid var(--line); }
.demo-preview { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 14px; }
.demo-preview span {
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; padding: 6px 12px;
  opacity: 0; transform: translateY(6px); transition: opacity var(--t-hover) ease, transform var(--t-hover) var(--ease-out);
}
.demo-preview:hover span, .demo-preview:focus-visible span { opacity: 1; transform: none; }
.demo-preview:focus-visible { outline-offset: -3px; }
@media (hover: none) { .demo-preview span { opacity: 1; transform: none; } }
.demo-play { position: absolute; left: 14px; bottom: 14px; z-index: 2; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; padding: 8px 12px; }

/* sections share one centered rhythm */
.features, .more, .pricing, .faq { width: var(--page); margin: 140px auto 0; }
.features > h2, .more h2, .pricing h2, .faq h2 { font-size: var(--t-h); text-align: center; }

/* features: text on the left, video on the right; they alternate */
.story { margin-top: 72px; display: grid; gap: 28px; align-items: center; }
.story h3 { font-size: var(--t-h); }
.story p { margin-top: 14px; color: var(--muted); max-width: 40ch; }
.story code, .story kbd { color: var(--ink); }
.code {
  margin-top: 22px; padding: 16px 18px; background: var(--surface); overflow-x: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; line-height: 1.8; color: #cfd3d9;
}
.code code { font-size: inherit; }
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .story:nth-of-type(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .story:nth-of-type(even) .story-text { order: 2; }
}

/* also inside: a plain two-column list */
.rows { margin: 36px auto 0; max-width: 880px; display: grid; gap: 0 56px; }
.rows li { position: relative; border-bottom: 1px solid var(--line); }
.rows li > video, .rows li > .demo-play { display: none !important; }
.rows button {
  width: 100%; min-height: 52px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0;
}
.rows h3 { font-size: 17px; font-weight: 400; letter-spacing: 0; line-height: 1.4; transition: color var(--t-hover) ease; }
.rows button span { font-size: var(--t-small); color: var(--muted); white-space: nowrap; }
@media (min-width: 760px) { .rows { grid-template-columns: 1fr 1fr; } }
@media (hover: hover) and (pointer: fine) { .rows button:hover h3 { color: var(--accent); } }

/* pricing: three equal cards, Founding marked by its accent border */
.pricing .note { margin-top: 8px; text-align: center; }
.menu { margin: 44px auto 0; max-width: 1040px; display: grid; gap: 20px; }
.item { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 32px; background: var(--surface); border: 1px solid var(--line); }
.item[data-tier="founding"] { border-color: var(--accent); }
.item h3 { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price { display: flex; align-items: baseline; gap: 12px; font-size: 44px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price s { font-size: 17px; color: var(--muted); letter-spacing: 0; }
.perks { display: grid; gap: 8px; flex: 1; }
.perks li { color: var(--ink); font-size: 16px; }
.perks li::before { content: '—'; color: var(--muted); margin-right: 10px; }
.item .button { width: 100%; }
.item .small { align-self: center; }
.pricing > .small { margin: 32px auto 0; max-width: 60ch; }
@media (min-width: 900px) { .menu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* faq */
.faq { width: var(--read); }
.qs { margin-top: 28px; display: grid; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; padding: 16px 0;
  transition: color var(--t-hover) ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--muted); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 0 18px; color: var(--muted); max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover { color: var(--accent); } }
.faq > .small { margin-top: 32px; }

/* footer */
.footer {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  width: var(--page); margin: 140px auto 0; padding: 24px 0 32px; border-top: 1px solid var(--line);
  font-size: var(--t-small); color: var(--muted);
}
.footer p { margin: 0; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a, .footer a { color: var(--ink); }

/* dialogs */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); box-shadow: 0 24px 80px #000b; } /* taste-skill-ignore: dialog floats */
dialog::backdrop { background: #000c; }
.feature-video-modal { width: min(1100px, calc(100vw - 32px)); }
.fvm-inner { padding: 20px; display: grid; gap: 16px; }
.fvm-head, .lm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.fvm-head h2, .lm-head h2 { font-size: 22px; }
.fvm-head p { color: var(--muted); font-size: 14px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.feature-video-modal-player { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.fvm-nav { display: flex; gap: 8px; justify-content: flex-end; }
.linux-modal { width: min(520px, calc(100vw - 32px)); }
.lm-inner { padding: 28px; display: grid; gap: 16px; }
.lm-form { display: grid; gap: 10px; }
.lm-form label { color: var(--muted); font-size: 14px; }
.lm-row { display: flex; gap: 8px; }
.lm-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid #3a3f48; }
.lm-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.lm-status { color: #f0a08f; }
.lm-result { display: grid; gap: 8px; }
body.subscription-dialog-open { overflow: hidden; }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(16px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* phone */
@media (max-width: 760px) {
  :root { --page: calc(100% - 40px); --read: calc(100% - 40px); --t-body: 17px; }
  .header { padding-top: 20px; }
  .navigation { gap: 18px; }
  .navigation .nav-link:nth-child(4) { display: none; }
  .hero-media { margin-top: 40px; }
  .features, .more, .pricing, .faq { margin-top: 96px; }
  .story { margin-top: 56px; }
  .item { padding: 24px; }
  .footer { margin-top: 96px; }
}

/* download page */
.dl-info { width: var(--page); margin: 96px auto 0; }
.dl-steps { display: grid; gap: 40px; max-width: 1040px; margin: 0 auto; }
.dl-steps h2 { font-size: 20px; margin-bottom: 10px; }
.dl-steps p { color: var(--muted); }
.dl-steps code, .dl-steps kbd { color: var(--ink); }
.dl-info > .small { margin-top: 48px; }
@media (min-width: 900px) { .dl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; } }
