/* Letras Vivas · Shared Secondary Pages & WebApp Studio Stylesheet */
:root {
  --bg: #F5FAFF;
  --surface: #FFFFFF;
  --surface-muted: #EFF7FF;
  --ink: #142842;
  --ink-secondary: #2C425E;
  --muted: #445B78;
  --border: #D4E4F4;
  --accent: #0F5699;
  --accent-hover: #0B447A;
  --accent-soft: #E0F1FF;
  --brand: #FFC933;
  --brand-hover: #FFB800;
  --brand-edge: #D99B00;
  --green: #0D683F;
  --green-soft: #E1F7EC;
  --amber: #92400E;
  --amber-soft: #FEF3C7;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 16px 36px -14px rgba(0, 0, 0, 0.14);
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;
  --font-hand: 'Playpen Sans', 'Comic Sans MS', cursive;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.01em; margin: 0; font-weight: 600; }

.wrap { width: min(1100px, 100% - 36px); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; }
.brand-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo img { height: 36px; width: auto; }
.studio-pill {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}
.header-cta {
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  border: 1.5px solid var(--brand-edge);
  cursor: pointer;
}
.header-cta:hover { background: var(--brand-hover); }

.section { padding: 48px 0 68px; }
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.field-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.text-input {
  width: 100%;
  font: 600 1rem var(--font-body);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-muted);
  color: var(--ink);
}
.text-input:focus { outline: none; border-color: #2B95EB; background: #FFFFFF; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  font: 700 .86rem var(--font-body);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #FFFFFF;
  color: var(--ink-secondary);
  cursor: pointer;
}
.chip-btn:hover, .chip-btn.is-active {
  background: var(--accent-soft);
  border-color: #2B95EB;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1.5px solid var(--brand-edge);
  background: var(--brand);
  color: var(--ink);
  font: 800 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.22);
}
.btn:hover { background: var(--brand-hover); }

.trace-lines { display: grid; gap: 12px; }
.trace-row {
  position: relative;
  border-top: 1.5px solid #BBD4EE;
  border-bottom: 1.5px solid #BBD4EE;
  padding: 8px 10px;
  min-height: 62px;
  overflow: hidden;
}
.trace-row.is-double::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1.5px dashed #7CC2F7;
}
.trace-word {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
}
.trace-word.style-model { color: var(--ink); font-weight: 700; }
.trace-word.style-dotted { color: transparent; -webkit-text-stroke: 1.6px #445B78; text-stroke: 1.6px #445B78; font-weight: 700; }
.trace-word.style-light { color: transparent; -webkit-text-stroke: 1px #6E85A3; text-stroke: 1px #6E85A3; font-weight: 700; }

.syllable-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.syllable-pill { font: 700 1.05rem var(--font-hand); padding: 6px 14px; border-radius: 10px; }
.syllable-pill:nth-child(4n+1) { background: #FFC933; color: #142842; }
.syllable-pill:nth-child(4n+2) { background: #0F5699; color: #FFFFFF; }
.syllable-pill:nth-child(4n+3) { background: #0D683F; color: #FFFFFF; }
.syllable-pill:nth-child(4n+4) { background: #5B3FA8; color: #FFFFFF; }

@media print {
  .no-print { display: none !important; }
  body { background: #FFFFFF; }
  .print-sheet { border: none !important; box-shadow: none !important; padding: 0 !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
