/* Quiet Easy V0 — app styles. Brand tokens/components live in the brand block
   at the bottom (synced from brand/quiet-easy-button.css). */
:root {
  --bg: #FDFCFA;
  --surface: #ffffff;
  --ink: #121741;
  --body: #3A3F55;
  --muted: #6B7080;
  --line: #E7E5E0;
  --accent: #258889;
  --accent-hover: #1F7778;
  --accent-deep: #236B66;
  --warn: #8a5a12;
  --warn-bg: #fbf6ec;
  --danger: #8b2e2e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 23, 65, 0.04), 0 10px 30px rgba(18, 23, 65, 0.05);
  --font: Georgia, "Times New Roman", Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  width: min(600px, calc(100% - 2.5rem));
  margin: 2.75rem auto 3.5rem;
}
.shell-wide { width: min(860px, calc(100% - 2.5rem)); }

/* Legacy header (kept for compatibility) */
.brand { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1.5rem; }
.brand h1 { font-family: var(--font); font-weight: 400; font-size: 1.6rem; margin: 0; color: var(--ink); }
.brand .tag { color: var(--muted); font-size: 0.85rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
}
@media (max-width: 480px) {
  .card { padding: 1.6rem 1.25rem; }
  .shell { margin-top: 1.75rem; }
}

.lead {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
}
.eyebrow {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
  letter-spacing: 0.01em;
}

.muted { color: var(--muted); font-size: 0.95rem; }

.stack { display: grid; gap: 0.9rem; }

label { display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--ink); }
label span { color: var(--muted); font-size: 0.82rem; }

input[type="text"],
input[type="url"],
input[type="number"],
input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fefdfc;
}
input:focus {
  outline: 3px solid rgba(37, 136, 137, 0.2);
  border-color: var(--accent);
}

.toggles {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fbfaf7;
}
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.toggle .soon {
  color: var(--muted);
  font-size: 0.78rem;
  background: #f0eeea;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.toggle input { width: auto; accent-color: var(--accent); }
.toggle.disabled { opacity: 0.55; }

/* Secondary buttons (non-pay actions). Primary pay/unlock = .qe-btn */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--accent-deep); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f3f1ec; }
.btn-block { width: 100%; }
.btn-warn { background: var(--warn); }
.btn-warn:hover { background: #6e470e; }

.banner {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.banner.demo { background: var(--warn-bg); color: var(--warn); border: 1px solid #efdfbf; }
.banner.err { background: #f8eaea; color: var(--danger); border: 1px solid #e8c6c6; }
.banner.ok { background: #e7f2f1; color: var(--accent-deep); border: 1px solid #c8e0de; }

.price { font-family: var(--font); font-size: 2rem; color: var(--ink); margin: 0.25rem 0 1rem; }

#payment-element { margin: 0 0 1.1rem; }

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 0.55rem 0.35rem; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 500; }

.pill {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #e7f2f1;
  color: var(--accent-deep);
}
.pill.demo { background: var(--warn-bg); color: var(--warn); }
.pill.off { background: #f0eeea; color: var(--muted); }

.unlocked-body {
  white-space: pre-wrap;
  font-family: var(--font);
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.7;
}

.footer-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.8rem; }

.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.grow { flex: 1; min-width: 180px; }

code.url {
  display: block;
  word-break: break-all;
  background: #f5f3ef;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* Home hero */
.hero { text-align: center; padding: 1rem 0 0; }
.hero .qe-lotus { width: 72px; height: 45px; margin: 0 auto 1.25rem; }
.hero h2 {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}
.hero .qe-tagline { margin-bottom: 1.75rem; }
.hero .muted { max-width: 30rem; margin: 0 auto 2rem; }
.hero-cta { max-width: 360px; margin: 0 auto; }
.hero-links { margin-top: 1rem; font-size: 0.88rem; }

/* ==========================================================================
   Quiet Easy — locked brand block (v1, 2026-10-05)
   Source of truth: /workspace/quiet-easy/brand/quiet-easy-button.css
   Copied verbatim into assets/css/app.css (+ public/css/app.css).
   Colors sampled from the owner's AFTER reference card.
   ========================================================================== */
:root {
  --qe-teal: #258889;        /* THE Quiet Easy button (sampled) */
  --qe-teal-hover: #1F7778;  /* hover */
  --qe-teal-active: #1A6667; /* pressed */
  --qe-teal-deep: #236B66;   /* lotus mark, tagline, teal accents/text */
  --qe-teal-tint: #E7F2F1;   /* soft teal wash (chips, focus) */
  --qe-navy: #121741;        /* serif headlines / ink */
  --qe-body: #3A3F55;        /* body copy */
  --qe-muted: #6B7080;       /* secondary text */
  --qe-bg: #FDFCFA;          /* soft off-white page */
  --qe-surface: #FFFFFF;     /* cards */
  --qe-line: #E7E5E0;        /* hairlines */
  --qe-green: #2F6B3A;       /* Unlocked pill text / receipt check */
  --qe-green-bg: #E8F5E5;    /* Unlocked pill bg */
  --qe-green-line: #CFE6CA;  /* Unlocked pill border */
  --qe-radius-btn: 10px;
  --qe-serif: Georgia, "Times New Roman", Times, serif;
  --qe-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[hidden] { display: none !important; }

/* ---- Brand header: lotus + serif wordmark ---- */
.qe-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 2rem;
  color: var(--qe-navy);
  text-decoration: none;
}
.qe-brand:hover { text-decoration: none; }
.qe-brand .qe-lotus { width: 40px; height: 25px; flex: none; }
.qe-wordmark {
  font-family: var(--qe-serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--qe-navy);
  margin: 0;
  line-height: 1;
}
.qe-brand .qe-brand-tag {
  margin-left: auto;
  font-family: var(--qe-sans);
  font-size: 0.8rem;
  color: var(--qe-muted);
}

/* ---- Lotus mark ---- */
.qe-lotus { display: block; color: var(--qe-teal-deep); }

/* ---- Lotus divider ornament ---- */
.qe-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.5rem 0;
  color: var(--qe-teal-deep);
}
.qe-divider::before,
.qe-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--qe-line);
}
.qe-divider .qe-lotus { width: 30px; height: 19px; }

/* ---- Tagline ---- */
.qe-tagline {
  font-family: var(--qe-serif);
  color: var(--qe-teal-deep);
  font-size: 1.15rem;
  text-align: center;
  margin: 0;
  letter-spacing: 0.005em;
}
.qe-tagline .qe-dot { padding: 0 0.35em; }
.qe-tagline-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2.5rem 0 0;
}
.qe-tagline-row::before,
.qe-tagline-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--qe-line) 30%, var(--qe-line) 70%, transparent);
}

/* ---- "Unlock for $X.XX" label (sits directly above the button) ---- */
.qe-unlock-label {
  font-family: var(--qe-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--qe-navy);
  margin: 0 0 0.6rem;
}

/* ---- THE Quiet Easy button ---- */
.qe-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: var(--qe-radius-btn);
  background: var(--qe-teal);
  color: #FFFFFF;
  font-family: var(--qe-sans);
  font-size: 1.15rem;      /* ~18px semibold: large-text contrast on teal */
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(18, 23, 65, 0.08), 0 6px 16px rgba(37, 136, 137, 0.18);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  -webkit-tap-highlight-color: transparent;
}
.qe-btn:hover { background: var(--qe-teal-hover); color: #FFFFFF; text-decoration: none; }
.qe-btn:active { background: var(--qe-teal-active); transform: translateY(1px); }
.qe-btn:focus-visible { outline: 3px solid rgba(37, 136, 137, 0.35); outline-offset: 2px; }
.qe-btn:disabled { opacity: 0.6; cursor: progress; }
.qe-btn .qe-lock { width: 19px; height: 19px; flex: none; }
/* Full-width on mobile; optional natural width on wider screens */
@media (min-width: 640px) {
  .qe-btn.qe-btn--auto { display: inline-flex; width: auto; min-width: 280px; }
}

/* Small honest note under the button (demo-skip mode) */
.qe-demo-note {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--qe-muted);
}
/* Hide the demo note whenever the demo button is hidden */
#demo-pay-btn[hidden] + .qe-demo-note { display: none; }

/* ---- Wallet row: Card, Apple Pay, Google Pay ONLY (no PayPal/Crypto in V0) ---- */
.qe-wallets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  color: var(--qe-muted);
}
.qe-wallet {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--qe-line);
  border-radius: 8px;
  background: var(--qe-surface);
  color: var(--qe-body);
  font-weight: 500;
}
.qe-wallet svg { width: 15px; height: 15px; }

/* ---- Unlocked state ---- */
.qe-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.qe-pill-unlocked {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--qe-green-line);
  background: var(--qe-green-bg);
  color: var(--qe-green);
  font-family: var(--qe-sans);
  font-size: 0.85rem;
  font-weight: 600;
}
.qe-pill-unlocked svg { width: 14px; height: 14px; }
.qe-receipt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--qe-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--qe-navy);
}
.qe-receipt-badge svg { width: 18px; height: 18px; color: var(--qe-green); }
