/* ============================================================
   SaveMyVibe — Design System
   Light minimal editorial. No CSS framework.
   ============================================================ */

:root {
  /* Palette */
  --paper: #faf9f6;
  --paper-warm: #f3f1ec;
  --ink: #16140f;
  --ink-soft: #57534a;
  --ink-faint: #8a857a;
  --line: #e4e1d8;
  --accent: #2f5d3a; /* deep moss green */
  --accent-bright: #4a8a58;
  --accent-wash: #e8efe9;
  --code-bg: #1c1a15;
  --code-fg: #e8e4da;
  --danger: #b3422e;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Rhythm */
  --space-section: clamp(5rem, 12vw, 9rem);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 72rem;

  /* Viewport layout */
  --nav-height: 4.75rem;
  --strip-height: 4.0625rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}
h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--font-mono);
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

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

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}
.section--tint {
  background: var(--paper-warm);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}

.lede {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--ink-soft);
  max-width: 38em;
  text-wrap: pretty;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav__brand em {
  font-style: italic;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__links .btn--primary {
  color: var(--paper);
}
.nav__logout {
  margin: 0;
  display: inline;
}
.nav__logout button {
  font-size: 0.875rem;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav__toggle {
    display: block;
  }
  .nav__links {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.0625rem;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent);
}
.btn--primary img,
.btn--danger img {
  filter: invert(1);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--block {
  width: 100%;
}
.btn--sm {
  padding: 0.55em 1.2em;
  font-size: 0.875rem;
}
.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Code block ---------- */

.codeblock {
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  box-shadow: 0 24px 60px -24px rgba(22, 20, 15, 0.35);
  position: relative;
}
.codeblock pre {
  margin: 0;
}
.codeblock__copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: 1px solid rgba(232, 228, 218, 0.2);
  border-radius: var(--radius-sm);
  color: var(--code-fg);
  padding: 0.375rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.codeblock__copy:hover {
  opacity: 1;
  border-color: rgba(232, 228, 218, 0.4);
}
.codeblock__copy img {
  width: 14px;
  height: 14px;
  filter: invert(1);
  opacity: 0.8;
}
.codeblock .c-cmt {
  color: #8a857a;
}
.codeblock .c-str {
  color: #a8c79b;
}
.codeblock .c-kw {
  color: #d9b88a;
}

.codeblock__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}
.codeblock__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a372f;
}

/* ---------- Cards ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

/* ---------- Grids ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid > *,
.hero__grid > * {
  min-width: 0;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Steps (How it works) ---------- */

.step {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.step h3 {
  margin-top: 0.75rem;
}
.step p {
  color: var(--ink-soft);
  margin: 0;
}

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

.price-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}
.price-card--featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.price-card--featured .price-card__list li {
  border-color: rgba(250, 249, 246, 0.14);
}
.price-card--featured .muted {
  color: var(--ink-faint);
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
}
.price-card__amount small {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-faint);
}

.price-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.price-card__list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.price-card__list li:last-child {
  border-bottom: 0;
}

/* ---------- Marquee strip ---------- */

.strip {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  white-space: nowrap;
}
.strip__track {
  display: inline-flex;
  gap: 3rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  will-change: transform;
}
.strip__track span::after {
  content: "·";
  margin-left: 3rem;
  color: var(--accent);
}

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

.footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer__col--brand p {
  margin: 0.5rem 0 0;
}
.footer__heading {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 0.75rem;
}
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__links li + li {
  margin-top: 0.375rem;
}
.footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--ink);
}
.footer__bottom {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
}
@media (max-width: 700px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer__bottom {
    text-align: left;
  }
}

/* ---------- Forms ---------- */

.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 550;
  margin-bottom: 0.4rem;
}
.field input {
  width: 100%;
  font: inherit;
  padding: 0.75em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field input.input--code {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.4em;
}

.form-msg {
  font-size: 0.875rem;
  color: var(--danger);
  min-height: 1.25rem;
  margin-top: 0.5rem;
}

.auth-wrap {
  max-width: 26rem;
  margin-inline: auto;
  padding-block: clamp(3rem, 10vw, 6rem);
}

/* ---------- Tables (app) ---------- */

.table-wrap {
  overflow-x: auto;
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ink-faint);
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.table tr:last-child td {
  border-bottom: 0;
}
.table a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 550;
}
.table a:hover {
  text-decoration: underline;
}

/* ---------- Stats (app) ---------- */

.stat {
  padding: 1.5rem;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}
.stat__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
}
.stat__bar {
  width: 100%;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  margin-top: 0.75rem;
  overflow: hidden;
}
.stat__bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.stat__bar--warning > span {
  background: var(--danger);
}

/* ---------- Badges / misc ---------- */

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35em 0.9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}
.badge--accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-wash);
}

/* ---------- Cron schedule picker ---------- */

.cron-presets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.cron-preset {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.cron-preset:hover {
  border-color: var(--accent);
}
.cron-preset--active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}
.cron-next-runs {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

.muted {
  color: var(--ink-faint);
}
.text-danger {
  color: var(--danger);
}
.text-warn {
  color: #8a6d00;
}
.text-success {
  color: var(--accent);
}
.card--border-danger {
  border-left: 3px solid var(--danger);
}
.card--border-warn {
  border-left: 3px solid #d4a017;
}
.card--border-success {
  border-left: 3px solid var(--accent);
}
.small {
  font-size: 0.875rem;
}
.text-center {
  text-align: center;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 2rem;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100dvh - var(--nav-height) - var(--strip-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 1rem;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-block: clamp(3rem, 8vw, 5rem) 2rem;
  }
}
@media (max-height: 800px) and (min-width: 901px) {
  .hero {
    padding-block: 0.5rem;
  }
  .hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
  }
  .hero .lede {
    font-size: 1.0625rem;
    line-height: 1.5;
  }
  .hero__ctas,
  .hero__stats-pill {
    margin-top: 1rem;
  }
  .codeblock {
    padding: 1.25rem 1.5rem;
    font-size: 0.8125rem;
  }
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.hero__stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-top: 1.25rem;
}
.stat-pill__item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.stat-pill__item .label {
  color: var(--ink-soft);
}
.stat-pill__item .value {
  color: var(--accent);
  font-weight: 700;
}
.stat-pill__divider {
  width: 1px;
  height: 12px;
  background: var(--line);
}
.stat-pill__item .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal--visible {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 20, 15, 0.45);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 32px 80px -24px rgba(22, 20, 15, 0.35);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal--visible .modal__content {
  transform: scale(1) translateY(0);
}

.modal__content--wide {
  max-width: 680px;
}

@media (max-width: 520px) {
  .modal__content--wide {
    max-width: 100%;
  }
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 0;
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.modal__close:hover {
  background: var(--paper-warm);
  color: var(--ink);
}

.modal__body {
  padding: 1.25rem 1.75rem 1.5rem;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* ---------- Form enhancements ---------- */

.field textarea,
.field select {
  width: 100%;
  font: inherit;
  padding: 0.75em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  appearance: none;
}

.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2357534a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  padding-right: 2.5em;
}

.field__hint {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin: 0.35rem 0 0;
}

.input--error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(179, 66, 46, 0.12) !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 1rem;
  }
}

/* ---------- Token reveal ---------- */

.token-reveal {
  text-align: center;
}

.token-reveal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-wash);
  margin-bottom: 1rem;
}

.token-reveal__copy {
  transition: opacity 0.2s;
}

.token-reveal__copy:hover {
  opacity: 0.85;
}

/* ---------- Toasts ---------- */

#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--paper);
  box-shadow: 0 12px 32px -8px rgba(22, 20, 15, 0.25);
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: auto;
}

.toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.toast--success {
  background: var(--accent);
}
.toast--error {
  background: var(--danger);
}

/* ---------- Pro badge / upgrade banner ---------- */

.field__pro {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  margin-left: 0.4rem;
  vertical-align: middle;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.upgrade-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-wash);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.25s ease;
}

.upgrade-banner a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.upgrade-banner a:hover {
  color: var(--ink);
}

.select--pro option.option--pro {
  color: var(--accent);
  font-weight: 500;
}

.field__readonly {
  display: inline-block;
  padding: 0.65em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-warm);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  min-height: 2.6em;
  line-height: 1.4;
  user-select: all;
}

/* ---------- Stepper ---------- */

.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 12rem;
}

.stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  background: var(--paper-warm);
  border: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  user-select: none;
}

.stepper__btn:hover:not([disabled]) {
  background: var(--line);
}

.stepper__btn:active:not([disabled]) {
  transform: scale(0.95);
}

.stepper__btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
  width: 4rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  padding: 0.6em 0;
}

.stepper input[type="number"]::-webkit-outer-spin-button,
.stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* ---------- Token card ---------- */

.token-card {
  background: var(--paper);
}

.token-masked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

/* ---------- Collapsible section ---------- */

.section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-toggle:hover {
  opacity: 0.7;
}

.section-toggle__chevron {
  transition: transform 0.2s ease;
}

.section-toggle[aria-expanded="true"] .section-toggle__chevron {
  transform: rotate(180deg);
}

.section-panel {
  animation: fadeIn 0.2s ease;
}

/* ---------- Danger zone ---------- */

.danger-zone {
  border: 1px solid #c0392b;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  background: rgba(192, 57, 43, 0.06);
}

.btn--danger {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

.btn--danger:hover {
  background: #a93226;
  border-color: #a93226;
}

/* ---------- Animation helpers (GSAP) ---------- */

.gs-reveal {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .gs-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .strip__track {
    animation: none !important;
  }
}
