/* ============================================
   ScholarKeep — coming soon page
   ============================================ */

:root {
  --accent: #5B3E96;
  --accent-hover: #4A3279;
  --accent-dark: #9278C7;
  --page: #F4F2F8;
  --card: #FFFFFF;
  --hairline: #E2DEEA;
  --ink: #221D2E;
  --ink-secondary: #6C667A;
  --ink-tertiary: #9A94A8;
  --ground-dark: #131118;
  --paper: #FFFCF7;
  --serif: ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2 { font-family: var(--serif); font-weight: 700; text-wrap: balance; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.wordmark, .wordmark:hover { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.wordmark svg { display: block; flex: none; }
.wordmark span { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--ink-secondary); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  border: 0;
  font-family: var(--sans);
  cursor: pointer;
}
.button:hover { background: var(--accent-hover); }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-top: 72px;
  padding-bottom: 96px;
}
.hero-copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.eyebrow {
  background: rgba(91, 62, 150, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero .sub { font-size: 19px; color: var(--ink-secondary); max-width: 520px; }

.notify {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 460px;
}
.notify-row { display: flex; gap: 10px; }
.notify input[type="email"] {
  flex: 1 1 0;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--sans);
  color: var(--ink);
}
.notify input[type="email"]::placeholder { color: var(--ink-tertiary); }
.notify input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.notify .button { font-size: 17px; padding: 14px 26px; border-radius: 12px; }
.notify .button.done { background: #3E7A4E; }
.notify .button:disabled { opacity: 0.6; cursor: wait; }
.notify .fine { font-size: 14px; color: var(--ink-secondary); }

/* honeypot — hidden from humans, bots tend to fill it */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* signup status message */
.notify-msg {
  min-height: 0;
  font-size: 15px;
  color: #3E7A4E;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s;
}
.notify-msg.show { min-height: 22px; opacity: 1; transform: none; }
.notify-msg.err { color: #A64530; }

/* CV paper card */
.hero-figure { flex: none; transform: rotate(-2deg); }
.paper {
  width: 380px;
  max-width: 100%;
  background: var(--paper);
  border-radius: 5px;
  padding: 26px;
  box-shadow: 0 18px 44px rgba(19, 17, 24, 0.28);
  color: rgba(0, 0, 0, 0.85);
}
.paper .name { font-family: var(--serif); font-size: 28px; font-weight: 700; }
.paper .affil {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 5px;
  text-transform: uppercase;
}
.paper hr { border: 0; height: 1px; background: rgba(0, 0, 0, 0.12); margin: 13px 0; }
.paper h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.paper ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.paper li { display: flex; gap: 5px; font-size: 11px; color: rgba(0, 0, 0, 0.72); }
.paper li::before { content: "\2022"; }

/* Sections */
section { padding-top: 88px; padding-bottom: 88px; }
.ground-white { background: var(--card); }
.ground-page { background: var(--page); }

.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(28px, 3vw, 36px); }
.section-head p { font-size: 17px; color: var(--ink-secondary); }

.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.step { display: flex; flex-direction: column; gap: 12px; }
.step svg { color: var(--accent); }
.step h3 { font-size: 20px; font-weight: 600; font-family: var(--sans); }
.step p { font-size: 16px; color: var(--ink-secondary); }

/* Field lens */
.lens { display: flex; align-items: center; gap: 72px; }
.lens-copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lens-copy h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }
.lens-copy > p { font-size: 17px; color: var(--ink-secondary); line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: rgba(91, 62, 150, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.lens-figure { flex: none; width: 460px; max-width: 100%; }
.lens-card {
  background: var(--paper);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(19, 17, 24, 0.16);
  color: rgba(0, 0, 0, 0.72);
}
.lens-card h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.lens-card p { font-size: 13px; }
.lens-caption { font-size: 13px; color: var(--ink-tertiary); padding: 12px 4px 0; }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.pillar { background: var(--page); border-radius: 12px; padding: 16px; font-size: 15px; font-weight: 600; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature svg { color: var(--accent); }
.feature h3 { font-size: 17px; font-weight: 600; font-family: var(--sans); }
.feature p { font-size: 15px; color: var(--ink-secondary); }

/* Privacy band */
.privacy { background: var(--accent); color: #fff; }
.privacy h2 { font-size: clamp(28px, 3vw, 36px); text-align: center; margin-bottom: 36px; }
.privacy .three-up { text-align: center; }
.privacy h3 { font-size: 18px; font-weight: 600; font-family: var(--sans); margin-bottom: 8px; }
.privacy p { font-size: 15px; color: rgba(255, 255, 255, 0.75); }

/* Status pages (confirmed / unsubscribed) */
.status-page { min-height: 60vh; display: flex; align-items: center; }
.status-block {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.status-block svg { color: var(--accent); }
.status-block h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; }
.status-block p { font-size: 17px; color: var(--ink-secondary); }

/* Footer */
footer { background: var(--ground-dark); color: #EDEAF2; }
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 64px;
  padding-bottom: 56px;
}
footer .wordmark { color: #EDEAF2; }
footer .wordmark span { font-size: 20px; }
footer .button { background: var(--accent-dark); color: var(--ground-dark) !important; }
footer .button:hover { background: #A995D4; }
footer .legal { font-size: 13px; color: var(--ink-tertiary); text-align: center; }
footer .legal a { color: var(--ink-tertiary); }
footer .legal a:hover { color: #EDEAF2; }

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 1080px) {
  .hero { gap: 48px; }
  .lens { gap: 48px; }
  .lens-figure { width: 400px; }
  .three-up { gap: 28px; }
}

@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .hero-figure { transform: none; align-self: center; max-width: 100%; }
  .lens { flex-direction: column; align-items: flex-start; gap: 40px; }
  .lens-figure { width: 460px; }
  .three-up, .features { grid-template-columns: 1fr; gap: 28px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section { padding-top: 64px; padding-bottom: 64px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.button) { display: none; }
  .privacy .three-up { text-align: left; }
}

/* Phone */
@media (max-width: 520px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 32px; padding-bottom: 48px; gap: 40px; }
  .hero .sub { font-size: 17px; }
  .eyebrow { font-size: 12px; }
  .notify-row { flex-direction: column; }
  .notify .button { width: 100%; }
  .paper { padding: 20px; }
  .pillars { grid-template-columns: 1fr; }
  section { padding-top: 48px; padding-bottom: 48px; }
  .section-head { margin-bottom: 32px; }
  .wordmark span { font-size: 19px; }
}
