/* ============================================================
   REDEETO · HOME (CINEMATIC)
   Dark treatment for the home page only. Scoped to body.home-dark
   so Contact and Privacy keep the light theme from site.css.
   Loads after site.css; overrides the semantic aliases first, then
   adds the components this page introduces.
   ============================================================ */

body.home-dark {
  --surface-page: var(--green-900);
  --surface-card: rgba(255, 255, 255, 0.04);
  --text-strong: #ffffff;
  --text-body: var(--green-100);
  --text-muted: var(--green-200);
  --text-subtle: var(--green-300);
  --text-link: var(--gold-400);
  --brand-accent-strong: var(--gold-400);   /* eyebrows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.12);
  --focus-ring: rgba(207, 174, 96, 0.35);
  --font-serif: 'Fraunces', Georgia, serif;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-line: rgba(255, 255, 255, 0.10);
  --hairline: rgba(255, 255, 255, 0.08);
  background: var(--surface-page);
  color: var(--text-body);
}

/* ---------- Type ---------- */
.home-dark h1.h1,
.home-dark h2.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.home-dark h1.h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.06; }
.home-dark h2.h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; }
.home-dark .h1 .punch {
  display: block;
  font-style: italic;
  color: var(--gold-400);
}
.home-dark .h1 .setup { color: #ffffff; }

.eyebrow.sq::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  vertical-align: 1px;
  background: var(--gold-500);
}

/* ---------- Header ---------- */
.home-dark .site-header {
  background: rgba(20, 36, 31, 0.72);
  border-bottom-color: var(--hairline);
}
.home-dark .brand .wm { color: var(--gold-500); }
.home-dark .nav-link { color: var(--green-100); }
.home-dark .nav-link:hover { color: #ffffff; }

/* ---------- Buttons on dark ----------
   Gold becomes the primary action. The sheen from site.css is
   swapped for a white one so it still reads on a gold ground. */
.home-dark .btn-primary {
  background-color: var(--gold-500);
  background-image: linear-gradient(100deg,
      transparent 22%,
      rgba(255, 255, 255, 0.34) 42%,
      rgba(255, 255, 255, 0.08) 58%,
      transparent 76%);
  color: var(--green-900);
  box-shadow: 0 12px 32px rgba(207, 174, 96, 0.22);
}
.home-dark .btn-primary:hover {
  background-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(207, 174, 96, 0.30);
}
.home-dark .btn-primary:active { transform: translateY(-1px) scale(0.97); }
.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); text-decoration: none; }
.btn-dark {
  background: var(--green-800);
  color: var(--gold-400);
}
.btn-dark:hover { background: var(--green-700); text-decoration: none; }

/* ---------- Sections ---------- */
.home-dark .section { padding-block: clamp(30px, 3.4vw, 48px); }
.hero-cinema + .section { padding-top: clamp(20px, 2vw, 32px); }
.home-dark .section + .section { border-top: 1px solid var(--hairline); }

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
}

/* ---------- Hero ---------- */
.hero-cinema {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding-top: clamp(56px, 6.5vw, 88px);
  padding-bottom: clamp(32px, 3vw, 48px);
}
.hero-cinema .photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero-ferns.jpg") center / cover no-repeat;
  transform: scale(1);
  animation: rd-drift 28s var(--ease-in-out) infinite alternate;
}
.hero-cinema::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 36, 31, 0.90) 0%, rgba(20, 36, 31, 0.55) 55%, var(--green-900) 92%);
}
.hero-cinema .h1 { max-width: 1000px; }
.hero-cinema .lead { color: var(--green-100); max-width: 58ch; }
.hero-cinema .trust { margin-top: 16px; font-size: 13px; color: var(--green-200); }

@keyframes rd-drift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* ---------- The claim ---------- */
.tw-panel {
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3.5vw, 48px);
  display: grid;
  gap: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-line);
  border-radius: 18px;
}
.tw-line {
  display: flex;
  align-items: center;
  gap: 0.18em;
  min-height: 1.15em;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--gold-400);
  letter-spacing: -0.01em;
}
.tw-prompt { color: var(--green-300); }
.tw-cursor {
  display: inline-block;
  width: 0.42em;
  height: 1.05em;
  background: var(--gold-500);
  border-radius: 2px;
}
.tw-line.hold .tw-cursor { animation: rd-blink 1s steps(1, end) infinite; }
@keyframes rd-blink { 50% { opacity: 0; } }

.tw-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tw-tags .note { font-size: 14px; color: var(--green-200); margin-right: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  color: var(--green-100);
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.tag.on {
  background: var(--gold-500);
  color: var(--green-900);
  border-color: transparent;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.metric-card {
  padding: 26px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.metric-card .key {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1;
  color: var(--gold-400);
}
.metric-card .dir {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--green-200);
}
.metric-card .name {
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: #ffffff;
}
.metric-card .body { font-size: 14px; line-height: 1.55; color: var(--green-200); }

/* ---------- Who ---------- */
.checks-card { padding: 28px 30px; display: grid; gap: 18px; }
.home-dark .checks li { color: #ffffff; }
.home-dark .tick { background: var(--gold-500); color: var(--green-900); }
.checks-card .not-fit { font-size: 14px; color: var(--green-200); }

/* ---------- Form ---------- */
.form-card { padding: 32px; }
.home-dark .label { color: var(--green-100); }
.home-dark .field:focus-within .label { color: var(--gold-400); }
.home-dark .input {
  background: rgba(0, 0, 0, 0.22);
  border-color: var(--border-default);
  color: #ffffff;
}
.home-dark .input::placeholder { color: var(--green-300); }
.home-dark .input:focus { border-color: var(--gold-500); }
.home-dark .form-done { background: var(--glass-bg); border-color: var(--glass-line); }
.home-dark .form-done .h3 { color: #ffffff; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.chip span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--green-100);
  cursor: pointer;
  user-select: none;
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              transform var(--dur-instant) var(--ease-standard);
}
.chip span:hover { border-color: rgba(255, 255, 255, 0.3); }
.chip span:active { transform: scale(0.96); }
.chip input:checked + span {
  background: var(--gold-500);
  color: var(--green-900);
  border-color: transparent;
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus-ring); }

/* ---------- Closing band (inverted to cream) ---------- */
.home-dark .band.band-cream {
  background: linear-gradient(135deg, var(--gold-100), var(--gold-200));
  box-shadow: none;
}
.home-dark .band.band-cream::before { background: radial-gradient(circle, rgba(207, 174, 96, 0.35), transparent 70%); }
.home-dark .band.band-cream h2 { color: var(--green-900); }
.home-dark .band.band-cream .lead { color: var(--green-600); }

/* ---------- Footer ---------- */
.home-dark .footer { border-top: 1px solid var(--hairline); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .split-2 { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .hero-cinema { min-height: 0; }
  .metric-grid { grid-template-columns: 1fr; }
  .tw-panel { padding: 22px 20px; }
  .tw-line { font-size: clamp(22px, 6vw, 30px); }
  .form-card { padding: 22px; }
  .checks-card { padding: 20px; }
}

/* Prevent horizontal scroll from any overflowing component */
body.home-dark { overflow-x: hidden; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-cinema .photo { animation: none; }
  .tw-line .tw-cursor { animation: none; }
}
