/*
 * Wyrden's public pages (website, documentation, status page, appeals portal
 * and legal documents) in Material 3 Expressive. tokens.css holds the
 * colour roles, type scale, shapes, the shape library, elevation, motion
 * and the shared components; this file lays the pages out and adds the
 * site's own components.
 *
 * How the design is used here, so it stays one design:
 *   - Things change form. Shapes come from the M3 Expressive shape library
 *     in tokens.css (--md-shape-*), every one the same 72 points, so any
 *     shape morphs into any other. Shaped icons morph and turn when their
 *     card is hovered; the current page's indicator grows out from the
 *     centre; cards grow their corners; a selected menu item goes round.
 *   - Everything moves on a spring from tokens.css: spatial springs (which
 *     overshoot a little) for movement, size and shape, effects springs for
 *     colour and opacity. Pages change with a view transition, sections
 *     rise in as they scroll into view, and the hero's shapes drift.
 *   - Nothing moves when the visitor asks for reduced motion, and every
 *     state still shows at once in its final shape and colour.
 *   - Tonal surfaces separate things, not borders and shadows. Primary is
 *     for the key action and the current page. Lime is one highlight per
 *     view.
 *   - Gabarito, the brand face, for display and headline styles; Roboto
 *     Flex for everything else, its weight and width axes for emphasis.
 *   - The header and footer stay navy in both themes: the logo is the
 *     version for dark backgrounds.
 * Everything is served by Wyrden itself: no script, no other origin.
 */

@font-face {
  font-family: "Gabarito";
  src: url("/assets/fonts/gabarito.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Flex";
  src: url("/assets/fonts/robotoflex.woff2") format("woff2");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
}

/* ---- Site tokens ------------------------------------------------------------
   Margins follow the M3 window size classes: 16px on compact windows (under
   600px), 24px from medium up. The icons are Material Symbols (Apache 2.0)
   used as masks, so they take the colour of the text around them. */

:root {
  --site-margin: 1rem;
  --section-space: 3.5rem;
  --hero-radius: var(--md-sys-shape-corner-extra-large-increased);
  --card-radius: var(--md-sys-shape-corner-large-increased);
  --card-radius-hover: var(--md-sys-shape-corner-extra-large);
  --sheet-radius: var(--md-sys-shape-corner-extra-large);
  /* Shorthands for the springs, as transition and animation timings. */
  --spring-fast: var(--md-sys-motion-spring-fast-spatial-duration) var(--md-sys-motion-spring-fast-spatial);
  --spring: var(--md-sys-motion-spring-default-spatial-duration) var(--md-sys-motion-spring-default-spatial);
  --spring-slow: var(--md-sys-motion-spring-slow-spatial-duration) var(--md-sys-motion-spring-slow-spatial);
  --fade-fast: var(--md-sys-motion-spring-fast-effects-duration) var(--md-sys-motion-spring-fast-effects);
  --fade: var(--md-sys-motion-spring-default-effects-duration) var(--md-sys-motion-spring-default-effects);
  --fade-slow: var(--md-sys-motion-spring-slow-effects-duration) var(--md-sys-motion-spring-slow-effects);
  /* Generated: Material Symbols (Apache 2.0) as mask images. */
  --icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3C/svg%3E");
  --icon-warning: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
  --icon-error: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
  --icon-check-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  --icon-half: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18V4a8 8 0 0 1 0 16z'/%3E%3C/svg%3E");
  --icon-schedule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
  --icon-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
  --icon-arrow-forward: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E");
  --icon-arrow-drop-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

@media (min-width: 600px) {
  :root {
    --site-margin: 1.5rem;
    --section-space: 4.5rem;
    --card-radius: var(--md-sys-shape-corner-extra-large);
    --card-radius-hover: var(--md-sys-shape-corner-extra-extra-large);
  }
}
@media (min-width: 840px) {
  :root { --hero-radius: var(--md-sys-shape-corner-extra-extra-large); }
}
@media (min-width: 1200px) {
  :root { --section-space: 6rem; }
}

/* ---- Base ------------------------------------------------------------------- */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; }
p,
li { text-wrap: pretty; }

h1 {
  font: var(--md-sys-typescale-emphasized-headline-large);
  letter-spacing: -0.01em;
}
h2 {
  font: var(--md-sys-typescale-headline-medium);
  letter-spacing: var(--md-sys-typescale-headline-medium-tracking);
}
h3 {
  font: var(--md-sys-typescale-title-large);
  font-weight: 500;
}
@media (min-width: 600px) {
  h1 { font: var(--md-sys-typescale-emphasized-display-small); letter-spacing: -0.01em; }
}
@media (min-width: 840px) {
  h1 { font: var(--md-sys-typescale-emphasized-display-medium); letter-spacing: -0.015em; }
  h2 { font: var(--md-sys-typescale-headline-large); letter-spacing: var(--md-sys-typescale-headline-large-tracking); }
}

.lead {
  max-width: 42rem;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-body-large);
  font-size: 1.125rem;
  line-height: 1.625rem;
}
@media (min-width: 600px) {
  .lead { font: var(--md-sys-typescale-title-large); letter-spacing: 0; }
}

.icon {
  display: block;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* ---- Motion: page changes, entrances, scrolling ------------------------------
   A page change is a cross-document view transition: the header stays put
   and the page's content slides up into place on a spring. CSS only. */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
main { view-transition-name: page; }
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }
::view-transition-group(page) { animation-duration: var(--md-sys-motion-spring-default-spatial-duration); animation-timing-function: var(--md-sys-motion-spring-default-spatial); }
::view-transition-old(page) { animation: wy-page-out var(--fade-fast) both; }
::view-transition-new(page) { animation: wy-page-in var(--spring-slow) both, wy-fade var(--fade) both; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: var(--md-sys-motion-spring-default-effects-duration); animation-timing-function: var(--md-sys-motion-spring-default-effects); }
@keyframes wy-page-out { to { opacity: 0; translate: 0 -1.5rem; } }
@keyframes wy-page-in { from { translate: 0 4rem; } }
@keyframes wy-fade { from { opacity: 0; } }
@keyframes wy-rise { from { translate: 0 1.5rem; } }
@keyframes wy-pop { from { scale: 0.4; } }
@keyframes wy-spin { to { rotate: 1turn; } }

/* The page's heading and the hero's lines come in one after another. */
.page-head > *,
.hero-copy > * {
  animation: wy-rise var(--spring) backwards, wy-fade var(--fade) backwards;
}
.page-head > :nth-child(2),
.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.page-head > :nth-child(3),
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.page-head > :nth-child(4),
.hero-copy > :nth-child(4) { animation-delay: 210ms; }

/* Sections rise in as they scroll into view, on the spatial spring. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head,
    .group-head,
    .seg-list > li,
    .band,
    .points > div,
    .plan-card,
    .limits,
    .feature-card,
    .ranks > li,
    .addon-card,
    .component,
    .table-wrap,
    .sheet,
    .aside-card,
    .know-list > li,
    .figures > div {
      animation: wy-reveal var(--md-sys-motion-spring-default-spatial) both;
      animation-timeline: view();
      animation-range: entry 0% entry 9rem;
    }
  }
}
@keyframes wy-reveal { from { opacity: 0; translate: 0 3rem; scale: 0.94; } }

/* tokens.css stops animations and transitions on elements when the
   visitor asks for less motion; these stop them on pseudo-elements too. */
@media (prefers-reduced-motion: reduce) {
  *::before,
  *::after { animation: none !important; transition: none !important; }
}

/* ---- Layout ----------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--site-margin));
  margin-inline: auto;
  padding-inline: var(--site-margin);
}
.section { padding-block: var(--section-space) 0; }
.page { padding-top: var(--s-6); }
.page > section,
.page > .block { margin-top: var(--section-space); }
.page > .notice + .block,
.page > .notice + .prose { margin-top: var(--s-6); }
.page-head { max-width: 52rem; margin-bottom: var(--s-6); }
.page-head > :last-child { margin-bottom: 0; }
.page-head .lead { margin-top: var(--s-4); }
.section-head { max-width: 46rem; margin-bottom: var(--s-6); }
.section-head > :last-child { margin-bottom: 0; }
/* Pages that do one thing for one person (the appeals portal, a sent
   message) sit in a calm, centred column. */
.narrow { max-width: 40rem; margin-inline: auto; }

.crumb { margin: 0 0 var(--s-4); }
.crumb .btn { margin-left: calc(-1 * var(--btn-pad)); }
.crumb .icon { width: 1.25rem; height: 1.25rem; transition: translate var(--spring-fast); }
.crumb .btn:hover .icon { translate: -0.25rem 0; }

/* ---- Top app bar ------------------------------------------------------------- */

.banner-sim {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--site-margin);
  background: var(--wy-sim-container);
  color: var(--wy-on-sim-container);
  font: var(--md-sys-typescale-label-large);
  letter-spacing: var(--md-sys-typescale-label-large-tracking);
  text-align: center;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--wy-brand-bar);
  color: var(--wy-on-brand-bar);
}
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--wy-on-brand-bar); }

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  border-radius: var(--md-sys-shape-corner-small);
}
.brand img { display: block; width: auto; height: 2rem; transition: scale var(--spring-fast); }
.brand:hover img { scale: 1.05; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* A navigation item. Its ::before is the pill behind the label: on hover a
   state layer that grows out from the centre, on the current page the
   active indicator, which grows out from the centre as the page opens
   while the label turns from medium to bold. */
.nav-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: var(--md-sys-shape-corner-full);
  color: var(--wy-on-brand-bar);
  font: var(--md-sys-typescale-label-large);
  letter-spacing: var(--md-sys-typescale-label-large-tracking);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--fade);
}
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0 25%;
  z-index: -1;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: inset var(--spring-fast), opacity var(--fade-fast);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: max(100%, 3rem);
  transform: translateY(-50%);
}
.nav-link:hover::before { inset: 0; opacity: var(--md-sys-state-hover-state-layer-opacity); }
.nav-link:focus-visible::before { inset: 0; opacity: var(--md-sys-state-focus-state-layer-opacity); }
.nav-link:active::before { inset: 0 -0.25rem; opacity: var(--md-sys-state-pressed-state-layer-opacity); }
.nav-link[aria-current="page"] {
  color: var(--md-sys-color-on-primary-fixed);
  font-weight: 700;
  animation: wy-current-label var(--fade-slow) backwards;
}
.nav-link[aria-current="page"]::before {
  inset: 0;
  background: var(--md-sys-color-primary-fixed);
  opacity: 1;
  animation: wy-indicator-in var(--spring) backwards;
}
.nav-link[aria-current="page"]:active::before { inset: 0 -0.25rem; }
@keyframes wy-indicator-in { from { inset: 0 32%; } }
@keyframes wy-current-label { from { font-weight: 500; } }
.nav-cta { margin-left: var(--s-2); }

/* The key action in the bar: a tonal button in the bar's own blue. */
.btn-bar {
  --btn-container: var(--md-sys-color-on-primary-fixed-variant);
  --btn-label: var(--md-sys-color-primary-fixed);
  --btn-outline: transparent;
}
.btn-bar:hover { box-shadow: none; }

/* Wide windows show the navigation in the bar; compact and medium ones a
   menu that opens below it. The menu is a <details> element, so it works
   without script. */
.nav-bar { display: none; }
.nav-menu { display: block; }
@media (min-width: 840px) {
  .nav-bar { display: block; }
  .nav-menu { display: none; }
}

/* The menu button: round when closed; open, it is selected, so it fills
   and its corners square off, while its icon turns into a close icon. */
.nav-menu > summary {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 3rem;
  padding: 0 1.25rem 0 1rem;
  border-radius: 1.5rem;
  color: var(--wy-on-brand-bar);
  font: var(--md-sys-typescale-label-large);
  letter-spacing: var(--md-sys-typescale-label-large-tracking);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-radius var(--spring-fast),
    background-color var(--fade),
    color var(--fade);
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--fade-fast);
}
.nav-menu > summary:hover::before { opacity: var(--md-sys-state-hover-state-layer-opacity); }
.nav-menu > summary:focus-visible::before { opacity: var(--md-sys-state-focus-state-layer-opacity); }
.nav-menu > summary:active::before { opacity: var(--md-sys-state-pressed-state-layer-opacity); }
.nav-menu[open] > summary {
  border-radius: var(--md-sys-shape-corner-large);
  background: var(--md-sys-color-primary-fixed);
  color: var(--md-sys-color-on-primary-fixed);
}
.nav-menu .icon-close,
.nav-menu[open] .icon-menu { display: none; }
.nav-menu[open] .icon-close { display: block; animation: wy-icon-turn var(--spring) backwards; }
@keyframes wy-icon-turn { from { rotate: -90deg; scale: 0.5; } }

/* The menu drops open on a spring, its items following one by one. */
.nav-menu > nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: var(--s-2) var(--site-margin) var(--s-5);
  background: var(--wy-brand-bar);
  border-radius: 0 0 var(--md-sys-shape-corner-extra-large) var(--md-sys-shape-corner-extra-large);
  box-shadow: var(--md-sys-elevation-level3);
  transform-origin: top center;
  animation: wy-menu-drop var(--spring) backwards, wy-fade var(--fade) backwards;
}
@keyframes wy-menu-drop { from { translate: 0 -1rem; scale: 1 0.7; } }
.nav-menu > nav {
  transition:
    opacity var(--fade-fast),
    translate var(--spring-fast),
    scale var(--spring-fast);
}
.nav-menu:not([open]) > nav { opacity: 0; translate: 0 -0.75rem; scale: 1 0.8; }
.nav-menu::details-content {
  transition: content-visibility var(--md-sys-motion-spring-fast-effects-duration) allow-discrete;
}
.nav-menu .nav {
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-1);
  max-width: 30rem;
  margin-inline: auto;
}
.nav-menu .nav > li { animation: wy-rise var(--spring) backwards, wy-fade var(--fade) backwards; }
.nav-menu .nav > li:nth-child(2) { animation-delay: 30ms; }
.nav-menu .nav > li:nth-child(3) { animation-delay: 60ms; }
.nav-menu .nav > li:nth-child(4) { animation-delay: 90ms; }
.nav-menu .nav > li:nth-child(5) { animation-delay: 120ms; }
.nav-menu .nav > li:nth-child(6) { animation-delay: 150ms; }
.nav-menu .nav-link {
  display: flex;
  min-height: 3.5rem;
  padding: 0 1.5rem;
  font: var(--md-sys-typescale-title-medium);
  letter-spacing: var(--md-sys-typescale-title-medium-tracking);
}
.nav-menu .nav-link::before { inset: 0 40%; }
.nav-menu .nav-link:hover::before,
.nav-menu .nav-link:focus-visible::before,
.nav-menu .nav-link[aria-current="page"]::before { inset: 0; }
.nav-menu .nav-link[aria-current="page"] { font-weight: 700; }
.nav-menu .nav-cta { margin: var(--s-3) 0 0; }
.nav-menu .nav-cta .btn {
  width: 100%;
  --btn-height: 3.5rem;
  font: var(--md-sys-typescale-title-medium);
}

/* ---- Buttons the site adds ------------------------------------------------------ */

/* Lime: the one highlight of a view, used for its main action. The fixed
   roles keep it the same lime in both themes, on the blue hero. */
.btn-lime {
  --btn-container: var(--md-sys-color-tertiary-fixed);
  --btn-label: var(--md-sys-color-on-tertiary-fixed);
  --btn-outline: transparent;
}
.btn-lime:hover { box-shadow: var(--md-sys-elevation-level2); }
/* An outlined button on the hero's blue. */
.btn-on-hero {
  --btn-label: var(--hero-fg);
  --btn-outline: var(--hero-fg-variant);
}
.btn .icon { width: 1.25rem; height: 1.25rem; }
/* Square buttons get rounder on hover and squarer still when pressed. */
.btn-square:hover { --btn-radius: var(--btn-radius-full); }
.btn-lg.btn-square:hover { --btn-radius: var(--btn-radius-full); }
/* An arrow that leans the way the button goes. */
.btn .icon-go { transition: translate var(--spring-fast); }
.btn:hover .icon-go { translate: 0.25rem 0; }

/* ---- Notices -----------------------------------------------------------------
   A container in the colour of what it says, with an icon too, so the
   meaning never rests on colour alone. */

.notice {
  --icon: var(--icon-info);
  position: relative;
  padding: var(--s-4) var(--s-5) var(--s-4) 3.5rem;
  border-radius: var(--md-sys-shape-corner-large-increased);
  max-width: 52rem;
}
.notice::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1.125rem;
  width: 1.375rem;
  height: 1.375rem;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.notice p:last-child { margin-bottom: 0; }
.notice-warn { --icon: var(--icon-warning); }
.notice-danger { --icon: var(--icon-error); }
.notice.status-ok {
  --icon: var(--icon-check-circle);
  background: var(--wy-ok-container);
  color: var(--wy-on-ok-container);
}
/* A message that just arrived (an error, a confirmation) springs in. */
.notice[role="alert"],
.notice[role="status"] { animation: wy-pop-notice var(--spring) backwards, wy-fade var(--fade) backwards; }
@keyframes wy-pop-notice { from { scale: 0.92; translate: 0 -0.5rem; } }

/* The one lime highlight of a page that has no hero: its icon sits on a
   soft burst that turns in as the page opens. */
.notice-lime {
  padding-left: 4.5rem;
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}
.notice-lime::before {
  left: 1rem;
  top: 0.875rem;
  width: 2.5rem;
  height: 2.5rem;
  -webkit-mask: none;
  mask: none;
  background: var(--md-sys-color-tertiary);
  clip-path: var(--md-shape-soft-burst);
  animation: wy-pop var(--spring-slow) backwards, wy-spin-once var(--spring-slow) backwards;
  transition: clip-path var(--md-sys-motion-morph-duration) var(--md-sys-motion-morph), rotate var(--spring-slow);
}
.notice-lime::after {
  content: "";
  position: absolute;
  left: 1.625rem;
  top: 1.5rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--md-sys-color-on-tertiary);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}
.notice-lime:hover::before { clip-path: var(--md-shape-very-sunny); rotate: 45deg; }
@keyframes wy-spin-once { from { rotate: -120deg; } }

/* ---- Status chips ------------------------------------------------------------- */

.badge {
  --icon: none;
  min-height: 1.75rem;
  padding: 0 0.75rem 0 0.5rem;
  gap: 0.375rem;
  border-radius: var(--md-sys-shape-corner-small);
  font: var(--md-sys-typescale-label-large);
  letter-spacing: var(--md-sys-typescale-label-large-tracking);
}
.badge::before {
  content: "";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.badge-ok { --icon: var(--icon-check); }
.badge-warn { --icon: var(--icon-half); }
.badge-danger { --icon: var(--icon-error); }
.badge-planned {
  --icon: var(--icon-schedule);
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
}

/* ---- Shaped icons -------------------------------------------------------------
   An icon in an abstract shape: the M3 Expressive icon container. The shape
   is the ::before, behind the icon, so the icon stays upright while the
   shape morphs and turns: set --shape and --shape-hover. */

.shape-icon {
  --shape: var(--md-shape-cookie-9);
  --shape-hover: var(--md-shape-clover-8);
  --shape-bg: var(--md-sys-color-primary);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  color: var(--md-sys-color-on-primary);
}
.shape-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--shape-bg);
  clip-path: var(--shape);
  transition:
    clip-path var(--md-sys-motion-morph-duration) var(--md-sys-motion-morph),
    rotate var(--spring-slow),
    scale var(--spring),
    background-color var(--fade);
}
.shape-icon .icon { width: 1.75rem; height: 1.75rem; transition: scale var(--spring); }
.shape-sunny { --shape: var(--md-shape-sunny); --shape-hover: var(--md-shape-very-sunny); }
.shape-clover { --shape: var(--md-shape-clover-4); --shape-hover: var(--md-shape-cookie-4); }
:is(.feature-card, .points > div, .doc-item, .plan-card, .addon-card):hover .shape-icon::before {
  clip-path: var(--shape-hover);
  rotate: 60deg;
  scale: 1.08;
}
:is(.feature-card, .points > div, .doc-item, .plan-card, .addon-card):hover .shape-icon .icon { scale: 1.1; }

/* ---- Cards, lists and tables -------------------------------------------------------- */

.card {
  border-radius: var(--card-radius);
  padding: var(--s-5);
}

/* Cards answer the pointer: their corners grow and they lift a little, on
   a spatial spring. */
.feature-card,
.plan-card,
.points > div,
.ranks > li,
.component,
.addon-card {
  transition:
    border-radius var(--spring),
    transform var(--spring),
    background-color var(--fade),
    box-shadow var(--fade);
}
.feature-card:hover,
.plan-card:hover,
.ranks > li:hover,
.component:hover,
.addon-card:hover {
  border-radius: var(--card-radius-hover);
  transform: translateY(-0.25rem);
  background: var(--md-sys-color-surface-container-high);
}
.points > div:hover {
  border-radius: var(--card-radius-hover);
  transform: translateY(-0.25rem);
  box-shadow: var(--md-sys-elevation-level2);
}

/* A grid of cards that reflows from one column on a phone. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .card-grid { gap: var(--s-4); }
}

/* M3 Expressive segmented list: items a little apart, the group's outer
   corners large and its inner corners small. A hovered item rounds all its
   corners. */
.seg-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seg-list > li {
  border-radius: var(--md-sys-shape-corner-extra-small);
  background: var(--md-sys-color-surface-container);
  transition:
    border-radius var(--spring),
    background-color var(--fade),
    transform var(--spring);
}
.seg-list > li:first-child {
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
}
.seg-list > li:last-child {
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
}
.seg-list > li:hover {
  border-radius: var(--card-radius);
  background: var(--md-sys-color-surface-container-high);
}

.table-wrap {
  margin-bottom: var(--s-5);
  padding: var(--s-2) var(--s-3);
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--card-radius);
}
table.table {
  border-collapse: separate;
  border-spacing: 0;
  font: var(--md-sys-typescale-body-large);
  letter-spacing: var(--md-sys-typescale-body-large-tracking);
}
.table th,
.table td { padding: var(--s-4) var(--s-4); }
.table thead th {
  font: var(--md-sys-typescale-title-small);
  letter-spacing: var(--md-sys-typescale-title-small-tracking);
  color: var(--md-sys-color-on-surface-variant);
  border-bottom-color: var(--md-sys-color-outline);
}
.table tbody th {
  color: var(--md-sys-color-on-surface);
  font: var(--md-sys-typescale-body-large);
  font-weight: 500;
  letter-spacing: var(--md-sys-typescale-body-large-tracking);
  white-space: normal;
}
.table tbody tr:last-child > * { border-bottom: 0; }
/* A hovered row: a rounded state layer, not a square band. */
.table tbody tr:hover { background: none; }
.table tbody tr > * { transition: background-color var(--fade-fast); }
.table tbody tr:hover > * { background: color-mix(in srgb, var(--md-sys-color-on-surface) 6%, transparent); }
.table tbody tr:hover > :first-child { border-radius: var(--md-sys-shape-corner-medium) 0 0 var(--md-sys-shape-corner-medium); }
.table tbody tr:hover > :last-child { border-radius: 0 var(--md-sys-shape-corner-medium) var(--md-sys-shape-corner-medium) 0; }

/* ---- The hero ------------------------------------------------------------------- */

.hero-section { padding-top: var(--s-4); }
@media (min-width: 600px) {
  .hero-section { padding-top: var(--s-5); }
}

.hero {
  --hero-bg: var(--md-sys-color-primary);
  --hero-fg: var(--md-sys-color-on-primary);
  --hero-fg-variant: var(--md-sys-color-primary-fixed);
  --hero-stage: var(--md-sys-color-on-primary-fixed-variant);
  --hero-wash: color-mix(in srgb, var(--hero-fg) 10%, transparent);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--hero-radius);
  background: var(--hero-bg);
  color: var(--hero-fg);
}
@media (prefers-color-scheme: dark) {
  .hero {
    --hero-bg: var(--md-sys-color-primary-container);
    --hero-fg: var(--md-sys-color-on-primary-container);
    --hero-fg-variant: var(--md-sys-color-primary-fixed-dim);
    --hero-stage: var(--wy-brand-bar);
  }
}
.hero :focus-visible { outline-color: var(--hero-fg); }
.hero-copy {
  position: relative;
  z-index: 2;
  padding: var(--s-6) var(--s-5) var(--s-5);
}
.hero h1 {
  max-width: 15ch;
  margin-bottom: var(--s-5);
  color: inherit;
  font: var(--md-sys-typescale-emphasized-display-small);
  letter-spacing: -0.015em;
}
.hero .lead {
  max-width: 34rem;
  margin-bottom: var(--s-6);
  color: var(--hero-fg-variant);
}
.hero a:not(.btn) { color: inherit; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-5);
}
.hero-note {
  display: flex;
  gap: var(--s-2);
  margin: 0;
  color: var(--hero-fg-variant);
  font: var(--md-sys-typescale-body-medium);
  letter-spacing: var(--md-sys-typescale-body-medium-tracking);
}
.hero-note::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  -webkit-mask: var(--icon-check-circle) center / contain no-repeat;
  mask: var(--icon-check-circle) center / contain no-repeat;
}

/* The art. The mascot sits on a big cookie in a deeper blue, with a lime
   soft burst turning slowly behind it, and a wash of colour drifting
   through four shapes in the corner. Pointing at the hero morphs the
   cookie into a flower and the burst into a sun, and the mascot hops. */
.hero-art {
  position: relative;
  z-index: 1;
  min-height: 14rem;
}
.hero-blob {
  position: absolute;
  display: block;
  pointer-events: none;
}
.hero-stage {
  --md-shape: var(--md-shape-sunny);
  width: 17rem;
  height: 17rem;
  right: calc(50% - 8.5rem);
  bottom: -4.5rem;
  background: var(--hero-stage);
  animation: wy-pop var(--spring-slow) backwards, wy-spin-once var(--spring-slow) backwards;
}
.hero-lime {
  --md-shape: var(--md-shape-burst);
  width: 5.5rem;
  height: 5.5rem;
  right: calc(50% + 4rem);
  bottom: 9rem;
  background: var(--md-sys-color-tertiary-fixed);
  animation: wy-pop var(--spring-slow) 150ms backwards, wy-spin 48s linear infinite;
}
.hero-drift {
  z-index: 0;
  width: 12rem;
  height: 12rem;
  right: -3.5rem;
  top: -3.5rem;
  background: var(--hero-wash);
  clip-path: var(--md-shape-clover-8);
  animation: md-shape-drift 28s infinite, wy-pop var(--spring-slow) 80ms backwards;
}
.hero:hover .hero-stage { --md-shape: var(--md-shape-flower); rotate: 20deg; }
.hero:hover .hero-lime { --md-shape: var(--md-shape-cookie-12); }
.hero-mascot {
  position: absolute;
  z-index: 1;
  right: calc(50% - 6.5rem);
  bottom: -1.75rem;
  width: 13rem;
  animation: wy-rise-far var(--spring) 120ms backwards, wy-fade var(--fade) 120ms backwards;
  transition: translate var(--spring-fast);
}
.hero:hover .hero-mascot { translate: 0 -0.75rem; }
@keyframes wy-rise-far { from { transform: translateY(3rem); } }

@media (min-width: 600px) {
  .hero-copy { padding: var(--s-7) var(--s-7) var(--s-5); }
  .hero h1 { font: var(--md-sys-typescale-emphasized-display-medium); }
  .hero-art { min-height: 17rem; }
  .hero-stage { width: 21rem; height: 21rem; right: calc(50% - 10.5rem); bottom: -5.5rem; }
  .hero-lime { width: 7rem; height: 7rem; right: calc(50% + 5rem); bottom: 11rem; }
  .hero-drift { width: 16rem; height: 16rem; right: -4.5rem; top: -4.5rem; }
  .hero-mascot { right: calc(50% - 8rem); bottom: -2.25rem; width: 16rem; }
}
@media (min-width: 840px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 36rem; }
  .hero-copy {
    align-self: center;
    padding: var(--s-8) 0 var(--s-8) var(--s-8);
  }
  .hero-art { min-height: 0; }
  .hero-stage { width: 20rem; height: 20rem; right: 0.5rem; bottom: -5rem; }
  .hero-lime { width: 6.5rem; height: 6.5rem; right: 15rem; bottom: 10.5rem; }
  .hero-drift { width: 20rem; height: 20rem; right: -5.5rem; top: -5.5rem; }
  .hero-mascot { right: 3rem; bottom: -2rem; width: 15rem; }
}
@media (min-width: 1200px) {
  .hero h1 { max-width: 17ch; font: var(--md-sys-typescale-emphasized-display-large); font-size: 4rem; line-height: 4.375rem; letter-spacing: -0.02em; }
  .hero-stage { width: 27rem; height: 27rem; right: 1rem; bottom: -7rem; }
  .hero-lime { width: 9rem; height: 9rem; right: 21rem; bottom: 14rem; }
  .hero-drift { width: 24rem; height: 24rem; right: -6.5rem; top: -6.5rem; }
  .hero-mascot { right: 4.5rem; bottom: -3rem; width: 20rem; }
}

/* ---- Home: how a login works ---------------------------------------------------------- */

/* Each step's number sits on its own shape (::before); the number itself is
   the ::after, so the shape can morph and turn on hover while the number
   stays upright. */
.steps { counter-reset: step; }
.step {
  --shape: var(--md-shape-cookie-9);
  --shape-hover: var(--md-shape-clover-8);
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--s-2) var(--s-4);
  align-items: start;
  padding: var(--s-5) var(--s-4);
}
.step::before,
.step::after {
  grid-area: 1 / 1;
  width: 3rem;
  height: 3rem;
}
.step::before {
  content: "";
  background: var(--md-sys-color-primary-container);
  clip-path: var(--shape);
  transition: clip-path var(--md-sys-motion-morph-duration) var(--md-sys-motion-morph), rotate var(--spring-slow), scale var(--spring), background-color var(--fade);
}
.step::after {
  content: counter(step);
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--md-sys-color-on-primary-container);
  font: var(--md-sys-typescale-emphasized-title-large);
  font-family: var(--md-ref-typeface-brand);
  transition: color var(--fade);
}
.step:hover::before {
  clip-path: var(--shape-hover);
  rotate: 45deg;
  scale: 1.1;
  background: var(--md-sys-color-primary);
}
.step:hover::after { color: var(--md-sys-color-on-primary); }
.step:nth-child(2) { --shape: var(--md-shape-clover-4); --shape-hover: var(--md-shape-cookie-4); }
.step:nth-child(3) { --shape: var(--md-shape-sunny); --shape-hover: var(--md-shape-very-sunny); }
.step:nth-child(4) { --shape: var(--md-shape-gem); --shape-hover: var(--md-shape-diamond); }
.step:nth-child(5) { --shape: var(--md-shape-flower); --shape-hover: var(--md-shape-cookie-12); }
.step h3 { margin: 0.625rem 0 var(--s-1); }
.step p { margin: 0; color: var(--md-sys-color-on-surface-variant); }
.step .call {
  grid-column: 2;
  justify-self: start;
  font: var(--md-sys-typescale-label-large);
  letter-spacing: var(--md-sys-typescale-label-large-tracking);
}
.call code {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: var(--md-sys-shape-corner-small);
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
  font-size: 0.875rem;
  transition: border-radius var(--spring-fast), background-color var(--fade);
}
.step:hover .call code { border-radius: 1.125rem; background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
@media (min-width: 600px) {
  .step { grid-template-columns: 3.5rem minmax(0, 1fr); padding: var(--s-5) var(--s-5); column-gap: var(--s-5); }
  .step::before,
  .step::after { width: 3.5rem; height: 3.5rem; }
}
@media (min-width: 840px) {
  .step {
    grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 19rem);
    align-items: center;
    padding: var(--s-5) var(--s-6) var(--s-5) var(--s-5);
  }
  .step h3 { margin-top: 0; }
  .step .call { grid-column: 3; justify-self: end; text-align: right; }
}

/* ---- Home: what Wyrden is built around --------------------------------------------- */

/* A band: a large rounded container that sets one section apart, with a
   shape drifting in its corner. */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--s-6) var(--s-4) var(--s-4);
  border-radius: var(--hero-radius);
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.band h2 { color: inherit; }
.band-shape {
  position: absolute;
  z-index: -1;
  right: -3rem;
  top: -3rem;
  width: 11rem;
  height: 11rem;
  background: color-mix(in srgb, currentColor 9%, transparent);
  clip-path: var(--md-shape-flower);
  animation: md-shape-drift 34s -9s infinite;
}
@media (min-width: 600px) {
  .band { padding: var(--s-7) var(--s-6) var(--s-6); }
}
@media (min-width: 840px) {
  .band { padding: var(--s-8) var(--s-8) var(--s-7); }
  .band-shape { width: 17rem; height: 17rem; right: -4rem; top: -5rem; }
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--s-3);
  margin: var(--s-6) 0 0;
}
.points > div {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--card-radius);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
}
.points dt {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font: var(--md-sys-typescale-headline-small);
  letter-spacing: var(--md-sys-typescale-headline-small-tracking);
}
.points dd { margin: 0; color: var(--md-sys-color-on-surface-variant); }
.points .shape-icon { margin-bottom: var(--s-2); }

/* ---- Plans as cards ------------------------------------------------------------------------ */

.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--s-3);
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .plan-cards { gap: var(--s-4); }
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--card-radius);
  background: var(--md-sys-color-surface-container);
}
.plan-card h3 {
  margin: 0;
  font: var(--md-sys-typescale-headline-small);
  letter-spacing: var(--md-sys-typescale-headline-small-tracking);
}
.plan-card dl {
  display: grid;
  gap: var(--s-3);
  margin: 0;
}
.plan-card dl > div + div {
  padding-top: var(--s-3);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}
.plan-card dt {
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-label-large);
  letter-spacing: var(--md-sys-typescale-label-large-tracking);
}
.plan-card dd {
  margin: var(--s-1) 0 0;
  font: var(--md-sys-typescale-title-medium);
  letter-spacing: var(--md-sys-typescale-title-medium-tracking);
}
/* The plan's key figure: its price while billing is on, otherwise the
   players it includes. Roboto Flex, wide and heavy; heavier still when the
   card is hovered. */
.plan-card dl > div:first-child dd {
  color: var(--md-sys-color-primary);
  font: 750 2.25rem/2.75rem var(--md-ref-typeface-plain);
  font-stretch: 125%;
  letter-spacing: -0.01em;
  transition: font-weight var(--fade), font-stretch var(--spring);
}
.plan-card:hover dl > div:first-child dd { font-weight: 900; font-stretch: 135%; }
/* Each plan carries a shaped badge, spikier with each plan: a six-sided
   cookie, a soft burst, a burst. */
.plan-badge {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 3.25rem;
  height: 3.25rem;
  margin: 0;
  --shape: var(--md-shape-cookie-6);
  --shape-hover: var(--md-shape-sunny);
  --shape-bg: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.plan-badge .icon { width: 1.5rem; height: 1.5rem; }
.plan-card:nth-child(2) .plan-badge {
  --shape: var(--md-shape-soft-burst);
  --shape-hover: var(--md-shape-very-sunny);
  --shape-bg: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.plan-card:nth-child(3) .plan-badge {
  --shape: var(--md-shape-burst);
  --shape-hover: var(--md-shape-clover-8);
  --shape-bg: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}
.plan-link { margin: 0; }

/* ---- Home: the limits ----------------------------------------------------------------------- */

/* The one lime block of the home page: what Wyrden cannot do. */
.limits {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--s-7) var(--s-5);
  border-radius: var(--hero-radius);
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
  transition: border-radius var(--spring);
}
.limits:hover { border-radius: var(--md-sys-shape-corner-extra-large); }
.limits-shape {
  position: absolute;
  z-index: -1;
  right: -4rem;
  bottom: -5rem;
  width: 16rem;
  height: 16rem;
  background: color-mix(in srgb, currentColor 10%, transparent);
  clip-path: var(--md-shape-clover-4);
  transition: clip-path var(--md-sys-motion-morph-duration) var(--md-sys-motion-morph), rotate var(--spring-slow), scale var(--spring-slow);
}
.limits:hover .limits-shape { clip-path: var(--md-shape-very-sunny); rotate: -60deg; scale: 1.15; }
.limits h2 {
  max-width: 18ch;
  margin-bottom: var(--s-5);
  color: inherit;
  font: var(--md-sys-typescale-emphasized-display-small);
}
.limits p { max-width: 44rem; font-size: 1.125rem; line-height: 1.75rem; }
.limits p:last-child { margin-bottom: 0; }
.limits a { color: inherit; font-weight: 700; }
.limits :focus-visible { outline-color: currentColor; }
@media (min-width: 840px) {
  .limits { padding: var(--s-8); }
  .limits-shape { width: 24rem; height: 24rem; right: -3rem; bottom: -7rem; }
  .limits h2 { font: var(--md-sys-typescale-emphasized-display-medium); }
}

/* ---- Features --------------------------------------------------------------------------------- */

.legend { max-width: none; }
.legend-list {
  display: grid;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
  padding: 0;
  list-style: none;
}
.legend-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); }
@media (min-width: 840px) {
  .legend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-7); align-items: start; }
  .legend-list { grid-row: span 3; margin-bottom: 0; }
}

/* How evidence is ranked: three numbered cards, strongest first. */
.ranks {
  counter-reset: rank;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ranks > li {
  --shape: var(--md-shape-sunny);
  --shape-hover: var(--md-shape-very-sunny);
  counter-increment: rank;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-5);
  border-radius: var(--card-radius);
  background: var(--md-sys-color-surface-container);
}
.ranks > li::before,
.ranks > li::after {
  grid-area: 1 / 1;
  width: 3rem;
  height: 3rem;
}
.ranks > li::before {
  content: "";
  background: var(--md-sys-color-primary-container);
  clip-path: var(--shape);
  transition: clip-path var(--md-sys-motion-morph-duration) var(--md-sys-motion-morph), rotate var(--spring-slow), scale var(--spring), background-color var(--fade);
}
.ranks > li::after {
  content: counter(rank);
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--md-sys-color-on-primary-container);
  font: var(--md-sys-typescale-emphasized-title-large);
  font-family: var(--md-ref-typeface-brand);
  transition: color var(--fade);
}
.ranks > li:hover::before { clip-path: var(--shape-hover); rotate: 45deg; scale: 1.1; background: var(--md-sys-color-primary); }
.ranks > li:hover::after { color: var(--md-sys-color-on-primary); }
.ranks > li:nth-child(2) { --shape: var(--md-shape-cookie-9); --shape-hover: var(--md-shape-clover-8); }
.ranks > li:nth-child(3) { --shape: var(--md-shape-flower); --shape-hover: var(--md-shape-cookie-12); }
.ranks p { margin: 0; }
.ranks strong { display: block; font: var(--md-sys-typescale-title-large); font-weight: 500; margin-bottom: var(--s-1); }

/* Each feature card has a shaped icon; within a group every card has a
   different shape from the library, and hovering a card morphs its shape
   into another and turns it. */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--card-radius);
  background: var(--md-sys-color-surface-container);
}
.feature-card .shape-icon { width: 3rem; height: 3rem; margin-bottom: var(--s-1); }
.feature-card .shape-icon .icon { width: 1.5rem; height: 1.5rem; }
.feature-card:nth-child(9n + 2) .shape-icon { --shape: var(--md-shape-clover-4); --shape-hover: var(--md-shape-cookie-4); }
.feature-card:nth-child(9n + 3) .shape-icon { --shape: var(--md-shape-sunny); --shape-hover: var(--md-shape-very-sunny); }
.feature-card:nth-child(9n + 4) .shape-icon { --shape: var(--md-shape-gem); --shape-hover: var(--md-shape-diamond); }
.feature-card:nth-child(9n + 5) .shape-icon { --shape: var(--md-shape-flower); --shape-hover: var(--md-shape-cookie-12); }
.feature-card:nth-child(9n + 6) .shape-icon { --shape: var(--md-shape-cookie-6); --shape-hover: var(--md-shape-burst); }
.feature-card:nth-child(9n + 7) .shape-icon { --shape: var(--md-shape-pentagon); --shape-hover: var(--md-shape-squircle); }
.feature-card:nth-child(9n + 8) .shape-icon { --shape: var(--md-shape-soft-burst); --shape-hover: var(--md-shape-cookie-7); }
.feature-card:nth-child(9n + 9) .shape-icon { --shape: var(--md-shape-puffy); --shape-hover: var(--md-shape-flower); }
/* The groups take different colours for their icons. */
.feature-group:nth-of-type(4n + 2) .shape-icon { --shape-bg: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.feature-group:nth-of-type(4n + 3) .shape-icon { --shape-bg: var(--md-sys-color-secondary); color: var(--md-sys-color-on-secondary); }
.feature-group:nth-of-type(4n + 4) .shape-icon { --shape-bg: var(--md-sys-color-tertiary); color: var(--md-sys-color-on-tertiary); }
.feature-group:nth-of-type(4n + 5) .shape-icon { --shape-bg: var(--md-sys-color-on-primary-container); color: var(--md-sys-color-primary-container); }
.feature-card h3 { margin: 0; }
.feature-card p { margin: 0; color: var(--md-sys-color-on-surface-variant); }
.feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin: auto 0 0;
  padding-top: var(--s-3);
}
.feature-meta div { display: flex; align-items: center; gap: var(--s-2); }
.feature-meta dt {
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-label-large);
  letter-spacing: var(--md-sys-typescale-label-large-tracking);
}
.feature-meta dd {
  margin: 0;
  font: var(--md-sys-typescale-label-large);
  letter-spacing: var(--md-sys-typescale-label-large-tracking);
}
.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-5);
}
.group-head h2 { margin: 0; }

/* A plain section of text beside the cards: a tonal sheet. */
.sheet {
  max-width: 52rem;
  padding: var(--s-5);
  border-radius: var(--sheet-radius);
  background: var(--md-sys-color-surface-container-low);
}
.sheet > :last-child { margin-bottom: 0; }
@media (min-width: 600px) {
  .sheet { padding: var(--s-6) var(--s-7); }
}

/* ---- Pricing ------------------------------------------------------------------------------------- */

.compare { min-width: 30rem; }
.compare thead th:not(:first-child),
.compare td { text-align: center; }
.compare tbody th { min-width: 11rem; }
.compare tbody th .badge { margin-top: var(--s-1); }
.yes,
.no {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font: var(--md-sys-typescale-label-large);
  letter-spacing: var(--md-sys-typescale-label-large-tracking);
}
.yes { color: var(--wy-ok); }
.no { color: var(--md-sys-color-on-surface-variant); }
.yes::before {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  background: currentColor;
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
  transition: scale var(--spring-fast);
}
tr:hover .yes::before { scale: 1.3; }

.addon-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5) var(--s-5);
  border-radius: var(--md-sys-shape-corner-large-increased);
  background: var(--md-sys-color-surface-container);
}
.addon-card:hover { border-radius: var(--md-sys-shape-corner-extra-large); }
.addon-card h3 { margin: 0; font: var(--md-sys-typescale-title-medium); letter-spacing: var(--md-sys-typescale-title-medium-tracking); }
.addon-card .badge { align-self: flex-start; }
.addon-card p { margin: 0; color: var(--md-sys-color-on-surface-variant); }
.addon-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--section-space) 0 0;
}

/* ---- Reading: documentation, legal documents, policies ----------------------------------------- */

.prose { max-width: var(--prose-width); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: var(--s-7) 0 var(--s-3);
  font: var(--md-sys-typescale-headline-small);
  letter-spacing: var(--md-sys-typescale-headline-small-tracking);
}
.prose h3 { margin: var(--s-6) 0 var(--s-2); font: var(--md-sys-typescale-title-large); font-weight: 500; }
.prose h4 { margin: var(--s-5) 0 var(--s-2); }
.prose h2 + h3 { margin-top: var(--s-4); }
.prose ul,
.prose ol { margin: 0 0 var(--s-4); padding-left: 1.5rem; }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--md-sys-color-on-surface-variant); }
.prose ol > li::marker { font-weight: 600; }
.prose blockquote {
  margin: 0 0 var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--md-sys-shape-corner-large);
  background: var(--md-sys-color-surface-container-high);
  overflow-wrap: anywhere;
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { margin: var(--s-6) 0; border: 0; border-top: 1px solid var(--md-sys-color-outline-variant); }
/* Tables written in a document sit in a surface container, and scroll
   inside it on a narrow screen rather than widening the page. */
.prose table {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 var(--s-5);
  overflow-x: auto;
  padding: var(--s-1) var(--s-2);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--md-sys-shape-corner-large-increased);
  background: var(--md-sys-color-surface-container-low);
  font: var(--md-sys-typescale-body-medium);
  letter-spacing: var(--md-sys-typescale-body-medium-tracking);
}
.prose th,
.prose td {
  padding: var(--s-3) var(--s-3);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  text-align: left;
  vertical-align: top;
  transition: background-color var(--fade-fast);
}
.prose thead th {
  border-bottom-color: var(--md-sys-color-outline);
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-title-small);
  letter-spacing: var(--md-sys-typescale-title-small-tracking);
}
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody tr:hover > * { background: color-mix(in srgb, var(--md-sys-color-on-surface) 6%, transparent); }
.prose tbody tr:hover > :first-child { border-radius: var(--md-sys-shape-corner-medium) 0 0 var(--md-sys-shape-corner-medium); }
.prose tbody tr:hover > :last-child { border-radius: 0 var(--md-sys-shape-corner-medium) var(--md-sys-shape-corner-medium) 0; }
.prose pre {
  margin: 0 0 var(--s-5);
  border-radius: var(--md-sys-shape-corner-large);
  background: var(--md-sys-color-surface-container-high);
  font-size: 0.875rem;
  line-height: 1.5;
}
/* A player's own words keep their line breaks. */
.prose blockquote.statement { white-space: pre-wrap; }
/* A document's own title, in the article itself, is the page title. */
.prose > h1:first-child { margin-bottom: var(--s-5); animation: wy-rise var(--spring) backwards, wy-fade var(--fade) backwards; }

.doc-meta-line {
  margin: var(--s-3) 0 0;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-body-medium);
  letter-spacing: var(--md-sys-typescale-body-medium-tracking);
}

/* Documentation: a list of pages beside the article. On a wide window it is
   a sticky navigation list; on a narrower one, a row of filter chips above
   the article. Either way the current page's indicator grows out from the
   centre as the page opens: the list's pill widens, the chip's corners go
   from 8px to round, it fills, and its check slides in. */
.docs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
}
.docs-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.docs-nav a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 1rem;
  border-radius: var(--md-sys-shape-corner-small);
  box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-label-large);
  letter-spacing: var(--md-sys-typescale-label-large-tracking);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-radius var(--spring-fast),
    box-shadow var(--fade),
    color var(--fade);
}
.docs-nav a::before {
  content: "";
  position: absolute;
  inset: 0 20%;
  z-index: -1;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  transition: inset var(--spring-fast), opacity var(--fade-fast);
}
.docs-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: max(100%, 3rem);
  transform: translateY(-50%);
}
.docs-nav a:hover::before { inset: 0; opacity: var(--md-sys-state-hover-state-layer-opacity); }
.docs-nav a:focus-visible::before { inset: 0; opacity: var(--md-sys-state-focus-state-layer-opacity); }
.docs-nav a:active::before { inset: 0; opacity: var(--md-sys-state-pressed-state-layer-opacity); }
.docs-nav a:hover { border-radius: var(--md-sys-shape-corner-medium); }
.docs-nav a[aria-current="page"] {
  border-radius: 1rem;
  box-shadow: none;
  color: var(--md-sys-color-on-secondary-container);
  font-weight: 700;
  animation: wy-chip-select var(--spring) backwards, wy-chip-label var(--fade-slow) backwards;
}
.docs-nav a[aria-current="page"]::before {
  inset: 0;
  background: var(--md-sys-color-secondary-container);
  opacity: 1;
  animation: wy-indicator-in var(--spring) backwards;
}
@keyframes wy-chip-select { from { border-radius: var(--md-sys-shape-corner-small); } }
@keyframes wy-chip-label { from { font-weight: 500; } }
/* A selected filter chip leads with a check that slides in. */
.nav-check {
  display: block;
  width: 0;
  height: 1.125rem;
  margin-right: 0;
  overflow: hidden;
  background: currentColor;
  -webkit-mask: var(--icon-check) left center / 1.125rem no-repeat;
  mask: var(--icon-check) left center / 1.125rem no-repeat;
}
.docs-nav a[aria-current="page"] .nav-check {
  width: 1.125rem;
  margin: 0 var(--s-2) 0 calc(-1 * var(--s-2));
  animation: wy-check-in var(--spring) 80ms backwards;
}
@keyframes wy-check-in { from { width: 0; margin: 0; } }
@media (min-width: 840px) {
  .docs {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: var(--s-7);
  }
  .docs-nav {
    position: sticky;
    top: var(--s-5);
    padding: var(--s-3);
    border-radius: var(--sheet-radius);
    background: var(--md-sys-color-surface-container-low);
  }
  .docs-nav ul { flex-direction: column; flex-wrap: nowrap; gap: var(--s-1); }
  .docs-nav a {
    display: flex;
    min-height: 3.5rem;
    padding: 0 var(--s-4);
    border-radius: 1.75rem;
    box-shadow: none;
    font: var(--md-sys-typescale-label-large);
    font-size: 0.9375rem;
    font-weight: 500;
  }
  .docs-nav a::before { inset: 0 35%; }
  .docs-nav a:hover,
  .docs-nav a[aria-current="page"] { border-radius: 1.75rem; }
  .docs-nav a[aria-current="page"] { font-weight: 700; animation: wy-chip-label var(--fade-slow) backwards; }
  .docs-nav a[aria-current="page"] .nav-check { display: none; }
}

/* The list of legal documents: a segmented list whose items are links.
   Pressing an item shrinks it a little and squares its corners. */
.doc-list { max-width: 52rem; }
.doc-item {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem;
  align-items: center;
  gap: var(--s-1) var(--s-4);
  padding: var(--s-4);
}
.doc-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--md-sys-color-on-surface);
  opacity: 0;
  transition: opacity var(--fade-fast);
}
.doc-item:hover::before { opacity: var(--md-sys-state-hover-state-layer-opacity); }
.doc-item:has(a:active)::before { opacity: var(--md-sys-state-pressed-state-layer-opacity); }
.seg-list > .doc-item:has(a:active) { border-radius: var(--md-sys-shape-corner-medium); transform: scale(0.98); }
.doc-item::after {
  content: "";
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--md-sys-color-on-surface-variant);
  -webkit-mask: var(--icon-chevron-right) center / contain no-repeat;
  mask: var(--icon-chevron-right) center / contain no-repeat;
  transition: translate var(--spring-fast);
}
.doc-item:hover::after { translate: 0.25rem 0; }
.doc-item .shape-icon {
  grid-row: 1 / span 2;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  --shape-bg: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.doc-item .shape-icon .icon { width: 1.25rem; height: 1.25rem; }
.doc-item:nth-child(3n + 2) .shape-icon { --shape: var(--md-shape-clover-4); --shape-hover: var(--md-shape-cookie-4); }
.doc-item:nth-child(3n + 3) .shape-icon { --shape: var(--md-shape-sunny); --shape-hover: var(--md-shape-very-sunny); }
.doc-item a {
  color: var(--md-sys-color-on-surface);
  font: var(--md-sys-typescale-title-medium);
  letter-spacing: var(--md-sys-typescale-title-medium-tracking);
  text-decoration: none;
}
.doc-item a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.doc-item a:focus-visible { outline: none; }
.doc-item:has(a:focus-visible) { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }
.doc-item:hover a { text-decoration: underline; }
.doc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-4);
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-body-medium);
  letter-spacing: var(--md-sys-typescale-body-medium-tracking);
}
.doc-facts div { display: flex; gap: var(--s-1); }
.doc-facts dt::after { content: ":"; }
.doc-facts dd { margin: 0; }

/* ---- Contact and the appeals portal: forms ----------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
}
@media (min-width: 840px) {
  .contact-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6); }
}

.form-narrow {
  max-width: 40rem;
  margin: 0;
  padding: var(--s-5) var(--s-4);
  border-radius: var(--sheet-radius);
  background: var(--md-sys-color-surface-container-low);
}
@media (min-width: 600px) {
  .form-narrow { padding: var(--s-6); }
}
.form-narrow .field:last-of-type { margin-bottom: var(--s-4); }
.form-note {
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-body-medium);
  letter-spacing: var(--md-sys-typescale-body-medium-tracking);
}
.form-narrow .btn-primary { --btn-height: 3.5rem; --btn-pad: 1.75rem; --btn-radius: var(--md-sys-shape-corner-large); font: var(--md-sys-typescale-title-medium); }
.form-narrow .btn-primary:hover { --btn-radius: var(--btn-radius-full); }

/* Text fields: the M3 outlined field, with the label above it. Focused,
   the outline thickens and the label takes the primary colour; a field in
   error shakes once, gently, and its message springs in. */
.field label {
  font: var(--md-sys-typescale-title-medium);
  letter-spacing: var(--md-sys-typescale-title-medium-tracking);
  transition: color var(--fade);
}
.field:focus-within label { color: var(--md-sys-color-primary); }
.field:has([aria-invalid="true"]) label { color: var(--md-sys-color-error); }
.input,
.select,
.textarea {
  background-color: var(--md-sys-color-surface);
  transition:
    border-color var(--fade-fast),
    box-shadow var(--fade-fast),
    border-radius var(--spring-fast);
}
.input:focus,
.select:focus,
.textarea:focus { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.input[aria-invalid="true"]:focus,
.select[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 2px var(--md-sys-color-error); }
[aria-invalid="true"] { animation: wy-shake var(--md-sys-motion-spring-slow-spatial-duration) var(--md-sys-motion-spring-fast-effects) 200ms backwards; }
@keyframes wy-shake {
  20% { translate: -0.375rem 0; }
  40% { translate: 0.3125rem 0; }
  60% { translate: -0.1875rem 0; }
  80% { translate: 0.125rem 0; }
}
.field .hint { font: var(--md-sys-typescale-body-medium); letter-spacing: var(--md-sys-typescale-body-medium-tracking); }
.field .error {
  display: flex;
  gap: var(--s-2);
  font: var(--md-sys-typescale-body-medium);
  font-weight: 500;
  animation: wy-error-in var(--spring) backwards, wy-fade var(--fade) backwards;
}
@keyframes wy-error-in { from { translate: 0 -0.5rem; scale: 0.96; } }
.field .error::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  -webkit-mask: var(--icon-error) center / contain no-repeat;
  mask: var(--icon-error) center / contain no-repeat;
}

/* The exposed drop-down menu. Without the customisable select, the M3
   drop-down arrow drawn in CSS so it follows the theme. */
.select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 3rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--md-sys-color-on-surface-variant) 50%),
    linear-gradient(-45deg, transparent 50%, var(--md-sys-color-on-surface-variant) 50%);
  background-position: calc(100% - 1.5rem) 52%, calc(100% - 1.1875rem) 52%;
  background-size: 0.3125rem 0.3125rem;
  background-repeat: no-repeat;
  cursor: pointer;
}
/* With the customisable select (Chromium), the menu is an M3 Expressive
   menu: the field rounds its corners while the menu is open, the arrow
   turns, the menu springs open from the field, and the chosen item is a
   filled pill with a check, where the others keep small corners. */
@supports (appearance: base-select) {
  .select,
  .select::picker(select) { appearance: base-select; }
  .select {
    display: flex;
    align-items: center;
    padding-right: var(--s-4);
    background-image: none;
  }
  .select:open {
    border-radius: var(--md-sys-shape-corner-large);
    border-color: var(--md-sys-color-primary);
    box-shadow: inset 0 0 0 1px var(--md-sys-color-primary);
  }
  .select::picker-icon {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    background: var(--md-sys-color-on-surface-variant);
    -webkit-mask: var(--icon-arrow-drop-down) center / contain no-repeat;
    mask: var(--icon-arrow-drop-down) center / contain no-repeat;
    transition: rotate var(--spring);
  }
  .select:open::picker-icon { rotate: 180deg; }
  .select::picker(select) {
    margin-block: var(--s-1);
    padding: var(--s-2);
    border: 0;
    border-radius: var(--md-sys-shape-corner-large);
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface);
    box-shadow: var(--md-sys-elevation-level2);
    transform-origin: top center;
    opacity: 1;
    scale: 1;
    transition:
      opacity var(--fade),
      scale var(--spring),
      overlay var(--fade) allow-discrete,
      display var(--fade) allow-discrete;
  }
  .select::picker(select):not(:popover-open) { opacity: 0; scale: 1 0.6; }
  @starting-style {
    .select::picker(select):popover-open { opacity: 0; scale: 1 0.6; }
  }
  .select option {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    min-height: 3rem;
    padding: 0 var(--s-4);
    border-radius: var(--md-sys-shape-corner-small);
    font: var(--md-sys-typescale-body-large);
    letter-spacing: var(--md-sys-typescale-body-large-tracking);
    cursor: pointer;
    transition: border-radius var(--spring-fast), background-color var(--fade), color var(--fade);
  }
  .select option + option { margin-top: 0.125rem; }
  .select option:hover,
  .select option:focus-visible {
    border-radius: var(--md-sys-shape-corner-large);
    background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
    outline: none;
  }
  .select option:checked {
    border-radius: 1.5rem;
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    font-weight: 700;
  }
  .select option:checked:focus-visible { outline: 3px solid var(--md-sys-color-secondary); outline-offset: -3px; }
  .select option::checkmark {
    content: "";
    order: -1;
    width: 1.25rem;
    height: 1.25rem;
    background: currentColor;
    -webkit-mask: var(--icon-check) center / contain no-repeat;
    mask: var(--icon-check) center / contain no-repeat;
  }
}

.aside-card {
  padding: var(--s-5);
  border-radius: var(--sheet-radius);
  background: var(--md-sys-color-surface-container);
}
.aside-card + .aside-card { margin-top: var(--s-3); }
.aside-card h2 {
  font: var(--md-sys-typescale-headline-small);
  letter-spacing: var(--md-sys-typescale-headline-small-tracking);
}
.aside-card > :last-child { margin-bottom: 0; }
.contact { margin: 0 0 var(--s-4); }
.contact dt { margin-top: var(--s-4); font: var(--md-sys-typescale-title-medium); letter-spacing: var(--md-sys-typescale-title-medium-tracking); }
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: var(--s-1) 0 0; overflow-wrap: anywhere; }

/* The appeals portal. A player, possibly a child, comes here once and
   upset: one clear thing to do, big targets, calm colours. */
.appeal-form .input.mono {
  font: var(--md-sys-typescale-title-large);
  font-family: var(--md-ref-typeface-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.know {
  margin-top: var(--s-7);
}
.know-list {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
}
.know-list li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  margin: 0;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--md-sys-shape-corner-extra-small);
  background: var(--md-sys-color-surface-container);
}
.know-list li::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background: var(--md-sys-color-primary);
  -webkit-mask: var(--icon-info) center / contain no-repeat;
  mask: var(--icon-info) center / contain no-repeat;
}
.know-list li:first-child { border-radius: var(--card-radius) var(--card-radius) var(--md-sys-shape-corner-extra-small) var(--md-sys-shape-corner-extra-small); }
.know-list li:last-child { border-radius: var(--md-sys-shape-corner-extra-small) var(--md-sys-shape-corner-extra-small) var(--card-radius) var(--card-radius); }
.link-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}
.link-row > span { display: none; }

/* Figures: a key number or value in a tile. */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--s-3);
  margin: 0 0 var(--s-5);
}
.figures > div {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5) var(--s-5);
  border-radius: var(--md-sys-shape-corner-large-increased);
  background: var(--md-sys-color-surface-container);
}
.figures dt {
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-label-large);
  letter-spacing: var(--md-sys-typescale-label-large-tracking);
}
.figures dd {
  margin: 0;
  font: var(--md-sys-typescale-title-large);
  overflow-wrap: anywhere;
}
.figures dd .badge { font: var(--md-sys-typescale-label-large); }
.figures-key dd {
  color: var(--md-sys-color-primary);
  font: 750 2.25rem/2.75rem var(--md-ref-typeface-plain);
  font-stretch: 125%;
}
.reason { max-width: 40rem; font: var(--md-sys-typescale-body-large); }

/* The ban, as a list of what is known about it: label and value on one
   row, in a segmented list. */
.ban-summary {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem;
}
.ban-summary > div {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1) var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--md-sys-shape-corner-extra-small);
}
.ban-summary > div:first-child { border-radius: var(--card-radius) var(--card-radius) var(--md-sys-shape-corner-extra-small) var(--md-sys-shape-corner-extra-small); }
.ban-summary > div:last-child { border-radius: var(--md-sys-shape-corner-extra-small) var(--md-sys-shape-corner-extra-small) var(--card-radius) var(--card-radius); }
.ban-summary dd { font: var(--md-sys-typescale-title-medium); letter-spacing: var(--md-sys-typescale-title-medium-tracking); text-align: right; }
.appeal-state { margin-top: var(--s-6); }

/* ---- Status page ------------------------------------------------------------------------------------------- */

/* The overall state, in large type: the one thing the page is for. Its
   icon sits on a sun (all working) or a gem (something is not), which
   turns in as the page opens. */
.status-hero {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  max-width: none;
  margin-bottom: 0;
  padding: var(--s-5);
  border-radius: var(--sheet-radius);
  font: var(--md-sys-typescale-title-large);
}
.status-hero::before {
  position: static;
  flex: none;
  width: 4rem;
  height: 4rem;
  -webkit-mask: none;
  mask: none;
  clip-path: var(--md-shape-sunny);
  background: var(--wy-ok);
  animation: wy-pop var(--spring-slow) backwards, wy-spin-once var(--spring-slow) backwards;
  transition: clip-path var(--md-sys-motion-morph-duration) var(--md-sys-motion-morph), rotate var(--spring-slow);
}
.status-hero:hover::before { clip-path: var(--md-shape-very-sunny); rotate: 45deg; }
.status-hero.notice-danger::before { clip-path: var(--md-shape-gem); background: var(--md-sys-color-error); }
.status-hero.notice-danger:hover::before { clip-path: var(--md-shape-diamond); }
.status-hero::after {
  content: "";
  position: absolute;
  left: calc(var(--s-5) + 1rem);
  top: 50%;
  width: 2rem;
  height: 2rem;
  transform: translateY(-50%);
  background: var(--wy-on-ok);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
  animation: wy-pop var(--spring) 200ms backwards;
}
.status-hero.notice-danger::after { background: var(--md-sys-color-on-error); -webkit-mask-image: var(--icon-error); mask-image: var(--icon-error); }
.status-hero p { margin: 0; }
.status-hero strong { display: block; font: var(--md-sys-typescale-emphasized-headline-small); }
@media (max-width: 599px) {
  .status-hero { gap: var(--s-4); font: var(--md-sys-typescale-body-large); }
  .status-hero::before { width: 3rem; height: 3rem; }
  .status-hero::after { left: calc(var(--s-5) + 0.75rem); width: 1.5rem; height: 1.5rem; }
}
@media (min-width: 600px) {
  .status-hero { padding: var(--s-6) var(--s-7) var(--s-6) var(--s-6); }
  .status-hero strong { font: var(--md-sys-typescale-emphasized-headline-medium); }
  .status-hero::after { left: calc(var(--s-6) + 1rem); }
}

.component-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.component {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--card-radius);
  background: var(--md-sys-color-surface-container);
}
.component-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
}
.component-head h3 { margin: 0; }
.component-head p { margin: 0; }
.uptime {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 0;
}
@media (min-width: 600px) {
  .uptime { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.uptime > div {
  padding: var(--s-3);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container-lowest);
  transition: border-radius var(--spring-fast);
}
.uptime > div:hover { border-radius: var(--md-sys-shape-corner-extra-large); }
.uptime dt {
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-label-medium);
  letter-spacing: var(--md-sys-typescale-label-medium-tracking);
}
.uptime dd {
  margin: var(--s-1) 0 0;
  font: 750 1.125rem/1.5rem var(--md-ref-typeface-plain);
  font-stretch: 120%;
}
.uptime dd .muted { font: var(--md-sys-typescale-body-medium); }
.status-note { max-width: 52rem; margin-top: var(--s-4); }

/* ---- Page not found ------------------------------------------------------------------------------------- */

/* A playful one: the mascot looks about on a shape that keeps changing its
   mind, cycling through the library like the loading indicator. */
.hero-404 .hero-copy { align-self: center; }
.hero-404 .hero-stage {
  animation: md-loading-morph 6s infinite, wy-spin 30s linear infinite, wy-pop var(--spring-slow) backwards;
}
.hero-404 .hero-mascot {
  transform-origin: 50% 100%;
  animation: wy-rise-far var(--spring) 120ms backwards, wy-fade var(--fade) 120ms backwards, wy-look 3.6s 700ms infinite;
}
@keyframes wy-look {
  0%, 100% { rotate: 0deg; animation-timing-function: var(--md-sys-motion-spring-default-spatial); }
  25% { rotate: -7deg; animation-timing-function: var(--md-sys-motion-spring-default-spatial); }
  50% { rotate: 0deg; animation-timing-function: var(--md-sys-motion-spring-default-spatial); }
  75% { rotate: 7deg; animation-timing-function: var(--md-sys-motion-spring-default-spatial); }
}
@media (min-width: 840px) {
  .hero-404 { min-height: 30rem; }
}

/* ---- Footer ------------------------------------------------------------------------------------------------ */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: var(--section-space);
  padding: var(--s-7) 0 var(--s-5);
  border-radius: var(--hero-radius) var(--hero-radius) 0 0;
  background: var(--wy-brand-bar);
  color: var(--wy-on-brand-bar-variant);
}
.footer-shape {
  position: absolute;
  z-index: -1;
  right: -6rem;
  bottom: -9rem;
  width: 24rem;
  height: 24rem;
  background: color-mix(in srgb, var(--wy-on-brand-bar) 5%, transparent);
  clip-path: var(--md-shape-sunny);
  animation: md-shape-drift 40s -20s infinite;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .footer-grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); }
  .footer-brand { grid-column: auto; }
}
.footer-logo { display: block; width: min(100%, 13rem); height: auto; margin-bottom: var(--s-4); }
.footer-brand p { max-width: 24rem; margin: 0; }
.footer-head {
  margin: 0 0 var(--s-3);
  color: var(--wy-on-brand-bar-variant);
  font: var(--md-sys-typescale-title-small);
  letter-spacing: var(--md-sys-typescale-title-small-tracking);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0; }
.site-footer a {
  display: inline-block;
  padding: 0.375rem 0;
  color: var(--wy-on-brand-bar);
  text-decoration: none;
  transition: translate var(--spring-fast);
}
.site-footer a:hover { text-decoration: underline; translate: 0.25rem 0; }
.footer-note {
  margin-top: var(--s-7);
  font: var(--md-sys-typescale-body-small);
  letter-spacing: var(--md-sys-typescale-body-small-tracking);
}
.footer-note p {
  margin: 0;
  padding-top: var(--s-5);
  border-top: 1px solid color-mix(in srgb, var(--wy-on-brand-bar) 18%, transparent);
}
