/* Molino landing — palette and type rules come from the app itself (src/ui/theme.ts):
   aged leather ink, unbleached paper, candle gold. Literature is serif; UI stays sans. */

:root {
  --ink: #171512;
  --card: #221f1a;
  --border: #2e2a24;
  --paper: #e8e2d5;
  --paper-bright: #fff6e3;
  --fade: #8f887a;
  --candle: #d9a441;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --measure: 42rem;
}

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

body {
  font-family: var(--sans);
  background-color: var(--ink);
  color: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--candle);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--candle);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--paper);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--fade);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--paper);
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fade);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.25;
  color: var(--paper-bright);
  max-width: 36rem;
  margin-bottom: 0.85rem;
}

.hero .lede {
  color: var(--fade);
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 3rem;
}

/* The demo — the app's one mechanic, live */
.demo {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
  padding: 1.75rem 1.75rem 1.5rem;
}

.demo-ru {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--paper);
  transition: color 0.45s;
}

.demo.revealed .demo-ru {
  color: var(--fade);
}

.demo-es {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--paper-bright);
  border-left: 2px solid var(--candle);
  padding-left: 1rem;
  margin: 1.25rem 0 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.45s, transform 0.45s;
}

.demo.revealed .demo-es {
  opacity: 1;
  transform: none;
}

.demo-es[hidden] {
  display: none;
}

.ru-mark {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--candle);
  margin-bottom: 0.35rem;
}

.demo-btn {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--candle);
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}

.demo-btn:hover {
  transform: translateY(-1px);
}

.demo figcaption {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--fade);
}

/* Sections */
section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--paper-bright);
  margin-bottom: 1.75rem;
}

/* Passes — a real sequence: this numbering is how the app actually works */
.pass {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 1rem;
  margin-bottom: 1.75rem;
}

.pass-num {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--candle);
  line-height: 1.2;
}

.pass h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.3rem;
}

.pass p {
  color: var(--fade);
}

.aside-note {
  color: var(--fade);
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  font-size: 0.95rem;
}

/* Privacy blurb + CTA */
.plain p {
  color: var(--fade);
  margin-bottom: 1rem;
  max-width: 36rem;
}

.plain p strong {
  color: var(--paper);
  font-weight: 600;
}

.badge-soon {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--paper);
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
}

/* Legal / support pages */
.legal-content {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.legal-content h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  color: var(--paper-bright);
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  color: var(--fade);
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.legal-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--paper-bright);
  margin: 2.25rem 0 0.9rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--paper);
}

.legal-content ul {
  margin: 0 0 1rem 1.5rem;
  color: var(--paper);
}

.legal-content li {
  margin-bottom: 0.55rem;
}

.legal-content .muted {
  color: var(--fade);
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--paper);
}

.faq-item p {
  color: var(--fade);
  margin: 0;
}

.contact-box {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  margin-top: 2rem;
}

.contact-box h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--paper-bright);
  margin-bottom: 0.75rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  color: var(--fade);
  font-size: 0.875rem;
}

.footer-row a {
  color: var(--fade);
  text-decoration: none;
}

.footer-row a:hover {
  color: var(--paper);
}

/* Responsive & motion */
@media (max-width: 540px) {
  .header-content {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 3rem;
  }

  .demo {
    padding: 1.4rem 1.25rem 1.25rem;
  }

  .pass {
    grid-template-columns: 2.5rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
