/* Sova landing page, v2.
   Plain CSS, mobile first, one deliberately fixed light theme with two
   black bands. Black, white and grays only. No web fonts: Apple's system
   fonts (SF Pro for text, SF Mono for small labels), with fallbacks.
   No inline styles anywhere (the Content-Security-Policy blocks them). */

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;

  /* Light */
  --paper: #ffffff;
  --ink: #111111;
  --ink-2: #3d3d3d;      /* secondary text, 11:1 on white */
  --muted: #666666;      /* quiet text, 5.7:1 on white, 5.2:1 on panels */
  --line: #e6e6e6;
  --panel: #f4f4f4;      /* soft gray panels */

  /* Black bands */
  --night: #0d0d0d;
  --night-raised: #171717;
  --night-ink: #f5f5f5;
  --night-soft: #c4c4c4; /* 11:1 on night */
  --night-muted: #9a9a9a;/* 6.4:1 on night */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Type scale */
  --text-xs: 0.75rem;        /* 12px labels */
  --text-sm: 0.875rem;       /* 14px */
  --text-base: 1.0625rem;    /* 17px, iOS body size */
  --text-lead: clamp(1.1875rem, 1.1rem + 0.45vw, 1.4375rem);
  --text-h3: clamp(1.1875rem, 1.12rem + 0.35vw, 1.375rem);
  --text-h2: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
  --text-h1: clamp(2.875rem, 1.55rem + 5.6vw, 6.25rem);

  /* Space and shape */
  --gutter: 20px;
  --max: 1200px;
  --section-y: clamp(96px, 12vw, 176px);
  --header-h: 64px;
  --r-panel: clamp(28px, 3vw, 40px);
  --r-card: 24px;
  --r-item: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 600px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1200px) {
  :root { --gutter: 48px; }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  line-height: 1;
  letter-spacing: -0.042em;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.04;
  letter-spacing: -0.034em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen-reader text. The box is taken out of the layout. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.band--night :focus-visible {
  outline-color: var(--night-ink);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

/* Small mono label above headings, with the Sova dot */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.lead {
  max-width: 34em;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Black pill link: Support and the 404 page */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}

.pill:hover {
  background: #333333;
}

.pill:focus-visible {
  outline-offset: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(17, 17, 17, 0.07);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: var(--paper); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  width: 98px;
  height: 22px;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.site-nav a:hover {
  background: var(--panel);
  color: var(--ink);
}

@media (min-width: 900px) {
  .site-nav {
    display: block;
    margin-left: auto;
  }
}

/* ---------- App Store badge (official artwork, never altered) ---------- */
.badge {
  display: inline-flex;
  flex: none;
  border-radius: 9px;
  transition: opacity 0.15s;
}

.badge img {
  display: block;
}

.badge:hover {
  opacity: 0.82;
}

.badge--header {
  padding-block: 2px; /* 44px tap target around the 40px badge */
}

.badge--header img {
  width: 120px;
  height: 40px;
}

.badge--lg img {
  width: 150px;
  height: 50px;
}

/* Badge with the trust line underneath it */
.get {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 36px;
}

.get--center {
  align-items: center;
}

.trust {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Soft gray panels with a phone inside ---------- */
.panel {
  position: relative;
  overflow: hidden;
  overflow: clip;
  border-radius: var(--r-panel);
  background: var(--panel);
}

/* Circles: the Sova motif, kept very quiet */
.disc {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: var(--paper);
  pointer-events: none;
}

.panel .disc {
  top: 120px;
  left: 50%;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
}

/* ---------- Generic phone frame (original, not Apple artwork) ---------- */
.phone {
  --w: 264px;
  --bezel: calc(var(--w) * 0.034);
  --sw: calc(var(--w) - 2 * var(--bezel));
  --sr: calc(var(--sw) * 0.1368);
  position: absolute;
  z-index: 1;
  top: 48px;
  left: 50%;
  width: var(--w);
  padding: var(--bezel);
  border-radius: calc(var(--sr) + var(--bezel));
  background: #111111;
  box-shadow:
    inset 0 0 0 1px #3d3d3d,
    inset 0 0 0 2px #0a0a0a,
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 24px 48px -24px rgba(0, 0, 0, 0.3),
    0 56px 100px -40px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
}

.phone::after {
  content: "";
  position: absolute;
  top: calc(var(--bezel) + var(--sw) * 0.028);
  left: 50%;
  width: calc(var(--sw) * 0.3);
  height: calc(var(--sw) * 0.088);
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
}

/* Same shape as a 1206 x 2622 iPhone screenshot: never stretched or cropped */
.phone__screen {
  position: relative;
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  border-radius: var(--sr);
  background: var(--paper);
}

.phone__screen > picture,
.phone__screen > picture > img,
.phone__screen > img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-y);
}

.section--flush,
.section--tight-top {
  padding-top: 0;
}

.band--night {
  padding-block: var(--section-y);
  background: var(--night);
  color: var(--night-ink);
}

.band--night .eyebrow {
  color: var(--night-muted);
}

.band--night .lead {
  color: var(--night-soft);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(32px, 6vw, 72px);
}

.hero__grid {
  display: grid;
  gap: 48px;
}

.hero h1 {
  max-width: 10.5em;
}

/* Superscript right after the period, in the line. line-height: 0
   keeps it from changing the headline's line boxes. The ::before
   is only the tap target. */
.cite {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0;
  vertical-align: 0.7em;
}

.cite__mark {
  position: relative;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0;
  text-decoration: none;
}

.cite__mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-55%, -55%);
}

.cite__mark:hover {
  color: var(--ink);
}

/* Footnote under the trust line. Quiet on purpose: the App Store
   button stays the thing to tap. */
.source {
  max-width: 38em;
  margin: 28px 0 0;
  /* Clear of the sticky header after the "1" jumps here. */
  scroll-margin-top: calc(var(--header-h) + 40px);
  border-radius: 10px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--muted);
}

/* The jump focuses this note. No box around it: a soft grey fades out.
   Keyboard focus keeps a line under the note (not an outline box).
   The marker and the links inside keep the usual focus ring. */
.source:focus,
.source:focus-visible {
  outline: none;
}

.source:focus-visible {
  box-shadow: inset 0 -2px 0 var(--ink);
}

.source:target {
  border-radius: 10px;
  animation: source-highlight 1.8s ease forwards;
}

@keyframes source-highlight {
  0%,
  40% {
    background-color: var(--panel);
    box-shadow: 0 0 0 8px var(--panel);
  }

  100% {
    background-color: transparent;
    box-shadow: inset 0 -2px 0 var(--ink);
  }
}

.source cite {
  font-style: italic;
}

.source a {
  color: inherit;
}

.source a:hover {
  color: var(--ink);
}

.source__back {
  position: relative;
  margin-right: 0.15em;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  vertical-align: super;
  font-size: 0.75em;
}

/* 44px tap target around the small footnote number, without growing the line. */
.source__back::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

/* The study name is one short line. Stretch its hit area to 44px tall
   without growing the footnote's line boxes. */
.source__study {
  position: relative;
}

.source__study::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 44px;
  transform: translateY(-50%);
}

.hero .lead {
  max-width: 24em;
  margin-top: 26px;
}

.hero__panel {
  height: 470px;
}

@media (min-width: 600px) {
  .hero__panel { height: 560px; }

  .phone--hero,
  .phone--product {
    --w: 300px;
    top: 56px;
  }

  .panel .disc {
    top: 140px;
    width: 440px;
    height: 440px;
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 56px;
  }

  .hero__panel { height: 680px; }

  .phone--hero,
  .phone--product {
    --w: 340px;
    top: 72px;
  }

  .panel .disc {
    top: 160px;
    width: 520px;
    height: 520px;
  }
}

@media (min-width: 1440px) {
  .hero__panel { height: 720px; }

  .phone--hero,
  .phone--product { --w: 360px; }
}

/* Phones only. Most visits are from X, in an in-app browser about
   640–740px tall, where the roomier spacing left the screenshot
   below the first screen. Shorter gaps, and a headline that stays
   two lines, pull the week's circles into that screen. On a 393px
   phone the On track status comes with them. These phone-only rules
   do not change the App Store button, or the spacing from 600px up. */
@media (max-width: 599px) {
  .hero {
    padding-top: 18px;
  }

  .hero .eyebrow {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: 2.125rem;
  }

  .hero .lead {
    margin-top: 14px;
    line-height: 1.4;
  }

  .hero .get {
    margin-top: 24px;
    gap: 10px;
  }

  .hero__grid {
    gap: 18px;
  }

  .hero .phone--hero {
    top: 16px;
  }

  /* The footnote follows the phone, instead of sitting under the
     button, so this screen does not get any taller. */
  .hero__copy {
    display: contents;
  }

  .hero__intro {
    order: 1;
  }

  .hero__panel {
    order: 2;
  }

  .source {
    order: 3;
    margin-top: 4px;
  }
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 32px 28px 36px;
  border-radius: var(--r-card);
  background: var(--panel);
}

.step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: var(--text-sm);
  font-weight: 600;
}

.step__num--filled {
  background: var(--ink);
  color: var(--paper);
}

.step p {
  max-width: 30em;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .step {
    padding: 40px 36px 44px;
  }
}

/* ---------- In the app ---------- */
.product {
  display: grid;
  gap: 48px;
}

.product__copy .lead {
  margin-top: 24px;
}

.legend {
  display: grid;
  gap: 16px;
  max-width: 30em;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  color: var(--ink-2);
}

.legend__mark {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
}

.legend__mark--on {
  background: var(--ink);
}

.legend__mark--score {
  border: 2px dashed var(--ink);
}

.product__panel {
  height: 470px;
}

@media (min-width: 600px) {
  .product__panel { height: 560px; }
}

@media (min-width: 1024px) {
  .product {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 56px;
  }

  .product__panel {
    order: -1;
    height: 680px;
  }
}

@media (min-width: 1440px) {
  .product__panel { height: 720px; }
}

/* Code-built stand-in for the Score screenshot: a month of nights as
   circles, drawn in the app's own style. Sized to the phone screen width. */
.phone__screen--render {
  container-type: inline-size;
}

.render {
  height: 100%;
  padding: 19cqw 7cqw 0;
  background: var(--paper);
}

.render__logo {
  width: 26cqw;
  height: auto;
  margin: 0 auto 16cqw;
}

.render__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0 0 5cqw;
  padding: 0;
  list-style: none;
  font-size: 3.4cqw;
  color: var(--muted);
  text-align: center;
}

.month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 6cqw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.month li {
  position: relative;
  justify-self: center;
  width: 8.6cqw;
  height: 8.6cqw;
  border: 0.5cqw solid #d0d0d0;
  border-radius: 50%;
}

.month li.on {
  border-color: #000000;
  background: #000000;
}

/* A short line joins nights that are On track in a row, as in the app */
.month li.on + li.on:not(:nth-child(7n + 1))::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: calc(86cqw / 7 - 8.6cqw + 1cqw);
  height: 0.6cqw;
  margin-top: -0.3cqw;
  margin-right: -0.5cqw;
  background: #000000;
}

/* ---------- Privacy (black band) ---------- */
.privacy {
  display: grid;
  gap: 56px;
}

.privacy__head h2 {
  max-width: 9em;
}

.facts {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: grid;
  align-content: start;
  gap: 8px;
}

.facts li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--night-ink);
}

.facts p {
  color: var(--night-muted);
}

@media (min-width: 600px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 40px;
  }
}

@media (min-width: 1024px) {
  .privacy {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }
}

/* ---------- Free and Premium ---------- */
.pricing {
  display: grid;
  gap: 40px;
}

.plans {
  display: grid;
  gap: 16px;
  margin: 0;
}

.plan {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 28px 28px 32px;
  border-radius: var(--r-card);
  background: var(--panel);
}

.plan dt {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan dd {
  margin: 0;
  color: var(--ink-2);
}

.plan .plan__main {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.pricing__note {
  margin-top: 16px;
}

.pricing__note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

@media (min-width: 600px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .pricing {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 40px;
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq details {
  border-radius: var(--r-item);
  background: var(--panel);
}

.faq summary {
  padding: 0 24px;
  border-radius: var(--r-item);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: 18px;
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq details[open] .faq__icon::after {
  transform: rotate(0deg);
}

.faq__a {
  max-width: 40em;
  padding: 0 24px 24px;
  color: var(--ink-2);
}

.faq__more {
  margin-top: 24px;
  color: var(--ink-2);
}

.faq__more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 4px;
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .faq {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }

  .faq__head {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    align-self: start;
  }
}

/* ---------- Closing call to action (black band) ---------- */
.cta {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(120px, 15vw, 208px);
  text-align: center;
}

.disc--night {
  top: 50%;
  left: 50%;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  background: var(--night-raised);
  transform: translate(-50%, -50%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 {
  font-size: var(--text-h1);
  line-height: 1;
  letter-spacing: -0.042em;
}

.cta .lead {
  max-width: 22em;
  margin-top: 22px;
}

.cta .trust {
  color: var(--night-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(56px, 7vw, 88px) 40px;
}

/* Support is the most prominent item in the footer */
.help {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.help__q {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.help__link {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .help {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.copyright {
  margin-top: 10px;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- 404 page ---------- */
.notfound {
  padding-block: clamp(96px, 14vw, 176px);
}

.notfound h1 {
  max-width: 12em;
  font-size: var(--text-h2);
  line-height: 1.04;
  letter-spacing: -0.034em;
}

.notfound .lead {
  margin-top: 22px;
}

.notfound .pill {
  margin-top: 36px;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }

  .source:target {
    background-color: var(--panel);
    box-shadow: 0 0 0 8px var(--panel);
  }
}
