/* Skopos — one stylesheet, no framework, no build step.
 *
 * A page advertising a tool that idles under half a percent of one core should
 * not arrive as a two-megabyte bundle. No webfonts either: the system stack is
 * already on the reader's Mac, it is the face the app itself is set in, and it
 * costs nothing to download. */

@import url("palette.css");

/* ---------------------------------------------------------------- tokens -- */

:root {
  --bg:          #fbfaf8;
  --bg-sunk:     #f2f0ec;
  --bg-raised:   #ffffff;
  --ink:         #17161a;
  --ink-soft:    #55535c;
  --ink-faint:   #8b8892;
  --rule:        #e2dfda;
  --rule-strong: #cbc7c0;
  --accent:      #2f6fd0;
  --accent-ink:  #ffffff;
  --good:        #2e7d54;
  --warn:        #b4632a;

  --shadow-1: 0 1px 2px rgb(23 22 26 / .06), 0 4px 12px rgb(23 22 26 / .05);
  --shadow-2: 0 2px 6px rgb(23 22 26 / .08), 0 18px 50px rgb(23 22 26 / .10);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --measure: 34rem;
  --page: 68rem;
  --gap: clamp(3.5rem, 9vw, 7rem);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #121114;
    --bg-sunk:     #0c0b0e;
    --bg-raised:   #1b1a1f;
    --ink:         #f2f0ee;
    --ink-soft:    #a8a4ae;
    --ink-faint:   #74707c;
    --rule:        #2a282f;
    --rule-strong: #3c3944;
    --accent:      #6ea3f0;
    --accent-ink:  #0d1220;
    --good:        #5fc48d;
    --warn:        #e0975a;

    --shadow-1: 0 1px 2px rgb(0 0 0 / .5);
    --shadow-2: 0 2px 8px rgb(0 0 0 / .45), 0 26px 60px rgb(0 0 0 / .55);
  }
}

:root[data-theme="dark"] {
  --bg:          #121114;
  --bg-sunk:     #0c0b0e;
  --bg-raised:   #1b1a1f;
  --ink:         #f2f0ee;
  --ink-soft:    #a8a4ae;
  --ink-faint:   #74707c;
  --rule:        #2a282f;
  --rule-strong: #3c3944;
  --accent:      #6ea3f0;
  --accent-ink:  #0d1220;
  --good:        #5fc48d;
  --warn:        #e0975a;

  --shadow-1: 0 1px 2px rgb(0 0 0 / .5);
  --shadow-2: 0 2px 8px rgb(0 0 0 / .45), 0 26px 60px rgb(0 0 0 / .55);
}

/* ------------------------------------------------------------------ base -- */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem)/1.65 var(--sans);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem); font-weight: 660; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.4vw, 2.9rem); font-weight: 640; }
h3 { font-size: clamp(1.1rem, 1.02rem + .35vw, 1.3rem); font-weight: 620; letter-spacing: -0.015em; }
p  { margin: 0; text-wrap: pretty; }

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

code, .num, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code {
  font-size: .875em; background: var(--bg-sunk); border: 1px solid var(--rule);
  border-radius: 5px; padding: .1em .38em;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

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

:where(a, button, summary, input):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

/* --------------------------------------------------------------- layout -- */

.page { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }
.prose { max-width: var(--measure); }
section { padding-block: var(--gap); }
.sunk { background: var(--bg-sunk); border-block: 1px solid var(--rule); }

.eyebrow {
  font: 600 .75rem/1 var(--mono);
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 1.1rem;
}
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; }

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.75rem;
  padding-block: .85rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav[data-scrolled] { border-bottom-color: var(--rule); }
.nav .wordmark {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 640; letter-spacing: -.02em; color: var(--ink); text-decoration: none;
  margin-right: auto; font-size: 1.05rem;
}
.nav a:not(.wordmark):not(.btn) {
  color: var(--ink-soft); text-decoration: none; font-size: .9375rem;
}
.nav a:not(.wordmark):not(.btn):hover { color: var(--ink); }
.nav .hide-sm { display: none; }
@media (min-width: 46rem) { .nav .hide-sm { display: inline; } }

/* --------------------------------------------------------------- button -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 560 .9375rem/1 var(--sans); letter-spacing: -.01em;
  padding: .72rem 1.15rem; border-radius: 9px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.btn-primary:hover { box-shadow: var(--shadow-2); }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-sunk); border-color: var(--ink-faint); }
.btn-lg { font-size: 1.0125rem; padding: .95rem 1.6rem; border-radius: 11px; }

/* ---------------------------------------------------------------- hero -- */

.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: 0; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -30% auto -30%; height: 60rem; z-index: -1;
  background:
    radial-gradient(48rem 30rem at 22% 0%, color-mix(in srgb, var(--kind-code) 20%, transparent), transparent 68%),
    radial-gradient(40rem 26rem at 84% 12%, color-mix(in srgb, var(--kind-disk-images) 15%, transparent), transparent 66%);
  filter: blur(6px); pointer-events: none;
}
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 42ch; margin-top: 1.35rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 2.1rem; }
.hero-note { font-size: .875rem; color: var(--ink-faint); margin-top: 1rem; }

.shot {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--bg-raised); box-shadow: var(--shadow-2); overflow: hidden;
}
.shot img, .shot svg, .shot video { width: 100%; display: block; }
.shot figcaption {
  font-size: .8125rem; color: var(--ink-faint); padding: .7rem 1rem;
  border-top: 1px solid var(--rule); background: var(--bg-sunk);
}

/* --------------------------------------------------------------- stats -- */

.stats {
  display: grid; gap: 1px; background: var(--rule);
  border-block: 1px solid var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.stat { background: var(--bg); padding: 1.75rem 1.5rem; }
.stat dt { font-size: .8125rem; color: var(--ink-faint); margin-bottom: .5rem; }
.stat dd {
  margin: 0; font: 560 clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem)/1 var(--mono);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stat .qual { display: block; font: 400 .8125rem/1.45 var(--sans); color: var(--ink-soft); margin-top: .55rem; }

/* --------------------------------------------------------------- table -- */

.table-wrap { overflow-x: auto; margin-top: 2rem; border: 1px solid var(--rule); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: .9375rem; }
caption { text-align: left; padding: 1rem 1.15rem; color: var(--ink-soft); font-size: .875rem; border-bottom: 1px solid var(--rule); }
th, td { text-align: left; padding: .8rem 1.15rem; border-bottom: 1px solid var(--rule); }
thead th { font: 600 .75rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[data-us] { background: color-mix(in srgb, var(--accent) 9%, transparent); }
tbody tr[data-us] td { font-weight: 560; }
td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td .unmeasured { color: var(--ink-faint); font-style: italic; }

/* ---------------------------------------------------------------- cards -- */

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-top: 2.5rem; }
.card {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.5rem; background: var(--bg-raised);
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-soft); font-size: .9375rem; }

/* -------------------------------------------------------------- terminal -- */

.term {
  background: var(--bg-sunk); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.15rem 1.3rem; overflow-x: auto;
  font: 400 .8125rem/1.7 var(--mono); color: var(--ink-soft);
  font-variant-numeric: tabular-nums; tab-size: 4;
  /* A <div> collapses newlines. These blocks are column-aligned output and the
   * alignment is the point, so the whitespace is content, not formatting. */
  white-space: pre;
}
.term b { color: var(--ink); font-weight: 560; }
.term .dim { color: var(--ink-faint); }
.term .hot { color: var(--warn); }

/* --------------------------------------------------------------- legend -- */

.legend { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1.5rem; font-size: .8125rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
/* `flex: none` is load-bearing. An empty element has a min-content size of
 * zero, so it was the only shrinkable item in the row and collapsed to nothing
 * -- sixteen labels with no colours beside them. */
.legend i { width: .7rem; height: .7rem; border-radius: 3px; flex: none; }

/* -------------------------------------------------------------- pricing -- */

.price-card {
  border: 1px solid var(--rule-strong); border-radius: 18px;
  background: var(--bg-raised); box-shadow: var(--shadow-2);
  padding: clamp(1.75rem, 4vw, 2.5rem); max-width: 27rem;
}
.price-row { display: flex; align-items: baseline; gap: .7rem; margin-block: .35rem 1.25rem; }
.price-now { font: 620 3.1rem/1 var(--mono); letter-spacing: -.04em; }
.price-was { font: 400 1.25rem/1 var(--mono); color: var(--ink-faint); text-decoration: line-through; }
.badge {
  display: inline-block; font: 600 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .6rem; border-radius: 999px;
  background: color-mix(in srgb, var(--good) 16%, transparent);
  color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 32%, transparent);
}
.checks { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .65rem; font-size: .9375rem; color: var(--ink-soft); }
.checks li::before { content: "✓"; color: var(--good); font-weight: 700; flex: none; }

/* --------------------------------------------------------------- footer -- */

.foot { border-top: 1px solid var(--rule); padding-block: 3rem; font-size: .875rem; color: var(--ink-faint); }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.foot ul { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .5rem; }

/* --------------------------------------------------------------- toggle -- */

.theme-toggle {
  background: transparent; border: 1px solid var(--rule); color: var(--ink-soft);
  width: 2.2rem; height: 2.2rem; border-radius: 8px; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--rule-strong); }

/* --------------------------------------------------------------- art -- */
/* Theme-aware images are <picture> + `media`, not two <img> and display:none.
 * A hidden <img> still downloads: both variants were being fetched, doubling
 * image weight on a page whose argument is that Skopos is small. The manual
 * toggle rewrites the <source media> attribute -- see js/site.js. */
.shot picture { display: block; }

/* ---------------------------------------------------------- window chrome -- */
.win { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow-2); background: var(--bg-raised); }
.win-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .6rem .8rem; border-bottom: 1px solid var(--rule);
  background: var(--bg-sunk);
}
.win-bar i { width: .68rem; height: .68rem; border-radius: 50%; background: var(--rule-strong); }
.win-bar .t { margin-left: .55rem; font: 500 .78rem/1 var(--sans); color: var(--ink-faint); }

/* ================================================================ one-pager ==
 * Everything below builds the landing page on the tokens above. Same rule as
 * the rest of the file: no framework, and the app's own screenshots shown at
 * their real pixel size rather than stretched -- a soft panel is the one thing
 * a page about a precise tool cannot ship. */

/* -------------------------------------------------------------- hero grid -- */
.hero-grid { display: grid; gap: clamp(2.25rem, 5vw, 4rem); align-items: center; }
@media (min-width: 54rem) { .hero-grid { grid-template-columns: 1.04fr .96fr; } }
.hero-copy { min-width: 0; }
.hero-media { position: relative; display: flex; justify-content: center; }
.hero-media::before {
  content: ""; position: absolute; inset: -8% -6% -4%; z-index: -1; border-radius: 40%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--kind-code) 24%, transparent), transparent 72%),
    radial-gradient(closest-side at 70% 80%, color-mix(in srgb, var(--kind-disk-images) 16%, transparent), transparent 70%);
  filter: blur(34px);
}

/* A menu-bar dropdown, shown as one: a hairline bar with the scope glyph lit,
 * the panel hanging from it. Keeps a 380px shot from reading as small. */
.macbar { width: 100%; max-width: 372px; }
.macbar-strip {
  display: flex; align-items: center; gap: .9rem; justify-content: flex-end;
  padding: .32rem .7rem; margin-bottom: .55rem;
  border-radius: 8px; border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg-raised) 70%, transparent);
  backdrop-filter: blur(6px);
  font: 500 .72rem/1 var(--sans); color: var(--ink-faint);
}
.macbar-strip .lit { color: var(--accent); display: inline-flex; align-items: center; gap: .3rem; }
.macbar-strip .lit svg { width: .85rem; height: .85rem; }
.macbar-strip .sp { margin-left: auto; }

/* panel screenshot: capped at its real width, never upscaled */
.panel {
  margin: 0; width: 100%;
  border-radius: 15px; overflow: hidden;
  border: 1px solid var(--rule); background: var(--bg-raised);
  box-shadow: var(--shadow-2);
}
.panel img { width: 100%; display: block; }

/* ------------------------------------------------------------- platforms -- */
.platforms { display: flex; flex-wrap: wrap; gap: .55rem; }
.plat {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .46rem .5rem .46rem .8rem; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--bg-raised);
  font-size: .9rem; color: var(--ink); white-space: nowrap;
}
.plat > svg { width: 1.05rem; height: 1.05rem; flex: none; }
.plat.dim { color: var(--ink-soft); }
.plat.dim > svg { opacity: .55; }
.plat .st {
  font: 600 .6rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .48rem; border-radius: 999px;
}
.plat .st.now { background: color-mix(in srgb, var(--good) 17%, transparent); color: var(--good); }
.plat .st.soon { background: var(--bg-sunk); color: var(--ink-faint); }
.plat .st.lead { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }

/* Inert "coming soon" CTA: a real button shape that plainly isn't clickable,
 * so nothing on this page is a link that goes nowhere. */
.btn-soon {
  border: 1px solid var(--rule-strong); color: var(--ink-soft);
  background: var(--bg-sunk); box-shadow: none; cursor: default;
}
.btn-soon:active { transform: none; }
.btn-soon::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* --------------------------------------------------------- feature blocks -- */
.feature { display: grid; gap: clamp(1.75rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 54rem) {
  .feature.split { grid-template-columns: 1fr 1fr; }
  .feature.split.rev .feature-media { order: -1; }
}
.feature-copy { max-width: 42ch; }
.feature-copy .eyebrow { margin-bottom: .95rem; }
.feature-copy h2 { margin-bottom: 1.05rem; }
.feature-copy > p { color: var(--ink-soft); }
.feature-copy > p + p { margin-top: 1rem; }
.feature-media { display: flex; justify-content: center; }
.feature-media .panel { max-width: 380px; }

/* stacked (prose over one wide shot) for the landscape captures */
.feature.stack .feature-copy { max-width: var(--measure); }
.shot.w-dash { max-width: 60rem; margin-inline: auto; }
.shot.w-map  { max-width: 47rem; margin-inline: auto; }

/* a small pull-quote line under some features */
.evi {
  margin-top: 1.4rem; padding-left: 1rem; border-left: 3px solid var(--accent);
  color: var(--ink-soft); font-size: .9375rem;
}
.evi b { color: var(--ink); font-weight: 560; }

/* -------------------------------------------------------- attributed grid -- */
/* Separate bordered cards, not a seamless hairline grid: a row that doesn't
 * divide evenly then leaves transparent gaps rather than filled empty cells. */
.attr-grid {
  display: grid; gap: .75rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.attr {
  background: var(--bg-raised); padding: 1.15rem 1.2rem;
  border: 1px solid var(--rule); border-radius: 12px;
}
.attr .k {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 560 .95rem/1.2 var(--sans); color: var(--ink); margin-bottom: .4rem;
}
.attr .k .dot { width: .5rem; height: .5rem; border-radius: 2px; background: var(--accent); flex: none; }
.attr p { font-size: .8375rem; color: var(--ink-soft); line-height: 1.5; }

/* --------------------------------------------------------------- get band -- */
.get-card {
  border: 1px solid var(--rule-strong); border-radius: 20px;
  background: var(--bg-raised); box-shadow: var(--shadow-2);
  padding: clamp(1.75rem, 4vw, 2.75rem); text-align: center;
}
.get-card h2 { margin-bottom: .75rem; }
.get-card .lede { max-width: 46ch; margin: 0 auto 1.9rem; }
.get-card .platforms { justify-content: center; margin-bottom: 1.9rem; }
.get-card .hero-cta { justify-content: center; margin-top: 0; }
.get-note { font-size: .8375rem; color: var(--ink-faint); margin-top: 1.15rem; }
