/* zinho.app: same light palette as the app's light screens (src/theme.ts `L`): Brazil flag green and yellow,
   toucan navy on a warm off-white. Fonts are self-hosted (no request to Google). */
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url('/fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-display: swap; src: url('/fonts/bricolage.woff2') format('woff2'); }

:root {
  --bg: #fbf8ef;
  --bg2: #f2eee1;
  --card: #ffffff;
  --fill: #f2eee1;
  --line: #e2dccb;
  --text: #14213d;
  --muted: #5d6679;
  --green: #009c3b;
  --green-hi: #00843a;
  --green-soft: #e2f3e7;
  --yellow: #f5b800;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Inter', sans-serif; line-height: 1.05; letter-spacing: -0.02em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.accent { color: var(--green); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(251, 248, 239, 0.8); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 15px; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hi); }
.btn-ghost { border: 1px solid var(--line); background: var(--card); color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 0, 0.22), transparent 62%); pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green-hi); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; margin: 18px 0 20px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 14px; padding: 10px 18px; font-weight: 700; }
.store small { display: block; font-size: 11px; font-weight: 600; opacity: 0.7; line-height: 1; }
.store span { display: block; font-size: 19px; line-height: 1.15; }
.note { font-size: 13px; color: var(--muted); }

/* Phone mock of the feed (the feed itself is dark in the app), until the real screenshot is in */
.phone {
  width: 300px; height: 620px; margin: 0 auto; border-radius: 48px; background: #000; border: 10px solid #14213d;
  box-shadow: 0 40px 100px rgba(20, 33, 61, 0.28); position: relative; overflow: hidden; color: #eceeed;
}
.phone .video { position: absolute; inset: 0 0 200px 0; background: linear-gradient(160deg, #0f5a33, #0b0d0c 70%); }
.phone .video .tag { position: absolute; left: 16px; top: 54px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, 0.45); padding: 4px 10px; border-radius: 999px; }
.phone .goal { position: absolute; left: 18px; right: 18px; top: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.phone .goal i { display: block; width: 62%; height: 100%; border-radius: 2px; background: #ffc53d; }
.phone .panel { position: absolute; left: 0; right: 0; bottom: 0; height: 210px; background: #171918; border-radius: 24px 24px 0 0; padding: 18px; }
.phone .sentence { font-weight: 700; font-size: 21px; line-height: 1.4; }
.phone .sentence u { text-decoration: underline dotted rgba(41, 163, 131, 0.7); text-underline-offset: 5px; }
.phone .sentence .on { color: #ffc53d; background: #0d2d2a; text-decoration: none; border-radius: 4px; padding: 0 3px; }
.phone .card { position: absolute; left: 12px; right: 12px; bottom: 222px; background: #202221; border: 1px solid #2e3130; border-radius: 16px; padding: 12px 14px; }
.phone .card b { font-size: 19px; }
.phone .card .pos { font-size: 11px; color: #adb5b2; margin-left: 6px; }
.phone .card p { font-size: 13px; color: #adb5b2; margin-top: 2px; }
.phone .meta { position: absolute; left: 18px; right: 18px; bottom: 26px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #adb5b2; }
.phone .thumb { width: 52px; height: 30px; border-radius: 6px; border: 1.5px solid #fff; background: linear-gradient(135deg, #3a6b5d, #1b2b26); }

/* Topic marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; margin-top: 48px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: slide 40s linear infinite; }
.chip { white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
section { padding: 96px 0; }
.kicker { color: var(--green); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; margin: 12px 0 16px; max-width: 760px; }
.sub { color: var(--muted); font-size: 19px; max-width: 620px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-height: 360px; display: flex; flex-direction: column; }
.step .n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 15px; color: var(--green); }
.step h3 { font-size: 26px; margin: 10px 0 10px; }
.step p { color: var(--muted); font-size: 16px; }
.step .shot { margin-top: auto; padding-top: 22px; }
.mini { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 14px; }
.mini + .mini { margin-top: 8px; }
.mini b { font-size: 17px; }
.mini .m { color: var(--muted); font-size: 13px; }
.bar { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; width: 42%; background: var(--green); border-radius: 4px; }

/* Real vs textbook */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.vs { border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.vs.book { background: var(--bg2); }
.vs.real { background: var(--green-soft); border-color: rgba(0, 156, 59, 0.35); }
.vs .label { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.vs.real .label { color: var(--green-hi); }
.vs ul { list-style: none; margin-top: 18px; display: grid; gap: 14px; }
.vs li { font-size: 21px; font-weight: 700; }
.vs li span { display: block; font-size: 14px; font-weight: 500; color: var(--muted); }
.vs.book li { color: var(--muted); font-weight: 600; }

/* Founder */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.founder .photo { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 20px; }
.founder blockquote { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; font-weight: 600; }
.founder .sign { margin-top: 20px; color: var(--muted); }

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 12px; max-width: 820px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; color: var(--green); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin-top: 12px; }

/* Closing CTA */
.final { text-align: center; padding: 120px 0; background: radial-gradient(ellipse at center, rgba(0, 156, 59, 0.12), transparent 60%); }
.final .h2 { margin-inline: auto; }
.final .cta-row { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: 44px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: #3a4458; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--green-hi); text-decoration: underline; text-underline-offset: 3px; }

/* Language switch (imprint) */
.lang { display: inline-flex; gap: 4px; background: var(--fill); border-radius: 999px; padding: 4px; margin: 8px 0 8px; }
.lang button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed='true'] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(20, 33, 61, 0.12); }
[data-lang] { display: none; }
body.de [data-lang='de'], body:not(.de) [data-lang='en'] { display: block; }

@media (max-width: 900px) {
  .hero .wrap, .founder, .versus { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .nav-links { display: none; }
  section { padding: 72px 0; }
}

/* Zinho the toucan */
.hero-mascot { width: 120px; display: block; margin-bottom: 14px; }
.final-mascot { width: 150px; margin: 0 auto 18px; }

/* Flag (emoji flags show as letters on Windows) */
.eyebrow .flag { width: 20px; height: 14px; display: inline-block; }

/* How it works: small app screens */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.feature h3 { font-size: 26px; margin: 22px 0 6px; }
.feature p { color: var(--muted); font-size: 16px; }
.screen { position: relative; height: 340px; border-radius: 32px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(20, 33, 61, 0.12); }
.screen.dark { background: #000; color: #eceeed; }
.screen.light { background: var(--bg2); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 22px; }
.s-video { position: absolute; inset: 0 0 132px 0; background: linear-gradient(160deg, #0f5a33 0%, #f5b800 160%); }
.s-tag { position: absolute; left: 16px; top: 16px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, 0.45); padding: 4px 10px; border-radius: 999px; }
.s-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: #171918; border-radius: 22px 22px 0 0; padding: 18px; }
.s-line { font-weight: 700; font-size: 18px; line-height: 1.35; }
.s-line.dim { color: #6f7774; font-size: 15px; margin-bottom: 4px; }
.s-line .hl { color: #ffc53d; background: #0d2d2a; border-radius: 4px; padding: 0 3px; }
.s-tr { color: #adb5b2; font-size: 13px; margin-top: 4px; }
.s-card, .s-review { background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 8px 24px rgba(20, 33, 61, 0.08); }
.s-word { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 30px; }
.s-word.big { font-size: 38px; text-align: center; margin: 18px 0 6px; }
.s-pos { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--muted); }
.s-mean { color: var(--muted); font-size: 14px; margin-top: 4px; }
.s-review .s-mean { text-align: center; }
.s-chips { display: flex; gap: 8px; margin-top: 14px; }
.s-chips span { background: var(--green-soft); color: var(--green-hi); font-size: 13px; font-weight: 700; border-radius: 999px; padding: 6px 12px; }
.s-levels { display: flex; gap: 6px; margin-top: 16px; }
.s-levels i { flex: 1; height: 6px; border-radius: 3px; background: var(--fill); }
.s-levels i.on { background: var(--yellow); }
.s-review { position: relative; transform: rotate(-3deg); }
.s-stamp { position: absolute; top: 14px; left: 14px; border: 2px solid var(--green); color: var(--green); font-weight: 800; font-size: 12px; letter-spacing: 0.06em; border-radius: 6px; padding: 2px 8px; transform: rotate(-8deg); }
.s-progress { background: #fff; border-radius: 16px; padding: 12px 16px; font-size: 14px; color: var(--muted); }
.s-progress b { color: var(--text); font-size: 18px; }
.s-progress span { color: var(--green-hi); font-weight: 800; }

/* Real Portuguese: textbook vs. Brazil as a chat */
.chat { display: grid; gap: 22px; margin-top: 40px; max-width: 620px; }
.pair { display: grid; gap: 8px; }
.bubble { max-width: 78%; border-radius: 22px; padding: 12px 18px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.bubble span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
.bubble small { display: block; font-size: 14px; font-weight: 500; opacity: 0.85; margin-top: 2px; }
.bubble.book { justify-self: start; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 600; border-bottom-left-radius: 6px; }
.bubble.book s { text-decoration-color: rgba(93, 102, 121, 0.5); }
.bubble.real { justify-self: end; background: var(--green); color: #fff; font-size: 24px; border-bottom-right-radius: 6px; }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; gap: 40px; }
  .bubble { max-width: 92%; }
}

/* v3: flashcard hints, compact Real Portuguese, founder story */
.s-label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.s-play { margin: 12px auto 0; width: max-content; background: var(--green-soft); color: var(--green-hi); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 12px; }
.s-swipe { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 6px; }
.s-swipe span:last-child { color: var(--green-hi); }
.screen.light { gap: 10px; }

.chat { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 20px; }
.pair { align-content: start; }
.bubble { max-width: none; }
.bubble.book { font-size: 16px; }
.bubble.real { justify-self: stretch; font-size: 20px; margin-left: 24px; }
.bubble.book { margin-right: 24px; justify-self: stretch; }

.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.chapter .photo { aspect-ratio: 4 / 3; border-radius: 18px; background: var(--bg2); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 16px; }
.chapter .n { display: block; margin-top: 14px; font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.chapter p { margin-top: 4px; font-size: 17px; }
#founder .sign { margin-top: 24px; color: var(--muted); }

@media (max-width: 900px) {
  .chat, .story { grid-template-columns: 1fr; }
}
