/* motifscribe.com — shared styles
   Same palette as the app's 2026-07-11 redesign: dark ground
   #0A0E17→#151C2E gradient, electric blue #5B8CFF accent. */

:root {
  --bg: #0a0e17;
  --bg-elevated: #10151f;
  --bg-card: #151c2e;
  --border: #232b3d;
  --text: #eef1f7;
  --text-dim: #9aa4b8;
  --accent: #5b8cff;
  --accent-soft: rgba(91, 140, 255, 0.14);
  --radius: 14px;
  --container: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---- Topbar ---- */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; color: var(--text); }
.brand:hover { text-decoration: none; opacity: 0.9; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-links a { color: var(--text-dim); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text); width: 40px; height: 40px; align-items: center; justify-content: center; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #06070a; }
.btn-primary:hover { background: #74a0ff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Hero ---- */
.hero { padding: 96px 0 56px; text-align: center; }
.hero .icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 24px; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 18px; letter-spacing: -0.02em; }
.hero .lede { font-size: 19px; color: var(--text-dim); max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
section { padding: 56px 0; }
.section-title { font-size: 28px; margin: 0 0 12px; letter-spacing: -0.01em; text-align: center; }
.section-lede { color: var(--text-dim); max-width: 560px; margin: 0 auto 40px; text-align: center; }

/* ---- Feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { color: var(--text-dim); margin: 0; font-size: 15px; }
.card .emoji { font-size: 28px; margin-bottom: 14px; display: block; }

/* ---- Screenshot strip ---- */
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 0 16px; scroll-snap-type: x mandatory; }
.shots img { flex: 0 0 auto; height: 480px; border-radius: 18px; border: 1px solid var(--border); scroll-snap-align: start; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.badge-soon { background: var(--accent-soft); color: var(--accent); }

/* ---- Waitlist form ---- */
.waitlist-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.waitlist-form input[type="email"] {
  flex: 1; min-width: 220px; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text); font-size: 15px;
}
.waitlist-form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.waitlist-status { margin-top: 14px; font-size: 14px; color: var(--text-dim); min-height: 20px; }
.waitlist-status.success { color: #34d399; }
.waitlist-status.error { color: #f87171; }

/* ---- Prose (privacy/terms/support) ---- */
.prose { max-width: 720px; margin: 0 auto; padding: 64px 0 96px; }
.prose h1 { font-size: 34px; margin-bottom: 8px; }
.prose .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 40px; }
.prose h2 { font-size: 21px; margin-top: 40px; }
.prose p, .prose li { color: var(--text-dim); font-size: 15.5px; }
.prose ul { padding-left: 22px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.foot-brand { max-width: 320px; }
.foot-tagline { color: var(--text-dim); font-size: 14px; margin-top: 12px; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col-h { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 14px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--text); font-size: 14px; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-dim); }
.foot-legal { display: flex; gap: 20px; }
.foot-legal a { color: var(--text-dim); }

@media (max-width: 760px) {
  .nav-cta { display: none; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-elevated);
    border-bottom: 1px solid var(--border); padding: 8px 24px 16px;
  }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links.nav-links-open { display: flex; }
  .nav-toggle { display: flex; }
  .shots img { height: 340px; }
}
