/* Pure black by default; data-theme="light" swaps to white. The notch and its
   cards stay black in both, as flare's own default is. */

:root {
  --wall: #000000;
  --raise: #0c0c0d;
  --ink: #f4f4f5;
  --ink-2: #a3a3a8;
  --ink-3: #6c6c72;
  --rule: rgba(255, 255, 255, 0.1);
  --code-bg: #0e0e10;
  --code-line: rgba(255, 255, 255, 0.08);
  --focus: #f4f4f5;

  --notch: #000000;
  --notch-edge: rgba(255, 255, 255, 0.16);
  --card-text: #ffffff;
  --card-soft: #c8c8c8;
  --card-dim: #808080;
  --track: #2d2d2d;
  --row-hover: rgba(255, 255, 255, 0.07);
  --good: #2bd86b;
  --mid: #ffb020;
  --high: #f23a12;
  --accent: #ffb020;

  --display: "Funnel Display", "Geist", system-ui, sans-serif;
  --body: "Geist", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --notch-w: 96px;
  --flare-r: 34px;
  --body-r: 30px;
  --gutter: calc(var(--notch-w) + clamp(40px, 6vw, 96px));
  --edge-pad: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --wall: #ffffff;
  --raise: #f5f5f6;
  --ink: #0a0a0b;
  --ink-2: #55575d;
  --ink-3: #8b8d93;
  --rule: rgba(10, 10, 11, 0.1);
  --code-bg: #f4f4f5;
  --code-line: rgba(10, 10, 11, 0.07);
  --focus: #0a0a0b;
  --notch-edge: transparent;
  --accent: #d98c00;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-3);
  transition: text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: currentColor;
}

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

code,
pre,
kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}

p code,
li code,
td code,
dd code,
figcaption code {
  background: var(--code-bg);
  box-shadow: inset 0 0 0 1px var(--code-line);
  padding: 0.12em 0.4em;
  border-radius: 5px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: var(--gutter);
  background: var(--ink);
  color: var(--wall);
  padding: 6px 12px;
  z-index: 50;
}

/* ---------- header ---------- */

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--edge-pad) 0 var(--gutter);
  font-size: 15px;
  z-index: 5;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 22px/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark img {
  display: block;
  flex: none;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.15s;
}

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

/* The language switch (i18n.js) wears the theme button's ring. */
.theme,
.lang {
  all: unset;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--rule);
  cursor: pointer;
  transition: color 0.15s, box-shadow 0.15s;
}

.theme:hover,
.lang:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink-3);
}

.lang {
  width: auto;
  min-width: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
}

/* Hidden until i18n.js has put the translation in, so the English never
   flashes first; the head script lifts it after two seconds regardless. */
.i18n-pending body {
  visibility: hidden;
}

.theme:focus-visible,
.lang:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.theme svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme .sun,
:root[data-theme="light"] .theme .moon {
  display: none;
}

:root[data-theme="light"] .theme .sun {
  display: block;
}

main,
.foot {
  padding-left: var(--gutter);
  padding-right: var(--edge-pad);
}

.measure {
  max-width: 44rem;
}

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 128px 88px;
}

.hero h1 {
  font: 500 clamp(46px, 8vw, 124px) / 0.92 var(--display);
  letter-spacing: -0.04em;
  margin: 0 0 36px;
  max-width: 12ch;
  text-wrap: balance;
}

.hero h1 .quiet {
  color: var(--ink-3);
}

.hero .lede {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 35rem;
  margin: 0 0 30px;
}

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

.pointer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 13.5px/1.3 var(--mono);
  color: var(--ink-2);
  margin: 0 0 44px;
}

.pointer .arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink);
  transition: transform 0.4s var(--ease);
  animation: nudge 2.4s var(--ease) infinite;
}

.pointer[data-dir="up"] .arrow {
  transform: rotate(90deg);
  animation-name: nudge-up;
}

@keyframes nudge {
  0%, 60%, 100% { translate: 0 0; }
  30% { translate: -4px 0; }
}

@keyframes nudge-up {
  0%, 60%, 100% { translate: 0 0; }
  30% { translate: 0 -4px; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 15px/1 var(--body);
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.18s, color 0.18s, box-shadow 0.18s;
}

.button.solid {
  background: var(--ink);
  color: var(--wall);
}

.button.solid:hover {
  background: var(--ink-2);
}

.button.line {
  box-shadow: inset 0 0 0 1px var(--rule);
}

.button.line:hover {
  box-shadow: inset 0 0 0 1px var(--ink-3);
}

.meta {
  font: 400 13px/1 var(--mono);
  color: var(--ink-3);
  margin-left: 8px;
}

/* ---------- sections ---------- */

.section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 96px;
  border-top: 1px solid var(--rule);
}

.section-head {
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  font: 400 13px/1 var(--mono);
  color: var(--ink-3);
  margin: 0 0 18px;
}

.section h2 {
  font: 500 clamp(34px, 3.6vw, 50px) / 1.02 var(--display);
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.section h3 {
  font: 600 17px/1.3 var(--body);
  margin: 36px 0 8px;
}

.section p {
  margin: 0 0 16px;
  color: var(--ink-2);
}

.section p strong {
  color: var(--ink);
  font-weight: 500;
}

.section-body {
  min-width: 0;
  max-width: 50rem;
}

@media (min-width: 1100px) {
  .section {
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
    column-gap: clamp(48px, 5vw, 96px);
  }

  .section-head {
    position: sticky;
    top: 40px;
    align-self: start;
  }

  .section h2 {
    margin-bottom: 0;
  }

  .section-body > :first-child {
    margin-top: 0;
  }

  .section-body .lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink);
  }
}

pre {
  background: var(--code-bg);
  box-shadow: inset 0 0 0 1px var(--code-line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 8px 0 24px;
  overflow-x: auto;
  line-height: 1.75;
  color: var(--ink);
}

.copyable {
  position: relative;
}

.copy {
  position: absolute;
  top: 12px;
  right: 12px;
  font: 500 12px/1 var(--mono);
  padding: 7px 10px;
  border-radius: 7px;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--code-line);
  background: var(--wall);
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.15s;
}

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

.prompt,
.comment {
  color: var(--ink-3);
  user-select: none;
}

.needs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 28px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}

.needs dt {
  font: 400 13px/1.6 var(--mono);
  color: var(--ink);
}

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

/* look switcher */

.looks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 32px;
}

.look {
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--raise);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--rule);
  border-radius: 16px;
  padding: 18px 18px 20px;
  cursor: pointer;
  transition: box-shadow 0.2s, background-color 0.2s, color 0.2s;
}

.look:hover {
  box-shadow: inset 0 0 0 1px var(--ink-3);
}

.look[aria-pressed="true"] {
  background: var(--ink);
  color: var(--wall);
  box-shadow: none;
}

.look .pic {
  display: block;
  width: 100%;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--wall);
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink);
}

.look[aria-pressed="true"] .pic {
  background: color-mix(in srgb, var(--wall) 10%, transparent);
  box-shadow: none;
}

.look .pic svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Pictograms: the notch in the page's ink, its rings in the page's wall
   colour; the pressed card swaps the two. */
.look .pic {
  --pic-ink: var(--ink);
  --pic-wall: var(--wall);
}

.look[aria-pressed="true"] .pic {
  --pic-ink: var(--wall);
  --pic-wall: var(--ink);
}

.pic .n {
  fill: var(--pic-ink);
}

.pic .d {
  fill: none;
  stroke: var(--pic-wall);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.pic .a {
  fill: none;
  stroke: #d97757;
  stroke-width: 2.2;
}

.pic .f {
  fill: var(--pic-wall);
}

.look .name {
  display: block;
  font: 500 22px/1.1 var(--display);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.look .what {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.72;
}

/* tables */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0 24px;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 13px 18px 13px 0;
  border-bottom: 1px solid var(--rule);
}

.table th {
  font: 400 12px/1 var(--mono);
  color: var(--ink-3);
  padding-bottom: 11px;
}

.table td {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.table td:first-child {
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
}

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.modes > div {
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--rule);
  border-radius: 16px;
  padding: 20px 22px 6px;
}

.modes h3 {
  margin-top: 0;
  font: 500 14px/1 var(--mono);
  color: var(--ink);
}

.modes p {
  font-size: 15px;
}

.shot {
  margin: 36px 0 0;
  max-width: 32rem;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--rule);
}

.shot figcaption {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 12px;
}

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

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 40px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  justify-content: space-between;
  font-size: 15px;
  color: var(--ink-2);
}

.foot p {
  margin: 0;
  max-width: 34rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

/* ---------- page heads (credits, changelog) ---------- */

.page-head {
  padding-block: 156px 64px;
}

.page-head h1 {
  font: 500 clamp(46px, 7vw, 104px) / 0.94 var(--display);
  letter-spacing: -0.04em;
  margin: 0 0 26px;
}

.page-head .lede {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38rem;
  margin: 0;
}

/* ---------- credits ---------- */

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 60rem;
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 8px clamp(32px, 4vw, 64px);
  padding-block: 40px;
  border-top: 1px solid var(--rule);
}

.entry h2 {
  font: 500 32px/1.02 var(--display);
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}

.entry .by {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 12px;
}

.entry .link {
  font: 400 13px/1.5 var(--mono);
  color: var(--ink-2);
  word-break: break-all;
}

.entry dl {
  margin: 0;
}

.entry dt {
  font: 400 12px/1 var(--mono);
  color: var(--ink-3);
  margin: 0 0 9px;
}

.entry dt:not(:first-child) {
  margin-top: 22px;
}

.entry dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.entry dd.no {
  color: var(--ink-2);
}

.stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack li {
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-2);
}

.stack li a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.stack li a:hover {
  text-decoration: underline;
}

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

.log {
  max-width: 60rem;
  padding-bottom: 80px;
}

.release {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 8px clamp(32px, 4vw, 64px);
  padding-block: 40px;
  border-top: 1px solid var(--rule);
}

.release header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.release h2 {
  font: 500 44px/1 var(--display);
  letter-spacing: -0.03em;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.latest {
  font: 500 12px/1 var(--mono);
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--wall);
}

.release-link {
  font: 400 13px/1 var(--mono);
  color: var(--ink-2);
}

.release-body p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

.release-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-body li {
  position: relative;
  padding: 0 0 14px 20px;
  color: var(--ink-2);
  line-height: 1.6;
}

.release-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}

.release-body strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- what's new ---------- */

.news {
  position: fixed;
  inset: auto clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) auto;
  z-index: 40;
  width: min(380px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  margin: 0;
  padding: 22px 22px 18px;
  border: 0;
  border-radius: 18px;
  background: var(--notch);
  color: var(--card-text);
  box-shadow: 0 0 0 1px var(--notch-edge), 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.24s var(--ease), transform 0.32s var(--ease);
}

.news:not([open]) {
  display: none;
}

.news.in {
  opacity: 1;
  transform: none;
}

.news-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 12px/1 var(--mono);
  color: var(--card-dim);
  margin: 0 0 10px;
}

.news-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}

.news-title {
  font: 500 28px/1.05 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.news-body {
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--card-soft);
  margin-right: -8px;
  padding-right: 8px;
}

.news-body p {
  margin: 0 0 10px;
}

.news-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-body li {
  position: relative;
  padding: 0 0 9px 16px;
}

.news-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--card-dim);
}

.news-body strong {
  color: #ffffff;
  font-weight: 500;
}

.news-body code {
  background: #1a1a1a;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.news-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.news-actions a {
  color: var(--card-soft);
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.news-actions a:hover {
  color: #ffffff;
}

.news-close {
  font: 500 14px/1 var(--body);
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
}

.news-close:hover {
  background: var(--card-soft);
}

.news :focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* =================================================================
   The notch: a working copy of flare's classic, aura and compact looks.
   Its outline is an SVG drawn to the body's size, so the hairline edge
   follows the inverse corners too.
   ================================================================= */

.flare {
  position: fixed;
  z-index: 20;
  font-family: var(--body);
  color: var(--card-text);
}

.flare[hidden] {
  display: none;
}

.shape {
  position: absolute;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}

.shape .fill {
  fill: var(--notch);
}

.shape .edge {
  fill: none;
  stroke: var(--notch-edge);
  stroke-width: 1;
}

.flare-side {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.body {
  position: relative;
  isolation: isolate;
  width: var(--notch-w);
  padding: 26px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.ring {
  all: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 14px;
  padding: 2px;
}

.ring:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.ring .face {
  position: relative;
  display: grid;
  place-items: center;
}

.ring svg {
  display: block;
  width: 60px;
  height: 60px;
}

.ring .face img {
  position: absolute;
  width: 24px;
  height: 24px;
}

.ring .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.19);
  stroke-width: 5;
}

.ring .arc {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.1s var(--ease);
}

.ring .figure {
  font: 500 17px/1 var(--body);
  font-variant-numeric: tabular-nums;
  color: var(--card-text);
}

/* aura */

.flare[data-style="aura"] .body {
  padding: 30px 0 22px;
  gap: 14px;
}

.aura-glow {
  position: absolute;
  inset: 0;
  border-radius: 0 var(--body-r) var(--body-r) 0;
  pointer-events: none;
}

.flare[data-style="aura"] .ring.lead svg {
  width: 70px;
  height: 70px;
}

.flare[data-style="aura"] .ring.lead .face img {
  width: 28px;
  height: 28px;
}

.flare[data-style="aura"] .ring.lead .figure {
  font-size: 20px;
}

.aura-name {
  font: 400 12px/1 var(--mono);
  color: var(--card-dim);
  margin-top: -4px;
}

.aura-rest {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 60px;
}

.aura-rest button {
  all: unset;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 500 12px/1 var(--body);
  font-variant-numeric: tabular-nums;
  color: var(--card-soft);
  cursor: pointer;
  border-radius: 6px;
}

.aura-rest button:hover {
  color: #ffffff;
}

.aura-rest button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.aura-rest img {
  width: 15px;
  height: 15px;
}

/* ---------- the hover card ---------- */

.card {
  position: fixed;
  z-index: 21;
  width: 300px;
  background: var(--notch);
  border-radius: 16px;
  padding: 20px 20px 18px;
  color: var(--card-text);
  box-shadow: 0 0 0 1px var(--notch-edge), 0 28px 70px -28px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: scale(0.96);
  transform-origin: left center;
  pointer-events: none;
  transition: opacity 0.17s var(--ease), transform 0.22s var(--ease), top 0.22s var(--ease);
}

.card.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.card .tail {
  position: absolute;
  left: -24px;
  width: 26px;
  height: 36px;
  overflow: visible;
  transition: top 0.22s var(--ease);
}

.card .tail .fill {
  fill: var(--notch);
}

.card .tail .edge {
  fill: none;
  stroke: var(--notch-edge);
  stroke-width: 1;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 500 19px/1.2 var(--body);
  margin: 0 0 4px;
}

.card-title img {
  width: 20px;
  height: 20px;
}

.card-plan {
  font-size: 13px;
  color: var(--card-dim);
  margin: 0 0 14px;
}

.window + .window {
  margin-top: 14px;
}

.window-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
}

.window-head .reset {
  font-size: 13.5px;
  color: var(--card-dim);
  white-space: nowrap;
}

.bar {
  height: 8px;
  border-radius: 4px;
  background: var(--track);
  margin: 7px 0 6px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  min-width: 16px;
  border-radius: inherit;
  transition: width 0.7s var(--ease);
}

.used {
  font-size: 13.5px;
  color: var(--card-soft);
  font-variant-numeric: tabular-nums;
}

.card-note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--card-soft);
  margin: 4px 0 0;
}

.tokens {
  font: 500 34px/1 var(--display);
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
}

/* sessions */

.sessions {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sessions-head {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  width: calc(100% + 12px);
  margin: 6px -6px 0;
  padding: 9px 6px;
  border-radius: 9px;
  font: 500 15px/1 var(--body);
  cursor: pointer;
  transition: background-color 0.14s;
}

.sessions-head:hover {
  background: var(--row-hover);
}

.sessions-head:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 0;
}

.count {
  font: 600 12px/1 var(--body);
  font-variant-numeric: tabular-nums;
  background: #1a1a1a;
  color: var(--card-soft);
  border-radius: 999px;
  padding: 4px 8px;
}

.count.waiting {
  background: rgba(255, 176, 32, 0.18);
  color: var(--mid);
}

.chevron {
  margin-left: auto;
  width: 11px;
  height: 11px;
  stroke: var(--card-dim);
  transition: transform 0.26s var(--ease);
}

.sessions-head[aria-expanded="true"] .chevron {
  transform: rotate(90deg);
}

.fold {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s var(--ease), opacity 0.22s;
}

.fold.open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.fold > ul {
  min-height: 0;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.session {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: calc(100% + 12px);
  margin: 2px -6px 0;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.14s;
}

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

.session:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 0;
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-dim);
}

.dot.busy {
  background: var(--good);
}

.dot.waiting {
  background: var(--mid);
}

.dot.busy::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--good);
  animation: halo 1.6s var(--ease) infinite;
}

@keyframes halo {
  from {
    transform: scale(1);
    opacity: 0.45;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

.session-name {
  display: block;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-sub {
  display: block;
  font-size: 12.5px;
  color: var(--card-dim);
}

.session-state {
  position: relative;
  font-size: 12.5px;
  color: var(--card-dim);
  text-align: right;
}

.session-state.waiting {
  color: var(--mid);
}

.session-state .label {
  transition: opacity 0.16s;
}

.session-state .go {
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  stroke: #ffffff;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.16s, transform 0.18s;
}

.session:hover .session-state .label,
.session:focus-visible .session-state .label {
  opacity: 0;
}

.session:hover .session-state .go,
.session:focus-visible .session-state .go {
  opacity: 1;
  transform: none;
}

.jumped {
  font-size: 12.5px;
  color: var(--card-soft);
  margin: 10px 0 0;
}

.jumped:empty {
  display: none;
}

/* ---------- compact: a strip on the top edge ---------- */

.flare-top {
  top: 0;
  left: 50%;
  width: min(340px, calc(100vw - 64px));
  transform: translateX(-50%);
  isolation: isolate;
}

.strip {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  height: 38px;
  padding: 0 20px;
  cursor: pointer;
  font: 500 13.5px/1 var(--body);
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  border-radius: 0 0 16px 16px;
}

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

.strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.strip img {
  width: 15px;
  height: 15px;
}

.panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.panel.open {
  grid-template-rows: 1fr;
}

.panel > div {
  min-height: 0;
  overflow: hidden;
}

.panel-rows {
  padding: 6px 18px 18px;
}

.panel-row + .panel-row {
  margin-top: 12px;
}

.panel-row .window-head img {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 7px;
}

/* ---------- small screens ---------- */

/* provider matrix */

.section-body.wide {
  max-width: none;
}

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

.cap {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  flex: none;
}

.cap.full {
  background: var(--ink);
}

.cap.ring {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.cap.none {
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink-3);
  opacity: 0.6;
}

.cap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 8px 0 22px;
  font-size: 14px;
  color: var(--ink-2);
}

.cap-legend li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--raise);
  overflow: hidden;
}

.matrix th,
.matrix td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  vertical-align: middle;
}

.matrix thead th {
  font: 400 12px/1.2 var(--mono);
  color: var(--ink-3);
  padding-block: 14px;
}

.matrix thead th:first-child,
.matrix tbody th {
  text-align: left;
  padding-left: 24px;
}

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

.matrix tbody tr {
  transition: background-color 0.25s var(--ease);
}

.matrix tbody tr:hover {
  background: var(--row-hover);
}

.matrix td {
  color: var(--ink-3);
  font-size: 11px;
}

.matrix td small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.2;
}

.matrix .who {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 400;
}

.matrix .tile {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex: none;
}

.matrix .name {
  display: block;
  font: 500 18px/1.2 var(--display);
  color: var(--ink);
  white-space: nowrap;
}

.matrix .unit {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
}

@media (max-width: 860px) {
  .matrix,
  .matrix tbody,
  .matrix tr,
  .matrix th,
  .matrix td {
    display: block;
  }

  .matrix thead {
    display: none;
  }

  .matrix tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--rule);
    padding: 6px 0 12px;
  }

  .matrix tbody tr:last-child {
    border-bottom: 0;
  }

  .matrix tbody th {
    grid-column: 1 / -1;
    padding: 14px 18px 8px;
    border: 0;
  }

  .matrix td {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    text-align: left;
    padding: 8px 18px;
    border: 0;
  }

  .matrix td::before {
    grid-column: 2;
    grid-row: 1;
    font: 400 12px/1.2 var(--mono);
    color: var(--ink-2);
    white-space: nowrap;
  }

  .matrix td .cap {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .matrix td small {
    grid-column: 2;
    grid-row: 2;
    margin: 3px 0 0;
  }

  .matrix td:nth-of-type(1)::before { content: "limit ring"; }
  .matrix td:nth-of-type(2)::before { content: "reset time"; }
  .matrix td:nth-of-type(3)::before { content: "usage today"; }
  .matrix td:nth-of-type(4)::before { content: "local mode"; }
  .matrix td:nth-of-type(5)::before { content: "sessions"; }
  .matrix td:nth-of-type(6)::before { content: "heatmap"; }
}

@media (max-width: 720px) {
  :root {
    --notch-w: 64px;
    --flare-r: 24px;
    --body-r: 22px;
    --gutter: calc(var(--notch-w) + 22px);
  }

  body {
    font-size: 16px;
  }

  /* A phone cannot hold the wordmark, three links and two buttons on one
     line, least of all in Turkish: the links wrap under the wordmark. */
  .top {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .top nav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .top nav .wide {
    display: none;
  }

  .body {
    padding: 18px 0;
    gap: 12px;
  }

  .ring svg {
    width: 42px;
    height: 42px;
  }

  .ring .face img {
    width: 18px;
    height: 18px;
  }

  .ring .figure {
    font-size: 13px;
  }

  .flare[data-style="aura"] .ring.lead svg {
    width: 48px;
    height: 48px;
  }

  .aura-rest {
    width: 44px;
  }

  .card {
    width: min(300px, calc(100vw - var(--notch-w) - 30px));
    padding: 16px 16px 14px;
  }

  .hero {
    padding-block: 110px 64px;
  }

  .section {
    padding-block: 64px;
  }

  .looks,
  .modes,
  .entry,
  .release {
    grid-template-columns: 1fr;
  }

  .release header {
    flex-direction: row;
    align-items: center;
  }

  .needs {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .needs dd {
    margin-bottom: 10px;
  }

  .table td:first-child {
    white-space: normal;
  }

  .news {
    max-height: 62vh;
  }

  .strip {
    gap: 12px;
    padding: 0 14px;
  }

  .page-head {
    padding-block: 140px 40px;
  }

  .page-head h1 {
    font-size: min(46px, 10vw);
    overflow-wrap: anywhere;
  }
}

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

/* The hero: the logo's gauge, large and quiet, filling to the reading below it. */

@property --sweep {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero > :not(.hero-art) {
  position: relative;
  z-index: 1;
}

.hero-art {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 88px;
  width: clamp(300px, 30vw, 520px);
  pointer-events: none;
}

.hero-gauge {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Everything below follows three numbers the page sets: --v the session's
   use, --w the week's, --t how much of the session's time has gone. Registered,
   so the browser eases between readings and motion.js only names the next one. */
@property --v {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --w {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --t {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.hero-gauge {
  --tip: var(--accent);
  transition: --v 1.1s var(--ease), --w 1.6s var(--ease), --t 2.6s linear;
  animation: gauge-intro 1.8s var(--ease) 0.6s backwards;
}

/* A reset drains slower than a reading climbs. */
.hero-gauge.draining {
  transition-duration: 1.9s, 1.6s, 1.9s;
}

.hero-gauge[data-level="high"] {
  --tip: var(--high);
}

.hero-gauge .from {
  stop-color: var(--ink);
}

.hero-gauge .to {
  stop-color: var(--accent);
}

.hero-gauge .tip-colour {
  stop-color: var(--tip);
}

.hero-gauge .orbit {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.07;
  stroke-width: 1.5;
  stroke-dasharray: 100 100;
  animation: draw 2.4s var(--ease) 0.2s backwards;
}

.hero-gauge .time {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.3;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: calc(100 - var(--t));
}

.hero-gauge .clock {
  transform-box: view-box;
  transform-origin: 300px 400px;
  rotate: calc(var(--t) * 1.8deg - 90deg);
}

.hero-gauge .clock circle {
  fill: var(--ink);
}

.hero-gauge .ticks line {
  stroke: var(--ink);
  stroke-opacity: 0.14;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-opacity 0.6s var(--ease);
}

.hero-gauge .ticks line.lit {
  stroke-opacity: 0.55;
}

.hero-gauge .track {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.08;
  stroke-width: 26;
  stroke-linecap: round;
}

.hero-gauge .fill {
  fill: none;
  stroke: url(#gauge-fill);
  stroke-width: 26;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: calc(100 - var(--v));
}

.hero-gauge .week-track {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.07;
  stroke-width: 8;
  stroke-linecap: round;
}

.hero-gauge .week {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.45;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: calc(100 - var(--w));
}

.hero-gauge .tip,
.hero-gauge .needle {
  transform-box: view-box;
  transform-origin: 300px 400px;
  rotate: calc(var(--v) * 1.8deg - 90deg);
}

.hero-gauge .glow {
  fill: url(#gauge-glow);
  opacity: 0.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: glow 4.5s ease-in-out 3s infinite;
}

.hero-gauge.flash .glow {
  animation: flash 0.9s var(--ease);
}

.hero-gauge .needle line {
  stroke: var(--ink);
  stroke-width: 8;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 300px 400px;
  animation: wobble 3.6s ease-in-out 2.6s infinite;
}

.hero-gauge .hub {
  fill: var(--wall);
  stroke: var(--ink);
  stroke-width: 6;
}

/* Off screen or in a background tab, nothing moves. */
.hero-art.paused * {
  animation-play-state: paused !important;
}

.hero-readout {
  position: absolute;
  left: 50%;
  top: 84%;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  animation: rise 0.9s var(--ease) 1.1s both;
}

.hero-readout .figure {
  font: 500 clamp(30px, 3.2vw, 50px)/1 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.hero-readout .caption,
.hero-readout .week-line {
  font: 400 11.5px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s var(--ease);
}

.hero-readout .caption.reset {
  color: var(--accent);
}

.hero-readout .week-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.06em;
}

.hero-readout .week-line b {
  font-weight: 500;
  color: var(--ink-2);
}

.hero-readout .swatch {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.45;
}

.hero-readout [data-pace] {
  transition: color 0.5s var(--ease);
}

.hero-readout [data-pace].ahead {
  color: var(--accent);
}

.hero h1 .line {
  display: inline-block;
  animation: rise 1s var(--ease) 0.05s both;
}

.hero h1 .quiet.line {
  animation-delay: 0.2s;
}

.rise {
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(0.12s + var(--d, 0) * 90ms);
}

.button {
  transition: background-color 0.18s, color 0.18s, box-shadow 0.18s, translate 0.25s var(--ease);
}

.button:hover {
  translate: 0 -2px;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
    filter: blur(6px);
  }
}

@keyframes gauge-intro {
  from {
    --v: 0;
    --w: 0;
    --t: 0;
  }
}

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

@keyframes glow {
  50% {
    opacity: 0.28;
    scale: 0.82;
  }
}

@keyframes flash {
  30% {
    opacity: 1;
    scale: 1.7;
  }
}

@keyframes wobble {
  0%, 100% {
    rotate: 0deg;
  }
  30% {
    rotate: 0.9deg;
  }
  62% {
    rotate: -0.6deg;
  }
}

/* Narrower, it moves up beside the title, clear of the text under it; on a
   phone the notch at the edge is demo enough. */
@media (max-width: 1100px) {
  .hero-art {
    top: 110px;
    bottom: auto;
    width: clamp(240px, 30vw, 330px);
  }
}

@media (max-width: 760px) {
  .hero-art {
    display: none;
  }
}

/* The provider matrix takes the page's whole width, its heading above it,
   and is set large: it is the page's one table worth reading row by row. */
@media (min-width: 1100px) {
  .section.stacked {
    grid-template-columns: minmax(0, 1fr);
  }

  .section.stacked .section-head {
    position: static;
    margin-bottom: 20px;
  }

  .section.stacked .section-body .lead {
    max-width: 46rem;
  }
}

@media (min-width: 861px) {
  .matrix {
    border-radius: 26px;
  }

  .matrix th,
  .matrix td {
    padding: 24px 14px;
  }

  .matrix thead th {
    font-size: 13px;
    padding-block: 18px;
  }

  .matrix thead th:first-child,
  .matrix tbody th {
    padding-left: 32px;
  }

  .matrix .who {
    gap: 18px;
  }

  .matrix .tile {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .matrix .tile img {
    width: 30px;
    height: 30px;
  }

  .matrix .tile::after {
    border-radius: 20px;
  }

  .matrix .name {
    font-size: 22px;
  }

  .matrix .unit {
    font-size: 13.5px;
    margin-top: 2px;
  }

  .matrix .cap {
    width: 16px;
    height: 16px;
    border-radius: 8px;
  }

  .matrix .cap.none {
    width: 18px;
    height: 2px;
    border-radius: 1px;
  }

  .matrix td small {
    font-size: 12.5px;
    margin-top: 9px;
  }
}

/* The provider matrix: rows arrive in turn, each provider's ring draws round
   its logo in its own aura colour, and the column under the pointer lights. */

.matrix .tile {
  position: relative;
}

.matrix .tile img {
  transition: scale 0.35s var(--ease);
}

.matrix .tile::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 16px;
  padding: 2px;
  background: conic-gradient(from 0deg, var(--aura, var(--ink)) calc(var(--sweep) * 1%), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease), --sweep 0.9s var(--ease);
}

.matrix tbody tr:hover .tile::after,
.matrix tbody tr:focus-within .tile::after {
  opacity: 1;
  --sweep: 100;
}

.matrix tbody tr:hover .tile img {
  scale: 1.08;
}

.matrix .cap {
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.45s var(--ease), scale 0.45s var(--ease);
}

.matrix tbody tr:hover .cap.full {
  background: var(--aura, var(--ink));
}

.matrix tbody tr:hover .cap.ring {
  box-shadow: inset 0 0 0 2px var(--aura, var(--ink));
}

.matrix .col-hot {
  background: var(--row-hover);
}

.matrix thead th {
  transition: color 0.2s var(--ease);
}

.matrix thead th.col-hot {
  color: var(--ink);
}

.matrix.armed tbody tr {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease), background-color 0.25s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.matrix.armed tbody tr.in {
  opacity: 1;
  translate: 0 0;
}

.matrix.armed tbody tr .cap {
  opacity: 0;
  scale: 0.2;
}

.matrix.armed tbody tr.in .cap {
  opacity: 1;
  scale: 1;
  transition-delay: calc(0.15s + var(--i, 0) * 80ms + var(--c, 0) * 55ms);
}

.matrix.armed tbody tr.in .cap.none {
  opacity: 0.6;
}

/* Once a row has arrived, hover answers at once. */
.matrix.armed tbody tr.settled,
.matrix.armed tbody tr.settled .cap {
  transition-delay: 0s;
}

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