/* CuraNote marketing site. Tokens ported from cura_note client/src/styles/tokens.css. */

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --color-primary: #7C5CFC;
  --color-primary-hover: #6B4EE0;
  --color-primary-subtle: rgba(124, 92, 252, 0.10);
  --text-primary: #2D2B3D;
  --text-secondary: #5A5678;
  --text-muted: #75709A;
  --text-placeholder: #C8C4DA;
  --bg-gradient-start: #F8F7FC;
  --bg-gradient-end: #F0F0FF;
  --bg-card: #fff;
  --color-error-text: #DC2626;
  --color-success-text: #16A34A;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 24px;
  --border-light: rgba(124, 92, 252, 0.08);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 6px 24px rgba(124, 92, 252, 0.10);
  --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: linear-gradient(160deg, var(--bg-gradient-start), var(--bg-gradient-end));
  min-height: 100vh;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* Layout container behavior shared by page blocks */
.nav, .hero, main, .footer {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
.wordmark {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
}
.nav-links a:hover { color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  min-height: 44px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-secondary {
  background: var(--color-primary-subtle);
  color: var(--color-primary) !important;
}
.btn-secondary:hover { background: rgba(124, 92, 252, 0.16); }

/* Hero */
.hero {
  text-align: center;
  padding-top: clamp(48px, 10vw, 96px);
  padding-bottom: clamp(40px, 8vw, 72px);
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero-sub {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 640px;
  margin: 20px auto 32px;
}

/* Signup form */
.signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.signup input[type="email"] {
  font-family: var(--font-family);
  font-size: 1rem;
  padding: 12px 20px;
  min-height: 44px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
}
.signup input[type="email"]::placeholder { color: var(--text-placeholder); }
.signup input[type="email"]:focus {
  border-color: rgba(124, 92, 252, 0.35);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.08);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.signup-status {
  min-height: 1.4em;
  margin-top: 10px;
  font-weight: 700;
}
.signup-status.error { color: var(--color-error-text); }
.signup-status.success { color: var(--color-success-text); }
.hero-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}
.hero-note a { color: var(--color-primary); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 48px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: all 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); }
.card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.card p { color: var(--text-secondary); }

/* Privacy + About */
.privacy, .about {
  text-align: center;
  padding: 32px 0;
  max-width: 640px;
  margin: 0 auto;
}
.privacy h2, .about h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.privacy p, .about p { color: var(--text-secondary); }
.about p + p { margin-top: 12px; }
.about a { color: var(--color-primary); font-weight: 700; }

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border-light);
  margin-top: 48px;
}
.wordmark-small { font-size: 1.1rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
}
.footer-links a:hover { color: var(--text-primary); }

/* >= 600px: signup goes inline */
@media (min-width: 600px) {
  .signup { flex-direction: row; }
  .signup input[type="email"] { flex: 1; }
}

/* >= 720px: three-up cards, roomier footer */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .footer { flex-direction: row; justify-content: space-between; }
}

/* Legal pages (privacy policy) */
.legal {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px 48px;
}
.legal h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.legal h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 28px 0 8px;
}
.legal p, .legal li { color: var(--text-secondary); }
.legal ul { padding-left: 24px; margin: 8px 0; }
.legal a { color: var(--color-primary); font-weight: 700; }
