/*
Theme Name: HiveFit
Theme URI: https://hivefit.com
Author: HiveFit
Description: HiveFit 2027 launch page — "Energy without the noise." Full-screen hero video with a launch-list email signup. Signups are stored in WordPress and can be viewed/exported under the "Launch List" admin menu.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: hivefit
*/

/* ---------- Minimal reset (replaces Tailwind preflight) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: oklch(0.2 0.04 235); color: oklch(0.97 0.01 220); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, p { margin: 0; }
button, input { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Button base (ported from the shadcn Button used in the Lovable build) */
.hive-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-weight: 400; transition: color 150ms, background-color 150ms, border-color 150ms, box-shadow 150ms; }
.hive-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--hive-glow); }
.hive-btn:disabled { pointer-events: none; opacity: 0.5; cursor: not-allowed; }
.hive-btn svg { width: 16px; height: 16px; flex-shrink: 0; pointer-events: none; }

/* ---------- HiveFit launch page ---------- */
.hive { --hive-ink: oklch(0.97 0.01 220); --hive-soft: oklch(0.82 0.04 220); --hive-glow: oklch(0.82 0.14 205); --hive-line: oklch(0.97 0.01 220 / 28%); --hive-deep: oklch(0.2 0.04 235); --hive-error: oklch(0.704 0.191 22.216); position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; color: var(--hive-ink); background: var(--hive-deep); font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; }
.admin-bar .hive { min-height: calc(100svh - 32px); }
.hive-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hive > header, .hive > main, .hive > footer { min-width: 0; }
.hive-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, oklch(0.15 0.04 235 / 55%) 0%, oklch(0.15 0.04 235 / 0%) 22%, oklch(0.15 0.04 235 / 0%) 50%, oklch(0.13 0.04 235 / 85%) 100%); }
.hive-header, .hive-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 30px 56px; }
.hive-meta { font-family: "Unbounded", system-ui, sans-serif; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--hive-ink); }
.hive-center { justify-self: center; display: flex; align-items: center; gap: 10px; }
.hive-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hive-glow); box-shadow: 0 0 12px var(--hive-glow); animation: hive-pulse 2s ease-in-out infinite; }
.hive-link { justify-self: end; height: auto; padding: 6px 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--hive-line); }
.hive-link:hover { background: transparent; color: var(--hive-glow); border-color: var(--hive-glow); }
.hive-main { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: max(24px, 56svh - 88px) 24px 12px; animation: reveal 1000ms 400ms ease-out both; }
.hive-title { font-family: "Unbounded", system-ui, sans-serif; font-weight: 300; font-size: 30px; line-height: 1.2; letter-spacing: 0; margin: 0; max-width: 32ch; text-wrap: balance; text-shadow: 0 2px 30px oklch(0.15 0.04 235 / 70%); }
.hive-title em { font-style: normal; color: var(--hive-glow); }
.hive-copy { font-size: 13px; line-height: 1.5; max-width: 540px; margin: 10px 0 16px; color: var(--hive-soft); }
.hive-form { width: min(440px, 100%); }
.hive-row { display: flex; align-items: center; padding-left: 20px; border: 1px solid var(--hive-line); border-radius: 999px; background: oklch(0.2 0.04 235 / 45%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color 300ms, box-shadow 300ms; }
.hive-row:focus-within { border-color: var(--hive-glow); box-shadow: 0 0 28px oklch(0.82 0.14 205 / 35%); }
.hive-input { flex: 1; min-width: 0; height: 54px; background: transparent; border: 0; outline: none; font-size: 14px; color: var(--hive-ink); font-family: inherit; }
.hive-input::placeholder { color: var(--hive-soft); opacity: 1; }
.hive-submit { height: 44px; margin: 5px; padding: 0 20px; gap: 10px; border-radius: 999px; background: var(--hive-glow); color: var(--hive-deep); font-family: "Unbounded", system-ui, sans-serif; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.hive-submit:hover { background: var(--hive-ink); color: var(--hive-deep); }
.hive-submit:disabled { opacity: 0.5; }
.hive-error { font-size: 12px; color: var(--hive-error); margin: 12px 0 0; }
.hive-note { font-size: 11px; color: var(--hive-soft); margin: 8px 0 0; }
.hive-success { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 16px 24px; border: 1px solid var(--hive-glow); border-radius: 999px; animation: reveal 500ms ease-out both; }
.hive-success svg { width: 16px; height: 16px; }
.hive-footer { font-size: 10px; letter-spacing: 0; text-transform: uppercase; color: var(--hive-soft); padding-top: 8px; padding-bottom: 14px; }
.hive-control { justify-self: end; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hive-line); background: transparent; color: var(--hive-ink); }
.hive-control:hover { background: oklch(0.97 0.01 220 / 15%); color: var(--hive-ink); }
.hive-control .hive-icon-play { display: none; }
.hive-control.is-paused .hive-icon-play { display: block; }
.hive-control.is-paused .hive-icon-pause { display: none; }
.spam-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.signup-spinner { animation: signup-spin 1s linear infinite; }
[hidden] { display: none !important; }

/* 404 page */
.hive-404 .hive-main { justify-content: center; padding: 24px; }
.hive-404 .hive-title { font-size: 44px; }
.hive-home { margin-top: 20px; text-decoration: none; height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--hive-line); color: var(--hive-ink); }
.hive-home:hover { border-color: var(--hive-glow); color: var(--hive-glow); }

@keyframes signup-spin { to { transform: rotate(360deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hive-pulse { 50% { opacity: 0.35; } }

@media (max-width: 782px) {
  .admin-bar .hive { min-height: calc(100svh - 46px); }
}
@media (max-width: 640px) {
  .hive-header { padding: 20px; grid-template-columns: 1fr auto; }
  .hive-footer { padding: 8px 20px 14px; }
  .hive-center { display: none; }
  .hive-footer-mid { visibility: hidden; }
  .hive-main { padding-right: 20px; padding-left: 20px; }
  .hive-title { font-size: 22px; max-width: 26ch; }
  .hive-copy { font-size: 12px; max-width: 330px; }
  .hive-meta { font-size: 8px; letter-spacing: 0.2em; }
  .hive-input { font-size: 16px; }
  .hive-film { object-position: 50% 50%; }
}
@media (prefers-reduced-motion: reduce) { .hive-main, .hive-success, .hive-dot { animation: none; } }
