/*
 * Stylesheet for the server-rendered pages (src/auth/pages.ts,
 * src/billing/account-page.ts, src/index.ts).
 *
 * Design system: the shadcn/ui theme of cpqdevkit.com
 * (packages/com-cpqdevkit-www/app/globals.css): the same HSL tokens, light
 * and dark, and the same fonts (Inter, Outfit, JetBrains Mono, self-hosted
 * in /fonts because the CSP allows no third-party origins). The pages are
 * plain HTML with no React, so shadcn's components are written here as CSS
 * classes (.card, .btn, .badge, .input, .alert) with shadcn's values.
 *
 * The Tailwind-named utilities below keep their names but read the theme
 * tokens, so every page follows the theme and dark mode.
 * src/auth/pages-csp.test.ts fails if a page uses a class not defined here.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/outfit-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
}

/* Theme tokens (cpqdevkit.com) */
:root {
  color-scheme: light;
  --background: 0 0% 100%;
  --page: 214 32% 98%;
  --foreground: 216 50% 11%;
  --card: 0 0% 100%;
  --primary: 215 55% 20%;
  --primary-hover: 215 55% 26%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 25% 84%;
  --ring: 215 55% 30%;
  --radius: 0.5rem;
  --brand-ink: 215 55% 22%;
  --link: 213 60% 40%;
  --success: 152 60% 28%;
  --success-bg: 150 60% 95%;
  --success-border: 150 45% 82%;
  --danger: 0 72% 40%;
  --danger-bg: 0 86% 97%;
  --danger-border: 0 80% 88%;
  --warning: 32 80% 28%;
  --warning-bg: 45 96% 93%;
  --warning-border: 42 85% 78%;
  --info-bg: 214 80% 97%;
  --info-border: 214 60% 86%;
  --code-bg: 216 45% 8%;
  --code-fg: 213 30% 88%;
  --shadow: 0 1px 2px rgb(15 26 44 / 0.04), 0 1px 3px rgb(15 26 44 / 0.04);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: 216 45% 6.5%;
    --page: 216 45% 6.5%;
    --foreground: 210 40% 98%;
    --card: 216 40% 9.5%;
    --primary: 210 40% 98%;
    --primary-hover: 210 30% 88%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 216 30% 15%;
    --muted: 216 30% 13%;
    --muted-foreground: 215 20.2% 65.1%;
    --border: 216 28% 17%;
    --input: 216 26% 24%;
    --ring: 212.7 26.8% 83.9%;
    --brand-ink: 213 54% 67%;
    --link: 213 80% 74%;
    --success: 150 60% 68%;
    --success-bg: 152 50% 12%;
    --success-border: 152 40% 22%;
    --danger: 0 90% 76%;
    --danger-bg: 0 50% 14%;
    --danger-border: 0 45% 26%;
    --warning: 42 90% 68%;
    --warning-bg: 38 60% 12%;
    --warning-border: 38 50% 24%;
    --info-bg: 216 40% 12%;
    --info-border: 216 35% 24%;
    --code-bg: 216 45% 4%;
    --code-fg: 213 30% 88%;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  }
}

/* Minimal preflight */
*,
::before,
::after {
  box-sizing: border-box;
  border: 0 solid hsl(var(--border));
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  font-family:
    'Inter',
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: hsl(var(--foreground));
  background-color: hsl(var(--page));
}
h1,
h2,
h3,
p,
pre,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}
button {
  background: transparent;
  cursor: pointer;
  padding: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
img {
  display: block;
  max-width: 100%;
}
table {
  border-collapse: collapse;
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}
::selection {
  background-color: hsl(var(--brand-ink) / 0.18);
}
[id] {
  scroll-margin-top: 5rem;
}
input[type='checkbox'] {
  accent-color: hsl(var(--primary));
}

/* Layout */
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.flex {
  display: flex;
}
.hidden {
  display: none;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem;
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem;
}
.overflow-auto {
  overflow: auto;
}
.cursor-pointer {
  cursor: pointer;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.w-full {
  width: 100%;
}
.w-auto {
  width: auto;
}
.h-10 {
  height: 2.5rem;
}
.min-h-screen {
  min-height: 100vh;
}
.min-h-16 {
  min-height: 4rem;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-3xl {
  max-width: 48rem;
}

/* Spacing */
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.ml-auto {
  margin-left: auto;
}
.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}
.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}

/* Type */
.text-center {
  text-align: center;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.01em;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.font-mono {
  font-family:
    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  font-size: 0.92em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.underline {
  text-decoration-line: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Borders, radius, shadow */
.border {
  border-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.rounded {
  border-radius: calc(var(--radius) - 2px);
}
.rounded-lg {
  border-radius: calc(var(--radius) + 4px);
}
.shadow {
  box-shadow:
    0 0 0 1px hsl(var(--border)),
    var(--shadow);
}

/* Colour utilities, mapped to the theme */
.bg-white {
  background-color: hsl(var(--card));
}
.bg-gray-50 {
  background-color: hsl(var(--page));
}
.bg-gray-100 {
  background-color: hsl(var(--muted));
}
.bg-gray-700,
.bg-gray-800,
.bg-blue-600 {
  background-color: hsl(var(--primary));
}
.bg-gray-900 {
  background-color: hsl(var(--code-bg));
}
.bg-blue-50 {
  background-color: hsl(var(--info-bg));
}
.bg-green-50,
.bg-green-100 {
  background-color: hsl(var(--success-bg));
}
.bg-green-700 {
  background-color: hsl(152 60% 28%);
}
.bg-red-50,
.bg-red-100 {
  background-color: hsl(var(--danger-bg));
}
.bg-yellow-100 {
  background-color: hsl(var(--warning-bg));
}
.border-gray-300 {
  border-color: hsl(var(--input));
}
.border-blue-200 {
  border-color: hsl(var(--info-border));
}
.border-green-200 {
  border-color: hsl(var(--success-border));
}
.border-red-200 {
  border-color: hsl(var(--danger-border));
}
.text-white {
  color: hsl(var(--primary-foreground));
}
.bg-green-700.text-white {
  color: #fff;
}
.text-gray-500,
.text-gray-600 {
  color: hsl(var(--muted-foreground));
}
.text-gray-700,
.text-gray-800 {
  color: hsl(var(--foreground));
}
.text-blue-600,
.text-blue-700 {
  color: hsl(var(--link));
}
.text-green-200 {
  color: hsl(150 60% 78%);
}
.text-green-800 {
  color: hsl(var(--success));
}
.text-red-800 {
  color: hsl(var(--danger));
}
.text-yellow-900 {
  color: hsl(var(--warning));
}
.hover\:bg-gray-50:hover {
  background-color: hsl(var(--muted));
}
.hover\:bg-blue-700:hover,
.hover\:bg-gray-900:hover {
  background-color: hsl(var(--primary-hover));
}

/* ------------------------------------------------------------------ */
/* Components (shadcn/ui values)                                       */
/* ------------------------------------------------------------------ */

/* App shell */
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--background) / 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.app-header-inner,
.app-shell,
.app-footer-inner {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
}
.app-logo {
  height: 1.5rem;
  width: auto;
}
.app-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.app-user strong {
  font-weight: 500;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Sidebar + one view at a time (tabs across the top on a phone) */
.app-shell {
  min-height: calc(100vh - 7.5rem);
  padding-top: 1rem;
  padding-bottom: 3rem;
}
.app-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
}
.app-nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.app-nav a:hover {
  color: hsl(var(--foreground));
}
.app-nav a.active {
  color: hsl(var(--foreground));
  font-weight: 500;
  border-bottom-color: hsl(var(--brand-ink));
}
@media (min-width: 800px) {
  .app-shell {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 2rem;
  }
  .app-nav {
    position: sticky;
    top: 5.5rem;
    align-self: start;
    flex-direction: column;
    gap: 0.125rem;
    overflow: visible;
    margin-bottom: 0;
    border-bottom: 0;
  }
  .app-nav a {
    padding: 0.4375rem 0.75rem;
    border-bottom: 0;
    margin-bottom: 0;
    border-radius: calc(var(--radius) - 2px);
  }
  .app-nav a:hover {
    background-color: hsl(var(--muted));
  }
  .app-nav a.active {
    background-color: hsl(var(--muted));
  }
}
.app-main {
  min-width: 0;
}
.app-main > :not([hidden]) ~ :not([hidden]),
.app-panel > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.25rem;
}
.app-title {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.overview {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .overview {
    grid-template-columns: 1fr 1fr;
  }
}
.overview > .card {
  display: flex;
  flex-direction: column;
}
.overview > .card > .card-content {
  flex: 1 1 auto;
}
.stat {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.app-footer {
  border-top: 1px solid hsl(var(--border));
}
.app-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.app-footer a:hover {
  color: hsl(var(--foreground));
}
.app-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.app-footer-brand img {
  height: 1.375rem;
  width: auto;
}
.app-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (prefers-color-scheme: dark) {
  /* The CPQ Consultant logo is navy and red artwork: white on the dark theme.
     (The CPQ DevKit logo has its own dark file, chosen with <picture>.) */
  .app-footer-brand img {
    filter: brightness(0) invert(1);
  }
}

.logo-mark {
  display: block;
}

/* Card */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 1.25rem 1.5rem 0;
}
.card-title {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card-description {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.375rem;
  color: hsl(var(--muted-foreground));
}
.card-content {
  padding: 1.25rem 1.5rem;
}
.card-content > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.875rem;
}
.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.5);
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.card-accent {
  border-color: hsl(var(--info-border));
  background-color: hsl(var(--info-bg));
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}
.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover {
  background-color: hsl(var(--primary-hover));
}
.btn-outline {
  background-color: hsl(var(--card));
  border-color: hsl(var(--input));
  color: hsl(var(--foreground));
}
.btn-outline:hover {
  background-color: hsl(var(--muted));
}
.btn-ghost-danger {
  color: hsl(var(--danger));
}
.btn-ghost-danger:hover {
  background-color: hsl(var(--danger-bg));
}
.btn-danger {
  background-color: hsl(var(--card));
  border-color: hsl(var(--danger-border));
  color: hsl(var(--danger));
}
.btn-danger:hover {
  background-color: hsl(var(--danger-bg));
}

/* Form */
.label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.input {
  display: block;
  width: 100%;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--background));
  font-size: 0.875rem;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input::placeholder {
  color: hsl(var(--muted-foreground) / 0.7);
}
.input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15);
}
.input-inline {
  width: auto;
  min-width: 12rem;
}
.field > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0;
}
.form-grid {
  display: grid;
  gap: 0.875rem;
}
@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.hint {
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: hsl(var(--muted-foreground));
}

/* Badge with a status dot */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 1.375rem;
  padding: 0 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: hsl(var(--muted-foreground));
  background-color: hsl(var(--card));
}
.badge::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: currentColor;
}
.badge-plain::before {
  display: none;
}
.badge-green {
  color: hsl(var(--success));
  background-color: hsl(var(--success-bg));
  border-color: hsl(var(--success-border));
}
.badge-red {
  color: hsl(var(--danger));
  background-color: hsl(var(--danger-bg));
  border-color: hsl(var(--danger-border));
}
.badge-yellow {
  color: hsl(var(--warning));
  background-color: hsl(var(--warning-bg));
  border-color: hsl(var(--warning-border));
}

/* Alert */
.alert {
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.alert-success {
  color: hsl(var(--success));
  background-color: hsl(var(--success-bg));
  border-color: hsl(var(--success-border));
}
.alert-error {
  color: hsl(var(--danger));
  background-color: hsl(var(--danger-bg));
  border-color: hsl(var(--danger-border));
}

/* Rows (keys, environments) */
.rows > li {
  padding: 0.875rem 0;
  border-top: 1px solid hsl(var(--border));
}
.rows > li:first-child {
  border-top: 0;
  padding-top: 0;
}
.rows > li:last-child {
  padding-bottom: 0;
}
.rows > li > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem;
}
.row-title {
  font-size: 0.875rem;
  font-weight: 600;
}
.row-meta {
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: hsl(var(--muted-foreground));
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Disclosure (details/summary) */
.disclosure > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--link));
}
.disclosure > summary::before {
  content: '+';
  display: inline-block;
  width: 0.75rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.disclosure[open] > summary::before {
  content: '−';
}
.disclosure > summary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.disclosure-body {
  margin-top: 0.875rem;
}
.disclosure-body > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.875rem;
}

/* Code */
.code {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--muted) / 0.6);
  font-family:
    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  font-size: 0.75rem;
  line-height: 1.25rem;
  overflow: auto;
  white-space: pre;
}
.code-inline {
  padding: 0.125rem 0.375rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.25rem;
  background-color: hsl(var(--muted) / 0.6);
  font-family:
    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  font-size: 0.8125em;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Table (activity log) */
.table {
  width: 100%;
  font-size: 0.75rem;
}
.table td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-top: 1px solid hsl(var(--border));
  vertical-align: top;
}
.table tr:first-child td {
  border-top: 0;
}

/* Checklist */
.steps > li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
}
.steps > li ~ li {
  margin-top: 0.5rem;
}
.step-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  border: 1px solid hsl(var(--input));
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  background-color: hsl(var(--card));
}
.step-done {
  border-color: hsl(var(--success-border));
  background-color: hsl(var(--success-bg));
  color: hsl(var(--success));
}

/* Plans */
.plans {
  display: grid;
  gap: 0.875rem;
}
@media (min-width: 640px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.plan > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.625rem;
}
.plan-name {
  font-size: 0.875rem;
  font-weight: 600;
}
.plan-price {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.plan-price small {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  color: hsl(var(--muted-foreground));
}

/* Meter (trial usage) */
.meter {
  height: 0.375rem;
  border-radius: 9999px;
  background-color: hsl(var(--muted));
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  border-radius: 9999px;
  background-color: hsl(var(--brand-ink));
}
.meter-0 > span {
  width: 0;
}
.meter-10 > span {
  width: 10%;
}
.meter-20 > span {
  width: 20%;
}
.meter-30 > span {
  width: 30%;
}
.meter-40 > span {
  width: 40%;
}
.meter-50 > span {
  width: 50%;
}
.meter-60 > span {
  width: 60%;
}
.meter-70 > span {
  width: 70%;
}
.meter-80 > span {
  width: 80%;
}
.meter-90 > span {
  width: 90%;
}
.meter-100 > span {
  width: 100%;
}

.link {
  color: hsl(var(--link));
  text-decoration-line: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.link:hover {
  text-decoration-thickness: 2px;
}
.muted {
  color: hsl(var(--muted-foreground));
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
