/* Screenshot Crawler — one stylesheet, no framework.
   Warm neutral palette and 1200px shell after hyperline.co; typography in Inter.
   Still no gradients and no drop shadows. Surfaces are flat panels and hairlines. */

/* Inter is self-hosted. The privacy policy promises this site makes no
   third-party requests, so Google Fonts is not an option. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fcfcfc;
  --panel: #efede7;
  --ink: #2a2620;
  --body: #3d3833;
  --muted: #6b655d;
  --rule: #e4e1d9;
  --rule-strong: #d6d2c8;
  --accent: #0d7d72;
  --on-dark: #f4f2ec;
  --on-dark-muted: #b3ada2;

  --hero-bg: #2a2620;
  --hero-fg: #f4f2ec;
  --hero-muted: #b3ada2;
  --hero-rule: #3d3830;

  --shell: 1200px;   /* outer frame: masthead, footer, hero, feature grids */
  --measure: 40rem;  /* reading column for long prose inside that frame */
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16130f;
    --panel: #201c17;
    --ink: #f2efe9;
    --body: #ddd8cf;
    --muted: #9b948a;
    --rule: #2e2921;
    --rule-strong: #3b352c;
    --accent: #35d6c3;

    /* Dark mode: the band reads as a raised panel rather than an inversion. */
    --hero-bg: #201c17;
    --hero-fg: #f2efe9;
    --hero-muted: #9b948a;
    --hero-rule: #35302a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Long prose gets a readable column inside the wide frame. */
.prose { max-width: var(--measure); }

/* ---- masthead ---- */

.masthead {
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}
.wordmark {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.masthead nav {
  margin-left: auto;
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
}
.masthead nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.masthead nav a:hover { color: var(--ink); }

/* ---- hero band ---- */

.hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  border-bottom: 1px solid var(--hero-rule);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3.5rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.hero h1 { color: var(--hero-fg); max-width: 16ch; }
.hero .lede { color: var(--hero-muted); max-width: 44ch; }
.hero p { color: var(--hero-muted); }
.hero .btn { background: var(--hero-fg); color: var(--hero-bg); border-color: var(--hero-fg); }
.hero .btn:hover { background: transparent; color: var(--hero-fg); }
.hero-copy > :last-child { margin-bottom: 0; }

@media (max-width: 62rem) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3rem; }
}

/* ---- type ---- */

h1 {
  font-size: clamp(2rem, 1.4rem + 1.9vw, 2.85rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 1.1rem;
  max-width: 20ch;
}
h2 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  margin: 4rem 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  max-width: var(--measure);
}
/* Headings that sit above a full-width grid run the full shell instead. */
h2.wide { max-width: none; }
h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 2rem 0 0.35rem; }
p { margin: 0 0 1.15rem; max-width: var(--measure); }
.lede {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}
a { color: var(--accent); text-underline-offset: 2px; }
strong { font-weight: 600; color: var(--ink); }
small { font-size: 0.85rem; color: var(--muted); }

main { padding-bottom: 6rem; }
main.wrap { padding-top: 3.5rem; }
main > h2:first-child { margin-top: 0; }

/* ---- feature rows: two across once there is room ---- */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  border-top: 1px solid var(--rule);
}
.rows li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  align-items: baseline;
}
.rows .k { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.rows .v { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 62rem) {
  .rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
  .rows li { grid-template-columns: 1fr; gap: 0.15rem; }
}

ul.plain { padding-left: 1.15rem; margin: 0 0 1.15rem; max-width: var(--measure); }
ul.plain li { margin: 0.35rem 0; }

/* ---- pricing ---- */

.tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: start;
}
@media (max-width: 52rem) { .tiers { grid-template-columns: 1fr; gap: 2rem; } }

.price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.4rem;
}
.price .amount { font-size: 3rem; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); }
.price .unit { color: var(--muted); font-size: 0.95rem; }

/* ---- buttons ---- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: default; }

/* ---- forms ---- */

label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin: 1.2rem 0 0.35rem; }
input[type=text], input[type=email] {
  width: 100%;
  max-width: 26rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* ---- licence key readout ---- */

.key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-all;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  max-width: var(--measure);
}

.note { font-size: 0.9rem; color: var(--muted); max-width: var(--measure); }
.error { color: #b3261e; font-size: 0.9rem; max-width: var(--measure); }
@media (prefers-color-scheme: dark) { .error { color: #f2b8b5; } }

/* ---- legal pages ---- */

.legal { font-size: 0.95rem; }
.legal h2 { margin-top: 2.75rem; }
.legal p, .legal ul { max-width: var(--measure); }
.updated { font-size: 0.85rem; color: var(--muted); margin-bottom: 2.5rem; }

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--rule);
  padding: 2.25rem 0 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}
footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 0.9rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ============================================================
   Hero demo — the capture behaviour, on a loop.

   Drawn in markup rather than shipped as a GIF: it stays sharp at
   any size, follows the colour scheme, costs about 2 KB against a
   megabyte or two of frames, and can be paused for reduced motion.
   ============================================================ */

.demo {
  --demo-rule: var(--hero-rule);
  --demo-chrome: color-mix(in srgb, var(--hero-bg) 88%, #ffffff 12%);
  --demo-panel: color-mix(in srgb, var(--hero-bg) 96%, #000000 4%);
  position: relative;
  border: 1px solid var(--demo-rule);
  border-radius: 10px;
  background: var(--demo-chrome);
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--demo-rule);
}
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--hero-fg) 28%, transparent); }
.demo-url {
  margin-left: 0.6rem;
  height: 14px;
  flex: 1;
  max-width: 190px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--hero-fg) 12%, transparent);
}

.demo-body {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  height: calc(100% - 31px);
}

.demo-nav {
  border-right: 1px solid var(--demo-rule);
  padding: 0.7rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.demo-nav i { display: block; height: 7px; border-radius: 2px; background: color-mix(in srgb, var(--hero-fg) 15%, transparent); }
.demo-nav i:nth-child(2) { background: var(--accent); opacity: 0.55; }
.demo-nav i:nth-child(4) { width: 70%; }
.demo-nav i:nth-child(6) { width: 55%; }

/* The inner panel: the thing ordinary full-page capture misses. */
.demo-panel {
  position: relative;
  margin: 0.7rem;
  border: 1px solid var(--demo-rule);
  border-radius: 5px;
  background: var(--demo-panel);
  overflow: hidden;
}

.demo-scroll {
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  animation: demo-scroll 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.demo-scroll i { display: block; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--hero-fg) 13%, transparent); flex: none; }
.demo-scroll i:nth-child(3n) { width: 62%; }
.demo-scroll i:nth-child(4n) { width: 84%; }
.demo-scroll i.hl { background: var(--accent); opacity: 0.4; }

/* Sweeps down the panel while it scrolls, then rests. */
.demo-sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  animation: demo-sweep 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* The stitched result, standing taller than the panel it came from. */
.demo-out {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 52px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--demo-panel);
  padding: 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(6px);
  animation: demo-out 9s ease infinite;
}
.demo-out i { display: block; height: 3px; border-radius: 1px; background: color-mix(in srgb, var(--hero-fg) 18%, transparent); }
.demo-out i:nth-child(3n) { width: 64%; }
.demo-out i:nth-child(5n) { background: var(--accent); opacity: 0.45; }

.demo-caption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--hero-muted);
  animation: demo-caption 9s ease infinite;
}

@keyframes demo-scroll {
  0%, 8%    { transform: translateY(0); }
  52%       { transform: translateY(-58%); }
  70%, 100% { transform: translateY(-58%); }
}

@keyframes demo-sweep {
  0%, 6%   { top: 0; opacity: 0; }
  10%      { opacity: 1; }
  50%      { top: calc(100% - 2px); opacity: 1; }
  58%      { top: calc(100% - 2px); opacity: 0; }
  100%     { top: calc(100% - 2px); opacity: 0; }
}

@keyframes demo-out {
  0%, 55%   { opacity: 0; transform: translateY(6px); }
  66%, 92%  { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(6px); }
}

@keyframes demo-caption {
  0%, 8%    { opacity: 0; }
  14%, 52%  { opacity: 1; }
  60%, 100% { opacity: 0; }
}

/* Motion is decoration here. Hold the end state instead. */
@media (prefers-reduced-motion: reduce) {
  .demo-scroll { animation: none; transform: translateY(-58%); }
  .demo-sweep { animation: none; opacity: 0; }
  .demo-out { animation: none; opacity: 1; transform: none; }
  .demo-caption { animation: none; opacity: 1; }
  .btn { transition: none; }
}
