/* ============================================
   Admin Apprentice — Coming Soon
   styles.css
   ============================================ */

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

/* ── DESIGN TOKENS ── */
:root {
  /* Coastie IT brand colours */
  --blue:        #2a9fd6;
  --blue-dark:   #1f7eb0;
  --blue-dim:    rgba(42, 159, 214, 0.12);
  --orange:      #e8721a;
  --orange-dim:  rgba(232, 114, 26, 0.12);

  /* Light mode (default) */
  --bg:            #ffffff;
  --bg-2:          #f7f7f7;
  --ink:           #0a0a0a;
  --ink-2:         #3a3a3a;
  --ink-3:         #6b6b6b;
  --border:        #e2e2e2;
  --border-strong: #c0c0c0;
}

/* ── DARK MODE — system preference ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0a0a0a;
    --bg-2:          #141414;
    --ink:           #f0f0f0;
    --ink-2:         #b8b8b8;
    --ink-3:         #6b6b6b;
    --border:        #242424;
    --border-strong: #3a3a3a;
  }
}

/* ── DARK MODE — manual toggle ── */
html.dark {
  --bg:            #0a0a0a;
  --bg-2:          #141414;
  --ink:           #f0f0f0;
  --ink-2:         #b8b8b8;
  --ink-3:         #6b6b6b;
  --border:        #242424;
  --border-strong: #3a3a3a;
}

/* ── LIGHT MODE — manual toggle ── */
html.light {
  --bg:            #ffffff;
  --bg-2:          #f7f7f7;
  --ink:           #0a0a0a;
  --ink-2:         #3a3a3a;
  --ink-3:         #6b6b6b;
  --border:        #e2e2e2;
  --border-strong: #c0c0c0;
}

/* ── BASE ── */
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', sans-serif;
  min-height: 100vh;
  transition: background 0.25s, color 0.25s;
}

/* ── PAGE WRAPPER ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── BACKGROUND WATERMARK ── */
.bg-text {
  position: fixed;
  bottom: -20px;
  right: -10px;
  font-size: clamp(40px, 20vw, 100px);
  font-weight: 700;
  letter-spacing: -8px;
  color: var(--border);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
  transition: color 0.25s;
  font-family: 'Geist', sans-serif;
}

/* ── TOP BAR ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 0.05s;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
  flex-shrink: 0;
}

.logo-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
  transition: color 0.25s;
}

.logo-name .dot { color: var(--orange); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── STATUS BADGE ── */
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  transition: background 0.25s, border-color 0.25s;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--border-strong); }

/* ── MAIN ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 60px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* ── EYEBROW ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 0.15s;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--blue);
  opacity: 0.4;
}

/* ── HERO ── */
.hero { margin-bottom: 36px; }

.hero-h1 {
  display: block;
  font-size: clamp(52px, 8.5vw, 108px);
  line-height: 1.0;
  letter-spacing: -3px;
  font-weight: 700;
  font-family: 'Geist', sans-serif;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.25s;
  transition: color 0.25s;
}

.hero-h2 {
  display: block;
  font-size: clamp(52px, 8.5vw, 108px);
  line-height: 1.0;
  letter-spacing: -3px;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.35s;
}

/* ── SUBHEADING ── */
.sub {
  max-width: 500px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.5s;
}

.sub p {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 400;
  transition: color 0.25s;
}

/* ── EMAIL SIGNUP ── */
.signup {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.65s;
  margin-bottom: 48px;
}

.signup-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.signup-form {
  margin: 0;
  padding: 0;
}

.signup-row {
  display: flex;
  gap: 8px;
  max-width: 420px;
}

.signup-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.25s, color 0.25s, box-shadow 0.2s;
}

.signup-input::placeholder { color: var(--ink-3); }

.signup-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
  background: var(--bg);
}

.signup-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.signup-btn {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, opacity 0.2s;
}

.signup-btn:hover:not(:disabled) { background: var(--blue-dark); }
.signup-btn:disabled { cursor: default; opacity: 0.8; }
.signup-btn.success { background: #16a34a; }

.signup-note {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 10px;
}

/* ── FEATURE PILLS ── */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.8s;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-2);
  transition: border-color 0.2s, color 0.2s, background 0.25s;
}

.feature-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
}

/* Orange highlight pill (Tilly) */
.feature-pill.highlight {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}

.feature-pill.highlight:hover {
  opacity: 0.8;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 1s;
  transition: border-color 0.25s;
}

.footer-left {
  font-size: 12px;
  color: var(--ink-3);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
}

.footer-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-link:hover { opacity: 0.7; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .topbar { padding: 16px 24px; }
  .main   { padding: 56px 24px 40px; }
  footer  { padding: 20px 24px; }

  .hero-h1,
  .hero-h2 { letter-spacing: -2px; }

  .signup-row   { flex-direction: column; max-width: 100%; }
  .signup-btn   { padding: 13px; text-align: center; }

  .bg-text { display: none; }
}

@media (max-width: 480px) {
  .status-badge span:last-child { display: none; }
}
