:root {
  color-scheme: dark;
  --bg: #060706;
  --surface: #0e100e;
  --surface-2: #171a17;
  --skeleton-hi: #232823;
  --line: rgba(232, 242, 231, 0.08);
  --line-strong: rgba(232, 242, 231, 0.18);
  --nav-glass: rgba(6, 7, 6, 0.74);
  --hero-veil: rgba(6, 7, 6, 0.86);
  --hero-veil-soft: rgba(6, 7, 6, 0.5);
  --hero-veil-none: rgba(6, 7, 6, 0);
  --text: #f2f5f1;
  --text-strong: #ffffff;
  --muted: #a6aca5;
  --accent: #86e08f;
  --danger: #ff8f85;
  --shine: rgba(255, 255, 255, 0.95);
  --icon-shadow: rgba(0, 0, 0, 0.6);
  --clover-edge: #9ea79d;
  --backdrop: rgba(0, 0, 0, 0.62);
  --accent-ring: rgba(134, 224, 143, 0.22);
  --text-soft: #d5dad4;
  --code-bg: #0a0c0a;
  --tok-k: #9cc4ff;
  --tok-s: #e9c88f;
  --tok-n: #f0a8a0;
  --tok-c: #7f877e;
  --tint-info: rgba(232, 242, 231, 0.04);
  --tint-warn: rgba(242, 212, 138, 0.07);
  --tint-warn-line: rgba(242, 212, 138, 0.32);
  --tint-danger: rgba(255, 143, 133, 0.07);
  --tint-danger-line: rgba(255, 143, 133, 0.32);
  --tint-ok: rgba(134, 224, 143, 0.07);
  --tint-ok-line: rgba(134, 224, 143, 0.3);
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --warn: #f2d48a;
  --clover-edge-dark: #6f776e;
  --clover-img: url("assets/clover-icon.png");
  --font: "Open Runde", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

html {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

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

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: calc(12px + env(safe-area-inset-top, 0px));
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.nav.is-scrolled {
  background: var(--nav-glass);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.nav-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.app-icon {
  position: relative;
  display: inline-block;
  flex: none;
  width: 28px;
  height: 28px;
  perspective: 160px;
}

.app-icon:not(.is-3d) {
  background: var(--clover-img) center / contain no-repeat;
}

.clover-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
  animation: clover-spin 6s infinite;
}

.clover-layer {
  position: absolute;
  inset: 0;
}

.clover-side {
  background: var(--clover-edge);
  -webkit-mask: var(--clover-img) center / contain no-repeat;
  mask: var(--clover-img) center / contain no-repeat;
}

.clover-rim {
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--clover-edge-dark), var(--clover-edge) 50%, var(--clover-edge-dark));
  transform: rotateY(90deg);
}

.clover-face {
  background: var(--clover-img) center / contain no-repeat;
  backface-visibility: hidden;
  animation: clover-shade 6s linear infinite;
}

.clover-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, transparent 38%, var(--shine) 50%, transparent 62%, transparent 100%);
  background-size: 300% 100%;
  -webkit-mask: var(--clover-img) center / contain no-repeat;
  mask: var(--clover-img) center / contain no-repeat;
  animation: clover-shine 3s ease-in-out infinite;
}

@keyframes clover-spin {
  0% {
    transform: rotateY(0deg);
    animation-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
  }
  50% {
    transform: rotateY(180deg);
    animation-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes clover-shade {
  0%,
  18%,
  32%,
  68%,
  82%,
  100% {
    filter: brightness(0.9) drop-shadow(0 1px 2px var(--icon-shadow));
  }
  25%,
  75% {
    filter: brightness(0.55) drop-shadow(0 1px 2px var(--icon-shadow));
  }
}

@keyframes clover-shine {
  0% {
    background-position: 150% 0;
  }
  55%,
  100% {
    background-position: -50% 0;
  }
}

.app-icon-lg {
  width: 48px;
  height: 48px;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  padding: 8px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--text-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn.is-pending,
.btn.is-pending:hover {
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: default;
  transform: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(150px, 19vw, 210px);
  padding-bottom: clamp(220px, 27vw, 320px);
}

.hero-wave {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 56%, transparent 94%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 56%, transparent 94%);
  animation: wave-in 2s var(--ease) both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(58% 40% at 50% 36%, var(--hero-veil) 0%, var(--hero-veil-soft) 62%, var(--hero-veil-none) 100%);
}

.hero-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

h1 {
  margin: 0 0 -4px;
  font-size: clamp(56px, 11vw, 150px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.h1-soft {
  color: var(--muted);
}

.hero-tagline {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-lede {
  margin: 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.enter {
  animation: enter 0.95s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes wave-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

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

[id] {
  scroll-margin-top: 88px;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

h2 {
  margin: 0;
  font-size: clamp(38px, 5.8vw, 62px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.tool {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.tool + .tool {
  margin-top: clamp(72px, 10vw, 128px);
}

.tool h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.tool-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.tool-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.tool-name .app-icon {
  width: 24px;
  height: 24px;
}

.tool-copy > p:not(.tool-name) {
  margin: 0;
  max-width: 32em;
  color: var(--muted);
  font-size: 17px;
}

.tool-solo {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(28px, 4vw, 44px);
  text-align: center;
}

.tool-solo .tool-copy {
  justify-items: center;
}

.tool-solo .tool-name {
  margin: 0;
}

.app-icon-xl {
  width: clamp(104px, 12vw, 148px);
  height: clamp(104px, 12vw, 148px);
  perspective: 720px;
}

@media (max-width: 860px) {
  .tool {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.feature-row h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.feature-row p {
  max-width: 40em;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

@media (max-width: 640px) {
  .feature-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.status-copy p {
  max-width: 26em;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.status-copy .status-updated {
  font-size: 14px;
}

.status-card {
  position: relative;
  display: grid;
  min-height: 140px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.status-card > [data-when] {
  display: none;
}

.status-card[data-state="loading"] > [data-when="loading"],
.status-card[data-state="empty"] > [data-when="empty"],
.status-card[data-state="error"] > [data-when="error"],
.status-card[data-state="ready"] > [data-when="ready"] {
  display: grid;
}

.status-loading {
  align-content: center;
  gap: 14px;
}

.status-loading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.skeleton {
  display: block;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--skeleton-hi) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton-short {
  width: 60%;
}

.status-message {
  align-content: center;
  justify-items: start;
  gap: 16px;
  color: var(--muted);
}

.status-message p {
  max-width: 30em;
  margin: 0;
}

.status-message strong {
  color: var(--text);
}

.status-ready {
  align-content: center;
}

.status-rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.status-rows li:first-child {
  padding-top: 0;
}

.status-rows li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.row-name {
  margin-right: auto;
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pill[data-tone="ok"] {
  color: var(--accent);
}

.pill[data-tone="warn"] {
  color: var(--text);
}

.pill[data-tone="bad"] {
  color: var(--danger);
}

@media (max-width: 860px) {
  .status-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.plans {
  display: grid;
  max-width: 440px;
  margin-inline: auto;
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.plan .app-icon {
  margin-bottom: 6px;
}

.plan-desc {
  margin: 0;
  color: var(--muted);
}

.price {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0 18px;
}

.amount {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.per {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.plan .btn {
  margin-top: auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(28px, 6vw, 80px);
}

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

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

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary .icon {
  width: 24px;
  height: 24px;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.2s;
}

.faq-list details[open] summary .icon {
  color: var(--text);
  transform: rotate(45deg);
}

.faq-list summary:focus-visible {
  outline-offset: 4px;
  border-radius: 6px;
}

.faq-list details p {
  max-width: 36em;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16.5px;
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer {
  padding-top: 36px;
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner .wordmark {
  margin-right: auto;
  font-size: 20px;
}

.footer-inner .app-icon {
  width: 24px;
  height: 24px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

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

.footer-link.is-pending {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

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

.auth-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding-top: 110px;
  padding-bottom: 72px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.auth-shell {
  width: min(440px, 100%);
}

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

.auth-card > [data-view-panel] {
  display: none;
}

.auth-card[data-view="loading"] > [data-view-panel="loading"],
.auth-card[data-view="forms"] > [data-view-panel="forms"],
.auth-card[data-view="account"] > [data-view-panel="account"],
.auth-card[data-view="pending"] > [data-view-panel="pending"],
.auth-card[data-view="paid"] > [data-view-panel="paid"],
.auth-card[data-view="error"] > [data-view-panel="error"] {
  display: block;
  animation: panel-in 0.5s var(--ease) both;
}

.auth-loading {
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
}

.auth-loading p {
  margin: 14px 0 0;
  font-size: 14px;
}

.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--line-strong);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.auth-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 24px;
  text-align: center;
}

.auth-title {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.auth-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.auth-tabs button {
  position: relative;
  z-index: 1;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s;
}

.auth-tabs button[aria-selected="true"] {
  color: var(--text);
}

.auth-tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--surface-2);
  transition: transform 0.4s var(--ease);
}

.auth-tabs[data-active="register"] .auth-tab-indicator {
  transform: translateX(100%);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form:not([hidden]) {
  animation: panel-in 0.45s var(--ease) both;
}

.field {
  display: grid;
  gap: 7px;
}

.field-label {
  font-size: 14px;
  font-weight: 600;
}

.field-hint {
  color: var(--muted);
  font-size: 12.5px;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

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

.field-control {
  position: relative;
}

.field-control input {
  padding-right: 52px;
}

.reveal {
  position: absolute;
  top: 50%;
  right: 2px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

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

.key-input {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.04em;
}

.form-message {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.form-message[data-tone="warn"] {
  color: var(--warn);
  font-variant-numeric: tabular-nums;
}

.form-message[data-tone="ok"] {
  color: var(--accent);
}

.form-message:empty {
  display: none;
}

.shake {
  animation: shake 0.4s ease;
}

.btn {
  position: relative;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn.is-busy .btn-label {
  opacity: 0;
}

.btn.is-busy::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.auth-terms {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-terms a {
  color: var(--text);
}

.account-list {
  display: grid;
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
}

.account-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.account-list dt {
  color: var(--muted);
  font-size: 14px;
}

.account-list dd {
  margin: 0;
  font-weight: 600;
}

[data-account-message] {
  margin-bottom: 16px;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes shake {
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
}

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

.wordmark-sub {
  color: var(--muted);
  font-weight: 600;
}

html.docs-locked {
  overflow: hidden;
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 200px;
  align-items: start;
  gap: 48px;
  max-width: 1320px;
  margin-inline: auto;
  padding-top: 96px;
  padding-bottom: 40px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.docs-layout:not(.is-ready) .doc-page:not(:first-child) {
  display: none;
}

.docs-sidebar {
  position: sticky;
  top: calc(84px + env(safe-area-inset-top, 0px));
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 6px 24px 0;
  scrollbar-width: thin;
}

.docs-sidebar-head {
  display: none;
}

.docs-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.docs-search .icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.docs-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 40px 0 36px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.docs-search input::-webkit-search-cancel-button {
  display: none;
}

.docs-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.docs-search kbd {
  position: absolute;
  right: 10px;
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.docs-results {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  animation: panel-in 0.25s var(--ease) both;
}

.docs-result {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.docs-result strong {
  font-size: 14px;
  font-weight: 600;
}

.docs-result span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.docs-result:hover,
.docs-result:focus-visible {
  background: var(--surface-2);
}

.docs-results-empty {
  margin: 0;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.docs-group {
  margin-top: 18px;
}

.docs-group-title {
  margin: 0 0 6px;
  padding-left: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.docs-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-nav ul ul {
  margin: 2px 0 4px 14px;
  padding-left: 6px;
  border-left: 1px solid var(--line);
}

.docs-nav a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.docs-nav a {
  gap: 10px;
}

.nav-icon {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s, transform 0.25s var(--ease);
}

.docs-nav a:hover {
  color: var(--text);
}

.docs-nav a:hover .nav-icon {
  opacity: 1;
  transform: scale(1.08);
}

.docs-nav a.is-active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.docs-nav a.is-active .nav-icon {
  color: var(--accent);
  opacity: 1;
}

.doc-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.doc-page .doc-title h1 {
  margin: 0;
}

.doc-icon {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--text);
}

.title-icon {
  width: 34px;
  height: 34px;
}

.doc-page.is-entering .doc-icon {
  animation: icon-pop 0.6s var(--ease) both;
}

@keyframes icon-pop {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.doc-card-icon {
  display: grid;
  place-items: center;
  color: var(--text);
}

.doc-card-icon:empty {
  display: none;
}

.card-icon {
  width: 20px;
  height: 20px;
}

.doc-card-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.footer-credit {
  color: var(--text);
}

.docs-content {
  min-width: 0;
  outline: none;
}

.doc-page {
  max-width: 780px;
  padding-bottom: 40px;
}

.doc-page.is-entering {
  animation: panel-in 0.45s var(--ease) both;
}

.doc-group {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.doc-page h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.doc-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.doc-page h2,
.doc-page h3,
.doc-page h4 {
  scroll-margin-top: 96px;
  border-radius: 8px;
}

.doc-page h2 {
  margin: 48px 0 14px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.doc-page h3 {
  margin: 34px 0 10px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.doc-page h4 {
  margin: 26px 0 8px;
  font-size: 17px;
}

.doc-page .is-target {
  animation: target-flash 1.6s ease;
}

@keyframes target-flash {
  0%,
  30% {
    background: var(--accent-ring);
    box-shadow: 0 0 0 8px var(--accent-ring);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 8px transparent;
  }
}

.doc-page p,
.doc-page li {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.72;
}

.doc-page p {
  margin: 0 0 14px;
}

.doc-page ul,
.doc-page ol:not(.steps) {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding-left: 22px;
}

.doc-page a:not(.doc-card):not(.pager-link) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.doc-page a:not(.doc-card):not(.pager-link):hover {
  text-decoration-color: var(--accent);
}

.doc-page strong {
  color: var(--text);
}

.doc-page :not(pre) > code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.doc-page hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.doc-page blockquote {
  margin: 0 0 16px;
  padding-left: 16px;
  border-left: 2px solid var(--line-strong);
}

.code-block {
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--code-bg);
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
}

.copy-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font: inherit;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.copy-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.copy-btn.is-done {
  color: var(--accent);
}

.code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.65;
  tab-size: 4;
}

.tok-k {
  color: var(--tok-k);
}

.tok-s {
  color: var(--tok-s);
}

.tok-n {
  color: var(--tok-n);
}

.tok-c {
  color: var(--tok-c);
  font-style: italic;
}

.doc-table {
  margin: 18px 0 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.doc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.doc-table th,
.doc-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.doc-table th {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.doc-table td {
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

.callout {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--tint-info);
}

.callout > .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--muted);
}

.callout-body > :last-child {
  margin-bottom: 0;
}

.callout-body p,
.callout-body li {
  font-size: 15px;
}

.callout-warning {
  border-color: var(--tint-warn-line);
  background: var(--tint-warn);
}

.callout-warning > .icon {
  color: var(--warn);
}

.callout-danger {
  border-color: var(--tint-danger-line);
  background: var(--tint-danger);
}

.callout-danger > .icon {
  color: var(--danger);
}

.callout-success {
  border-color: var(--tint-ok-line);
  background: var(--tint-ok);
}

.callout-success > .icon {
  color: var(--accent);
}

.steps {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 0 8px 46px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.step::after {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 4px;
  left: 15px;
  width: 1px;
  background: var(--line);
}

.step:last-child::after {
  display: none;
}

.step > h3:first-child {
  margin-top: 2px;
}

.doc-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 10px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.25s var(--ease);
}

.doc-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.doc-card-title {
  color: var(--text);
  font-weight: 700;
}

.doc-card-desc {
  color: var(--muted);
  font-size: 14px;
}

.doc-card-desc:empty {
  display: none;
}

.doc-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pager-link {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.pager-link:hover {
  border-color: var(--line-strong);
}

.pager-link span {
  color: var(--muted);
  font-size: 13px;
}

.pager-link strong {
  color: var(--text);
  font-size: 15px;
}

.pager-next {
  grid-column: 2;
  text-align: right;
}

.docs-toc {
  position: sticky;
  top: calc(84px + env(safe-area-inset-top, 0px));
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.docs-toc-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.docs-toc nav {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.docs-toc a {
  padding: 4px 0 4px 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s;
}

.docs-toc a:hover {
  color: var(--text);
}

.docs-mobilebar,
.docs-scrim {
  display: none;
}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 24px;
  }

  .docs-mobilebar {
    position: sticky;
    top: calc(68px + env(safe-area-inset-top, 0px));
    z-index: 40;
    display: block;
    margin-top: 72px;
    padding: 8px var(--gutter-r) 8px var(--gutter-l);
    border-bottom: 1px solid var(--line);
    background: var(--nav-glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .docs-scrim:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: var(--backdrop);
    animation: backdrop-in 0.3s ease;
  }

  .docs-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: min(320px, 86vw);
    max-height: none;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 24px max(16px, env(safe-area-inset-left, 0px));
    border-right: 1px solid var(--line);
    background: var(--bg);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }

  .docs-sidebar.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.4s var(--ease), visibility 0s;
  }

  .docs-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .docs-sidebar-title {
    margin: 0;
    font-weight: 700;
  }

  .docs-search kbd {
    display: none;
  }

  .docs-nav a {
    min-height: 44px;
  }

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

  .pager-next {
    grid-column: auto;
  }
}

.checkout-message {
  margin: 2px 0 0;
  text-align: center;
}

.order-key {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  animation: key-in 0.7s var(--ease) 0.15s both;
}

.order-key code {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  user-select: all;
}

.order-key .copy-btn {
  min-height: 48px;
}

@keyframes key-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.order-note {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.order-actions {
  display: grid;
  gap: 10px;
}

.plan-terms {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.plan-terms a {
  color: var(--text);
}

.terms {
  width: min(760px, calc(100% - 32px));
  max-height: min(84vh, 920px);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
}

.terms::backdrop {
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.terms[open] {
  animation: terms-in 0.45s var(--ease);
}

.terms[open]::backdrop {
  animation: backdrop-in 0.35s ease;
}

.terms[open] .terms-body > * {
  animation: terms-item 0.6s var(--ease) both;
  animation-delay: calc(var(--n, 0) * 22ms + 120ms);
}

.terms.is-closing {
  animation: terms-out 0.22s ease forwards;
}

.terms.is-closing::backdrop {
  animation: backdrop-out 0.22s ease forwards;
}

@keyframes terms-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes terms-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@keyframes terms-item {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes backdrop-out {
  to {
    opacity: 0;
  }
}

.terms-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 16px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.terms-head h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--line-strong);
}

.terms-body {
  padding: 8px 28px 32px;
}

.terms-body h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.terms-body p,
.terms-body li {
  color: var(--muted);
  font-size: 15.5px;
}

.terms-body p {
  margin: 0;
}

.terms-body ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.terms-body a {
  color: var(--text);
  text-underline-offset: 3px;
}

.terms-updated {
  padding-top: 12px;
  font-size: 13px;
}

.ph {
  padding: 0 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--text);
}
