/* vaultario.app. Amber on near-black, like the app: a saturated hero, floating pill navigation,
   soft-shadowed tiles with large radii, and a few small motions. */

:root {
  --strip-rise: clamp(-4.5rem, -4.6vw, -2.75rem);
  --bg: #0d0c0a;
  --surface: #171512;
  --raised: #211e1a;
  --line: #342f27;
  --text: #f4efe6;
  --muted: #b3aa9b;
  --amber: #f6b24a;
  --amber-hi: #ffd36e;
  --amber-deep: #ee8e24;
  --ink: #1b1206;
  --ink-soft: #4a3410;
  --danger: #ff9b8c;
  --ok: #a8dcab;

  --sans: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 28px;
  --shadow: 0 1.75rem 3.5rem -1.75rem rgb(0 0 0 / 0.75), 0 0.5rem 1rem -0.5rem rgb(0 0 0 / 0.5);

  color-scheme: dark;
}

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

html {
  background: var(--bg);
  scrollbar-color: var(--line) var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  caret-color: var(--amber);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--amber-hi);
}

:focus-visible {
  outline: 2px solid var(--amber-hi);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: min(72rem, 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--amber-hi);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Floating pill navigation */

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.875rem;
  background: rgb(23 21 18 / 0.86);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 999px;
  box-shadow: 0 1rem 2.5rem -1rem rgb(0 0 0 / 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  /* The app's lock screen sets its name in the expanded bold of the system font. */
  font-weight: 700;
  font-stretch: 132%;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 1.875rem;
  height: 1.875rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.5rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav .nav-cta {
  padding: 0.55rem 1.1rem;
  color: var(--ink);
  background: var(--amber);
  border-radius: 999px;
  transition: background-color 0.2s var(--ease-out);
}

.site-nav .nav-cta:hover {
  color: var(--ink);
  background: var(--amber-hi);
}

/* Hero */

.hero {
  position: relative;
  /* Covers the light strip; the dark one is inside. */
  z-index: 1;
  margin-top: -4.25rem;
  padding-block: clamp(8rem, 13vw, 11rem) clamp(6rem, 12vw, 10rem);
  color: var(--ink);
  background:
    radial-gradient(52% 60% at 76% 44%, rgb(255 255 255 / 0.42), transparent 70%),
    linear-gradient(165deg, #ffd978 0%, #f6b24a 46%, #ee8e24 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(2rem, 6vw, 5.5rem)), 0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.375rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 850;
  animation: rise 0.9s var(--ease-out) backwards;
}

.marked {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.marked svg {
  position: absolute;
  left: -2%;
  bottom: -0.26em;
  width: 104%;
  height: auto;
  overflow: visible;
}

.marked path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw 0.9s var(--ease-out) 0.7s backwards;
}

.hero .lede {
  margin-top: 1.75rem;
  max-width: 33rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
  animation: rise 0.9s var(--ease-out) 0.08s backwards;
}

.hero .lede strong {
  color: var(--ink);
  font-weight: 700;
}

.hero .signup {
  animation: rise 0.9s var(--ease-out) 0.16s backwards;
}

.beta-link {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  animation: rise 0.9s var(--ease-out) 0.2s backwards;
}

/* The phone and what floats around it */

.stage {
  position: relative;
  justify-self: center;
  width: min(19.5rem, 78%);
  animation: rise 1.1s var(--ease-out) 0.2s backwards;
}

.phone {
  padding: 9px;
  background: #050505;
  border-radius: 13.5% / 6.3%;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.14) inset,
    0 3.5rem 5rem -2rem rgb(0 0 0 / 0.6),
    0 1rem 2rem -1rem rgb(0 0 0 / 0.45);
}

.phone img {
  width: 100%;
  border-radius: 11.5% / 5.3%;
}

.stage .phone {
  transform: rotate(5deg);
}

/* Hero demo: the lock screen and the vault drawn in index.html, played as one 10-second loop.
   Every part's resting state (no animation) is the lock screen with the pattern drawn. */

.screen {
  overflow: hidden;
  border-radius: 11.5% / 5.3%;
}

.demo {
  width: 100%;
  font-family: var(--sans);
  /* SVG text is painted with fill; color only states what it is for contrast checks. */
  color: #fff;
  --demo: 10s;
  --demo-delay: 0.8s;
}

.demo text {
  fill: #fff;
}

.d-status text {
  font-size: 15px;
  font-weight: 600;
}

.demo .d-word {
  font-size: 31px;
  font-weight: 800;
  font-stretch: 132%;
  letter-spacing: -0.01em;
}

.demo .d-title {
  font-size: 18px;
  font-weight: 600;
}

.demo .d-sub {
  font-size: 12.5px;
  fill: #9b958c;
}

.demo .d-link {
  font-size: 11.5px;
  fill: var(--amber);
}

.d-dots {
  fill: #8a857e;
}

.d-line {
  fill: none;
  stroke: #dca04b;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.d-hit {
  fill: rgb(246 178 74 / 0.2);
  transform-box: fill-box;
  transform-origin: center;
}

.d-hit .d-core {
  fill: var(--amber);
}

.d-finger {
  fill: rgb(255 255 255 / 0.3);
  stroke: rgb(255 255 255 / 0.65);
  stroke-width: 1.5;
  opacity: 0;
  transform: translate(54px, 278px);
}

.d-lock,
.d-vault {
  transform-origin: 165px 359px;
}

.d-vault {
  opacity: 0;
}

.d-btn {
  fill: rgb(255 255 255 / 0.14);
  stroke: rgb(255 255 255 / 0.12);
}

.d-tap {
  fill: rgb(255 255 255 / 0.5);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.demo .d-vtitle {
  font-size: 15px;
  font-weight: 600;
}

.demo .d-select {
  font-weight: 500;
}

.d-ph {
  transform-box: fill-box;
  transform-origin: center;
}

.demo .d-dur {
  font-size: 11px;
  font-weight: 700;
}

/* The loop. The finger reaches a dot every 0.6 s (6 %), so dot n lights at 6n %. */

.demo .d-finger {
  animation: d-finger var(--demo) linear var(--demo-delay) infinite backwards;
}

.demo .d-line {
  animation: d-line var(--demo) linear var(--demo-delay) infinite backwards;
}

.demo .d-hit {
  animation: d-hit var(--demo) var(--ease-out) var(--demo-delay) infinite backwards;
}

/* The first <g> in the lock screen is the grid of dots, so the five lit dots are g 2–6. */
.demo .d-hit:nth-of-type(3) { animation-delay: calc(var(--demo-delay) + 0.6s); }
.demo .d-hit:nth-of-type(4) { animation-delay: calc(var(--demo-delay) + 1.2s); }
.demo .d-hit:nth-of-type(5) { animation-delay: calc(var(--demo-delay) + 1.8s); }
.demo .d-hit:nth-of-type(6) { animation-delay: calc(var(--demo-delay) + 2.4s); }

.demo .d-lock {
  animation: d-lock var(--demo) var(--ease-out) var(--demo-delay) infinite backwards;
}

.demo .d-vault {
  animation: d-vault var(--demo) var(--ease-out) var(--demo-delay) infinite backwards;
}

.demo .d-ph {
  animation: d-ph var(--demo) var(--ease-out) var(--demo-delay) infinite backwards;
}

.demo .d-ph:nth-child(3n + 2) { animation-delay: calc(var(--demo-delay) + 0.05s); }
.demo .d-ph:nth-child(3n) { animation-delay: calc(var(--demo-delay) + 0.1s); }

.demo .d-tap {
  animation: d-tap var(--demo) var(--ease-out) var(--demo-delay) infinite backwards;
}

/* The "Vault locked" card shows while the vault is shut, and steps aside while it is open. */
.stage:has(.demo) .note {
  animation: d-note 10s var(--ease-out) 0.8s infinite backwards;
}

/* site.js adds .is-paused while the phone is off screen. */
.stage.is-paused *,
.stage.is-paused .demo * {
  animation-play-state: paused;
}

.bubble {
  position: absolute;
  display: grid;
  place-items: center;
  gap: 0.25rem;
  width: 6.75rem;
  aspect-ratio: 1;
  padding-top: 0.25rem;
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgb(255 255 255 / 0.46);
  border: 1px solid rgb(255 255 255 / 0.75);
  border-radius: 50%;
  box-shadow: 0 1.25rem 2rem -1rem rgb(0 0 0 / 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}

.bubble .icon {
  width: 2rem;
  height: 2rem;
  align-self: end;
}

.bubble span {
  align-self: start;
}

/* Everything floating around the phone sits over its bezel or an empty part of the
   screen: the wordmark, the pattern and the "Forgot your pattern?" link stay readable. */

.bubble-a {
  left: -30%;
  top: 20%;
}

.bubble-b {
  right: -31%;
  top: 30%;
  animation-delay: -2s;
}

.bubble-c {
  left: -27%;
  bottom: 13%;
  animation-delay: -4s;
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  background: #fffaf0;
  border-radius: 999px;
  box-shadow: 0 1rem 2rem -0.75rem rgb(0 0 0 / 0.32);
  animation: pop 0.6s var(--ease-out) 1.1s backwards;
}

.chip .tick {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
  background: #1f9d55;
  border-radius: 50%;
}

.chip .tick .icon {
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 3;
}

.chip-top {
  left: -16%;
  top: -6.5%;
}

.note {
  position: absolute;
  right: -30%;
  bottom: 13.5%;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 15.5rem;
  padding: 0.75rem 0.875rem;
  color: var(--ink);
  background: #fffaf0;
  border-radius: 18px;
  box-shadow: 0 1.5rem 2.5rem -1rem rgb(0 0 0 / 0.32);
  animation: pop 0.6s var(--ease-out) 1.4s backwards;
}

.note img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  flex: none;
}

.note b {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.note span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Forms */

.signup {
  margin-top: 2.25rem;
  max-width: 31rem;
}

.signup-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.375rem;
  background: #fffaf0;
  border-radius: 999px;
  box-shadow: 0 1.25rem 2.5rem -1.25rem rgb(0 0 0 / 0.3);
}

.field-label {
  display: block;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

input[type="email"],
textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1.1rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.signup-row input[type="email"] {
  min-height: 3rem;
  color: var(--ink);
  background: transparent;
  border-color: transparent;
  border-radius: 999px;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8f8779;
}

.signup-row input::placeholder {
  color: #7a6a4d;
}

input[type="email"]:hover,
textarea:hover {
  border-color: #4a4338;
}

.signup-row input[type="email"]:hover {
  border-color: transparent;
}

input[type="email"]:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-radius: 16px;
  background: var(--raised);
}

.signup-row input[type="email"]:focus-visible {
  outline-color: var(--ink);
  border-radius: 999px;
  background: transparent;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  font: inherit;
  font-weight: 750;
  white-space: nowrap;
  color: var(--ink);
  background: var(--amber);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.button .icon {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 2.5;
  transition: transform 0.25s var(--ease-out);
}

.button:hover {
  background: var(--amber-hi);
  color: var(--ink);
}

.button:hover .icon {
  transform: translateX(3px);
}

.button:active {
  transform: translateY(1px);
}

.button[disabled] {
  background: #a5854a;
  color: var(--ink);
  cursor: progress;
}

.button-dark {
  min-height: 3rem;
  color: var(--amber-hi);
  background: var(--ink);
}

.button-dark:hover {
  color: #fff;
  background: #2b1d08;
}

.button-dark[disabled] {
  color: var(--amber-hi);
  background: #5a4420;
}

.form-note {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.on-amber .form-note {
  color: var(--ink-soft);
}

.on-amber a {
  color: var(--ink);
  font-weight: 600;
}

.on-amber a:hover {
  color: #000;
}

.form-status {
  margin-top: 0.5rem;
  min-height: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-status[data-state="ok"] {
  color: var(--ok);
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.on-amber .form-status[data-state="ok"] {
  color: #0f5a2e;
}

.on-amber .form-status[data-state="error"] {
  color: #8a1c0c;
}

.hp {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Running strip. It is there twice, at the same place and moving together: light on the page, and
   dark inside the hero, whose slanted edge cuts it. So the text changes colour on the edge. */

.hero + .strip {
  margin-top: var(--strip-rise);
}

.strip-ink {
  position: absolute;
  top: calc(100% + var(--strip-rise));
  inset-inline: 0;
}

.strip {
  padding-block: 1.25rem;
  overflow: hidden;
}

.strip ul {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  animation: marquee 72s linear infinite;
}

.strip-ink ul {
  color: var(--ink);
}

.strip li {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
}

.strip li::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--amber);
  border-radius: 50%;
}

.strip-ink li::after {
  background: var(--ink);
}

/* Sections */

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.section h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 820;
}

.section .intro {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  text-wrap: pretty;
}

/* The zero */

.zero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  max-width: 58rem;
  margin-inline: auto;
}

.zero .zero-number {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(8rem, 20vw, 13rem);
  max-width: none;
  margin: 0;
  aspect-ratio: 1;
  color: var(--text);
  font-size: clamp(5rem, 13vw, 9rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1;
}

.zero-number svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.zero-number path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 5;
  stroke-linecap: round;
}

.zero h2 {
  max-width: 16ch;
}

.zero p {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* iPhone Duo: the section says it in words. */

.duo {
  max-width: 46rem;
  margin-inline: auto;
}

.duo h2 {
  text-wrap: balance;
}

.duo p {
  margin-top: 1.25rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.125rem;
  text-wrap: pretty;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-hi);
  background: #2b2416;
  border-radius: 999px;
}

.steps h3 {
  margin-top: 1.125rem;
  font-size: 1.4375rem;
  letter-spacing: -0.025em;
}

.steps p {
  margin-top: 0.625rem;
  color: var(--muted);
}

/* Tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 21rem;
  padding: 1.75rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tile h3 {
  font-size: 1.4375rem;
  letter-spacing: -0.025em;
}

.tile p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.tile .art {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 9rem;
  margin-bottom: 1.25rem;
}

.tile-wide {
  grid-column: span 2;
}

.tile-amber {
  color: var(--ink);
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(255 255 255 / 0.4), transparent 65%),
    linear-gradient(150deg, #ffd978, #f09a2c);
  border-color: transparent;
}

.tile-amber p {
  color: var(--ink-soft);
}

.tile-key {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.tile-key .art {
  flex: 0 0 44%;
  margin: 0;
}

.tile-key .art svg {
  width: min(15rem, 100%);
}

.tile-key .pattern-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.tile-shot {
  padding-bottom: 0;
}

.tile-shot .art {
  align-items: start;
  margin: 1.5rem 0 0;
}

.tile-shot .phone {
  width: 78%;
  margin-bottom: -58%;
  padding: 7px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pills li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem 0.5rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--raised);
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 999px;
}

.pills .tick {
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--ink);
  background: var(--amber);
  border-radius: 50%;
}

.pills .tick .icon {
  width: 0.8125rem;
  height: 0.8125rem;
  stroke-width: 3;
}

.cover {
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 9 / 16;
  background: #000;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 18px;
  box-shadow: 0 1.5rem 2.5rem -1rem #000;
  transform: rotate(-4deg);
}

.cover img {
  width: 44%;
  border-radius: 22%;
}

.code {
  padding: 1rem 1.25rem;
  font-family: var(--mono);
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--amber-hi);
  background: #0a0908;
  border: 1px dashed #5d4a22;
  border-radius: 16px;
}

.big-icon {
  display: grid;
  place-items: center;
  width: 6.5rem;
  aspect-ratio: 1;
  color: var(--ink);
  background: linear-gradient(150deg, #ffd978, #f09a2c);
  border-radius: 32%;
  box-shadow: 0 1.5rem 2.5rem -1rem rgb(0 0 0 / 0.7);
}

.big-icon .icon {
  width: 3rem;
  height: 3rem;
}

/* The honest part */

.limits {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.limits h2 {
  font-size: clamp(1.875rem, 3.8vw, 2.875rem);
}

.limits ul {
  margin: 0;
  padding: 0.5rem 1.75rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.limits li {
  padding-block: 1.25rem;
}

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

.limits li strong {
  display: block;
  font-weight: 750;
}

.limits li span {
  color: var(--muted);
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.25rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}

/* Name, sum, price, note, contents and other prices line up across the plans. */
.plan {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  align-content: start;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.plan-pro {
  border-color: #6b5326;
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(246 178 74 / 0.16), transparent 70%),
    var(--surface);
}

.plan h3 {
  font-size: 1.5rem;
}

.plan .sum {
  margin-top: 0.375rem;
  color: var(--muted);
}

.plan .price {
  margin-top: 1.5rem;
  font-size: 3rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan .price span {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}

.plan .price-note {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.plan-pro .price-note {
  font-weight: 650;
  color: var(--amber);
}

.plan ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.plan .has li {
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
  padding-block: 0.3rem;
}

.plan .has .icon {
  width: 1rem;
  height: 1rem;
  color: var(--amber);
  stroke-width: 3;
  translate: 0 0.125rem;
}

/* Other ways to pay for the same plan, kept below and quieter than its main price. */
.rates {
  padding-top: 1.75rem;
}

.rates h4 {
  padding-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.plan .rates ul {
  margin-top: 0.5rem;
}

.rates li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.3rem;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.rates li > span {
  color: var(--muted);
  white-space: nowrap;
}

.rates li b {
  color: var(--text);
  font-weight: 700;
}

.plans-note {
  max-width: 60rem;
  margin: 1.25rem auto 0;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

/* Closing call */

.closing {
  padding: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--ink);
  text-align: center;
  background:
    radial-gradient(60% 90% at 50% 0%, rgb(255 255 255 / 0.42), transparent 70%),
    linear-gradient(165deg, #ffd978, #f6b24a 50%, #ee8e24);
  border-radius: calc(var(--radius) + 8px);
}

.closing h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.closing .signup {
  margin-inline: auto;
  text-align: left;
}

.closing .field-label {
  text-align: center;
}

.closing .form-note,
.closing .form-status {
  text-align: center;
}

/* Footer */

.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-block: 2.5rem 3.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-footer .reading {
  margin-top: 1rem;
}

.site-footer a {
  color: var(--muted);
  padding-block: 0.25rem;
}

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

.site-footer .fine {
  margin-top: 1.5rem;
  max-width: 46rem;
  font-size: 0.8125rem;
}

/* Documents: privacy, terms, support, legal notice */

.doc {
  max-width: 68ch;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}

.doc h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  font-weight: 850;
}

.doc .updated {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.doc h2 {
  margin-top: 3rem;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  scroll-margin-top: 5.5rem;
}

.doc h3 {
  margin-top: 2rem;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.doc p,
.doc ul,
.doc ol,
.doc dl,
.doc table {
  margin-top: 1rem;
}

.doc ul,
.doc ol {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.5rem;
}

.doc li::marker {
  color: var(--amber);
}

.doc strong {
  font-weight: 700;
}

.summary {
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.toc {
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.9375rem;
}

.toc li + li {
  margin-top: 0.375rem;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.doc th,
.doc td {
  padding: 0.75rem 1rem 0.75rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.doc thead th {
  font-weight: 600;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
}

.fill-in {
  padding: 0 0.3em;
  color: var(--ink);
  background: var(--amber);
  border-radius: 4px;
  font-weight: 700;
}

.faq details {
  margin-top: 0.625rem;
  padding-inline: 1.25rem;
  background: var(--surface);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: 18px;
}

.faq summary {
  padding-block: 1.125rem;
  font-weight: 700;
  cursor: pointer;
}

.faq summary::marker {
  color: var(--amber);
}

.faq details > p {
  margin-top: 0;
  padding-bottom: 1.125rem;
  color: var(--muted);
}

.faq-home {
  max-width: 48rem;
  margin: 2rem auto 0;
}

.faq-more {
  margin-top: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.contact-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

/* Pieces used by the home page */

.sprite {
  position: absolute;
}

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

.draw-in-view {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.tile .badge {
  align-self: flex-start;
  margin-bottom: 0.875rem;
}

.fan {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-block: 1rem;
}

.fan img {
  width: 23%;
  margin-inline: -1.5%;
  border: 4px solid var(--raised);
  border-radius: 20px;
  box-shadow: 0 1.25rem 2rem -0.75rem rgb(0 0 0 / 0.8);
  transition: transform 0.4s var(--ease-out);
}

.fan img:nth-child(1) { transform: rotate(-9deg) translateY(10%); }
.fan img:nth-child(2) { transform: rotate(-4deg) translateY(-2%); }
.fan img:nth-child(3) { transform: translateY(-8%) scale(1.08); z-index: 1; }
.fan img:nth-child(4) { transform: rotate(4deg) translateY(-2%); }
.fan img:nth-child(5) { transform: rotate(9deg) translateY(10%); }

.tile:hover .fan img:nth-child(1) { transform: rotate(-13deg) translate(-8%, 10%); }
.tile:hover .fan img:nth-child(2) { transform: rotate(-6deg) translate(-4%, -4%); }
.tile:hover .fan img:nth-child(4) { transform: rotate(6deg) translate(4%, -4%); }
.tile:hover .fan img:nth-child(5) { transform: rotate(13deg) translate(8%, 10%); }

.compare {
  width: 100%;
  min-width: 36rem;
  max-width: 60rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
}

.compare th,
.compare td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare tbody th {
  font-weight: 600;
  color: var(--muted);
}

.compare td:nth-child(2) {
  color: var(--muted);
}

.compare td:nth-child(3),
.compare thead th:nth-child(3) {
  color: var(--text);
  font-weight: 700;
  background: #1d1911;
  border-inline: 1px solid #6b5326;
}

.compare thead th:nth-child(3) {
  color: var(--amber-hi);
  border-top: 1px solid #6b5326;
  border-radius: 20px 20px 0 0;
}

.compare tbody tr:last-child td:nth-child(3) {
  border-bottom: 1px solid #6b5326;
  border-radius: 0 0 20px 20px;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td:nth-child(2) {
  border-bottom: 0;
}

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes float {
  50% {
    transform: translateY(-0.625rem);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(0.5rem);
  }
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 1.25rem));
  }
}

/* Hero demo, one 10 s loop: 6–30 % the pattern is drawn, 33–41 % the vault opens,
   76 % the lock button is tapped, 78–86 % the lock screen comes back. */

@keyframes d-finger {
  0%, 3% {
    opacity: 0;
    transform: translate(54px, 278px) scale(1.4);
  }
  6% {
    opacity: 1;
    transform: translate(54px, 278px) scale(1);
  }
  12% {
    transform: translate(109.5px, 389px);
  }
  18% {
    transform: translate(165px, 500px);
  }
  24% {
    transform: translate(220.5px, 389px);
  }
  30% {
    opacity: 1;
    transform: translate(276px, 278px) scale(1);
  }
  34%, 100% {
    opacity: 0;
    transform: translate(276px, 278px) scale(1.4);
  }
}

@keyframes d-line {
  0%, 6% {
    stroke-dashoffset: 1;
  }
  30%, 46% {
    stroke-dashoffset: 0;
  }
  47%, 100% {
    stroke-dashoffset: 1;
  }
}

@keyframes d-hit {
  0%, 5.9% {
    opacity: 0;
    transform: scale(0.4);
  }
  8% {
    opacity: 1;
    transform: scale(1.2);
  }
  12%, 40% {
    opacity: 1;
    transform: scale(1);
  }
  41%, 100% {
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes d-lock {
  0%, 32% {
    opacity: 1;
    transform: scale(1);
  }
  39% {
    opacity: 0;
    transform: scale(1.08);
  }
  39.1%, 79% {
    opacity: 0;
    transform: scale(0.96);
  }
  86%, 100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes d-vault {
  0%, 33% {
    opacity: 0;
    transform: scale(0.94);
  }
  40%, 77% {
    opacity: 1;
    transform: scale(1);
  }
  83%, 100% {
    opacity: 0;
    transform: scale(1.03);
  }
}

@keyframes d-ph {
  0%, 34% {
    opacity: 0;
    transform: scale(0.82);
  }
  42%, 100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes d-tap {
  0%, 74% {
    opacity: 0;
    transform: scale(0.6);
  }
  76% {
    opacity: 1;
    transform: scale(1);
  }
  80%, 100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes d-note {
  0%, 30% {
    opacity: 1;
    transform: none;
  }
  34%, 80% {
    opacity: 0;
    transform: scale(0.9) translateY(0.5rem);
  }
  85%, 100% {
    opacity: 1;
    transform: none;
  }
}

/* With reduced motion the demo only cross-fades between the lock screen and the vault. */
@keyframes d-fade-lock {
  0%, 40% { opacity: 1; }
  48%, 82% { opacity: 0; }
  90%, 100% { opacity: 1; }
}

@keyframes d-fade-vault {
  0%, 40% { opacity: 0; }
  48%, 82% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }

  .draw-in-view {
    animation: draw linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 45%;
  }
}

/* Smaller screens */

@media (max-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* On one column the phone comes right after the opening lines, so the demo is seen before the form. */
  .hero-grid {
    row-gap: 0;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy > * {
    order: 2;
  }

  .hero-copy > h1,
  .hero-copy > .lede {
    order: 0;
  }

  .stage {
    order: 1;
    margin-top: 3rem;
    margin-bottom: 1rem;
    width: min(16rem, 58%);
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .limits,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan + .plan {
    margin-top: 1.25rem;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 56rem) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 44rem) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile-wide {
    grid-column: auto;
  }

  .tile-key {
    flex-direction: column;
    align-items: stretch;
  }

  .tile-key .art {
    flex: none;
  }

  .zero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .signup-row {
    flex-direction: column;
    border-radius: 26px;
  }

  .signup-row .button {
    width: 100%;
  }

  .bubble {
    width: 6rem;
    letter-spacing: 0.02em;
  }

  .bubble .icon {
    width: 1.625rem;
    height: 1.625rem;
  }

  .stage {
    margin-bottom: 2.5rem;
  }

  .bubble-a {
    left: -35%;
  }

  /* Lower than on wide screens, so the pattern's last dot (top right) stays visible. */
  .bubble-b {
    right: -37%;
    top: 56%;
  }

  .bubble-c {
    left: -35%;
    bottom: 17%;
  }

  .chip-top {
    left: -22%;
  }

  /* On a small phone the note would cover the pattern, so it hangs off the bottom edge. */
  .note {
    right: -30%;
    bottom: -9%;
    width: 13rem;
  }

  .toc {
    columns: 1;
  }
}

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

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

  .demo .d-lock {
    animation: d-fade-lock 10s ease-in-out 0.8s infinite !important;
  }

  .demo .d-vault {
    animation: d-fade-vault 10s ease-in-out 0.8s infinite !important;
  }

  .stage.is-paused .demo g {
    animation-play-state: paused !important;
  }
}

/* Articles */

.article .crumbs {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.article h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  text-wrap: balance;
}

.doc.article {
  max-width: none;
}

.article-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 4rem;
  align-items: center;
}

.article-head h1 {
  max-width: 20ch;
}

.article .disclosure {
  max-width: 60ch;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.article-art .pattern-art {
  width: 11rem;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 68ch) minmax(0, 15rem);
  justify-content: space-between;
  gap: 3rem;
  margin-top: 2.5rem;
}

.article-body > .summary {
  margin-top: 0;
}

.article .summary {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--ink);
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(255 255 255 / 0.4), transparent 65%),
    linear-gradient(150deg, #ffd978, #f2a136);
  border: 0;
}

.article .summary h2 {
  font-size: 1.5rem;
}

.article .summary li::marker {
  color: var(--ink);
}

.article-side {
  font-size: 0.9375rem;
}

.article-toc {
  position: sticky;
  top: 6rem;
  max-height: calc(100dvh - 8rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.doc .article-toc h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.doc .article-toc ul {
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}

.article-toc a {
  display: block;
  padding-block: 0.125rem;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--amber-hi);
}

.article .table-scroll {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: 20px;
}

.article .table-scroll table {
  min-width: 34rem;
  margin-top: 0;
}

.article th,
.article td {
  padding: 0.875rem 1.25rem;
}

.article thead th {
  color: var(--text);
  background: var(--raised);
}

.article tbody tr:last-child > * {
  border-bottom: 0;
}

.article tbody th {
  font-weight: 650;
}

.doc.article .related ul {
  display: grid;
  gap: 0.625rem;
  padding: 0;
  list-style: none;
}

.doc.article .related li + li {
  margin-top: 0;
}

.related a {
  display: block;
  padding: 1rem 1.25rem;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border-radius: 16px;
  transition: background-color 0.2s var(--ease-out);
}

.related a:hover {
  color: var(--amber-hi);
  background: var(--raised);
}

/* App badges: our mark, and the other apps' icons, shown only to identify them. */

.badges {
  display: flex;
}

.badge-app {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  background: #3a342b;
  border-radius: 12px;
}

.badge-app:not(.badge-own) img {
  display: block;
  width: 100%;
  height: 100%;
}

.badge-app + .badge-app {
  margin-left: 0.5rem;
}

.badge-own {
  background: #0d0c0a;
}

.badges-big .badge-app {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 26px;
}

.badges-big .badge-own {
  background: var(--raised);
}

.badges-big .badge-own img {
  width: 3.5rem;
  height: 3.5rem;
}

.badges-big .badge-app + .badge-app {
  margin-left: 0.75rem;
}

.pattern-art {
  width: 100%;
}

.pattern-art .dots {
  fill: rgb(255 255 255 / 0.22);
}

.pattern-art .pattern-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 34;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.on-amber .pattern-art .dots {
  fill: rgb(27 18 6 / 0.28);
}

.on-amber .pattern-art .pattern-line {
  stroke: var(--ink);
}

/* Index pages: comparisons, alternatives, reviews, guides, best of */

.index {
  padding-block: clamp(1.5rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem);
}

.index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(8rem, 22vw, 15rem);
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--ink);
  background:
    radial-gradient(52% 90% at 84% 40%, rgb(255 255 255 / 0.42), transparent 70%),
    linear-gradient(165deg, #ffd978, #f6b24a 50%, #ee8e24);
  border-radius: calc(var(--radius) + 8px);
}

.index-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.index-hero p {
  max-width: 46ch;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.5;
}

.index-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.index-tabs a {
  padding: 0.6rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border-radius: 999px;
  transition: background-color 0.2s var(--ease-out);
}

.index-tabs a:hover {
  background: var(--raised);
}

.index-tabs a[aria-current="page"] {
  color: var(--ink);
  background: var(--amber);
}

.index-note {
  max-width: 68ch;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.index-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.index-jump a {
  text-decoration: none;
}

.index-jump a:hover {
  text-decoration: underline;
}

.index-group {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.index-group h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  font-weight: 800;
  scroll-margin-top: 6rem;
}

.index-tiles,
.index-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.index-tiles {
  gap: 1rem;
}

.index-tile {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

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

.index-tile .badges {
  margin-bottom: 1.25rem;
}

.index-tile a,
.index-row a {
  color: var(--text);
  text-decoration: none;
}

.index-tile a {
  display: block;
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

/* The whole tile is the link. */
.index-tile a::after,
.index-row a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.index-tile a:focus-visible,
.index-row a:focus-visible {
  outline: 0;
}

.index-tile:has(a:focus-visible),
.index-row:has(a:focus-visible) {
  outline: 2px solid var(--amber-hi);
  outline-offset: 3px;
}

.tile-rest {
  display: block;
  margin-top: 0.375rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--amber);
}

.tile-rest::first-letter {
  text-transform: uppercase;
}

.index-tile p,
.index-row p {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.index-rows {
  column-gap: 2rem;
}

.index-row {
  position: relative;
  padding: 1.125rem 1.25rem;
  margin-inline: -1.25rem;
  border-radius: 18px;
  transition: background-color 0.2s var(--ease-out);
}

.index-row:hover {
  background: var(--surface);
}

.index-row a {
  font-weight: 700;
  line-height: 1.35;
}

.index-row:hover a,
.index-tile:hover a {
  color: var(--amber-hi);
}

.index-row p {
  margin-top: 0.25rem;
}

.index .article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 3rem;
  align-items: center;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.index .article-cta h2 {
  font-size: 1.75rem;
  grid-column: 1;
}

.index .article-cta p {
  grid-column: 1;
  max-width: 56ch;
  color: var(--muted);
}

.index .article-cta p:last-child {
  grid-area: 1 / 2 / span 2;
}

@media (max-width: 60rem) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-side {
    display: none;
  }

  .article-body {
    max-width: 68ch;
  }
}

@media (max-width: 44rem) {
  .index-tiles,
  .index-rows,
  .index .article-cta,
  .article-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-hero .pattern-art {
    width: 8rem;
    order: -1;
  }

  .index-tabs {
    flex-wrap: nowrap;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .index-tabs a {
    flex: none;
  }

  .index-row {
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }

  .index .article-cta p:last-child {
    grid-area: auto;
  }

  .article-art {
    order: -1;
  }

  .article-art .pattern-art {
    width: 6rem;
  }

  .badges-big .badge-app {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 18px;
  }

  .badges-big .badge-own img {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.article blockquote {
  margin: 1.25rem 0 0;
  padding: 0.25rem 1.25rem;
  color: var(--muted);
  background: var(--surface);
  border-radius: 14px;
}

.article blockquote p {
  margin-block: 0.75rem;
}

.article .sources,
.article .trademarks {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.article .trademarks {
  color: var(--muted);
}

.article-cta {
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--raised);
  border-radius: var(--radius);
}

.doc .article-cta h2 {
  margin-top: 0;
}

@media (max-width: 30rem) {
  .article-cta .button {
    width: 100%;
    white-space: normal;
  }
}
