/* ─────────────────────────────────────────────────────────────────────────────
   L3V3L Mastermind Personal — Design System
   Visual language inherited from PrecisionStep Tutorials.
   Parchment palette, Playfair Display + Crimson Pro typography,
   cream cards, gold accents.
───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Crimson+Pro:ital,wght@0,300;0,400;1,300&display=swap');

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

/* ── DESIGN TOKENS ────────────────────────────────────────────────────────── */
:root {
  --parchment:      #f5f0e8;
  --parchment2:     #ede7d9;
  --ink:            #2a1f0e;
  --ink-light:      #3a2a10;
  --gold:           #b8965a;
  --gold-dark:      #9a7a45;
  --gold-deeper:    #7a6030;
  --cream-card:     rgba(255, 255, 255, 0.62);
  --cream-solid:    #fffef9;
  --green:          #5a8a4a;
  --red:            #a04040;
  --btn-dark:       #3d2b0e;
  --btn-hover:      #5a3f18;
  --muted:          #6b5535;
  --very-muted:     rgba(107, 85, 53, 0.55);
  --border-gold:    rgba(155, 120, 65, 0.2);
  --border-gold-md: rgba(155, 120, 65, 0.3);
  --border-gold-lg: rgba(155, 120, 65, 0.4);
  --shadow-card:    0 8px 40px rgba(60, 40, 10, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --shadow-btn:     0 6px 24px rgba(60, 40, 10, 0.2);
  --radius-sm:      2px;
  --radius-md:      4px;
}

/* ── BASE ─────────────────────────────────────────────────────────────────── */
html, body {
  height: 100%;
  background: var(--parchment);
  font-family: 'Crimson Pro', Georgia, serif;
  color: var(--ink);
}

html {
  height: -webkit-fill-available;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(160deg, var(--parchment) 0%, var(--parchment2) 100%);
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(180, 140, 80, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(120, 80, 40, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────────────────── */
.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.logo-mark {
  font-family: 'Playfair Display', serif;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
}

.page-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.page-sub {
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2rem;
}

.label-caps {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
  text-align: left;
}

/* ── DIVIDER ──────────────────────────────────────────────────────────────── */
.divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
}

/* ── LAYOUT WRAPPERS ──────────────────────────────────────────────────────── */
.page-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1.2rem;
}

.page-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.2rem 4rem;
}

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.container-wide {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

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

/* ── CARD ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--cream-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 2.8rem 3.2rem;
  box-shadow: var(--shadow-card);
}

.card-sm {
  background: var(--cream-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-card);
}

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
button {
  cursor: pointer;
  border: none;
  font-family: 'Playfair Display', serif;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--btn-dark);
}

.btn-primary:hover:not(:disabled) {
  background: var(--btn-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}

.btn-primary:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: transparent;
  border: 1px solid var(--border-gold-lg);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(155, 120, 65, 0.08);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}

.btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1.6rem;
}

.btn-row-center {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

/* ── INPUTS ───────────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-gold-md);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s;
  margin-bottom: 1rem;
  appearance: none;
  -webkit-appearance: none;
}

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a7a45' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(184, 150, 90, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: rgba(107, 85, 53, 0.45);
  font-style: italic;
}

/* ── ERROR MESSAGE ────────────────────────────────────────────────────────── */
.error-msg {
  color: #8b2020;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0.4rem;
  min-height: 0.8rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background 0.2s;
}

.error-msg:not(:empty) {
  background: rgba(139, 32, 32, 0.07);
  border-left: 3px solid #8b2020;
}

/* ── SUCCESS MESSAGE ──────────────────────────────────────────────────────── */
.success-msg {
  color: var(--green);
  font-size: 1rem;
  font-style: italic;
  padding: 0.5rem 0.8rem;
  background: rgba(90, 138, 74, 0.07);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
}

/* ── BADGE PILL ───────────────────────────────────────────────────────────── */
.badge-pill {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(184, 150, 90, 0.1);
  border: 1px solid rgba(155, 120, 65, 0.22);
  border-radius: 20px;
  padding: 0.28rem 0.85rem;
  font-family: 'Crimson Pro', serif;
}

/* ── PILLS / TOGGLE GROUPS ────────────────────────────────────────────────── */
.pill-group {
  display: flex;
  border: 1px solid var(--border-gold-md);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pill-btn {
  flex: 1;
  padding: 0.72rem 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.18s;
  border-right: 1px solid rgba(155, 120, 65, 0.2);
}

.pill-btn:last-child {
  border-right: none;
}

.pill-btn:hover:not(.active) {
  background: rgba(184, 150, 90, 0.1);
  color: var(--gold-deeper);
}

.pill-btn.active {
  background: var(--btn-dark);
  color: var(--parchment);
  font-weight: 600;
}

/* ── PROGRESS BAR ─────────────────────────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(155, 120, 65, 0.15);
  border-radius: 1px;
  margin-bottom: 1.6rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), #c8a86a);
  border-radius: 1px;
  transition: width 0.4s ease;
}

/* ── SPINNER ──────────────────────────────────────────────────────────────── */
.spinner {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(155, 120, 65, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* ── DIVIDER WITH LABEL ───────────────────────────────────────────────────── */
.divider-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0;
}

.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(155, 120, 65, 0.25);
}

.divider-label span {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(107, 85, 53, 0.5);
  font-family: 'Crimson Pro', serif;
  white-space: nowrap;
}

/* ── LINKS ────────────────────────────────────────────────────────────────── */
a {
  color: var(--gold-dark);
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

.link-underline {
  border-bottom: 1px solid rgba(155, 120, 65, 0.3);
  padding-bottom: 1px;
}

.link-underline:hover {
  border-bottom-color: var(--gold-dark);
  opacity: 1;
}

/* ── FOOTER LINKS ─────────────────────────────────────────────────────────── */
.footer-links {
  margin-top: 2rem;
  font-size: 0.9rem;
  font-weight: 300;
  font-style: italic;
  color: var(--very-muted);
  text-align: center;
  line-height: 2;
}

.footer-links a {
  color: var(--gold-dark);
  border-bottom: 1px solid rgba(155, 120, 65, 0.25);
}

/* ── MACHINE GRID ─────────────────────────────────────────────────────────── */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  width: 100%;
  margin-bottom: 2rem;
}

.machine-card {
  background: var(--cream-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
  box-shadow: 0 4px 20px rgba(60, 40, 10, 0.06);
  cursor: pointer;
  transition: all 0.22s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.machine-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(60, 40, 10, 0.12);
  border-color: rgba(155, 120, 65, 0.4);
  background: rgba(255, 255, 255, 0.78);
}

.machine-card:active {
  transform: translateY(-1px);
}

.machine-icon {
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.machine-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.machine-tagline {
  font-size: 0.88rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

.machine-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.6;
  margin-top: 0.2rem;
}

/* ── QUERY COUNTER BANNER ─────────────────────────────────────────────────── */
.query-banner {
  width: 100%;
  max-width: 1100px;
  margin-bottom: 1.6rem;
  padding: 1rem 1.4rem;
  background: rgba(184, 150, 90, 0.08);
  border: 1px solid var(--border-gold-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.query-banner-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
}

.query-banner-text strong {
  font-weight: 600;
  color: var(--ink);
}

.query-count-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.query-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transition: background 0.2s;
}

.query-pip.used {
  background: rgba(155, 120, 65, 0.2);
}

/* ── SUBSCRIBE SOFT BANNER ────────────────────────────────────────────────── */
.subscribe-banner {
  width: 100%;
  max-width: 1100px;
  margin-bottom: 1.6rem;
  padding: 1.2rem 1.6rem;
  background: rgba(61, 43, 14, 0.05);
  border: 1px solid rgba(155, 120, 65, 0.35);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.subscribe-banner-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  font-style: italic;
}

.subscribe-banner-text strong {
  font-weight: 600;
  color: var(--ink);
  font-style: normal;
}

/* ── DISCLAIMER BOX ───────────────────────────────────────────────────────── */
.disclaimer-box {
  background: rgba(184, 150, 90, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
}

.disclaimer-box p {
  font-size: 0.82rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  line-height: 1.65;
}

.disclaimer-box.tier-3 {
  border-left-color: #8b2020;
  background: rgba(139, 32, 32, 0.05);
}

.disclaimer-box.tier-3 p {
  color: #6a1a1a;
}

/* ── CRISIS BOX ───────────────────────────────────────────────────────────── */
.crisis-box {
  background: rgba(139, 32, 32, 0.06);
  border: 1px solid rgba(139, 32, 32, 0.25);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.6rem;
  text-align: center;
}

.crisis-box p {
  font-size: 0.88rem;
  font-weight: 400;
  color: #6a1a1a;
  line-height: 1.7;
}

.crisis-box strong {
  font-weight: 600;
}

.crisis-box a {
  color: #8b2020;
  border-bottom: 1px solid rgba(139, 32, 32, 0.3);
}

/* ── INTAKE FORM ──────────────────────────────────────────────────────────── */
.intake-wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.intake-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: 1.6rem;
  text-align: center;
}

.intake-question {
  margin-bottom: 1.4rem;
}

.intake-question label {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.intake-question input,
.intake-question textarea,
.intake-question select {
  margin-bottom: 0;
}

.page-indicator {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1rem;
}

/* ── OUTPUT PANEL ─────────────────────────────────────────────────────────── */
.output-panel {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.output-content {
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.82;
  color: var(--ink);
}

.output-content h2,
.output-content h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: var(--ink);
  margin: 1.4rem 0 0.6rem;
}

.output-content h2 { font-size: 1.18rem; }
.output-content h3 { font-size: 1.05rem; color: var(--gold-deeper); }

.output-content p { margin-bottom: 1rem; }

.output-content ul,
.output-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.output-content li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.output-content strong {
  font-weight: 600;
  color: var(--ink);
}

.output-content em {
  font-style: italic;
  color: var(--muted);
}

/* ── FOLLOW-UP SECTION ────────────────────────────────────────────────────── */
.followup-section {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-gold);
}

.followup-label {
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  text-align: center;
}

.followup-questions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.followup-btn {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1.1rem;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-light);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border-gold-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.16s;
  line-height: 1.5;
}

.followup-btn:hover {
  background: rgba(184, 150, 90, 0.1);
  border-color: var(--border-gold-lg);
  transform: translateX(3px);
}

.followup-satisfied {
  width: 100%;
  text-align: center;
  padding: 0.9rem 1.1rem;
  font-family: 'Crimson Pro', serif;
  font-size: 0.9rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(155, 120, 65, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.16s;
  margin-top: 0.4rem;
}

.followup-satisfied:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

/* ── LOADING STATE ────────────────────────────────────────────────────────── */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 3rem 0;
}

.loading-text {
  font-size: 0.95rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── MODE SELECTOR ────────────────────────────────────────────────────────── */
.mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.mode-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-gold-md);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.mode-card:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--border-gold-lg);
  transform: translateY(-2px);
}

.mode-card.active {
  background: rgba(61, 43, 14, 0.06);
  border-color: var(--gold-dark);
}

.mode-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.mode-card-desc {
  font-size: 0.82rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

/* ── WELCOME HEADER ───────────────────────────────────────────────────────── */
.welcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.welcome-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
}

.welcome-sub {
  font-size: 0.88rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── SIGN OUT / MANAGE LINKS ──────────────────────────────────────────────── */
.account-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.account-link {
  font-size: 0.82rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold-dark);
  border-bottom: 1px solid rgba(155, 120, 65, 0.25);
  padding-bottom: 1px;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: 'Crimson Pro', serif;
}

.account-link:hover {
  opacity: 0.75;
}

/* ── CHECKBOX CONSENT ─────────────────────────────────────────────────────── */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  margin-top: 3px;
  padding: 0;
  accent-color: var(--gold-dark);
  cursor: pointer;
}

.consent-row label {
  font-size: 0.88rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}

.consent-row label a {
  color: var(--gold-dark);
  border-bottom: 1px solid rgba(155, 120, 65, 0.3);
}

/* ── SUBSCRIPTION SUCCESS ─────────────────────────────────────────────────── */
.access-code-display {
  background: var(--parchment);
  border: 1px solid var(--border-gold-md);
  border-radius: var(--radius-sm);
  padding: 1.8rem;
  text-align: center;
  margin: 1.6rem 0;
}

.access-code-label {
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}

.access-code-value {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

/* ── RECOVERY FORM ────────────────────────────────────────────────────────── */
.recovery-form {
  margin-top: 1.4rem;
  width: 100%;
  text-align: left;
}

/* ── ANIMATIONS ───────────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

.animate-fade    { animation: fadeIn 0.4s ease; }
.animate-fade-up { animation: fadeInUp 0.4s ease; }
.animate-slide   { animation: slideIn 0.32s ease; }

/* ── UTILITIES ────────────────────────────────────────────────────────────── */
.hidden   { display: none !important; }
.mt-1     { margin-top: 0.5rem; }
.mt-2     { margin-top: 1rem; }
.mt-3     { margin-top: 1.5rem; }
.mt-4     { margin-top: 2rem; }
.mb-1     { margin-bottom: 0.5rem; }
.mb-2     { margin-bottom: 1rem; }
.mb-3     { margin-bottom: 1.5rem; }
.mb-4     { margin-bottom: 2rem; }
.w-full   { width: 100%; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .card {
    padding: 1.8rem 1.4rem;
  }

  .machine-grid {
    grid-template-columns: 1fr;
  }

  .mode-selector {
    grid-template-columns: 1fr;
  }

  .welcome-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .welcome-text {
    font-size: 1.3rem;
  }

  .subscribe-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .query-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary {
    padding: 0.85rem 1.6rem;
  }

  .page-heading {
    font-size: 1.4rem;
  }
}

@media (max-width: 400px) {
  .card {
    padding: 1.4rem 1rem;
  }

  .access-code-value {
    font-size: 1.4rem;
    letter-spacing: 0.06em;
  }
}
