/* WordZam landing:shared styles.
   Black on cream, serif headlines, sans body. Single warm accent (rust).
   Goal: <1s load on 3G, no JS framework, no carousels, no parallax. */

:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --ink: #1a1814;
  --ink-soft: #4a4640;
  --ink-muted: #8a847d;
  --line: #e6dfd2;
  --accent: #b54a1e;
  --accent-soft: #d97a4d;
  --accent-bg: #fdf2eb;
  --radius: 6px;
  --maxw: 720px;
  --maxw-wide: 960px;
}

* { box-sizing: border-box; }

html { font-size: 17px; line-height: 1.55; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 400;
}

h1, h2, h3 {
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; margin-top: 0; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { color: var(--accent-soft); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.wide { max-width: var(--maxw-wide); }

/* Header */
header.site {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
header.site .brand {
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: 1.4rem;
  border: none;
  color: var(--ink);
}
header.site .brand:hover { color: var(--accent); }
header.site nav { float: right; }
header.site nav a {
  border: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-left: 1.25rem;
}

/* Hero */
section.hero { padding: 4rem 0 3rem; }
section.hero h1 { margin-bottom: 1rem; }
section.hero .sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 580px; }
section.hero .ctas { margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.08s, box-shadow 0.15s;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(181, 74, 30, 0.22);
}
.btn-primary:hover {
  background: #9c3f17;
  border-color: #9c3f17;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(181, 74, 30, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--accent-bg);
  border-color: var(--ink-muted);
  color: var(--ink);
}

a.btn { border-bottom: none; }

/* Section spacing */
section { padding: 3rem 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Anonymous demo (the lead magnet) */
section.try {
  padding: 4rem 0;
  background: var(--accent-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
section.try h2 { color: var(--accent); }
.demo-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
}
.demo-box .hint { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.demo-box .hint code {
  background: var(--accent-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--accent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
/* Hero with embedded mic demo (Reverso-style). The demo IS the CTA. */
.hero-with-demo { padding-bottom: 3rem; }
.hero-with-demo .sub { max-width: 640px; }
.hero-demo {
  margin: 2rem auto 1rem;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(26, 24, 20, 0.05);
  text-align: center;
}
.hero-demo-hint {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
}
.hero-demo-hint code {
  background: var(--accent-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--accent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.hero-fineprint {
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-align: center;
  margin: 0.5rem auto 0;
  max-width: 620px;
}
.hero-fineprint em { color: var(--ink); font-style: italic; }

.mic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(181, 74, 30, 0.28);
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.mic-btn .mic-icon {
  width: 36px;
  height: 36px;
}
.mic-btn:hover {
  background: #9c3f17;
  box-shadow: 0 8px 22px rgba(181, 74, 30, 0.36);
}
.mic-btn:focus-visible {
  outline: none;
  border-color: var(--ink);
}
.mic-btn:active { transform: scale(0.96); }
.mic-btn.recording { background: #c43a2a; animation: pulse 1s infinite; }
.mic-btn.recording:hover { background: #a83426; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 58, 42, 0.5); }
  50%      { box-shadow: 0 0 0 12px rgba(196, 58, 42, 0); }
}
.cards-area { margin-top: 1.5rem; min-height: 80px; }
.card-out {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.card-out .word { font-family: 'Crimson Pro', serif; font-size: 1.4rem; color: var(--ink); }
.card-out .meta { font-size: 0.85rem; color: var(--ink-muted); margin-top: 0.25rem; }
.card-out .translation { color: var(--ink-soft); margin-top: 0.4rem; }
.demo-counter { text-align: center; font-size: 0.9rem; color: var(--ink-muted); margin-top: 1rem; }
.demo-cap { text-align: center; padding: 1.5rem; background: var(--bg); border-radius: var(--radius); margin-top: 1rem; }
.demo-cap h3 { margin-bottom: 0.5rem; }

/* Three-step problem illustration */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.step { padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step .n {
  display: inline-block;
  font-family: 'Crimson Pro', serif;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.step p { margin: 0; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.feature { padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature h3 { margin-bottom: 0.4rem; font-size: 1.1rem; color: var(--ink); }
.feature p { margin: 0; font-size: 0.95rem; }

/* Bullets */
ul.promise { list-style: none; padding: 0; margin: 1.5rem 0; font-size: 1.15rem; }
ul.promise li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
ul.promise li:last-child { border-bottom: none; }
ul.promise li::before { content: "→ "; color: var(--accent); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.price-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price-card.recommended { border-color: var(--accent); border-width: 2px; }
.price-card .tier { font-size: 0.95rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.price-card .amount {
  font-family: 'Crimson Pro', serif;
  font-size: 2.4rem;
  color: var(--ink);
  margin: 0.4rem 0;
}
.price-card .amount small { font-size: 1rem; color: var(--ink-muted); }
.price-card ul { padding-left: 1.2rem; margin: 1rem 0; }
.price-card ul li { padding: 0.25rem 0; color: var(--ink-soft); font-size: 0.95rem; }
.price-card .note { font-size: 0.85rem; color: var(--ink-muted); margin-top: 1rem; }

/* Founder note */
.founder-note {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  font-family: 'Crimson Pro', serif;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
}
.founder-note .sig { display: block; margin-top: 0.5rem; font-size: 1rem; color: var(--ink-muted); }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  font-size: 1.4rem; color: var(--accent);
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin-top: 0.75rem; }

/* Privacy callout */
.privacy-callout {
  background: var(--accent-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.privacy-callout p { margin: 0; }

/* Waitlist form */
.waitlist {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 1rem; max-width: 480px;
}
.waitlist input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}
.waitlist input[type="email"]:focus { outline: none; border-color: var(--accent); }
.waitlist .msg { width: 100%; font-size: 0.9rem; color: var(--ink-muted); margin-top: 0.5rem; }
.waitlist .msg.success { color: var(--accent); }

/* Demo video */
.demo-video {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  background: #000;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
footer.site a { color: var(--ink-muted); border: none; }
footer.site a:hover { color: var(--accent); }
footer.site .links { margin-bottom: 1rem; }
footer.site .links a { margin-right: 1.25rem; }

/* Mobile */
@media (max-width: 640px) {
  html { font-size: 16px; }
  body { overflow-x: hidden; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  section.hero { padding: 3rem 0 2rem; }
  section.hero .ctas { flex-direction: column; align-items: stretch; }
  section.hero .ctas .btn { text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .demo-box { padding: 1.25rem; }
  .waitlist { flex-direction: column; align-items: stretch; }
  .waitlist input[type="email"] { min-width: 0; width: 100%; }
  header.site nav { float: none; margin-top: 0.5rem; }
  header.site nav a { margin: 0 1.25rem 0 0; font-size: 0.95rem; }
  footer.site .links a {
    display: inline-block;
    margin: 0 1rem 0.5rem 0;
  }
}
