/* Lasting Lumen — platform styles. Tenant colors arrive as CSS variables. */
:root {
  --bg: #f6f0e4;
  --bg-deep: #efe6d4;
  --surface: #fffaf2;
  --ink: #121a28;
  --muted: #5c6573;
  --line: #e4d8c4;
  --primary: #121a28;
  --accent: #c9a56a;
  --accent-ink: #2a2212;
  --danger: #8b2e2e;
  --ok: #2d5a3d;
  --shadow: 0 18px 40px rgba(18, 26, 40, 0.08);
  --radius: 18px;
  --header-fg: #f6f0e4;
  --font-serif: "Playfair Display", "Source Serif Pro", "Palatino Linotype", Palatino, serif;
  --font-sans: "Source Sans Pro", "Selawik", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, .brand-name, .script {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-header {
  background: var(--primary);
  color: var(--header-fg);
  padding: 0.9rem 0;
}
.site-header a { text-decoration: none; color: inherit; }
.header-inner, .footer-inner, .wrap, .narrow {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}
.brand img, .brand-logo { height: 42px; width: auto; max-width: 160px; object-fit: contain; }
.nav { display: flex; gap: 1.15rem; align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

main { flex: 1; }

.hero {
  padding: 5rem 0 3.5rem;
  background:
    radial-gradient(1200px 400px at 80% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent),
    var(--bg);
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin: 0 0 1rem; max-width: 16ch; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 42ch; margin: 0 0 2rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--header-fg);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { filter: brightness(1.08); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost, .btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.site-header .btn-ghost, .site-header .btn-secondary { color: var(--header-fg); border-color: color-mix(in srgb, var(--header-fg) 35%, transparent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { padding: 0.35rem 0.8rem; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.grid-3, .grid-2 { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.card h3 { margin-top: 0; }
.ornament {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: 2.2rem;
  background: var(--accent);
  display: inline-block;
}

.flash {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.flash-error { border-color: #e3b6b6; background: #fbf1f1; color: var(--danger); }
.flash-ok { border-color: #bdd1c3; background: #f1f7f3; color: var(--ok); }
.flash-warn { border-color: #e3d3a8; background: #fbf6ea; }

.page { padding: 2.4rem 0 4rem; }
.narrow { width: min(760px, calc(100% - 2.4rem)); }
.section-title { margin: 0 0 0.4rem; }
.hint { color: var(--muted); margin: 0 0 1.4rem; }

label { display: block; font-weight: 600; margin: 0 0 0.35rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="date"], input[type="color"], input[type="number"], input[type="tel"],
textarea, select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 8rem; resize: vertical; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.help { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0; }

.steps {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin: 0 0 1.8rem; padding: 0; list-style: none;
}
.steps a, .steps span {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
}
.steps .is-active { background: var(--primary); color: var(--header-fg); border-color: var(--primary); }
.steps .is-done { border-color: var(--accent); color: var(--ink); }

.dropzone {
  border: 2px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border-radius: 16px;
  padding: 1.4rem;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
}
.dropzone.is-over { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.1rem;
}
.group-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.group-head input[type="text"] { max-width: 280px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
.photo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.photo-card img { display: block; width: 100%; height: 140px; object-fit: cover; cursor: grab; }
.photo-card input { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 0.85rem; }
.photo-card .remove {
  position: absolute; top: 6px; right: 6px;
  background: rgba(28,21,16,0.7); color: #fff; border: 0; border-radius: 999px;
  width: 26px; height: 26px; cursor: pointer;
}

.track {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.track audio { width: 220px; height: 32px; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  color: var(--muted);
}
.badge-warn { border-color: #e3d3a8; background: #fbf6ea; }
.rights-box {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  margin-top: 1rem;
  white-space: pre-wrap;
  font-size: 0.92rem;
}
.muted-notice {
  background: #fbf6ea;
  border: 1px solid #e3d3a8;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: #5c4a28;
  margin: 1rem 0;
}

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); }
.video-frame {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.video-frame video { width: 100%; height: 100%; display: block; background: #111; }

.mock-banner {
  background: #3a2d16;
  color: #f3e6c8;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 0.65rem 0.45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

.progress { color: var(--muted); font-style: italic; }
.spinner {
  width: 1.1rem; height: 1.1rem; border: 2px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%;
  display: inline-block; animation: spin 0.8s linear infinite;
  vertical-align: middle; margin-right: 0.4rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.5rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.tenant-chip { font-size: 0.85rem; color: var(--accent); }

.prose h2 { font-size: 1.25rem; margin: 1.4rem 0 0.5rem; }
.prose p, .prose li { line-height: 1.55; }
.prose table { width: 100%; margin: 1rem 0; }
.footer-links { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.footer-links a { color: inherit; }
.legal-doc blockquote { border-left: 3px solid var(--accent, #C9A86C); padding-left: 0.8rem; background: #fff8e8; padding: 0.8rem 1rem; }

.brand-mark { height: 42px; width: 42px; border-radius: 50%; object-fit: cover; background: var(--primary); }
.powered-by { display: block; margin-top: 0.35rem; font-size: 0.82rem; color: var(--muted); }
.site-footer .powered-by a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
