@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: only light;
  --ground: #c4cad0;
  --raised: #d6dbdf;
  --ink: #101215;
  --muted: #333a41;
  --rule: rgba(16, 18, 21, .8);
  --grid: rgba(16, 18, 21, .09);
  --tally: #c62f2f;
  --tally-dark: #a82424;
  --focus: #2a5bab;
  --night: #101215;
  --night-text: #e9ecee;
  --night-muted: #aab2b9;
  --max: 1120px;
  --bars: linear-gradient(90deg,
    #c0c0c0 0 14.285%, #c0c000 0 28.571%, #00c0c0 0 42.857%, #00c000 0 57.142%,
    #c000c0 0 71.428%, #c00000 0 85.714%, #0000c0 0);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background-color: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 "Archivo", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-stretch: 68%; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}
header.site::after {
  content: ""; position: absolute; inset: auto 0 -5px 0; height: 4px; background: var(--bars);
}
header.site::before {
  content: ""; position: absolute; inset: auto 0 -5px 0; height: 4px; z-index: 1;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
}
@supports (animation-timeline: scroll()) {
  header.site::before { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-stretch: 75%; font-weight: 800; font-size: 20px; letter-spacing: .08em; }
.brand img { width: 30px; height: 30px; border-radius: 6px; }
nav.top { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
nav.top a { color: var(--muted); text-decoration: none; padding-block: 8px; }
nav.top a:hover { color: var(--ink); text-decoration: underline; }
nav.top .lang { border: 2px solid var(--ink); padding: 3px 10px; color: var(--ink); font-weight: 700; }
nav.top .lang:hover { background: var(--ink); color: var(--ground); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px;
  background: var(--tally); color: #fff;
  font-stretch: 80%; font-weight: 800; font-size: 19px; letter-spacing: .01em;
  text-decoration: none; border: 2px solid var(--tally); border-radius: 2px;
  transition: background-color .15s, transform .15s;
}
.btn:hover { background: var(--tally-dark); border-color: var(--tally-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* Hero: the test card */
.hero {
  position: relative; padding: 72px 0 112px; overflow: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28px; background: var(--bars); }
.hero .wrap { display: grid; gap: 32px 56px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
h1 { font-size: clamp(46px, 7.4vw, 96px); line-height: .94; margin: 0 0 24px; }
.lead { font-size: 20px; color: var(--muted); max-width: 46ch; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.note { font-size: 15px; color: var(--muted); margin: 0; max-width: 46ch; }

.hero-shot { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(520px, 100%); margin-inline: auto; }
.hero-shot::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
    repeating-radial-gradient(circle at center, transparent 0 46px, rgba(16, 18, 21, .55) 46px 47px),
    var(--raised);
  animation: lock 1s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes lock { from { transform: scale(1.14); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-shot img {
  position: relative; z-index: 1; width: 48%;
  border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 0 14px 30px rgba(16, 18, 21, .35);
}

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--night); color: var(--night-text); }
section.alt .sub, section.alt figcaption { color: var(--night-muted); }
section.alt :focus-visible { outline-color: #f0c419; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1; margin: 0 0 16px; }
.sub { color: var(--muted); margin: 0 0 40px; max-width: 60ch; font-size: 18px; }

/* Features: a spec sheet, not cards */
.grid { border-bottom: 1px solid var(--rule); }
.card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 8px 40px; padding: 22px 0; border-top: 1px solid var(--rule); }
.card h3 { margin: 0; font-size: 26px; line-height: 1.1; }
.card p { margin: 0; color: var(--muted); max-width: 62ch; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 0; }
.shots figure { margin: 0; }
.shots img { border: 2px solid var(--night-text); border-radius: 14px; }
.shots figcaption { font-size: 15px; margin-top: 12px; font-weight: 500; }

/* Free vs Pro */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card.plan { display: block; border: 2px solid var(--ink); padding: 28px; background: var(--raised); }
.card.plan:last-child { background: var(--ground); box-shadow: inset 0 8px 0 var(--tally); padding-top: 40px; }
.tag { display: block; font-stretch: 68%; font-weight: 800; font-size: 32px; line-height: 1; }
.plan ul { list-style: none; margin: 20px 0 0; padding: 0; }
.plan li { position: relative; margin: 0; padding: 10px 0 10px 24px; border-top: 1px solid var(--rule); }
.plan li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 9px; height: 9px; background: var(--ink); }

/* FAQ */
details { border-top: 1px solid var(--night-muted); padding: 0; }
details:last-of-type { border-bottom: 1px solid var(--night-muted); }
summary { cursor: pointer; font-weight: 600; font-size: 19px; padding: 20px 48px 20px 0; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary:hover { text-decoration: underline; text-underline-offset: .25em; }
summary::before, summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 2px; margin-top: -1px; background: var(--night-text); transition: transform .2s; }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0); }
details p { color: var(--night-muted); margin: 0 0 22px; max-width: 62ch; }
details a { color: var(--night-text); }

/* Closing */
.closing { display: grid; justify-items: start; }
.closing .sub { margin-bottom: 28px; }

/* Prose pages (privacy) */
.prose { max-width: 760px; padding: 56px 0 96px; }
.prose h1 { font-size: clamp(40px, 6vw, 64px); }
.prose h2 { font-size: 30px; margin-top: 44px; }
.prose li { margin: 8px 0; color: var(--muted); }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); }

/* Footer */
footer.site { position: relative; background: var(--night); color: var(--night-muted); padding: 48px 0 56px; font-size: 14px; }
footer.site::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: var(--bars); }
footer.site .wrap { display: grid; gap: 14px; padding-top: 10px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }
footer.site a { color: var(--night-text); }
footer.site :focus-visible { outline-color: #f0c419; }
footer.site .wrap > div { max-width: 82ch; }

@media (max-width: 960px) {
  .shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; scrollbar-color: var(--night-muted) transparent; }
  .shots figure { flex: 0 0 200px; scroll-snap-align: start; }
}

@media (max-width: 800px) {
  section { padding: 56px 0; }
  .hero { padding: 40px 0 88px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shot { width: min(360px, 100%); }
  .lead { font-size: 18px; }
  .card { grid-template-columns: 1fr; padding: 18px 0; }
  .card h3 { font-size: 24px; }
  nav.top { gap: 12px; }
  nav.top a.hide-sm { display: none; }
  .cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-shot::before { animation: none; }
  header.site::before { animation: none; transform: none; display: none; }
  .btn, summary::before, summary::after { transition: none; }
}
