/*
 * Winwall site. The colours are the app's Dusk theme (src/styles.css), on the
 * deep ground the welcome tour wears in Dusk (its rail colour). The look is the
 * tour's: statements in the wide heavy italic with a short slanted stroke under
 * them, slanted primary buttons, huge outlined numerals, and clean glass panels
 * over faint rising air. Plan colours are the app's plan tokens. The faces are
 * the ones the app bundles; nothing is loaded from another host.
 */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  /* Dusk, from src/styles.css; the ground is Dusk's rail, as the tour has it. */
  --ground: #222447;
  --ground-2: #2a2c55;
  --surface: #343768;
  --raised: #3e4179;
  --rule: #4a4d86;
  --ink: #f1f0fb;
  --soft: #bdbfe0;
  --primary: #6253f0;
  --primary-hover: #5143e6;
  --primary-text: #b3abff;
  --on-primary: #ffffff;
  --stroke: #8a80f5;
  --chart: #4fd1e8;
  --third: #f0b93a;
  --loss: #ff7a6e;
  --night: #17163a;
  --plus: #2fd3bf;
  --plus-ink: #04221f;
  --plus-text: #5fe3d2;
  --pro: #f6b92e;
  --pro-ink: #241800;
  --pro-text: #f8c94f;

  /* Glass: Dusk's surface, see-through, over a blur of what is behind. */
  --glass: rgba(52, 55, 104, 0.52);
  --glass-strong: rgba(52, 55, 104, 0.72);
  --glass-edge: rgba(189, 191, 224, 0.18);
  --glass-shine: rgba(255, 255, 255, 0.07);

  --font-sans: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, ui-monospace, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(48px, 6vw, 88px);
  --cut: 14px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --motion-quick: 140ms;
  --motion-slow: 560ms;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--night);
}

/* Every page stands on Dusk's deepest colour, so the glass and the app's own screens are the lightest things on it. */
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

p,
ul,
ol,
h1,
h2,
h3,
h4,
figure {
  margin: 0;
}

h1,
h2,
h3,
p,
li,
dd {
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 2px solid var(--primary-text);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

.wrap {
  position: relative;
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Glass ---------------------------------------------------------------- */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 var(--glass-shine),
    0 18px 48px -24px rgba(8, 8, 30, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

/* Air rising behind a first screen: the mark's gesture, large and faint. */
.air {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.air path {
  fill: none;
  stroke: var(--primary-text);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.16;
}
.air path:nth-child(2) {
  stroke: var(--chart);
  opacity: 0.12;
}
.air path:nth-child(4) {
  stroke: var(--chart);
  opacity: 0.08;
}

/* ---- Type ----------------------------------------------------------------- */

/* Wide, heavy italic: the app's display face, for statements and numerals. */
.display {
  font-stretch: 125%;
  font-weight: 900;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--soft);
}

.lede {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--soft);
  max-width: 62ch;
}

.h3 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  font-stretch: 112%;
}

/* A statement, as the tour sets its questions: the line, then a short slanted stroke under it. */
.statement {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.statement .display {
  font-size: clamp(30px, 4.2vw, 54px);
  text-wrap: balance;
}
.statement-md .display {
  font-size: clamp(26px, 3.1vw, 40px);
}
.statement-lg .display {
  font-size: clamp(36px, 5.6vw, 76px);
}
.statement-xl .display {
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: 0.98;
}
.statement .stroke {
  width: clamp(72px, 9vw, 132px);
  height: auto;
}
.statement .stroke path {
  stroke: var(--stroke);
}
@media (prefers-reduced-motion: no-preference) {
  .statement .stroke path {
    stroke-dasharray: 130;
    stroke-dashoffset: 0;
  }
  html.motion .statement .stroke path {
    stroke-dashoffset: 130;
    animation: stroke-draw 620ms cubic-bezier(0.35, 0.1, 0.25, 1) 260ms forwards;
  }
}
@keyframes stroke-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* The tour's huge outlined numerals: only their edge, so what is behind shows through. */
.numeral {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(241, 240, 251, 0.55);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 0.86;
}
.numeral-sm {
  display: inline-block;
  margin-right: 12px;
  font-size: 26px;
  -webkit-text-stroke-width: 1px;
  vertical-align: -6px;
  letter-spacing: 0;
}
.numeral-xl {
  font-size: clamp(120px, 24vw, 280px);
  -webkit-text-stroke-width: 2px;
}

/* A small rounded flag, as the app's "Coming soon" and plan tags. */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(98, 83, 240, 0.28);
  border: 1px solid rgba(179, 171, 255, 0.4);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}

/* ---- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color var(--motion-quick) var(--ease-out),
    border-color var(--motion-quick) var(--ease-out),
    color var(--motion-quick) var(--ease-out),
    transform var(--motion-quick) var(--ease-out);
}
.btn:hover {
  border-color: var(--soft);
  background: rgba(52, 55, 104, 0.6);
}
.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.btn-ghost {
  background: rgba(34, 36, 71, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* The primary button: the app's slanted block of the primary colour. */
.btn-primary {
  border: 0;
  padding-left: calc(22px + var(--cut));
  padding-right: calc(22px + var(--cut));
  background: var(--primary);
  color: var(--on-primary);
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}
.btn-sub {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 12px;
}
.btn-small.btn-primary {
  --cut: 10px;
  padding-left: calc(14px + var(--cut));
  padding-right: calc(14px + var(--cut));
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--primary-text);
  text-decoration: none;
}
.link-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform var(--motion-quick) var(--ease-out);
}
.link-arrow:hover {
  color: var(--ink);
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}

/* ---- Header --------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(34, 36, 71, 0.72);
  border-bottom: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px 32px;
  min-height: 72px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 150px;
  height: auto;
}
.site-nav ul {
  display: flex;
  gap: 4px 28px;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 10px 0;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--soft);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--stroke);
}

@media (max-width: 720px) {
  .site-head .wrap {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 4px;
    gap: 6px 16px;
  }
  .brand img {
    width: 124px;
  }
  .site-nav {
    order: 3;
    width: 100%;
  }
  .site-nav ul {
    justify-content: space-between;
    gap: 0;
  }
  .site-nav a {
    padding: 8px 0;
  }
}

/* ---- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 88px);
  overflow: hidden;
  background:
    radial-gradient(48% 38% at 72% 48%, rgba(98, 83, 240, 0.3), transparent 72%),
    radial-gradient(40% 30% at 10% 8%, rgba(79, 209, 232, 0.1), transparent 70%);
}
.hero-grid {
  z-index: 1;
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}
.hero-text {
  display: grid;
  gap: 24px;
  justify-items: start;
  max-width: 940px;
}
.meta span + span::before {
  content: "·";
  margin: 0 0.7em;
  color: var(--rule);
}
.meta {
  display: flex;
  flex-wrap: wrap;
}
.hero-shot .frame {
  box-shadow:
    inset 0 1px 0 var(--glass-shine),
    0 40px 120px -40px rgba(98, 83, 240, 0.55),
    0 24px 64px -32px rgba(8, 8, 30, 0.8);
}

/* ---- Screenshots ---------------------------------------------------------- */

.frame {
  position: relative;
  padding: 6px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 var(--glass-shine),
    0 24px 64px -32px rgba(8, 8, 30, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  border-radius: var(--radius);
}
figcaption {
  margin-top: 12px;
  color: var(--soft);
  font-size: 14px;
}

/* ---- Sections ------------------------------------------------------------- */

.section {
  position: relative;
  padding: var(--section) 0;
}
.section-tight {
  padding-top: clamp(32px, 4vw, 56px);
}
.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
  max-width: 860px;
}

/* The three differences: glass cards, each with an outlined numeral. */
.diffs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.diff {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
}
.diff .numeral {
  font-size: 72px;
  margin-bottom: 6px;
}
.diff p {
  color: var(--soft);
}
@media (max-width: 900px) {
  .diffs {
    grid-template-columns: 1fr;
  }
  .diff .numeral {
    font-size: 56px;
  }
}

/* The home page's walk through the app: a large picture beside its words, alternating sides. */
.story {
  display: grid;
  gap: clamp(56px, 7vw, 96px);
}
.story-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.story-row.flip {
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}
.story-row.flip .story-shot {
  order: 2;
}
.story-text {
  display: grid;
  gap: 18px;
  justify-items: start;
}
@media (max-width: 900px) {
  .story-row,
  .story-row.flip {
    grid-template-columns: 1fr;
  }
  .story-row.flip .story-shot {
    order: 0;
  }
}

/* ---- Features page -------------------------------------------------------- */

.feature-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.feature-intro {
  display: grid;
  gap: 18px;
  align-content: start;
}
.feature-intro .label {
  display: flex;
  align-items: center;
}
.feature-detail {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px 26px;
}
.points {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.points li {
  position: relative;
  padding-left: 26px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 7px;
  background: var(--chart);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
@media (max-width: 900px) {
  .feature-head {
    grid-template-columns: 1fr;
  }
}

.shots {
  display: grid;
  gap: 28px clamp(20px, 2.5vw, 32px);
  align-items: start;
}
.shots-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shots-three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shots-three > :first-child {
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .shots-two,
  .shots-three {
    grid-template-columns: 1fr;
  }
}

/* Which plans open a feature, read from plans.json. */
.plan-notes {
  display: grid;
  gap: 10px;
  padding: 16px 0 0;
  margin: 0;
  border-top: 1px solid var(--glass-edge);
  list-style: none;
  font-size: 15px;
}
.plan-notes li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--soft);
}
.plan-notes strong {
  color: var(--ink);
}
.plan-notes .tag {
  flex: none;
  min-width: 52px;
  text-align: center;
}
.tag-free {
  color: var(--chart);
}
.tag-plus {
  color: var(--plus-text);
}
.tag-pro {
  color: var(--pro-text);
}

/* Badges earned in Insights, shown as examples. */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 8px;
  background: rgba(240, 185, 58, 0.12);
  border: 1px solid rgba(240, 185, 58, 0.4);
  font-weight: 800;
  font-style: italic;
  font-stretch: 112%;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--third);
}
.badge svg {
  width: 16px;
  height: 16px;
}

/* Jump links at the top of the Features page. */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.jump a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--soft);
}
.jump a:hover {
  color: var(--ink);
  border-color: var(--soft);
}

/* ---- Plans ---------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/* A plan card: glass, with the plan's own colour on its edge, name and figure, as on the app's plans page. */
.plan {
  --plan: var(--ink);
  --plan-ink: var(--ground);
  --plan-text: var(--ink);
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 28px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-top: 3px solid var(--plan);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-shine);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}
.plan-plus {
  --plan: var(--plus);
  --plan-ink: var(--plus-ink);
  --plan-text: var(--plus-text);
  background: linear-gradient(180deg, rgba(47, 211, 191, 0.12), transparent 55%), var(--glass);
}
.plan-pro {
  --plan: var(--pro);
  --plan-ink: var(--pro-ink);
  --plan-text: var(--pro-text);
  background: linear-gradient(180deg, rgba(246, 185, 46, 0.12), transparent 55%), var(--glass);
}
.plan-tag {
  position: absolute;
  top: -14px;
  right: 22px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--plan);
  color: var(--plan-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.plan-name {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.plan-name .display {
  font-size: 34px;
  color: var(--plan-text);
  text-transform: uppercase;
}
.plan-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  background: var(--plan);
  color: var(--plan-ink);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.plan-free .plan-icon {
  background: var(--ink);
  color: var(--ground);
}
.plan-icon svg {
  width: 20px;
  height: 20px;
}
.price {
  display: grid;
  gap: 6px;
  align-content: start;
}
.price-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.price-figure {
  font-size: clamp(44px, 4.6vw, 60px);
  color: var(--plan-text);
  line-height: 1;
}
.price-per {
  color: var(--soft);
  font-size: 15px;
  font-weight: 600;
}
.price-billed {
  display: grid;
  gap: 2px;
  font-size: 15px;
  color: var(--soft);
}
.price-billed strong {
  color: var(--ink);
}
.plan-line {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}
.btn-plan {
  width: 100%;
  border: 0;
  background: var(--plan);
  color: var(--plan-ink);
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
.plan-free .btn-plan {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  clip-path: none;
}
.btn-plan:hover {
  filter: brightness(1.08);
  background: var(--plan);
  color: var(--plan-ink);
}
.plan-free .btn-plan:hover {
  background: rgba(52, 55, 104, 0.6);
  color: var(--ink);
}
.plans-compact .plan {
  grid-template-rows: auto auto 1fr auto;
}

/* Monthly and yearly, switched with two radio buttons and no script. */
.period {
  display: inline-flex;
  flex-wrap: wrap;
  margin: 0 0 36px;
  padding: 4px;
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  background: var(--glass);
}
.period input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.period label {
  padding: 10px 18px;
  border-radius: 7px;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--soft);
}
.period label .save {
  color: var(--plus-text);
}
.period input:checked + label {
  background: var(--ink);
  color: var(--ground);
}
.period input:checked + label .save {
  color: var(--ground);
}
.period input:focus-visible + label {
  outline: 2px solid var(--primary-text);
  outline-offset: 2px;
}
body:has(#period-month:checked) .when-year,
body:has(#period-year:checked) .when-month {
  display: none;
}
body:not(:has(.period)) .when-month {
  display: none;
}

.sale-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 28px;
  padding: 18px 22px;
}
.sale-note p {
  flex: 1 1 320px;
  color: var(--soft);
}
.sale-note strong {
  color: var(--ink);
}

/* The comparison, as on the app's plans page: included, a lighter version, or the plan it comes with. */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  list-style: none;
  color: var(--soft);
  font-size: 15px;
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.mark svg {
  width: 15px;
  height: 15px;
}
.mark-in {
  background: var(--ink);
  color: var(--ground);
}
.mark-in svg {
  stroke-width: 3;
}
.mark-half {
  color: var(--ink);
}
.mark-half svg {
  width: 22px;
  height: 22px;
}
.mark-out {
  color: var(--soft);
}
.cell-plus .mark-in {
  background: var(--plus);
  color: var(--plus-ink);
}
.cell-pro .mark-in {
  background: var(--pro);
  color: var(--pro-ink);
}
.cell-plus .mark-half {
  color: var(--plus);
}
.cell-pro .mark-half {
  color: var(--pro);
}

.compare-wrap {
  overflow-x: auto;
  padding: 4px 8px;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th,
.compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-edge);
  text-align: left;
  vertical-align: middle;
}
.compare thead th {
  font-weight: 800;
}
.compare .col-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
}
.compare .col-name svg {
  width: 18px;
  height: 18px;
}
.compare thead .cell-plus {
  color: var(--plus-text);
}
.compare thead .cell-pro {
  color: var(--pro-text);
}
.compare tbody tr:last-child > * {
  border-bottom: 0;
}
.compare .cell {
  width: 21%;
}
.compare td.cell {
  white-space: normal;
}
.compare td.cell .mark {
  vertical-align: middle;
  margin-right: 8px;
}
.cell-form {
  font-weight: 700;
  font-size: 14px;
  vertical-align: middle;
}
.cell-with {
  font-weight: 500;
  color: var(--soft);
}
.tier-plus {
  color: var(--plus-text);
}
.tier-pro {
  color: var(--pro-text);
}
.compare tbody th {
  font-weight: 400;
}
.compare .feature-name {
  font-weight: 800;
}
.compare .feature-adds {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-size: 14px;
}
.compare .group th {
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}
@media (max-width: 700px) {
  .compare {
    font-size: 14px;
  }
  .compare th,
  .compare td {
    padding: 12px 6px;
  }
  .compare .cell {
    width: auto;
    text-align: center;
  }
  .compare td.cell .mark {
    margin: 0 auto 4px;
    display: grid;
  }
  .compare .col-name {
    font-size: 13px;
  }
  .compare .col-name svg {
    display: none;
  }
  .cell-form {
    display: block;
    font-size: 12px;
    line-height: 1.3;
  }
  .compare tbody th {
    min-width: 128px;
  }
}

.free-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  padding: 0;
  list-style: none;
}
.free-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-edge);
  font-weight: 600;
}
.free-list svg {
  flex: none;
  width: 16px;
  height: 16px;
  transform: translateY(2px);
  color: var(--chart);
}
@media (max-width: 720px) {
  .free-list {
    grid-template-columns: 1fr;
  }
}

.notice-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 28px;
  color: var(--soft);
}
.notice-line svg {
  width: 22px;
  height: 22px;
  color: var(--chart);
}

/* Questions and answers */
.faq {
  display: grid;
  border-top: 1px solid var(--glass-edge);
}
.faq details {
  border-bottom: 1px solid var(--glass-edge);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--primary-text);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  padding: 0 0 24px;
  color: var(--soft);
  max-width: 70ch;
}

/* ---- Coming soon and following along -------------------------------------- */

.coming {
  overflow: hidden;
  background: radial-gradient(70% 80% at 85% 40%, rgba(98, 83, 240, 0.28), transparent 70%);
  border-top: 1px solid var(--glass-edge);
}
.coming-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: center;
}
.coming-text {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.coming-text > p:last-child {
  color: var(--soft);
}
@media (max-width: 900px) {
  .coming-grid {
    grid-template-columns: 1fr;
  }
}

.follow {
  display: grid;
  gap: 10px;
  padding: 14px;
}
.follow-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--glass-edge);
  background: rgba(34, 36, 71, 0.5);
  text-decoration: none;
}
.follow-row > svg:first-child {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(98, 83, 240, 0.3);
  color: var(--ink);
}
.follow-row > span {
  display: grid;
  gap: 2px;
}
.follow-row strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.follow-row > svg:last-child {
  width: 18px;
  height: 18px;
  color: var(--primary-text);
}
a.follow-row:hover {
  border-color: var(--soft);
  background: rgba(52, 55, 104, 0.6);
}
/* A placeholder the owner still has to fill (site/config.mjs): marked with a dashed edge. */
.follow-row.placeholder {
  border-style: dashed;
  border-color: rgba(189, 191, 224, 0.4);
}
.follow-row.placeholder strong {
  color: var(--soft);
  font-weight: 600;
}
.placeholder-text {
  color: var(--soft);
  border-bottom: 1px dashed rgba(189, 191, 224, 0.5);
}
.follow-note {
  padding: 4px 6px 2px;
  color: var(--soft);
  font-size: 14px;
}

/* How the private test works, with the address to copy (site/config.mjs release "private"). */
.test {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.2vw, 32px);
  border-top: 3px solid var(--primary);
}
.test-steps li {
  grid-template-columns: 30px minmax(0, 1fr);
}
.test-steps .step-numeral {
  font-size: 34px;
}
.test-address {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  background: rgba(23, 22, 58, 0.55);
}
.address {
  font-family: var(--font-mono);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
  cursor: text;
}
.test-address .btn svg {
  width: 16px;
  height: 16px;
}
.test-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--glass-edge);
  list-style: none;
  color: var(--soft);
  font-size: 15px;
}
.test-facts li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.test-facts svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--chart);
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 18px;
  color: var(--soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Download ------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 28px;
}
.panel-never {
  border-top: 3px solid var(--chart);
}
.panel-does {
  border-top: 3px solid var(--primary);
}
.checks {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}
.checks li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
}
.checks svg {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--chart);
}
.checks strong {
  display: block;
}
.checks span {
  color: var(--soft);
}
.checks a {
  color: var(--primary-text);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.facts > div {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px 24px;
}
.facts > div + div {
  border-left: 1px solid var(--glass-edge);
}
.facts dd {
  margin: 0;
  font-weight: 700;
}
@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts > div:nth-child(3) {
    border-left: 0;
  }
  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--glass-edge);
  }
}
@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .facts > div + div {
    border-left: 0;
    border-top: 1px solid var(--glass-edge);
  }
}

/* ---- Cancel a subscription ------------------------------------------------ */

/* The steps in the app, each with the tour's outlined numeral. */
.steps {
  display: grid;
  gap: 18px;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.step-numeral {
  font-size: 40px;
  -webkit-text-stroke-width: 1px;
}
.steps strong {
  display: block;
}
.steps div span {
  color: var(--soft);
}
.panel-text {
  color: var(--soft);
}
.panel-text a,
.faq-link {
  color: var(--primary-text);
  font-weight: 700;
}
.pause-line {
  flex-wrap: nowrap;
  align-items: flex-start;
}
.pause-line svg {
  flex: none;
  margin-top: 2px;
}
.checks-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 900px) {
  .checks-wide {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---- Legal pages ---------------------------------------------------------- */

.doc {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  font-size: 14px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.doc-toc ol {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}
.doc-toc a {
  color: var(--soft);
  text-decoration: none;
}
.doc-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}
@media (max-width: 900px) {
  .doc {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .doc-toc {
    position: static;
    max-height: none;
  }
}
.prose {
  max-width: 72ch;
  color: var(--ink);
}
.prose > * + * {
  margin-top: 1em;
}
.prose h1 {
  display: none;
}
.prose h2 {
  margin-top: 2.2em;
  font-size: 25px;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.25;
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 19px;
  font-weight: 800;
}
.prose h4 {
  margin-top: 1.4em;
  font-size: 17px;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.35em;
}
.prose a {
  color: var(--primary-text);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 4px;
}
.prose pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.prose pre code {
  background: none;
  padding: 0;
}
.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--stroke);
  border-radius: 0 10px 10px 0;
  background: var(--glass);
  color: var(--soft);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2em 0;
}
.table-wrap {
  overflow-x: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--surface);
}

.drafting {
  display: grid;
  gap: 20px;
  max-width: 680px;
  padding: 32px;
  border-left: 3px solid var(--third);
}
.drafting a {
  color: var(--primary-text);
}

/* ---- Page heads ----------------------------------------------------------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 72px);
  background: radial-gradient(60% 70% at 85% 30%, rgba(98, 83, 240, 0.26), transparent 70%);
}
.page-head .wrap {
  z-index: 1;
  display: grid;
  gap: 24px;
  justify-items: start;
}
.page-head-sm {
  padding-bottom: 24px;
}

/* ---- 404 ------------------------------------------------------------------ */

.lost {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 140px) 0;
  background: radial-gradient(60% 70% at 70% 40%, rgba(98, 83, 240, 0.26), transparent 70%);
}
.lost .wrap {
  z-index: 1;
  display: grid;
  gap: 24px;
  justify-items: start;
}

/* ---- Footer --------------------------------------------------------------- */

.site-foot {
  padding: 64px 0 40px;
  background: var(--night);
  border-top: 1px solid var(--glass-edge);
  font-size: 15px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.foot-grid img {
  width: 140px;
}
.foot-grid h2 {
  margin-bottom: 12px;
}
.foot-grid ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.foot-grid a {
  color: var(--soft);
  text-decoration: none;
}
.foot-grid a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot-tag {
  margin-top: 16px;
  color: var(--soft);
  max-width: 36ch;
}
.riot-notice {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-edge);
  display: grid;
  gap: 6px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}
.copyright {
  margin-top: 18px;
  color: var(--soft);
  font-size: 13px;
}
@media (max-width: 800px) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---- Motion --------------------------------------------------------------- */

/*
 * Blocks rise into place the first time they scroll into view. Nothing is
 * hidden until the script has started (html.motion), and none of it applies
 * when less motion is asked for.
 */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html.motion [data-reveal]:not(.in) {
    opacity: 0;
  }
  html.motion [data-reveal].in {
    animation: rise-in var(--motion-slow) var(--ease-out) backwards;
    animation-delay: calc(var(--order, 0) * 80ms);
  }
  .hero-text > * {
    animation: rise-in var(--motion-slow) var(--ease-out) backwards;
  }
  .hero-text > :nth-child(2) {
    animation-delay: 60ms;
  }
  .hero-text > :nth-child(3) {
    animation-delay: 120ms;
  }
  .hero-text > :nth-child(4) {
    animation-delay: 180ms;
  }
  .hero-text > :nth-child(5) {
    animation-delay: 240ms;
  }
  .hero-shot {
    animation: rise-in 900ms var(--ease-out) 260ms backwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  a {
    transition: none;
  }
}

/* ---- Narrow screens ------------------------------------------------------- */

@media (max-width: 520px) {
  .btn-sub {
    display: none;
  }
  .meta {
    flex-direction: column;
    gap: 2px;
  }
  .meta span + span::before {
    content: none;
  }
}
