/* Orchords — coming-soon styles
 * Corporate aesthetic: high contrast, generous whitespace, refined typography,
 * subtle motion. Custom-themes the simplyCountdown.js library to match.
 * Respects prefers-reduced-motion and prefers-color-scheme.
 */

:root {
  /* Light theme tokens */
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --fg: #0a0a0a;
  --fg-muted: #5b5b5b;
  --fg-subtle: #8a8a8a;
  --border: #e6e6e6;
  --accent: #1f4a8e;
  --accent-hover: #163871;
  --accent-fg: #ffffff;
  --success: #1f7a4d;
  --error: #b3261e;
  --focus-ring: #1f4a8e;

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.06);

  --container: 640px;
  --header-h: 88px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-elevated: #141414;
    --fg: #fafafa;
    --fg-muted: #a8a8a8;
    --fg-subtle: #707070;
    --border: #262626;
    --accent: #6b9be0;
    --accent-hover: #8ab4eb;
    --accent-fg: #0a0a0a;
    --success: #4caf82;
    --error: #ef6c63;
    --focus-ring: #6b9be0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  }
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  /* tabular numerals for time displays */
  font-variant-numeric: lining-nums tabular-nums;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius);
  z-index: 100;
  transition: top 150ms ease;
}
.skip-link:focus-visible { top: 1rem; }

/* Visually hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Page layout */
.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Header / Logo */
.brand {
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo:hover { text-decoration: none; color: var(--accent); }
.logo svg { flex: none; }
.wordmark {
  /* tighten tracking for a refined corporate wordmark */
  letter-spacing: -0.025em;
  font-feature-settings: "ss01", "cv11";
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
  gap: 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--success) 15%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}

.headline {
  margin: 0;
  font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.accent {
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 60%, var(--success)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 38ch;
  line-height: 1.55;
}

/* ─────────────────────────────────────────────────────────────────────
   Countdown — overrides for simplyCountdown.js default theme
   We restyle its generated DOM to fit the corporate aesthetic.
   ───────────────────────────────────────────────────────────────────── */
.countdown {
  margin-top: 0.5rem;
}

/* Override simplyCountdown default theme entirely. Their default theme
   uses colorful emoji-like blocks; we want a refined monochrome block. */
.simply-countdown {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.simply-countdown > .simply-section {
  /* Each time unit block */
  flex: 1 1 0;
  min-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, transform 150ms ease;
}
.simply-countdown > .simply-section:hover {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
}
.simply-countdown > .simply-section > div {
  display: contents;
}
.simply-countdown > .simply-section .simply-amount {
  font-size: clamp(1.5rem, 4vw + 0.5rem, 2.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums lining-nums;
}
.simply-countdown > .simply-section .simply-word {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

@media (prefers-reduced-motion: reduce) {
  .simply-countdown > .simply-section { transition: none; }
}

/* Notify form */
.notify {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.375rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--fg);
  outline: none;
}
.field input::placeholder { color: var(--fg-subtle); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-arrow { transition: transform 150ms ease; }
.btn-primary:hover .btn-arrow { transform: translateX(2px); }

.status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.status.success { color: var(--success); }
.status.error { color: var(--error); }

/* Footer */
.page-footer {
  padding: 2rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.copyright { margin: 0; }
.legal {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  flex-wrap: wrap;
}
.legal a { color: var(--fg-muted); }
.legal a:hover { color: var(--accent); }

/* Mobile */
@media (max-width: 480px) {
  .simply-countdown { gap: 0.5rem; }
  .simply-countdown > .simply-section { padding: 0.875rem 0.375rem; min-width: 0; }
  .field { flex-direction: column; padding: 0.5rem; gap: 0.5rem; }
  .field input { padding: 0.75rem 0.875rem; }
  .btn-primary { width: 100%; justify-content: center; padding: 0.75rem 1rem; }
  .page { padding: 0 1.25rem; }
  .brand { height: 72px; }
  .logo { font-size: 1.125rem; }
  .logo svg { width: 36px; height: 36px; }
}