/* StoiK site.
   Colors come from the app: gui's dark theme (Visuals::dark) and ecu-app's
   map shading (map_grid.rs `shade`), so the page matches the screenshots. */

:root {
  --bg: #131316;              /* extreme_bg_color */
  --surface: #1b1b1f;         /* panel_fill */
  --surface-raised: #212126;  /* window_fill */
  --line: #2c2c33;            /* code_bg_color */
  --line-strong: #3c3c45;     /* window_stroke */
  --text: #f0f0f4;
  --text-body: #cdcdd5;
  --text-muted: #9d9daa;
  --accent: #4c91ff;          /* accent */
  --accent-strong: #265caa;   /* selection */
  --accent-hover: #2d6ac0;
  --link: #64aaff;            /* hyperlink_color */
  --warn: #ffbe50;            /* warn_fg_color */
  --success: #5ac878;         /* success_fg_color */
  --map-green: #5ab45a;       /* hex view map shade */
  --compare: #e650e6;         /* COMPARE_COLOR */

  /* Map shades from low to high: `shade` at 0, 0.25, 0.5, 0.75 and 1,
     and the same hues brighter for small marks. */
  --heat-0: #272966;
  --heat-1: #276664;
  --heat-2: #286627;
  --heat-3: #666527;
  --heat-4: #662727;
  --heat-bright-0: #4c51c7;
  --heat-bright-1: #4cc7c3;
  --heat-bright-2: #4ec74c;
  --heat-bright-3: #c7c64c;
  --heat-bright-4: #c74c4c;

  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Cascadia Code", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --content-width: 1180px;
  --header-height: 64px;
}

/* Base */

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

code {
  padding: 0.05em 0.35em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

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

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.button-primary {
  border-color: #3a74c8;
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgb(76 145 255 / 0.65);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 0.04);
  color: var(--text);
}

.button-ghost:hover {
  border-color: #50505c;
  background: rgb(255 255 255 / 0.08);
}

.button-small {
  min-height: 36px;
  padding: 6px 14px;
  border-color: var(--line-strong);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.9375rem;
}

.button-small:hover {
  border-color: #50505c;
  background: #2a2a31;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(19 19 22 / 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-height);
}

/* The logo, from assets/logo/. */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.site-nav a,
.footer-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.site-nav a:hover,
.footer-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }
}

/* Hero */

/* Clipped sideways only: the map behind is wider than the page, and the
   screenshot's shadow may hang below. */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: clamp(56px, 9vw, 112px);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(27 27 31 / 0.8);
  color: var(--text-body);
  font-size: 0.875rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgb(255 190 80 / 0.18);
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 1.3rem + 5.4vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.title-accent {
  background: linear-gradient(90deg, var(--link) 0%, var(--heat-bright-1) 55%, var(--heat-bright-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 640px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.lead code {
  font-size: 0.85em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-shot {
  position: relative;
  max-width: 1100px;
  margin: clamp(56px, 9vw, 128px) auto 0;
}

/* A smooth map in the app's shades, laid flat behind the screenshot. Its
   far edge starts below the buttons above; it's sized from the screenshot so
   that its near edge stays behind it on narrow screens too. */
.hero-map {
  position: absolute;
  z-index: -1;
  top: clamp(-110px, -7vw, -40px);
  left: 50%;
  width: 150%;
  aspect-ratio: 1082 / 350;
  background: url("img/hero-map.svg") center / contain no-repeat;
  opacity: 0.38;
  transform: translateX(-50%) perspective(900px) rotateX(52deg);
  transform-origin: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 50% 45%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 70% at 50% 45%, #000 25%, transparent 100%);
  pointer-events: none;
}

/* Glow behind the screenshot, over the map: the app's accent and compare
   colors. */
.hero-shot::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -6% 8% 30%;
  background:
    radial-gradient(closest-side at 30% 50%, rgb(76 145 255 / 0.38), transparent),
    radial-gradient(closest-side at 75% 45%, rgb(230 80 230 / 0.16), transparent);
  filter: blur(48px);
}

/* Screenshots */

.shot {
  display: block;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.shot img {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.5),
    0 24px 60px -24px rgb(0 0 0 / 0.9);
  transition: border-color 0.2s;
}

.shot:hover img {
  border-color: #55555f;
}

figure {
  margin: 0;
}

/* Principles */

.principles {
  padding-top: clamp(64px, 9vw, 112px);
}

/* 1, 2 or 4 across: never 3 and a lone fourth. */
.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

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

@media (min-width: 1024px) {
  .principles-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.principle {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.025), transparent 70%), var(--surface);
}

.icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle h3 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
  font-weight: 650;
}

.principle p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Sections */

.section {
  padding-block: clamp(80px, 11vw, 136px);
}

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

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.3vw, 2.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Features */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(32px, 5vw, 64px);
}

.feature + .feature {
  border-top: 1px solid var(--line);
}

/* The section's own spacing is enough above the first and below the last. */
.section-head + .feature {
  padding-top: 0;
}

.feature:last-child {
  padding-bottom: 0;
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .feature:nth-of-type(even) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .feature:nth-of-type(even) .feature-text {
    order: 2;
  }
}

.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--label-color);
  box-shadow: 0 0 14px var(--label-color);
}

.label-blue {
  --label-color: var(--accent);
}

.label-green {
  --label-color: var(--map-green);
}

.label-amber {
  --label-color: var(--warn);
}

.label-magenta {
  --label-color: var(--compare);
}

.feature h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-text > p:not(.feature-label) {
  margin-top: 16px;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 24px;
  font-size: 0.975rem;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--heat-1);
  box-shadow: inset 0 0 0 1px var(--heat-bright-1);
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

/* Two across, the wide hex view taking a row of its own; three on wide
   screens. */
@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery figure:last-child {
    grid-column: 1 / -1;
  }
}

/* Three across, all cut to the usual screenshot's shape so the captions
   line up; the full image opens on click. */
@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery figure:last-child {
    grid-column: auto;
  }

  .gallery img {
    aspect-ratio: 1100 / 640;
    object-fit: cover;
    object-position: left top;
  }
}

.gallery figcaption {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Cards */

.cards-two,
.cards-three {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

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

/* One or three across: never two and a lone third. */
@media (min-width: 960px) {
  .cards-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 650;
}

.card p {
  color: var(--text-body);
}

.card-warn {
  border-color: rgb(255 190 80 / 0.35);
  background: linear-gradient(180deg, rgb(255 190 80 / 0.07), transparent 65%), var(--surface);
}

.card-warn h3 {
  color: var(--warn);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.tag-now {
  border-color: rgb(90 200 120 / 0.45);
  background: rgb(90 200 120 / 0.1);
  color: var(--success);
}

.tag-planned {
  border-color: rgb(76 145 255 / 0.45);
  background: rgb(76 145 255 / 0.1);
  color: var(--link);
}

.tag-out {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 0.04);
  color: var(--text-muted);
}

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

.list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.975rem;
}

.list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.list-now li::before {
  background: var(--success);
}

.list-planned li::before {
  border: 1.5px solid var(--link);
}

.list-out li {
  color: var(--text-muted);
}

.list-out li::before {
  top: 0.95em;
  height: 1.5px;
  border-radius: 1px;
  background: var(--text-muted);
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 920px;
}

/* The plan takes the wider column; the demo card sits beside it. */
@media (min-width: 800px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }
}

.pricing-card {
  border-color: rgb(76 145 255 / 0.4);
  background: linear-gradient(180deg, rgb(76 145 255 / 0.08), transparent 60%), var(--surface);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
  color: var(--text);
  font-family: var(--font-display);
}

.price-amount {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-period {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.price-note {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.pricing-card .checks {
  margin: 24px 0 28px;
}

.price-small {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* FAQ */

.faq {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.faq summary:hover {
  color: #fff;
}

.faq details p {
  max-width: 68ch;
  padding-bottom: 22px;
}

/* Contact */

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 88px) var(--gutter);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgb(76 145 255 / 0.18), transparent),
    var(--surface);
  text-align: center;
}

/* A strip in the map shades along the top edge. */
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--heat-bright-0), var(--heat-bright-1), var(--heat-bright-2), var(--heat-bright-3), var(--heat-bright-4));
}

.contact-panel p {
  max-width: 540px;
  margin: 16px auto 32px;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.contact-panel .button {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.footer-brand p {
  margin-top: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: -12px;
}

@media (min-width: 800px) {
  .footer-nav {
    margin-left: 0;
  }
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-note {
  max-width: 80ch;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 16px;
  font-size: 0.875rem;
}

.footer-legal a {
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--text);
}

/* Legal pages: terms.html, privacy.html, refunds.html */

.legal {
  max-width: 760px;
  padding-block: clamp(48px, 7vw, 88px);
}

.legal h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.3vw, 2.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.legal-meta {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-lead {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.legal h2 {
  margin-top: clamp(36px, 5vw, 52px);
  margin-bottom: 12px;
  font-size: 1.375rem;
  font-weight: 650;
}

.legal p + p,
.legal ul + p,
.legal p + ul {
  margin-top: 12px;
}

.legal ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

/* Full-size screenshots */

.lightbox {
  width: fit-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-body);
  box-shadow: 0 40px 100px -20px rgb(0 0 0 / 0.9);
}

.lightbox::backdrop {
  background: rgb(8 8 10 / 0.84);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 18px;
  border-bottom: 1px solid var(--line);
}

.lightbox-caption {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.lightbox-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  color: var(--text);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Both sides auto, so the limits keep the screenshot's proportions. */
.lightbox-image {
  width: auto;
  max-height: calc(100vh - 32px - 60px);
  max-height: calc(100dvh - 32px - 60px);
  margin-inline: auto;
}

/* Motion, only where it's wanted and supported */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }

    /* The hero screenshot lies back a little and straightens as it scrolls in. */
    .hero-shot .shot {
      transform-origin: 50% 0;
      animation: straighten linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes straighten {
  from {
    transform: perspective(1600px) rotateX(16deg) scale(0.96);
  }

  to {
    transform: none;
  }
}
