/* Homework companion — landing page v2 (tokens from Design.md) */
:root {
  --bg: #dfdedb; --surface: #d3d2ce; --paper: #fcfcf8; --panel: #eeeee7;
  --ink: #26251e; --muted: #5a5850; --line: #26251e1a;
  --accent: #2456d6; --accent-dark: #244ba9; --tint: #e8edfa;
  --green: #37644f; --green-tint: #e2efe7; --amber: #b27528; --amber-tint: #f6ead8;
  --display: "Gabarito", system-ui, sans-serif;
  --text: "Figtree", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --r: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; max-width: 18ch; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
h1, h2 { text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.label { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 46ch; }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; margin-top: 40px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 16px var(--text); text-decoration: none; border: 1px solid transparent; transition: transform .15s, background-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; border-color: #26251e33; }
.btn--ghost:hover { background: #26251e0d; }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 18px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 500 19px var(--display); text-decoration: none; white-space: nowrap; }
.logo__mark { width: 26px; height: 26px; color: var(--accent); }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--muted); }
.nav__links a:hover { background: #26251e0d; color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang { font: 500 13px var(--mono); letter-spacing: .06em; min-width: 44px; height: 40px; border-radius: 999px; border: 1px solid #26251e33; background: transparent; color: var(--ink); cursor: pointer; }
.lang:hover { background: #26251e0d; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__art { position: relative; background: radial-gradient(at 20% 15%, #f0e8d9, transparent 60%), radial-gradient(at 85% 85%, #b1c3e8, transparent 65%), var(--surface); border-radius: 32px; padding: 48px 32px 96px; }
.tutor { background: var(--paper); border-radius: 24px; padding: 32px 28px 26px; text-align: center; box-shadow: 0 24px 50px -30px #26251e80; }
.tutor__face { position: relative; width: 120px; height: 120px; margin: 0 auto 14px; animation: bob 3.2s ease-in-out infinite; }
.tutor__face svg { width: 100%; height: 100%; }
.tutor__online { position: absolute; right: 6px; bottom: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid var(--paper); }
.mouth { transform-origin: 60px 72px; animation: talk .32s ease-in-out infinite alternate; }
.eyes { transform-origin: 60px 58px; animation: blink 4.5s infinite; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font: 500 12px var(--mono); background: var(--panel); color: var(--muted); }
.pill--green { background: var(--green-tint); color: var(--green); }
.pill--green i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.bubble { margin-top: 18px; background: var(--panel); border-radius: 16px; padding: 18px 20px; text-align: left; }
.bubble p { font-size: 17px; font-style: italic; border-left: 2px solid var(--accent); padding-left: 12px; }
.wave { display: flex; align-items: center; gap: 4px; margin-top: 14px; font: 12px var(--mono); color: var(--muted); }
.wave i { width: 4px; height: 14px; border-radius: 4px; background: var(--accent); animation: wave .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; } .wave i:nth-child(5) { animation-delay: .6s; }
.wave span { margin-left: 8px; }
.note { position: absolute; right: -18px; bottom: 28px; background: var(--paper); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; box-shadow: 0 20px 40px -24px #26251e80; min-width: 220px; }
.note .label { margin: 0; color: var(--green); }
.note b { font-weight: 600; }
.note span:last-child { font-size: 14px; color: var(--muted); }
@keyframes talk { from { transform: scaleY(.35); } to { transform: scaleY(1.15); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-1.5deg); } }
@keyframes wave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1.2); } }

/* Sections */
.section { padding: 104px 0; }
.section--paper { background: var(--paper); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--paper); border-radius: var(--r); padding: 28px 24px 30px; display: grid; gap: 12px; align-content: start; position: relative; }
.step__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; }
.step__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step__num { position: absolute; top: 28px; right: 24px; font: 13px var(--mono); color: #8a8b80; }
.step p { color: var(--muted); font-size: 16px; }

.parents { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.parents .lead { margin-top: 20px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2337644f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.timeline { background: var(--bg); border-radius: 24px; padding: 28px; }
.timeline__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.timeline__head .label { margin: 0; }
.tl { display: grid; grid-template-columns: 52px 14px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.tl time { font: 13px var(--mono); color: var(--muted); padding-top: 2px; }
.tl b { display: block; font-weight: 600; }
.tl span:not(.dot) { font-size: 15px; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }
.dot--blue { background: var(--accent); } .dot--green { background: var(--green); } .dot--amber { background: var(--amber); }

.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.screens figure { margin: 0; background: var(--paper); border-radius: 24px; padding: 14px 14px 0; overflow: hidden; }
.screens img { border-radius: 14px 14px 0 0; height: 520px; width: 100%; object-fit: cover; object-position: top; }
.screens figcaption { padding: 14px 6px 16px; font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.faq__list { display: grid; gap: 0; }
details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font: 500 19px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px/1 var(--text); color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; color: var(--muted); max-width: 60ch; }

.closing { background: var(--ink); color: var(--bg); padding: 96px 0; text-align: center; }
.closing h2 { margin: 0 auto; max-width: none; font-size: clamp(40px, 6vw, 72px); }
.closing p { margin: 16px auto 32px; color: #b9b8b2; font-size: 19px; }
.footer { background: var(--ink); color: #9e9d99; border-top: 1px solid #ffffff1a; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 22px 0; }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid, .parents, .faq { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .note { right: 16px; }
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 64px; }
  .hero__art { padding: 28px 16px 92px; border-radius: 24px; }
  .tutor { padding: 24px 18px 20px; }
  .note { left: 16px; right: 16px; bottom: 18px; min-width: 0; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .screens { grid-template-columns: 1fr; }
  .screens img { height: 440px; }
  .logo span { font-size: 17px; }
  .nav__actions .btn--small { display: none; }
  .nav__bar { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mouth, .eyes, .tutor__face, .wave i { animation: none; }
  .btn:hover { transform: none; }
}
