/* photoai — The Darkroom */

:root {
  --bg: #0C0C0C;
  --surface: #161616;
  --surface-elevated: #1C1C1C;
  --border: #2A2A2A;
  --text: #E8E4DF;
  --text-muted: #8A8580;
  --accent: #D4A853;
  --accent-hover: #E0B96A;
  --accent-text: #0C0C0C;
  --success: #34d399;
  --danger: #f87171;
  --radius: 8px;
  --radius-pill: 999px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.65;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: none; opacity: 0.85; }

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; }

/* ── animations ────────────────────────────────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

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

@keyframes imageReveal {
  from { filter: blur(12px); opacity: 0.5; }
  to { filter: blur(0); opacity: 1; }
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,83,0); }
  50% { box-shadow: 0 0 0 8px rgba(212,168,83,0.12); }
}

.page-enter > * {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-enter > *:nth-child(1) { animation-delay: 0ms; }
.page-enter > *:nth-child(2) { animation-delay: 80ms; }
.page-enter > *:nth-child(3) { animation-delay: 160ms; }
.page-enter > *:nth-child(4) { animation-delay: 240ms; }
.page-enter > *:nth-child(5) { animation-delay: 320ms; }
.page-enter > *:nth-child(6) { animation-delay: 400ms; }

.template-grid > * {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.template-grid > *:nth-child(1) { animation-delay: 200ms; }
.template-grid > *:nth-child(2) { animation-delay: 320ms; }
.template-grid > *:nth-child(3) { animation-delay: 440ms; }

/* scroll reveal for tier cards */
.tier-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.tier-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── nav ────────────────────────────────────────────────────────────────────── */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover { text-decoration: none; opacity: 0.8; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-right a {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-right a:hover { color: var(--text); opacity: 0.7; }

.token-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(212,168,83,0.1);
  border: 1px solid rgba(212,168,83,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── main ───────────────────────────────────────────────────────────────────── */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* ── buttons ────────────────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  opacity: 1;
}

.btn-download {
  display: inline-block;
  margin-top: 1rem;
  background: var(--surface-elevated);
  color: var(--text);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.btn-download:hover { background: var(--border); text-decoration: none; opacity: 1; }

/* ── hero ───────────────────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 5rem 0 2rem;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  background: rgba(212,168,83,0.08);
  border: 1px solid rgba(212,168,83,0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto;
}

.hero-rule {
  display: none;
}

/* ── section headers ───────────────────────────────────────────────────────── */

.section-header {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── template grid (home) ──────────────────────────────────────────────────── */

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
}

.template-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.template-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  text-decoration: none;
  opacity: 1;
}

/* ── card image ──────────────────────────────────────────────────────────── */

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-elevated);
}

.card-image--influencer {
  background-image: url('/static/images/influencer-template.jpg');
}

.card-image--thumbnail {
  background-image: url('/static/images/yt-thumbnail-template.jpg');
}

.card-image--album {
  background-image: url('/static/images/album-art-template.jpg');
}

/* ── card body ───────────────────────────────────────────────────────────── */

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.card-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.card-cta {
  display: inline-block;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.template-card:hover .card-cta {
  color: var(--accent-hover);
}

/* ── legacy card classes (keep for compatibility) ────────────────────────── */

.card-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-art__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--text);
  opacity: 0.04;
  user-select: none;
  line-height: 1;
  letter-spacing: -0.02em;
}

.card-art--influencer {
  background: url('/static/images/influencer-template.jpg') center/cover no-repeat;
}

.card-art--thumbnail {
  background: url('/static/images/yt-thumbnail-template.jpg') center/cover no-repeat;
}

.card-art--album {
  background: url('/static/images/album-art-template.jpg') center/cover no-repeat;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(12,12,12,0.9));
}

.card-overlay h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.card-overlay p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── create page ──────────────────────────────────────────────────────────── */

.create-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 800px) {
  .create-layout { grid-template-columns: 1fr; }
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  position: sticky;
  top: 80px;
}

.form-panel h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.group-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* Chip-style radio buttons */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  cursor: pointer;
}

.chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chip span {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.15s;
  user-select: none;
}

.chip input[type="radio"]:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

.chip:hover span {
  border-color: rgba(212,168,83,0.4);
  color: var(--text);
}

.btn-generate {
  width: 100%;
  margin-top: 1rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.1s;
  animation: subtlePulse 3s ease-in-out infinite;
}

.btn-generate:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  animation: none;
}

.btn-generate:active { transform: translateY(0); }

.token-cost {
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ── preview panel ────────────────────────────────────────────────────────── */

.preview-panel {
  position: relative;
}

.result-area {
  min-height: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.result-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.result-placeholder p { font-size: 1rem; }

.result-image-wrap {
  width: 100%;
  text-align: center;
  padding: 1.5rem;
}

.result-image {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  animation: imageReveal 0.6s ease-out both;
}

.result-error, .result-no-tokens {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.result-no-tokens .btn-primary { margin-top: 1rem; }

/* ── spinner ──────────────────────────────────────────────────────────────── */

.spinner {
  text-align: center;
  color: var(--text-muted);
  padding: 1rem;
  font-size: 0.9rem;
}

.spinner.htmx-indicator { display: none; }
.htmx-request .spinner.htmx-indicator { display: block; }

.generating-spinner {
  text-align: center;
  padding: 3rem 2rem;
}

.generating-spinner p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.spinner-ring {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── tokens page ──────────────────────────────────────────────────────────── */

.tokens-page {
  max-width: 900px;
  margin: 2rem 0;
  text-align: left;
}

.tokens-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.tokens-page > p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.tokens-page > .section-rule {
  margin-bottom: 3rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tier-card {
  padding: 2rem 1.75rem;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.tier-card.is-visible:hover {
  transform: translateY(-4px);
}

.tier-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(212,168,83,0.08);
}

.tier-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.tier-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.tier-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tier-tokens {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.tier-tokens-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.tier-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.tier-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.tier-ppu {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
  .tier-grid { grid-template-columns: 1fr; }
}

/* ── account page ─────────────────────────────────────────────────────────── */

.account-page {
  max-width: 900px;
  margin: 2rem 0;
}

.account-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.account-page h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.account-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.account-field {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.account-field:last-of-type {
  border-bottom: none;
}

.account-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  min-width: 80px;
}

.account-value {
  color: var(--text);
  font-size: 1rem;
}

.account-info .btn-primary { margin-top: 1.5rem; }

.token-highlight {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.empty-state { color: var(--text-muted); }

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.history-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.history-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s;
}

.history-card:hover img {
  transform: scale(1.03);
}

.history-pending {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-elevated);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.history-meta {
  padding: 0.5rem 0.6rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
}

.history-template { color: var(--text-muted); text-transform: capitalize; }
.history-date { color: var(--text-muted); font-family: var(--font-mono); }

/* ── footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 0 2rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── success / error pages ────────────────────────────────────────────────── */

.success-page, .error-page {
  text-align: center;
  padding: 5rem 2rem;
}

.success-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.success-page h1, .error-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.success-page p, .error-page p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ── hero subhead ────────────────────────────────────────────────────────── */

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
  margin: 0.5rem auto 0;
}

/* ── how it works ────────────────────────────────────────────────────────── */

.how-it-works {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.how-it-works h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  display: block;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── bottom CTA ──────────────────────────────────────────────────────────── */

.bottom-cta {
  text-align: center;
  padding: 4rem 0 2rem;
}

.bottom-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.bottom-cta p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ── create page additions ───────────────────────────────────────────────── */

.form-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.form-balance {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-balance a {
  color: var(--accent);
  font-weight: 600;
}

/* ── placeholder enrichment ──────────────────────────────────────────────── */

.placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.25;
  display: block;
}

.placeholder-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  opacity: 0.7;
}

/* ── result actions ──────────────────────────────────────────────────────── */

.result-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn-copy-link {
  display: inline-block;
  margin-top: 1rem;
  background: var(--surface-elevated);
  color: var(--text);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
  font-family: var(--font-body);
}

.btn-copy-link:hover { background: var(--border); opacity: 1; }

.result-encourage {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── no tokens state ─────────────────────────────────────────────────────── */

.no-tokens-head {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.no-tokens-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ── tokens page additions ───────────────────────────────────────────────── */

.tier-use-case {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.tier-savings {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--success);
  letter-spacing: 0.04em;
  margin-left: 0.5rem;
}

.tokens-reassurance {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── nav hook ────────────────────────────────────────────────────────────── */

.nav-hook {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-style: normal;
}

/* ── footer content ──────────────────────────────────────────────────────── */

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-trust {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ── token count link ────────────────────────────────────────────────────── */

a.token-count {
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

a.token-count:hover {
  background: rgba(212,168,83,0.15);
  border-color: rgba(212,168,83,0.35);
  opacity: 1;
}

/* ── mobile chip touch targets ───────────────────────────────────────────── */

@media (max-width: 600px) {
  .chip span {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}
