/* Evocar — evocar.app
   Tokens derive from the app design spec: five card-state hues, sans body with
   generous spacing, color never used alone. The site is styled as one big card:
   the fixed 5-segment bar at the top is the app's 4px state-border cue. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../fonts/literata-var.woff2') format('woff2');
}

:root {
  /* palette */
  --paper: #f6faf8;
  --surface: #ffffff;
  --ink: #1b2a28;
  --ink-soft: #52645f;
  --line: #dbe6e1;
  --teal-deep: #1d5f57;

  /* app card-state hues (from the product spec) */
  --state-hard: hsl(350, 85%, 60%);
  --state-medium: hsl(25, 95%, 60%);
  --state-new: hsl(48, 95%, 55%);
  --state-learning: hsl(168, 75%, 50%);
  --state-known: hsl(200, 90%, 60%);

  /* type */
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Literata', Georgia, 'Times New Roman', serif;

  --maxw: 1080px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

/* signature: the whole site carries the app's state-border cue */
.statebar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 10;
  background: linear-gradient(90deg,
    var(--state-hard) 0 20%,
    var(--state-medium) 20% 40%,
    var(--state-new) 40% 60%,
    var(--state-learning) 60% 80%,
    var(--state-known) 80% 100%);
}

a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { padding: 28px 0 8px; }
.site-header .wrap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav a {
  margin-left: 22px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }

/* sections */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; max-width: 68ch; }
.muted { color: var(--ink-soft); }
.small { font-size: 14.5px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 14px;
}

/* hero */
.hero { padding: 48px 0 64px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p.lede { font-size: 19px; color: var(--ink-soft); }
.hero-actions { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block;
  background: var(--teal-deep);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 0;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-quiet {
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid var(--line);
}
.btn-quiet:hover { background: var(--surface); color: var(--ink); }

/* the flashcard (live demo + brand artifact) */
.flashcard {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--state-learning);
  border-radius: var(--radius);
  padding: 22px 24px 18px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 8px 28px rgba(27, 42, 40, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.flashcard:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(27, 42, 40, 0.11); }
.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 14px;
}
.state-chip { display: inline-flex; align-items: center; gap: 7px; }
.state-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--state-learning);
  flex: none;
}
.card-sentence {
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
  font-style: normal; /* per spec: never italic for card text */
  margin: 0 0 6px;
}
.cloze {
  display: inline-block;
  min-width: 4.5ch;
  border-bottom: 2px solid var(--state-learning);
  text-align: center;
  font-weight: 600;
  color: var(--teal-deep);
}
.card-answer { display: none; margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.flashcard.revealed .card-answer { display: block; }
.card-gloss { font-size: 15px; color: var(--ink-soft); margin: 0; }
.card-hint {
  margin-top: 14px; font-size: 13px; font-weight: 600;
  color: var(--teal-deep); letter-spacing: 0.04em;
}
.progress-track {
  height: 6px; border-radius: 3px; background: var(--line);
  margin-top: 16px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 30%;
  background: var(--state-learning);
  border-radius: 3px;
}

/* definition strip */
.definition {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.definition .term {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
}
.definition .pos { color: var(--ink-soft); font-size: 15px; }

/* feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--state-learning);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

.badge {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal-deep);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* the five states, shown honestly: color + icon + label, never color alone */
.states {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px;
}
.state {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14.5px; font-weight: 600;
}
.state svg { flex: none; }

/* screenshot placeholders */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.shot {
  aspect-ratio: 9 / 17;
  border: 2px dashed var(--line);
  border-radius: 24px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  font-size: 14px; font-weight: 500;
  text-align: center; padding: 16px;
}

/* legal / long-form pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.updated { font-size: 14px; color: var(--ink-soft); }

/* references */
.refs { padding-left: 22px; }
.refs li { margin-bottom: 14px; font-size: 15.5px; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 44px;
  margin-top: 40px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); margin-right: 18px; }
.site-footer a:hover { color: var(--ink); }

/* responsive */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .shots { grid-template-columns: 1fr; max-width: 300px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .site-nav a { margin-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flashcard, .flashcard:hover { transition: none; transform: none; }
}
