/* ============================================================
   CleanRedact — style.css v3
   Single screen. No scroll. Editorial. Not AI.
   Accent: Burnt Sienna #C8501F
   ============================================================ */

:root {
  --c-bg:     #ECEAE5;
  --c-card:   #FAFAF8;           /* Off-white, opaque — not glassy */
  --c-accent: #C8501F;
  --c-accent-h: #A8401A;
  --c-text:   #111110;           /* Near-black, warm */
  --c-muted:  #78716C;           /* Warm stone gray */
  --c-border: rgba(0,0,0,0.08);
  --font:     'Inter', -apple-system, sans-serif;
  --r-card:   22px;
}

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

html, body {
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: var(--c-bg);
}

a { text-decoration: none; color: inherit; }
svg { display: block; }

/* ── Background ─────────────────────────────────────────── */
.bg-scene {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 12% 20%, rgba(240,210,185,0.6) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 88% 80%, rgba(235,200,175,0.45) 0%, transparent 60%),
    #ECEAE5;
}

/* ── Centering wrapper ──────────────────────────────────── */
.hero-wrap {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 16px 20px;
}

/* ── Card ───────────────────────────────────────────────── */
.hero-card {
  background: var(--c-card);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: var(--r-card);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 8px 32px rgba(0,0,0,0.07),
    0 24px 64px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  margin: auto 0;
  /* transform-origin: center for bubble animation */
  transform-origin: center center;
  will-change: transform, opacity, border-radius;
  animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ── Nav: logo only ─────────────────────────────────────── */
.hero-nav {
  padding: 13px 18px;
  border-bottom: 1px solid var(--c-border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-text);
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 40px;
  padding: 5px 12px 5px 8px;
}

.logo-icon {
  width: 18px; height: 18px;
  stroke: var(--c-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Hero body ──────────────────────────────────────────── */
.hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 52px 52px;
}

.hero-title {
  font-size: clamp(2.6rem, 5.8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
  color: var(--c-text);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--c-muted);
  max-width: 420px;
  margin-bottom: 36px;
  font-weight: 400;
}

/* ── CTA Button ─────────────────────────────────────────── */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 12px 24px;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(200,80,31,0.28);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.hero-cta:hover {
  background: var(--c-accent-h);
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(200,80,31,0.38);
}
.hero-cta svg {
  width: 14px; height: 14px;
  transition: transform 0.15s;
}
.hero-cta:hover svg { transform: translateX(3px); }

/* ── Ticker ─────────────────────────────────────────────── */
.ticker-wrap {
  border-top: 1px solid var(--c-border);
  overflow: hidden;
  padding: 9px 0;
  background: rgba(0,0,0,0.015);
  border-radius: 0 0 var(--r-card) var(--r-card);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 32s linear infinite;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--c-muted);
  letter-spacing: 0.005em;
  white-space: nowrap;
  opacity: 0.7;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { padding: 0 20px; }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Site Footer ────────────────────────────────────────── */
.site-footer {
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px 4px 10px;
  font-size: 0.78rem;
  color: var(--c-muted);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--c-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-muted);
  text-decoration: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.footer-link-btn:hover {
  color: var(--c-text);
  text-decoration: underline;
}

.footer-sep {
  color: rgba(0,0,0,0.18);
  font-size: 0.7rem;
}

/* ── Legal Modal ────────────────────────────────────────── */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(17, 17, 16, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.legal-modal-card {
  background: #fff;
  border-radius: 18px;
  max-width: 660px;
  width: 100%;
  height: 85vh;
  max-height: 680px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  animation: modalScale 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  background: #fcfcfb;
  flex-shrink: 0;
}

.legal-modal-tabs {
  display: flex;
  gap: 6px;
}

.legal-tab-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-muted);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.legal-tab-btn:hover {
  color: var(--c-text);
  background: rgba(0,0,0,0.04);
}

.legal-tab-btn.active {
  color: #fff;
  background: var(--c-accent);
}

.legal-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.legal-modal-close:hover {
  background: rgba(0,0,0,0.06);
  color: var(--c-text);
}

.legal-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.legal-modal-body {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 24px 28px 36px 28px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #3f3f46;
}

.legal-modal-body::-webkit-scrollbar {
  width: 6px;
}
.legal-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.legal-modal-body::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 4px;
}
.legal-modal-body::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* Minimalist Privacy Callout (replaces bulky shield banner) */
.legal-privacy-callout {
  border-left: 2.5px solid var(--c-accent, #C8501F);
  padding: 8px 0 8px 14px;
  margin: 0 0 22px 0;
  background: transparent;
}

.legal-callout-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent, #C8501F);
  margin-bottom: 4px;
}

.legal-callout-text {
  font-size: 0.885rem;
  font-weight: 500;
  line-height: 1.55;
  color: #1c1917;
  margin: 0;
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 18px 0 6px 0;
}

.legal-section h3:first-of-type {
  margin-top: 0;
}

.legal-section p {
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section code {
  font-family: 'Courier New', monospace;
  background: rgba(0,0,0,0.05);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.825rem;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 580px) {
  .hero-wrap  { padding: 16px 12px; }
  .hero-body  { padding: 36px 20px 28px; }
  .hero-title { font-size: 2.1rem; }
  .site-footer { flex-direction: column; text-align: center; justify-content: center; gap: 6px; }
}
