/* PostSider Coming Soon — black & white, Apple-inspired premium feel */

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-brand: "Changa One", Impact, "Arial Black", sans-serif;

  --bg: #ffffff;
  --fg: #000000;
  --line-soft: rgba(0, 0, 0, 0.08);
  --line: rgba(0, 0, 0, 0.14);
  --muted: rgba(0, 0, 0, 0.55);
  --faint: rgba(0, 0, 0, 0.04);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Consistent, accessible focus ring */
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

.brand {
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0;
}

/* Subtle background grid */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--faint) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 700ms var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Brand header */
.brand-header {
  padding: 96px 0 28px;
  text-align: center;
}

.brand-name {
  font-size: clamp(48px, 9vw, 88px);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Hero */
.hero {
  text-align: center;
  max-width: 680px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: none;
}

.hero-tagline {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 40px;
}

.hero-tagline .hl {
  position: relative;
  white-space: nowrap;
}

.hero-tagline .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.42em;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
  border-radius: 2px;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 580px;
}

.hero-agents {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  padding: 0;
}

.hero-agents span {
  color: var(--fg);
  font-weight: 600;
}

/* Waitlist form — Apple-style joined pill */
.signup-form {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 440px;
  padding: 6px 6px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.signup-form:focus-within {
  border-color: var(--fg);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.signup-form[hidden] {
  display: none;
}

.signup-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  letter-spacing: inherit;
  padding: 12px 16px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--fg);
}

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

/* Kill the browser autofill blue/yellow background */
.signup-input:-webkit-autofill,
.signup-input:-webkit-autofill:hover,
.signup-input:-webkit-autofill:focus,
.signup-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  box-shadow: 0 0 0 1000px var(--bg) inset;
  caret-color: var(--fg);
  transition: background-color 9999s ease-in-out 0s;
}

/* Honeypot — hidden from humans, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.signup-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  cursor: pointer;
  transition: opacity 160ms var(--ease), transform 120ms var(--ease);
}

.signup-btn svg {
  transition: transform 200ms var(--ease);
}

.signup-btn:hover {
  opacity: 0.9;
}

.signup-btn:hover svg {
  transform: translateX(3px);
}

.signup-btn:active {
  transform: scale(0.97);
}

.signup-note {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 0;
}

.signup-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  padding: 16px 28px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  animation: fadeIn 450ms var(--ease);
}

.signup-success svg {
  flex-shrink: 0;
}

.signup-success[hidden] {
  display: none;
}

.signup-success p {
  margin: 0;
}

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

/* Platforms strip */
.platforms {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.platforms-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.platforms-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 560px;
}

.platforms-list img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 7px;
  transition: transform 220ms var(--ease);
}

.platforms-list img:hover {
  transform: translateY(-3px) scale(1.1);
}

.platforms-more {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.platforms-more:hover {
  background: var(--fg);
  color: var(--bg);
}

/* How it works */
.how-it-works {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  padding-bottom: 100px;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--line-soft);
}

.step:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.step-num {
  font-family: var(--font-brand);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.9;
  color: var(--fg);
  opacity: 0.12;
  flex-shrink: 0;
  width: 1.6em;
  transition: opacity 300ms var(--ease);
}

.step:hover .step-num {
  opacity: 0.85;
}

.step-body {
  flex: 1;
  padding-top: 4px;
}

.step-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.step-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 56ch;
}

/* Coming Soon */
.coming-soon {
  padding: 60px 0 110px;
  text-align: center;
  overflow: visible;
  width: 100vw;
}

.coming-soon-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.coming-soon-text {
  font-size: 11vw;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  font-family: var(--font-brand);
  white-space: nowrap;
}

.last-n {
  position: relative;
  display: inline-block;
}

.avatar-lean {
  position: absolute;
  left: 100%;
  bottom: 0;
  height: 0.92em;
  width: auto;
  margin-left: -0.08em;
  transform: rotate(-9deg);
  transform-origin: bottom left;
  pointer-events: none;
}

/* Footer */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  width: 100%;
}

.footer p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .page {
    padding: 0 18px;
  }

  .brand-header {
    padding: 64px 0 24px;
  }

  .hero {
    padding-bottom: 64px;
  }

  .signup-form {
    flex-direction: column;
    border-radius: 24px;
    padding: 8px;
  }

  .signup-input {
    text-align: center;
  }

  .signup-btn {
    width: 100%;
    justify-content: center;
  }

  .step {
    gap: 18px;
    padding: 28px 0;
  }

  .how-it-works {
    padding-bottom: 60px;
  }

  .coming-soon {
    padding: 40px 0 60px;
  }
}
