/* ==========================================================================
   Popia — Design System (site.css)
   Site público: landing + dicionário/gramática/verbos/frases/lições
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');

:root {
  /* Brand */
  --accent: #E85D3A;
  --accent-dark: #C44A2E;
  --accent-light: #FFF0EB;
  --accent-tint: #F7C6BA;
  --gradient-accent: linear-gradient(135deg, #FF8A50 0%, #E85D3A 100%);
  --gradient-tint: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  --gradient-accent-soft: linear-gradient(135deg, #FFFFFF 0%, #F5B896 100%);

  /* Surfaces */
  --bg: #FAFAF8;
  --bg-alt: #F4F1EC;
  --surface: #FFFFFF;
  --surface-2: #F2F2EE;

  /* Text */
  --text: #1A1A1A;
  --text-2: #6B6B6B;
  --text-3: #999999;
  --on-accent: #FFFFFF;

  /* Lines */
  --divider: #E9E5DE;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(26,20,14,0.06);
  --shadow-md: 0 8px 24px rgba(26,20,14,0.08);
  --shadow-lg: 0 24px 64px rgba(26,20,14,0.14);

  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Layout */
  --container: 1160px;
  --container-narrow: 760px;
  --nav-h: 76px;
}

/* -------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent-light); color: var(--accent-dark); }

/* -------------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------------- */

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

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

.page {
  padding-top: 56px;
  padding-bottom: 96px;
}

.page-head {
  margin-bottom: 40px;
}

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

.page-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 17px;
  color: var(--text-2);
  max-width: 620px;
}

.section-gap { margin-top: 64px; }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--on-accent);
  box-shadow: 0 10px 24px rgba(232,93,58,0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(232,93,58,0.4); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--divider);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--divider); }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250,250,248,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--divider);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}
.nav-brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-brand .accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); background: var(--accent-light); }

.nav-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  padding: 3px;
}
.nav-lang a {
  padding: 6px 11px;
  border-radius: var(--r-pill);
  color: var(--text-2);
}
.nav-lang a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: none;
  background: var(--surface-2);
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 12px 24px 32px;
  overflow-y: auto;
}
.nav-mobile a {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--divider);
  color: var(--text);
}
.nav-mobile a.active { color: var(--accent); }
.nav-mobile .nav-mobile-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }

body.nav-open .nav-mobile { display: block; }
body.nav-open { overflow: hidden; }

@media (max-width: 1080px) {
  .nav-links, .desktop-only { display: none; }
  .nav-toggle { display: flex; }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--divider);
  background: var(--surface);
  padding: 56px 0 32px;
  margin-top: 96px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.footer-brand .accent { color: var(--accent); }
.footer-tagline { color: var(--text-2); font-size: 14px; max-width: 260px; }

.footer-col-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-2);
  padding: 6px 0;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-3);
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-3);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-2); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }

/* -------------------------------------------------------------------------
   Cards & grids
   ------------------------------------------------------------------------- */

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-link {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-2);
}

/* -------------------------------------------------------------------------
   Tags / chips / badges
   ------------------------------------------------------------------------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid transparent;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--accent-light); color: var(--accent-dark); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--text);
  color: var(--surface);
}
.badge-a1 { background: #2E8B57; }
.badge-a2 { background: #1565C0; }
.badge-a3 { background: #D84315; }
.badge-b1 { background: #7B1FA2; }

/* -------------------------------------------------------------------------
   Search box
   ------------------------------------------------------------------------- */

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--divider);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-light); }

.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15.5px;
  font-family: inherit;
  color: var(--text);
  padding: 10px 0;
}
.search-box input::placeholder { color: var(--text-3); }

.search-box button {
  flex-shrink: 0;
  border: none;
  background: var(--gradient-accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
}

@media (max-width: 420px) {
  .search-box { padding: 6px 6px 6px 16px; }
  .search-box button { padding: 12px 16px; font-size: 13px; }
}

/* -------------------------------------------------------------------------
   Letter strip
   ------------------------------------------------------------------------- */

.letter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.letter-strip a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
}
.letter-strip a:hover { background: var(--accent-light); color: var(--accent-dark); }
.letter-strip a.active { background: var(--accent); color: var(--on-accent); }

/* -------------------------------------------------------------------------
   Word of the day
   ------------------------------------------------------------------------- */

.wotd {
  background: var(--text);
  background-image: radial-gradient(circle at 15% 20%, rgba(232,93,58,0.55), transparent 55%);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  color: #fff;
  margin: 32px 0;
}
.wotd-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFC7B3;
  margin-bottom: 10px;
}
.wotd-word { font-family: var(--font-display); font-size: 32px; font-weight: 600; }
.wotd-meaning { font-size: 16px; color: rgba(255,255,255,0.78); margin-top: 4px; }
.wotd-tag { margin-top: 14px; }

/* -------------------------------------------------------------------------
   Quick links (dictionary empty state)
   ------------------------------------------------------------------------- */

.quick-card {
  display: block;
  text-align: center;
  padding: 28px 16px;
}
.quick-card .name { font-weight: 700; font-size: 15px; }
.quick-card .count { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* -------------------------------------------------------------------------
   Dictionary entry cards & detail
   ------------------------------------------------------------------------- */

.entry-card {
  display: block;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.entry-card .word { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.entry-card .translation { font-size: 14.5px; color: var(--text-2); margin-top: 4px; }
.entry-card .tag { margin-top: 12px; }

.entry-hero { text-align: left; padding: 40px; }
.entry-word { font-family: var(--font-display); font-size: 40px; font-weight: 600; }
.entry-ipa { font-size: 15px; color: var(--text-2); font-style: italic; margin-top: 4px; }
.entry-translation { font-size: 20px; color: var(--text-2); margin-top: 6px; }
.entry-meta { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.entry-example {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
}
.entry-example .label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.entry-example .text { font-size: 16px; line-height: 1.8; }

/* -------------------------------------------------------------------------
   Grammar
   ------------------------------------------------------------------------- */

.section-group { margin-bottom: 40px; }
.section-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}
.topic-card { padding: 20px 22px; font-weight: 600; font-size: 15.5px; }

.accordion-list { display: flex; flex-direction: column; gap: 12px; }

.accordion { border-radius: var(--r-md); }
.accordion-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient-accent-soft) border-box;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.accordion[open] .accordion-summary { border-radius: var(--r-md) var(--r-md) 0 0; }
.accordion-summary::-webkit-details-marker,
.accordion-summary::marker { display: none; content: ''; }
.accordion-chevron { flex: 0 0 auto; color: var(--text); transition: transform 0.2s ease; }
.accordion[open] .accordion-chevron { transform: rotate(180deg); }
.accordion-content {
  padding: 20px 20px 4px;
  border: 1px solid var(--divider);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.prose {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.prose p { margin-bottom: 1em; }
.prose h2 { font-size: 22px; margin-top: 1.7em; margin-bottom: 0.6em; }
.prose h3 { font-size: 18px; margin-top: 1.5em; margin-bottom: 0.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; line-height: 1.7; }
.prose li:last-child { margin-bottom: 0; }
.prose blockquote {
  margin: 1.5em 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-2);
  font-style: italic;
}
.prose strong { color: var(--text); font-weight: 700; }
.prose-pre { white-space: pre-wrap; word-wrap: break-word; }

/* -------------------------------------------------------------------------
   Tables (conjugation, prefixes)
   ------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 14.5px;
}
table.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  border-bottom: 2px solid var(--divider);
}
table.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
}
table.data-table tr:last-child td { border-bottom: none; }
.cell-person { font-weight: 700; text-transform: capitalize; }
.cell-pron { color: var(--text-2); }
.cell-aff { color: var(--accent-dark); font-weight: 600; white-space: pre-line; }
.cell-neg { color: var(--text-2); white-space: pre-line; }
.cell-aff, .cell-neg { line-height: 1.5; }

.tense-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.tense-pill {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: capitalize;
}
.tense-pill.active { background: var(--gradient-accent); color: #fff; }

/* -------------------------------------------------------------------------
   Verb list
   ------------------------------------------------------------------------- */

.verb-card .radical { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--accent); }
.verb-card .infinitive { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.verb-card .meaning { font-size: 14.5px; margin-top: 8px; }

.forms-list .form-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}
.forms-list .form-item:last-child { border-bottom: none; }

/* -------------------------------------------------------------------------
   Phrases
   ------------------------------------------------------------------------- */

.phrase-card .umb { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--accent-dark); }
.phrase-card .translation { font-size: 15px; margin-top: 6px; }

/* -------------------------------------------------------------------------
   Lessons
   ------------------------------------------------------------------------- */

.lesson-card { display: block; padding: 24px; }
.lesson-card .title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-top: 12px; }
.lesson-card .desc { font-size: 14px; color: var(--text-2); margin-top: 8px; }

.exercise-card { padding: 22px 24px; margin-bottom: 14px; }
.exercise-question { font-weight: 700; margin-bottom: 8px; font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.exercise-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--divider);
  font-weight: 600;
  color: var(--accent-dark);
}
.exercise-answer.hidden { display: none; }
.exercise-reveal {
  margin-top: 14px;
  border: none;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--r-pill);
}
.exercise-reveal:hover { background: var(--divider); }

/* -------------------------------------------------------------------------
   Blog
   ------------------------------------------------------------------------- */

.blog-card { display: block; padding: 0; overflow: hidden; }
.blog-card-cover {
  height: 180px;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
}
.blog-card-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
}
.blog-card-cover-placeholder img { width: 40px; height: 40px; opacity: 0.5; }
.blog-card-body { padding: 24px; }
.blog-card-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-top: 12px; }
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 8px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-3);
}
.blog-card-meta span:not(:last-child)::after { content: '·'; margin-left: 10px; }

.blog-hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* -------------------------------------------------------------------------
   Blog — sidebar & filters
   ------------------------------------------------------------------------- */

.blog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.sidebar-block + .sidebar-block { margin-top: 32px; }

.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.sidebar-list { display: flex; flex-direction: column; gap: 2px; }

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.sidebar-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar-link.active { background: var(--accent-light); color: var(--accent-dark); }
.sidebar-link .count { font-size: 12px; font-weight: 600; color: var(--text-3); }
.sidebar-link.active .count { color: var(--accent-dark); }

.blog-clear-filters { margin-top: 16px; }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }
  .sidebar-block { flex: 1 1 220px; }
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.pager-status { font-size: 13.5px; color: var(--text-2); }

/* -------------------------------------------------------------------------
   Landing — hero
   ------------------------------------------------------------------------- */

.hero {
  padding: 72px 0 64px;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.05;
}
.hero-title .accent {
  color: var(--accent);
  font-style: italic;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-2);
  max-width: 480px;
  margin-top: 22px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.store-badges img { height: 44px; width: auto; max-width: 100%; }
.store-badges a.disabled { opacity: 0.45; pointer-events: none; }

@media (max-width: 360px) {
  .store-badges img { height: 38px; }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -10% -10% -10% 10%;
  background: radial-gradient(circle at 60% 40%, rgba(232,93,58,0.16), transparent 60%);
  z-index: 0;
}
.hero-shot {
  position: relative;
  z-index: 1;
  width: min(320px, 78vw);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions, .store-badges { justify-content: center; }
  .hero-visual { margin-top: 24px; }
}

/* -------------------------------------------------------------------------
   Landing — stats
   ------------------------------------------------------------------------- */

.stats-band {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-2); margin-top: 4px; }

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
}

/* -------------------------------------------------------------------------
   Landing — features
   ------------------------------------------------------------------------- */

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}
.section-head .page-subtitle { margin: 10px auto 0; }

.feature-card { padding: 30px; }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.feature-card .feature-tag { margin-top: 14px; }

/* -------------------------------------------------------------------------
   Landing — showcase
   ------------------------------------------------------------------------- */

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.showcase-tab {
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-2);
  border: none;
}
.showcase-tab.active { background: var(--text); color: #fff; }

.showcase-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x proximity;
}
.showcase-track img {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 230px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.showcase-panel { display: none; }
.showcase-panel.active { display: block; }

/* -------------------------------------------------------------------------
   Landing — premium
   ------------------------------------------------------------------------- */

.premium-section {
  background: var(--text);
  border-radius: var(--r-lg);
  padding: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.premium-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(232,93,58,0.35), transparent 55%);
}
.premium-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.premium-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFC7B3;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.premium-eyebrow .icon-svg { width: 16px; height: 16px; color: var(--accent); }
.premium-title { font-size: clamp(26px, 3.4vw, 34px); color: #fff; }
.premium-subtitle { color: rgba(255,255,255,0.68); margin-top: 14px; font-size: 15px; line-height: 1.7; }
.premium-list { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.premium-item { display: flex; gap: 14px; align-items: flex-start; }
.premium-item .dot {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.premium-item .body b { display: block; font-size: 15px; }
.premium-item .body span { font-size: 13.5px; color: rgba(255,255,255,0.65); }
.premium-note { margin-top: 28px; font-size: 13.5px; color: rgba(255,255,255,0.55); }

@media (max-width: 860px) {
  .premium-section { padding: 40px 24px; }
  .premium-inner { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Landing — download band
   ------------------------------------------------------------------------- */

.download-band {
  text-align: center;
  padding: 72px 0;
}
.download-band h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.download-band p { color: var(--text-2); max-width: 440px; margin: 0 auto; }
.download-band .store-badges { justify-content: center; margin-top: 30px; }

/* -------------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.7s ease both; }
.stagger > * { animation: fadeUp 0.6s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
.stagger > *:nth-child(3) { animation-delay: 0.10s; }
.stagger > *:nth-child(4) { animation-delay: 0.14s; }
.stagger > *:nth-child(5) { animation-delay: 0.18s; }
.stagger > *:nth-child(6) { animation-delay: 0.22s; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .stagger > *, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* -------------------------------------------------------------------------
   Misc utility
   ------------------------------------------------------------------------- */

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* -------------------------------------------------------------------------
   Modal (word detail)
   ------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 15, 10, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0s linear 0s;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  text-align: left;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal-panel { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--divider); color: var(--text); }
.modal-close .icon-svg { width: 18px; height: 18px; }

.modal-link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

body.modal-open { overflow: hidden; }

/* -------------------------------------------------------------------------
   Icons (inline SVG, see templates/_icons.html.twig)
   ------------------------------------------------------------------------- */

.icon-svg { width: 22px; height: 22px; display: block; flex: 0 0 auto; }

.hero-eyebrow .icon-svg { width: 15px; height: 15px; }
.feature-icon .icon-svg { width: 26px; height: 26px; color: var(--accent); }
.quick-card .icon { margin-bottom: 12px; color: var(--accent); display: flex; justify-content: center; }
.quick-card .icon .icon-svg { width: 28px; height: 28px; }
.premium-item .dot .icon-svg { width: 14px; height: 14px; color: #fff; }
.contact-icon { display: inline-flex; color: var(--accent); }
.contact-icon .icon-svg { width: 22px; height: 22px; }

/* -------------------------------------------------------------------------
   Auth (login)
   ------------------------------------------------------------------------- */

.auth-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 12%, rgba(232,93,58,0.12), transparent 45%),
    radial-gradient(circle at 88% 88%, rgba(232,93,58,0.10), transparent 45%);
  padding: 24px;
}

.auth-shell {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 32px;
}
.auth-brand img { width: 36px; height: 36px; border-radius: 10px; }

.auth-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.auth-card-head { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 24px; margin-top: 8px; }
.auth-subtitle { font-size: 14px; color: var(--text-2); margin-top: 8px; }

.auth-alert {
  background: #FDECEA;
  color: #C0392B;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}

.auth-form { display: flex; flex-direction: column; }
.auth-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  margin: 16px 0 6px;
}
.auth-label:first-child { margin-top: 0; }

.auth-input {
  border: 1.5px solid var(--divider);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-light); }

.auth-submit { margin-top: 26px; }

.auth-back {
  margin-top: 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}
.auth-back:hover { color: var(--accent); }
