/* ==========================================================================
   Small Dial — smalldial.com
   Design system: tokens → base → layout → header → buttons → components →
   home → app page → guides → download → account → support → prose → footer.
   System fonts only, no external resources, light/dark via prefers-color-scheme,
   motion respects prefers-reduced-motion. No JavaScript anywhere.
   The palette follows the apps: macOS system blue, neutral greys, black and white.
   ========================================================================== */

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

:root {
  color-scheme: light dark;

  /* Surfaces and ink */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #e8e8ed;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --ink-4: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;

  /* Inverse panel (the bundle) */
  --inverse-bg: #000000;
  --inverse-bg-2: #1d1d1f;
  --inverse-ink: #f5f5f7;
  --inverse-ink-2: #a1a1a6;
  --inverse-line: rgba(255, 255, 255, 0.16);

  /* Brand accent: macOS system blue, the colour every app uses */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-ink: #0066cc;
  --accent-soft: #e9f2fd;
  --accent-glow: rgba(0, 113, 227, 0.22);
  --on-accent: #ffffff;

  /* Global nav (dark in both schemes, like the apps' menu bar) */
  --nav-bg: rgba(22, 22, 23, 0.82);
  --nav-ink: rgba(255, 255, 255, 0.84);
  --nav-ink-strong: #ffffff;
  --nav-line: rgba(255, 255, 255, 0.1);

  /* Semantic */
  --ok: #1a7f3c;
  --ok-soft: #e4f6ea;
  --warn-ink: #8a5a00;
  --warn-soft: #fff4de;
  --info-ink: #0b58a8;
  --info-soft: #e9f2fd;
  --danger: #d70015;
  --focus: #0071e3;

  /* App tints, taken from each app's icon */
  --tint-sky-a: #1dc5ea;
  --tint-sky-b: #1a5fe2;
  --tint-indigo-a: #585d9c;
  --tint-indigo-b: #2a2d5f;
  --tint-teal-a: #2fc2b8;
  --tint-teal-b: #1757b8;
  --tint-blue-a: #35a9ff;
  --tint-blue-b: #0a5be0;
  --tint-violet-a: #b07cff;
  --tint-violet-b: #4a1fb8;
  --tint-red-a: #ff6b5e;
  --tint-red-b: #b3261e;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-icon: 0 10px 24px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.08);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 980px;

  /* Spacing (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section: clamp(72px, 10vw, 136px);
  --gutter: clamp(20px, 4vw, 32px);
  --nav-h: 52px;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-md: 1.0625rem;
  --t-lg: 1.1875rem;
  --t-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-2xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --t-3xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --t-4xl: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  --t-5xl: clamp(2.875rem, 1.9rem + 4.4vw, 5.25rem);
  --track-tight: -0.015em;
  --track-display: -0.028em;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms;
  --slow: 420ms;
}

/* Dark tokens: chosen in the footer (html[data-theme="dark"]) or inherited from the
   system when nothing was chosen. The two blocks are identical on purpose. */

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #161617;
  --surface: #1d1d1f;
  --surface-2: #1d1d1f;
  --surface-3: #2c2c2e;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --ink-3: #a1a1a6;
  --ink-4: #86868b;
  --line: #424245;
  --line-soft: #2c2c2e;

  --inverse-bg: #f5f5f7;
  --inverse-bg-2: #ffffff;
  --inverse-ink: #1d1d1f;
  --inverse-ink-2: #6e6e73;
  --inverse-line: rgba(0, 0, 0, 0.12);

  --accent: #0a84ff;
  --accent-hover: #2997ff;
  --accent-ink: #2997ff;
  --accent-soft: #0e2a4d;
  --accent-glow: rgba(41, 151, 255, 0.3);

  --nav-bg: rgba(22, 22, 23, 0.86);

  --ok: #30d158;
  --ok-soft: #0f2a18;
  --warn-ink: #ffd60a;
  --warn-soft: #2d2510;
  --info-ink: #64b5ff;
  --info-soft: #0e2a4d;
  --danger: #ff453a;
  --focus: #2997ff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-icon: 0 12px 28px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #161617;
    --surface: #1d1d1f;
    --surface-2: #1d1d1f;
    --surface-3: #2c2c2e;
    --ink: #f5f5f7;
    --ink-2: #d2d2d7;
    --ink-3: #a1a1a6;
    --ink-4: #86868b;
    --line: #424245;
    --line-soft: #2c2c2e;

    --inverse-bg: #f5f5f7;
    --inverse-bg-2: #ffffff;
    --inverse-ink: #1d1d1f;
    --inverse-ink-2: #6e6e73;
    --inverse-line: rgba(0, 0, 0, 0.12);

    --accent: #0a84ff;
    --accent-hover: #2997ff;
    --accent-ink: #2997ff;
    --accent-soft: #0e2a4d;
    --accent-glow: rgba(41, 151, 255, 0.3);

    --nav-bg: rgba(22, 22, 23, 0.86);

    --ok: #30d158;
    --ok-soft: #0f2a18;
    --warn-ink: #ffd60a;
    --warn-soft: #2d2510;
    --info-ink: #64b5ff;
    --info-soft: #0e2a4d;
    --danger: #ff453a;
    --focus: #2997ff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --shadow-icon: 0 12px 28px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.3);
  }
}

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

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

html {
  font-family: var(--font-sans);
  font-size: 100%;
  line-height: 1.47;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: var(--t-md);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
  outline: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: var(--track-tight);
  line-height: 1.1;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: var(--t-4xl);
  letter-spacing: var(--track-display);
  line-height: 1.05;
}

h2 {
  font-size: var(--t-3xl);
  letter-spacing: var(--track-display);
}

h3 {
  font-size: var(--t-xl);
  letter-spacing: -0.012em;
  line-height: 1.2;
}

h4 {
  font-size: var(--t-md);
  letter-spacing: -0.01em;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

p a,
.prose a,
.checklist a,
dd a {
  color: var(--accent-ink);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

p a:hover,
.prose a:hover,
.checklist a:hover,
dd a:hover {
  text-decoration: underline;
}

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

img {
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

strong,
b {
  font-weight: 600;
}

s {
  text-decoration-thickness: 1.5px;
}

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

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.narrow {
  max-width: 780px;
}

.container.prose-width {
  max-width: 720px;
}

.section {
  padding-block: var(--section);
}

.section-sm {
  padding-block: calc(var(--section) * 0.45);
}

.section-sm.pad-bottom {
  padding-bottom: var(--section);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2 {
  font-size: var(--t-4xl);
}

.section-head p {
  margin-top: var(--s-4);
  font-size: var(--t-xl);
  line-height: 1.4;
  color: var(--ink-3);
  text-wrap: pretty;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin: 0 0 var(--s-3);
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
}

.lead {
  font-size: var(--t-xl);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink-3);
  text-wrap: pretty;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: var(--t-sm);
}

.center {
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-pill);
  font-weight: 600;
  transform: translateY(-200%);
}

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

/* --------------------------------------------------------------- header */
/* A slim, dark, translucent bar in both colour schemes. Under 740px the links
   fold into a menu opened by a checkbox (no JavaScript on the site). */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--nav-ink);
}

.site-head-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--nav-ink-strong);
  flex-shrink: 0;
}

.mark {
  width: 22px;
  height: 22px;
  color: currentColor;
}

.mark-disc {
  fill: currentColor;
}

.mark-ind {
  stroke: var(--accent);
}

.site-head .mark-ind {
  stroke: #2997ff;
}

.site-head .brand:hover {
  opacity: 0.85;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-button {
  display: none;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.site-nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--nav-ink);
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}

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

.site-nav a[aria-current="page"] {
  color: var(--nav-ink-strong);
  background: rgba(255, 255, 255, 0.1);
}

.site-nav .nav-cta {
  margin-left: var(--s-2);
}

.site-nav .nav-cta a {
  background: var(--accent);
  color: var(--on-accent);
  padding: 6px 14px;
  font-weight: 500;
}

.site-nav .nav-cta a:hover {
  background: var(--accent-hover);
}

.site-nav :focus-visible {
  outline-color: #2997ff;
}

@media (max-width: 739px) {
  .nav-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: -10px;
    cursor: pointer;
    border-radius: var(--r-pill);
  }

  .nav-button span,
  .nav-button span::before,
  .nav-button span::after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--nav-ink-strong);
    border-radius: 2px;
    transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
  }

  .nav-button span {
    position: relative;
  }

  .nav-button span::before,
  .nav-button span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-button span::before {
    top: -6px;
  }

  .nav-button span::after {
    top: 6px;
  }

  .nav-toggle:checked ~ .nav-button span {
    background: transparent;
  }

  .nav-toggle:checked ~ .nav-button span::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-button span::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-toggle:focus-visible ~ .nav-button {
    outline: 2px solid #2997ff;
    outline-offset: -4px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: var(--s-2) var(--gutter) var(--s-5);
    /* Opaque: a blur here would only sample the (already blurred) header, not the page. */
    background: #1d1d1f;
    border-top: 1px solid var(--nav-line);
    border-bottom: 1px solid var(--nav-line);
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
    animation: nav-open var(--fast) var(--ease-out);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

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

  .site-nav a {
    display: block;
    padding: 14px 0;
    border-radius: 0;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--nav-ink-strong);
  }

  .site-nav a[aria-current="page"] {
    background: none;
    color: #2997ff;
  }

  .site-nav .nav-cta {
    margin: var(--s-4) 0 0;
    border-top: 0;
  }

  .site-nav .nav-cta a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--r-pill);
    font-size: 0.9375rem;
  }
}

@keyframes nav-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

/* -------------------------------------------------------------- buttons */

.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--t-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  -webkit-user-select: none;
  user-select: none;
}

.btn .ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-ink);
  border-color: var(--accent-ink);
}

.btn-secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn-sm {
  --btn-h: 34px;
  padding: 0 16px;
  font-size: var(--t-sm);
}

.btn-lg {
  --btn-h: 52px;
  padding: 0 28px;
  font-size: 1.125rem;
}

.btn.is-disabled {
  background: var(--surface-3);
  color: var(--ink-4);
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}

.buy {
  display: inline-flex;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-ink);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.text-link .ico {
  width: 14px;
  height: 14px;
  transition: transform var(--fast) var(--ease);
}

.text-link:hover {
  text-decoration: underline;
}

.text-link:hover .ico {
  transform: translateX(2px);
}

.actions .text-link {
  font-size: var(--t-lg);
}

.ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ------------------------------------------------------- cards & badges */

.card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
}

.section-alt .card,
.account .card,
.info-grid .card {
  background: var(--surface);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge-neutral {
  background: var(--surface-3);
  color: var(--ink-3);
}

.badge-warn {
  background: var(--warn-soft);
  color: var(--warn-ink);
}

.notice {
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  line-height: 1.5;
  margin-bottom: var(--s-5);
}

.notice a {
  color: inherit;
  text-decoration: underline;
}

.notice-info {
  background: var(--info-soft);
  color: var(--info-ink);
}

.notice-success {
  background: var(--ok-soft);
  color: var(--ok);
}

.notice-warning {
  background: var(--warn-soft);
  color: var(--warn-ink);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: var(--t-sm);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.meta li:not(:last-child)::after {
  content: "·";
  margin-inline: 8px;
  color: var(--ink-4);
}

.checklist {
  display: grid;
  gap: var(--s-3);
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  line-height: 1.45;
  text-wrap: pretty;
}

.checklist .ico {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent-ink);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: var(--s-3);
}

.steps li {
  position: relative;
  padding-left: 40px;
  color: var(--ink-2);
  line-height: 1.5;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--t-xs);
  font-weight: 600;
}

.after {
  margin-top: var(--s-6);
}

.empty {
  color: var(--ink-3);
}

.page-header {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.page-header h1 {
  font-size: var(--t-4xl);
}

.page-header .lead {
  margin-top: var(--s-4);
  max-width: 62ch;
}

/* ------------------------------------------------------------ app icons */
/* The PNG when present; otherwise a squircle in the app's tint with its glyph. */

.appicon {
  flex-shrink: 0;
}

.appicon.img {
  border-radius: 22.37%;
}

.appicon.sm {
  width: 40px;
  height: 40px;
}

.appicon.md {
  width: 64px;
  height: 64px;
}

.appicon.lg {
  width: 104px;
  height: 104px;
}

.appicon.xl {
  width: 128px;
  height: 128px;
}

.appicon.tile {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 22.37%;
  background: linear-gradient(160deg, var(--tile-a), var(--tile-b));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.12);
}

.appicon.tile .glyph {
  width: 56%;
  height: 56%;
}

.tint-sky {
  --tile-a: var(--tint-sky-a);
  --tile-b: var(--tint-sky-b);
}

.tint-indigo {
  --tile-a: var(--tint-indigo-a);
  --tile-b: var(--tint-indigo-b);
}

.tint-teal {
  --tile-a: var(--tint-teal-a);
  --tile-b: var(--tint-teal-b);
}

.tint-blue {
  --tile-a: var(--tint-blue-a);
  --tile-b: var(--tint-blue-b);
}

.tint-violet {
  --tile-a: var(--tint-violet-a);
  --tile-b: var(--tint-violet-b);
}
.tint-red {
  --tile-a: var(--tint-red-a);
  --tile-b: var(--tint-red-b);
}

/* Real screenshots: step pictures from the how-to guides, captured by the media pipeline on
   the app's tint. They keep their own aspect ratio (width/height). */

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--tile-a), var(--tile-b));
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ----------------------------------------------------------------- hero */
/* Centred headline, then the five apps as large icons: the products are the picture. */

.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1200px, 140vw);
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(60% 55% at 50% 0%, var(--accent-glow), transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: var(--t-5xl);
  line-height: 1.02;
  max-width: 14ch;
  animation: rise var(--slow) var(--ease-out) both;
}

.hero .eyebrow {
  animation: rise var(--slow) var(--ease-out) both;
}

.hero .lead {
  margin-top: var(--s-5);
  max-width: 52ch;
  font-size: var(--t-xl);
  color: var(--ink-2);
  animation: rise var(--slow) var(--ease-out) 60ms both;
}

.hero .actions {
  justify-content: center;
  margin-top: var(--s-6);
  animation: rise var(--slow) var(--ease-out) 120ms both;
}

.hero-apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 32px);
  margin-top: clamp(48px, 7vw, 88px);
}

.hero-apps li {
  animation: rise var(--slow) var(--ease-out) both;
}

.hero-apps li:nth-child(1) {
  animation-delay: 160ms;
}

.hero-apps li:nth-child(2) {
  animation-delay: 220ms;
}

.hero-apps li:nth-child(3) {
  animation-delay: 280ms;
}

.hero-apps li:nth-child(4) {
  animation-delay: 340ms;
}

.hero-apps li:nth-child(5) {
  animation-delay: 400ms;
}

.hero-apps a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: clamp(112px, 15vw, 164px);
  padding: var(--s-3);
  border-radius: var(--r-lg);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-align: center;
  text-wrap: balance;
  transition: color var(--fast) var(--ease);
}

.hero-apps .appicon {
  width: clamp(72px, 11vw, 128px);
  height: clamp(72px, 11vw, 128px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform var(--slow) var(--ease-out), filter var(--slow) var(--ease-out);
}

.hero-apps a:hover {
  color: var(--accent-ink);
}

.hero-apps a:hover .appicon {
  transform: translateY(-6px) scale(1.04);
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.28)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

/* ---------------------------------------------------------- products */

.product-grid {
  display: grid;
  gap: var(--s-5);
}

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

.product {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
}

.product:hover {
  box-shadow: var(--shadow-md);
}

.product-head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  color: inherit;
}

.product-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.product-name {
  font-size: var(--t-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color var(--fast) var(--ease);
}

.product-head:hover .product-name {
  color: var(--accent-ink);
}

.product-price {
  font-size: var(--t-sm);
  color: var(--ink-3);
}

.product-pitch {
  margin-top: var(--s-4);
  font-size: var(--t-lg);
  line-height: 1.4;
  color: var(--ink-2);
  text-wrap: pretty;
}

.product .shot {
  margin-top: var(--s-5);
  border-radius: var(--r-lg);
}

.product .shot img,
.feature .shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-points {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.product-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.45;
}

.product-points .ico {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--accent-ink);
}

.product-foot {
  margin-top: auto;
  padding-top: var(--s-5);
}

.product-foot .meta {
  margin-bottom: var(--s-4);
  font-size: var(--t-xs);
}

.product-foot .actions {
  gap: var(--s-3);
}

.product-foot .actions .btn {
  flex: 1 1 auto;
}

/* ---------------------------------------------------------- pricing */
/* The bundle: a black panel on white (white on black in dark mode). */

.pricing {
  position: relative;
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  overflow: hidden;
}

.pricing::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  opacity: 0.9;
  pointer-events: none;
}

.pricing > * {
  position: relative;
}

@media (min-width: 900px) {
  .pricing {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
  }
}

.pricing .eyebrow {
  color: #2997ff;
}

.pricing h2 {
  color: inherit;
  font-size: var(--t-4xl);
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-5);
}

.price-now {
  font-size: var(--t-5xl);
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-was {
  font-size: var(--t-xl);
  color: var(--inverse-ink-2);
}

.pricing .badge {
  background: rgba(41, 151, 255, 0.18);
  color: #2997ff;
}

.pricing .checklist {
  margin-top: var(--s-6);
}

.pricing .checklist li {
  color: var(--inverse-ink);
}

.pricing .checklist .ico {
  color: #2997ff;
}

.pricing .actions {
  margin-top: var(--s-6);
}

.pricing .price-note {
  margin-top: var(--s-4);
  max-width: 34em;
  font-size: var(--t-sm);
  color: var(--inverse-ink-2);
}

.pricing-apps {
  display: grid;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--inverse-bg-2);
  border: 1px solid var(--inverse-line);
}

.pricing-apps li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  font-size: var(--t-md);
  font-weight: 500;
}

.pricing-apps li + li {
  border-top: 1px solid var(--inverse-line);
}

.pricing-apps .appicon {
  width: 32px;
  height: 32px;
}

.pricing-apps a {
  flex: 1;
  transition: color var(--fast) var(--ease);
}

.pricing-apps a:hover {
  color: #2997ff;
}

.pricing-apps .app-price {
  color: var(--inverse-ink-2);
  font-variant-numeric: tabular-nums;
}

.pricing-apps .sum {
  justify-content: space-between;
  color: var(--inverse-ink-2);
  font-weight: 400;
}

.pricing-apps .sum s {
  font-variant-numeric: tabular-nums;
}

.pricing-apps .future {
  justify-content: space-between;
}

.pricing-apps .future .app-price {
  color: #2997ff;
  font-weight: 600;
}

/* ----------------------------------------------------------- facts */

.facts {
  display: grid;
  gap: var(--s-5);
}

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

@media (min-width: 960px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-6);
  }
}

.facts > div {
  padding: var(--s-5) 0 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-3);
}

.facts dd {
  margin: var(--s-3) 0 0;
}

.facts .num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--t-4xl);
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.facts .num small {
  font-size: var(--t-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
}

.facts .desc {
  display: block;
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--ink-3);
  text-wrap: pretty;
}

.trust {
  display: grid;
  gap: var(--s-5);
  margin-top: clamp(40px, 6vw, 72px);
}

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

.trust .card {
  background: var(--bg-alt);
  box-shadow: none;
}

.trust .card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-xl);
}

.trust .card h3 .ico {
  width: 22px;
  height: 22px;
  color: var(--accent-ink);
}

.trust .card p {
  margin-top: var(--s-3);
  color: var(--ink-2);
  line-height: 1.5;
  text-wrap: pretty;
}

.trust .card p + p {
  margin-top: var(--s-3);
}

/* --------------------------------------------------------------- faq */

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

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

.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-size: var(--t-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color var(--fast) var(--ease);
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.faq summary:hover {
  color: var(--accent-ink);
}

.faq summary:hover::after {
  border-color: var(--accent-ink);
}

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

.faq details > p {
  padding: 0 44px 22px 0;
  color: var(--ink-2);
  line-height: 1.55;
  text-wrap: pretty;
}

.faq details > p + p {
  margin-top: -8px;
}

.faq-more {
  margin-top: var(--s-6);
  color: var(--ink-3);
}

/* ------------------------------------------------------------ how-tos */

/* Lists of how-to pages: on the guides page (grouped by app), an app page and a how-to. */
.howto-groups {
  display: grid;
  gap: var(--s-6) var(--s-7);
}

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

.howto-group h3,
.howto-related h2 {
  margin-bottom: var(--s-3);
  font-size: var(--t-md);
}

.howto-group ul,
.howto-related ul {
  border-top: 1px solid var(--line);
}

.howto-group li,
.howto-related li {
  border-bottom: 1px solid var(--line);
}

.howto-group a,
.howto-related a {
  display: block;
  padding: 11px 2px;
  color: var(--ink);
  transition: color var(--fast) var(--ease);
}

.howto-group a:hover,
.howto-related a:hover {
  color: var(--accent-ink);
}

.howto-related {
  margin: var(--s-7) 0;
}

.section-sm > .container > .howto-related:first-child {
  margin-top: 0;
}

/* A how-to's step picture and the link into the guide video at that step. */
.howto .shot {
  margin: var(--s-6) 0 var(--s-3);
}

.howto .howto-moment {
  margin-bottom: var(--s-6);
}

.howto .howto-moment a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.howto .howto-moment .ico {
  width: 16px;
  height: 16px;
}

.howto-moment .muted {
  font-variant-numeric: tabular-nums;
}

/* An app page's questions: one closed section, each question a heading over its answer. */
.app-questions details > h3 {
  margin: var(--s-1) 44px var(--s-2) 0;
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------ app page */

.crumbs {
  display: flex;
  margin-bottom: var(--s-5);
  font-size: var(--t-sm);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  transition: color var(--fast) var(--ease);
}

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

.crumbs .ico {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.app-hero {
  padding-block: clamp(32px, 5vw, 64px) 0;
}

.app-hero-in {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}

@media (min-width: 720px) {
  .app-hero-in {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--s-6);
  }
}

.app-hero h1 {
  font-size: var(--t-5xl);
}

.app-hero .lead {
  margin-top: var(--s-4);
  max-width: 48ch;
  color: var(--ink-2);
}

.app-hero .actions {
  margin-top: var(--s-6);
}

.app-hero .meta {
  margin-top: var(--s-4);
}

.app-hero .appicon.lg {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
}

.app-hero + .container {
  margin-top: clamp(40px, 6vw, 72px);
}

/* The app page's screen recording: the how-to video, at no more than about its own size. */

.guide-video.app-video {
  max-width: 880px;
  margin-inline: auto;
}

.guide-link {
  margin-top: var(--s-5);
  text-align: center;
}

.guide-link .muted {
  font-variant-numeric: tabular-nums;
  color: inherit;
  opacity: 0.7;
}

.intro {
  max-width: 760px;
}

.intro p {
  font-size: var(--t-xl);
  line-height: 1.42;
  color: var(--ink-2);
  text-wrap: pretty;
}

.intro p:first-child {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.intro p + p {
  margin-top: var(--s-5);
}

.feature-grid {
  display: grid;
  gap: var(--s-4);
}

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

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-5);
  }
}

.feature {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature .idx {
  display: block;
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
}

.feature h3 {
  font-size: var(--t-lg);
}

.feature p {
  margin-top: var(--s-2);
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* A feature tile with a real screenshot: the picture runs edge to edge above the text. */

.feature.has-shot {
  padding: 0;
  overflow: hidden;
}

.feature.has-shot .shot {
  border-radius: 0;
}

.feature.has-shot .feature-text {
  padding: clamp(20px, 3vw, 28px);
}

.info-grid {
  display: grid;
  gap: var(--s-5);
}

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

.info-card {
  background: var(--bg-alt);
  box-shadow: none;
}

.info-card h2 {
  font-size: var(--t-xl);
  margin-bottom: var(--s-4);
}

.info-card .checklist li {
  font-size: var(--t-sm);
}

.attribution {
  margin-top: var(--s-5);
  font-size: var(--t-xs);
  color: var(--ink-4);
}

.buy-panel {
  display: grid;
  gap: var(--s-5);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: var(--bg-alt);
}

@media (min-width: 900px) {
  .buy-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s-7);
  }
}

.buy-panel h2 {
  font-size: var(--t-2xl);
}

.buy-panel .price-tag {
  color: var(--ink-3);
  font-weight: 400;
}

.buy-panel p {
  margin-top: var(--s-3);
  color: var(--ink-2);
  text-wrap: pretty;
}

.buy-panel .actions {
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-3);
}

.buy-panel .buy,
.buy-panel .buy .btn,
.buy-panel .actions .btn {
  width: 100%;
}

@media (min-width: 900px) {
  .buy-panel .actions {
    min-width: 260px;
  }
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-5);
  font-size: var(--t-sm);
  color: var(--ink-3);
}

/* --------------------------------------------------------------- guides */
/* How-to guides: the narrated video on the app's tint, chapters, then each step with its
   real screenshot. Video, poster and pictures keep their own aspect ratio (width/height). */

.guide-hero {
  padding-block: clamp(32px, 5vw, 64px) var(--s-6);
}

.guide-hero h1 {
  font-size: var(--t-4xl);
  max-width: 20ch;
}

.guide-hero .lead {
  margin-top: var(--s-4);
  max-width: 60ch;
}

.guide-watch {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}

@media (min-width: 1040px) {
  .guide-watch {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.guide-video,
.guide-step-media,
.guide-thumb {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--tile-a), var(--tile-b));
  box-shadow: var(--shadow-md);
}

.guide-video .film-credits {
  padding: 10px 16px;
  font-size: var(--t-xs);
  line-height: 1.45;
  color: var(--ink-3);
  background: var(--surface);
}

.guide-video video,
.guide-step-media img,
.guide-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-chapters h2 {
  font-size: var(--t-md);
  margin-bottom: var(--s-3);
}

.guide-chapters ol {
  margin: 0 0 var(--s-3);
  border-top: 1px solid var(--line);
}

.guide-chapters li {
  border-bottom: 1px solid var(--line);
}

.guide-chapters a {
  display: flex;
  gap: var(--s-3);
  padding: 11px 2px;
  font-size: var(--t-sm);
  color: var(--ink);
  transition: color var(--fast) var(--ease);
}

.guide-chapters a:hover {
  color: var(--accent-ink);
}

.guide-chapters .time {
  min-width: 3em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-4);
}

.guide-steps {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
}

.guide-step {
  display: grid;
  gap: var(--s-5);
  align-items: center;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

@media (min-width: 880px) {
  .guide-step {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-7);
  }
}

.guide-step .idx {
  display: block;
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
}

.guide-step h3 {
  font-size: var(--t-2xl);
  margin-bottom: var(--s-3);
}

.guide-step p {
  color: var(--ink-2);
  line-height: 1.5;
  text-wrap: pretty;
  max-width: 50ch;
}

.guide-grid {
  display: grid;
  gap: var(--s-5);
}

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

.guide-card {
  display: grid;
  gap: var(--s-3);
  color: var(--ink);
}

.guide-thumb {
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
}

.guide-card:hover .guide-thumb {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.guide-card:hover strong {
  color: var(--accent-ink);
}

.guide-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 var(--s-1);
}

.guide-card-text strong {
  font-size: var(--t-lg);
  transition: color var(--fast) var(--ease);
}

.guide-card-text .muted {
  font-size: var(--t-sm);
}

/* ------------------------------------------------------------- download */

.download-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.download-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4) var(--s-5);
  align-items: center;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .download-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

.download-row h2 {
  font-size: var(--t-xl);
}

.download-row h2 a:hover {
  color: var(--accent-ink);
}

.download-info > p {
  margin-top: 4px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.download-info .meta {
  margin-top: var(--s-2);
  font-size: var(--t-xs);
}

.download-action {
  grid-column: 2;
}

@media (min-width: 640px) {
  .download-action {
    grid-column: auto;
  }
}

.how-to {
  margin-top: var(--s-7);
  background: var(--bg-alt);
  box-shadow: none;
}

.how-to h2 {
  font-size: var(--t-xl);
  margin-bottom: var(--s-4);
}

.how-to .muted {
  margin-top: var(--s-4);
  font-size: var(--t-sm);
}

/* ------------------------------------------------------------ changelog */

.changelog {
  display: grid;
  gap: var(--s-6);
}

.release {
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.release header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-3);
}

.release h2 {
  font-size: var(--t-xl);
}

.release header .muted {
  font-size: var(--t-sm);
}

.release-notes > :first-child {
  margin-top: 0;
}

.release-notes > :last-child {
  margin-bottom: 0;
}

.release-notes h4 {
  margin-top: var(--s-4);
}

/* --------------------------------------------------------------- forms */

.form-card {
  display: grid;
  gap: var(--s-3);
  background: var(--bg-alt);
  box-shadow: none;
}

.form-card label {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
}

.form-card input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--t-md);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.form-card input::placeholder {
  color: var(--ink-4);
}

.form-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-card input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  font-size: var(--t-sm);
  color: var(--danger);
}

.field-hint {
  font-size: var(--t-sm);
  color: var(--ink-3);
}

.form-card .btn {
  justify-self: start;
  margin-top: var(--s-2);
}

/* /feedback: topic, app (only for "An app"), message with policy hints, optional email. */

.form-card textarea,
.form-card select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-md);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.form-card select {
  height: 50px;
  padding-block: 0;
}

.form-card textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}

.form-card textarea::placeholder {
  color: var(--ink-4);
}

.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-card textarea[aria-invalid="true"],
.form-card select[aria-invalid="true"] {
  border-color: var(--danger);
}

.form-card .optional {
  font-weight: 400;
  color: var(--ink-3);
}

.topic-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.topic-field legend {
  margin-bottom: var(--s-3);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.form-card .choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--t-md);
  font-weight: 400;
  cursor: pointer;
}

.form-card .choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.form-card .choice input {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.form-card .choice input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

.topic-field[aria-invalid="true"] .choice {
  border-color: var(--danger);
}

.app-field {
  display: grid;
  gap: var(--s-3);
}

/* Browsers with :has() show the app list only for "An app"; others always show it. */
.feedback-form:not(:has(#topic-app:checked)) .app-field {
  display: none;
}

.feedback-hints {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 14px 18px;
  list-style: none;
  border-radius: var(--r-md);
  background: var(--info-soft);
  color: var(--info-ink);
  font-size: var(--t-sm);
  line-height: 1.5;
}

.feedback-hints li[hidden],
.feedback-hints:not(:has(li:not([hidden]))) {
  display: none;
}

.feedback-hints .text-link {
  white-space: nowrap;
}

.account > .feedback-hints {
  margin-bottom: var(--s-5);
}

/* The hidden field only bots fill in. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------------------------------------------------------- account */

.account {
  padding-block: clamp(40px, 6vw, 80px);
}

.account > p,
.account > ol + p {
  margin-top: var(--s-4);
  color: var(--ink-2);
}

.account > .refund-confirm + p {
  font-size: var(--t-sm);
}

.account h2 {
  margin-top: var(--s-7);
  margin-bottom: var(--s-4);
  font-size: var(--t-2xl);
}

.account .card h2,
.account .page-header h1 {
  margin-top: 0;
}

.key-box {
  display: grid;
  gap: 6px;
  margin: var(--s-5) 0;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--bg-alt);
}

.key-label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.license-key {
  font-family: var(--font-mono);
  font-size: clamp(1.0625rem, 0.8rem + 1.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}

.install-all {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin: var(--s-5) 0;
}

.account > .install-all p,
.install-all p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.product-downloads {
  display: grid;
  margin-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.product-downloads li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}

.product-downloads .pd-name {
  flex: 1;
  font-weight: 500;
}

.spinner {
  width: 28px;
  height: 28px;
  margin: var(--s-6) 0;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.signout {
  margin-top: var(--s-7);
}

.license-card {
  margin-top: var(--s-5);
}

.license-card.is-revoked {
  opacity: 0.72;
}

.license-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}

.license-head h2 {
  font-size: var(--t-xl);
  margin: 0;
}

.license-head .muted {
  margin-top: 4px;
  font-size: var(--t-sm);
}

.license-card .key-box {
  margin: var(--s-5) 0;
}

.machines {
  display: grid;
  border-top: 1px solid var(--line);
}

.machines li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}

.machines li > div {
  display: grid;
  gap: 2px;
}

.machines .muted {
  font-size: var(--t-sm);
}

.purchases {
  margin-top: var(--s-5);
}

.purchases-head h2 {
  margin: 0;
  font-size: var(--t-xl);
}

.purchases-head .muted {
  margin-top: 4px;
  font-size: var(--t-sm);
}

.purchase-list {
  display: grid;
  margin-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.purchase {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}

.purchase-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}

.purchase-main {
  display: grid;
  gap: 2px;
}

.purchase-main .muted {
  font-size: var(--t-sm);
}

.purchase-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.purchase-action .muted {
  font-size: var(--t-sm);
}

.purchase-note {
  margin-top: var(--s-2);
  font-size: var(--t-sm);
  color: var(--ink-3);
}

.refund-summary {
  background: var(--bg-alt);
  box-shadow: none;
}

.refund-facts {
  display: grid;
  gap: var(--s-3);
}

.refund-facts > div {
  display: grid;
  gap: 2px;
}

@media (min-width: 560px) {
  .refund-facts > div {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: var(--s-4);
  }
}

.refund-facts dt {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-3);
}

.refund-facts dd {
  margin: 0;
}

.refund-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

/* -------------------------------------------------------------- support */

.tile-grid {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}

@media (min-width: 640px) {
  .tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tile {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--bg-alt);
  box-shadow: none;
  transition: background var(--fast) var(--ease), transform var(--slow) var(--ease-out);
}

.tile:hover {
  background: var(--surface-3);
  transform: translateY(-2px);
}

.tile h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-lg);
}

.tile h2 .ico {
  width: 16px;
  height: 16px;
  color: var(--accent-ink);
}

.tile p {
  font-size: var(--t-sm);
  color: var(--ink-3);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- prose */

.prose {
  color: var(--ink-2);
  line-height: 1.6;
}

.prose h2 {
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
  font-size: var(--t-2xl);
  color: var(--ink);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--s-6);
  margin-bottom: var(--s-2);
  font-size: var(--t-lg);
  color: var(--ink);
}

.prose h4 {
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
  color: var(--ink);
}

.prose p + p {
  margin-top: var(--s-4);
}

.prose ul,
.prose ol {
  margin: var(--s-4) 0;
  padding-left: 22px;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: var(--s-2);
}

.prose li::marker {
  color: var(--ink-4);
}

.prose strong {
  color: var(--ink);
}

.prose code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--ink);
}

/* ---------------------------------------------------------------- legal */

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}

.legal-nav a {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

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

.legal-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--bg);
}

.legal h2 {
  margin-top: var(--s-7);
}

/* ---------------------------------------------------------------- error */

.error-page {
  padding-block: clamp(64px, 10vw, 128px);
  text-align: center;
}

.error-page .mark {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--s-5);
  color: var(--ink);
}

.error-page .code {
  display: block;
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.error-page h1 {
  font-size: var(--t-4xl);
}

.error-page .lead {
  margin: var(--s-4) auto 0;
  max-width: 48ch;
}

.error-page .actions {
  justify-content: center;
  margin-top: var(--s-6);
}

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

.site-foot {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  padding: clamp(40px, 5vw, 64px) 0 var(--s-6);
  font-size: var(--t-sm);
}

.foot-grid {
  display: grid;
  gap: var(--s-6) var(--s-5);
}

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

  .foot-brand {
    grid-column: 1 / -1;
  }
}

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

  .foot-brand {
    grid-column: auto;
    padding-right: var(--s-6);
  }
}

.foot-brand .brand {
  color: var(--ink);
}

.foot-brand .mark-ind {
  stroke: var(--accent);
}

.foot-brand p {
  margin-top: var(--s-4);
  color: var(--ink-3);
  max-width: 40ch;
  text-wrap: pretty;
}

.foot-brand p a {
  color: var(--ink-2);
}

.foot-grid h2 {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s-3);
}

.foot-grid ul {
  display: grid;
  gap: 8px;
}

.foot-grid li a {
  color: var(--ink-3);
  transition: color var(--fast) var(--ease);
}

.foot-grid li a:hover {
  color: var(--ink);
}

.foot-fine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.foot-fine p {
  font-size: var(--t-xs);
  color: var(--ink-4);
  max-width: 70ch;
  text-wrap: pretty;
}

/* The appearance switch: a segmented control whose selected segment is the
   choice stored in <html data-theme> (none = Auto). */

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}

.theme-switch-label {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--ink-3);
}

.theme-switch-options {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
}

.theme-switch button {
  padding: 5px 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-3);
  font-size: var(--t-xs);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.theme-switch button:hover {
  color: var(--ink);
}

:root:not([data-theme]) .theme-switch button[value="auto"],
:root[data-theme="light"] .theme-switch button[value="light"],
:root[data-theme="dark"] .theme-switch button[value="dark"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------ privacy choices */

.choice-card {
  background: var(--bg-alt);
  box-shadow: none;
}

.choice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.choice-head h2 {
  font-size: var(--t-xl);
}

.choice-card p {
  margin-top: var(--s-3);
  color: var(--ink-2);
  text-wrap: pretty;
}

.choice-card .actions {
  margin-top: var(--s-5);
}

.choice-notes {
  margin-top: var(--s-7);
}

/* ------------------------------------------------------ light and dark */
/* The same cards captured in light and in dark (real screenshots on transparency, from
   media/storyboards/appearance/), each on the page colour it was captured over: these panels
   keep their colours in either site theme. */

.scheme-pair {
  display: grid;
  gap: var(--s-5);
}

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

.scheme {
  display: grid;
  justify-items: center;
  align-content: start;
  margin: 0;
  padding: clamp(20px, 3vw, 32px) clamp(12px, 3vw, 32px);
  border-radius: var(--r-xl);
}

.scheme figcaption {
  justify-self: start;
  font-size: var(--t-sm);
  font-weight: 600;
}

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

/* Each picture carries its shadow's transparent margin; let neighbours share it. */
.scheme img + img {
  margin-top: -56px;
}

.scheme figcaption + img {
  margin-top: -32px;
}

.scheme-light {
  background: #f5f5f7;
  color: #1d1d1f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.scheme-dark {
  background: #1d1d1f;
  color: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.scheme-note {
  margin-top: var(--s-6);
  text-align: center;
  color: var(--ink-3);
}

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
