/* Pointcoin AI landing page styles. Reuses Pointcoin tokens:
   Instrument Sans, brand #314a6b, pill radius, 16px cards. */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  --pch-brand: #314a6b;
  --pch-bg: #f5f5f5;
  --pch-card: #ffffff;
  --pch-border: #e0e0e0;
  --pch-text: #1f2733;
  --pch-muted: #5f6368;
  --pch-rail: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.pch-body {
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  background: var(--pch-bg);
  color: var(--pch-text);
  min-height: 100vh;
}

/* Slim left sidebar */
.pch-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--pch-rail);
  background: var(--pch-card);
  border-right: 1px solid var(--pch-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 24px;
}
.pch-logo { display: flex; align-items: center; justify-content: center; }
.pch-nav { width: 100%; display: flex; flex-direction: column; align-items: center; }
.pch-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 10px 0;
  text-decoration: none;
  color: var(--pch-muted);
  font-size: 12px;
  font-weight: 500;
}
.pch-nav-item:hover { color: var(--pch-brand); }
.pch-nav-active { color: var(--pch-brand); }
.pch-nav-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--pch-border);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
}

/* Centered hero */
.pch-main {
  margin-left: var(--pch-rail);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.pch-hero { width: 100%; max-width: 720px; text-align: center; }
.pch-wordmark {
  color: var(--pch-brand);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* Ask form */
.pch-ask {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pch-card);
  border: 1px solid var(--pch-border);
  border-radius: 16px;
  padding: 12px 12px 12px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.pch-ask-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  color: var(--pch-text);
}
.pch-ask-input::placeholder { color: var(--pch-muted); }
.pch-ask-send {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--pch-brand);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.pch-ask-send:hover { background: #253a52; }

/* Corner auth card */
.pch-auth {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 320px;
  background: var(--pch-card);
  border: 1px solid var(--pch-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 28px 24px 24px;
  text-align: center;
}
.pch-auth[hidden] { display: none; }
.pch-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--pch-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.pch-auth-close:hover { background: rgba(0, 0, 0, 0.06); }
.pch-auth-logo { display: block; margin: 0 auto 12px; }
.pch-auth-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.pch-auth-sub { font-size: 14px; color: var(--pch-muted); margin-bottom: 20px; }
.pch-auth-form { display: flex; flex-direction: column; gap: 12px; }
.pch-auth-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pch-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.pch-auth-input:focus { border-color: var(--pch-brand); }
.pch-auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--pch-muted);
  line-height: 1.5;
  text-align: left;
}
.pch-auth-terms input { margin-top: 2px; flex-shrink: 0; }
.pch-auth-terms a { color: var(--pch-brand); text-decoration: none; }
.pch-auth-terms a:hover { text-decoration: underline; }
.pch-auth-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--pch-brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.pch-auth-btn:hover { background: #253a52; }

/* Narrow screens: drop the card below the form */
@media (max-width: 900px) {
  .pch-auth {
    position: static;
    width: 100%;
    max-width: 360px;
    margin: 24px auto 0;
    box-shadow: none;
  }
  .pch-main { flex-direction: column; }
}

@media (max-width: 600px) {
  .pch-wordmark { font-size: 36px; }
}
