/*
  Percebi landing page — styles.
  Read with index.html beside it. Each block below says which part of the
  page it styles, in the same order the parts appear on the page.

  HAND-MADE REDESIGN (DRAFT, 2026-11-20, ticket 17, Asana 1220710830218710).
  Before this, the colours and sizes came from the approved design of
  2026-10-11 (design/percebi-landing/landing-design.dc.html in the app
  folder). The redesign keeps its layout and sizes and changes the look:
    - colours taken from Pi himself: his teal and yellow books and navy
      glasses, on the same cream paper;
    - hand-drawn touches: slightly turned cards (.pinned), slightly
      turned stickers (.sticker), a squiggle under the headline
      (.scribble), small stars (.doodle) and the hand-drawn check mark;
    - a dark version, used when the phone or computer is set to dark.
  All colours are named once at the top, and each name has a light and a
  dark value. A rule further down never uses a colour of its own.

  The page is written phone-first: the plain rules are for a phone, and the
  "@media (min-width: ...)" blocks change things for wider screens.
*/

/* ===== Fonts =====
   Fredoka and Nunito are files in the fonts/ folder, declared once in
   fonts/fonts.css, which index.html loads just before this file.
   privacy.html loads the same file. Nothing comes from Google. */

/* ===== Colours and shared values =====
   Every colour on the page is one of these. Change it here and it changes
   everywhere. The second block is the dark version. */
:root {
  --paper: #F8F4EA;        /* page background: warm cream paper */
  --card: #FFFFFF;         /* cards, FAQ answers, the sign-up card */
  --ink: #0B2A5B;          /* main text (Pi's navy glasses) */
  --ink-soft: #2E4268;     /* body paragraphs */
  --muted: #5E6A80;        /* small labels */
  --line: #E7DECB;         /* borders and card shadows */
  --teal: #0F7068;         /* main buttons, links, tutor-mode header (Pi's teal book) */
  --teal-dark: #0A5650;    /* button and link hover */
  --on-teal: #FFFFFF;      /* text on teal */
  --sun: #FFD54A;          /* the poster section, highlights, stickers (Pi's yellow book) */
  --sun-deep: #F5C127;     /* yellow button hover */
  --on-sun: #0B2A5B;       /* text on yellow */
  --coral: #E2653F;        /* the squiggle, stars, the FAQ plus sign */
  --green: #1E8F5A;        /* check marks, step 1, the 8/10 mark */
  --plum: #6B47C2;         /* test-mode header, step 3 */
  --amber: #B97F00;        /* one feature check mark */
  --band: #DDEFE8;         /* the parents band (pale mint) */
  --blob: #FFE7A6;         /* the shape behind Pi */
  --panel: #0B2A5B;        /* dark boxes: the top strip, the test result */
  --on-panel: #FFFFFF;
  --toggle-bg: #ECE3D0;    /* behind the PT/EN switch */
  --chat-bg: #F4F1E8;      /* the student's answer, small tiles */
  --bar-bg: #EEEAE0;       /* empty part of progress bars */
  --topbar-bg: rgba(248, 244, 234, 0.94);
  --shadow: rgba(11, 42, 91, 0.14);

  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;

  --gutter: 16px;          /* space at the left and right edge on a phone */
  --page-width: 1180px;    /* widest the content gets on a big screen */

  color-scheme: light;
}
/* Dark version: deep navy paper, cream text, the same teal and yellow made
   a little lighter so they still stand out. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1A2C;
    --card: #182840;
    --ink: #F4EEDF;
    --ink-soft: #D3D9E4;
    --muted: #A3AEC2;
    --line: #2A3B57;
    --teal: #4CC2B0;
    --teal-dark: #7AD8C9;
    --on-teal: #0B1626;
    --sun: #F4C84A;
    --sun-deep: #FFD866;
    --on-sun: #0B2A5B;
    --coral: #F08A66;
    --green: #5CCB8F;
    --plum: #A98BF0;
    --amber: #F2B53A;
    --band: #142E36;
    --blob: #2A3B57;
    --panel: #22385C;
    --on-panel: #FFFFFF;
    --toggle-bg: #22324D;
    --chat-bg: #1F3050;
    --bar-bg: #2A3B57;
    --topbar-bg: rgba(15, 26, 44, 0.94);
    --shadow: rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

/* ===== Language switch =====
   Every piece of text is written twice, once in Portuguese (class
   "lang-pt") and once in English (class "lang-en"). These two rules hide
   whichever one is not selected. The script in index.html sets
   data-lang="en" on the page to switch to English. */
html:not([data-lang="en"]) .lang-en { display: none !important; }
html[data-lang="en"] .lang-pt { display: none !important; }

/* ===== Basics ===== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
p { margin: 0; }

/* A visible outline when moving through the page with the keyboard. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* The hand-drawn shapes drawn once at the top of index.html. */
.ico { flex: none; color: currentColor; }
.doodle { position: absolute; z-index: 1; color: var(--coral); pointer-events: none; }

/* Jumping to a section from the menu stops below the sticky top bar.
   Between 600px and 1099px wide the bar has two rows, so it is taller. */
section[id] { scroll-margin-top: 84px; }
@media (min-width: 600px) and (max-width: 1099px) {
  section[id] { scroll-margin-top: 130px; }
}

/* Shared width: content is centred and never wider than --page-width. */
.wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Section titles share one size. */
.section-title {
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}

/* ===== Hand-made touches, shared =====
   .pinned: a card that looks put up by hand (each one is turned a little
   further down). Paper tape on these cards was removed 2026-11-20 at
   Dejan's word.
   .sticker: a small yellow label, turned a little, like a sticker. */
.pinned {
  position: relative;
  background: var(--card);
  border-radius: 6px;
  box-shadow: 0 1px 0 var(--line), 0 10px 22px -12px var(--shadow);
}
.sticker {
  display: inline-block;
  background: var(--sun);
  color: var(--on-sun);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 10px 14px 9px 13px;
  box-shadow: 2px 3px 0 var(--ink);
  transform: rotate(-4deg);
}

/* ===== Buttons and button-like links ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
}
/* .btn-blue keeps its name from the old design; it is teal now. */
.btn-blue { background: var(--teal); color: var(--on-teal); box-shadow: 0 3px 0 var(--teal-dark); }
.btn-blue:hover { background: var(--teal-dark); color: var(--on-teal); }
.btn-outline { background: var(--card); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn-outline:hover { color: var(--ink); background: var(--blob); }
.btn-yellow { background: var(--sun); color: var(--on-sun); box-shadow: 0 3px 0 var(--ink); }
.btn-yellow:hover { background: var(--sun-deep); color: var(--on-sun); }
.btn-big { min-height: 52px; padding: 14px 26px; font-size: 18px; }

/* ===== Waiting list strip =====
   The strip above the top bar saying the waiting list is open. It was a
   countdown to the end of beta sign-ups until 2026-11-02, and said the
   beta sign-ups were closed until 2026-11-20. */
.closed-strip { background: var(--panel); color: var(--on-panel); }
.closed-strip-inner { padding-top: 12px; padding-bottom: 12px; text-align: center; }
.closed-strip-title { font-weight: 800; font-size: 16px; line-height: 1.3; }

/* ===== Top bar =====
   Stays at the top while the page scrolls. On a phone it holds the logo,
   the PT/EN switch and the "Lista de espera" button; the five menu links
   appear from 600px wide, on their own row until there is room for one
   (1100px, since "Disciplinas" was added on 2026-11-20). */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--topbar-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--line);
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.topnav { display: none; }
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-toggle {
  display: flex;
  background: var(--toggle-bg);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle button {
  min-height: 44px;
  min-width: 40px;
  padding: 0 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 800 14px var(--font-body);
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.topbar-cta { padding: 0 14px; font-size: 15px; box-shadow: none; }

/* Narrow phones (360px is common): everything a little tighter so the
   logo, the switch and the button still fit on one row. */
@media (max-width: 389px) {
  .topbar-inner { column-gap: 10px; }
  .brand { gap: 6px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 20px; }
  .topbar-cta { padding: 0 10px; font-size: 14px; }
}
/* The narrowest phones (under 350px): the word "Percebi" is hidden next
   to the logo, so the row still fits. Screen readers still read it. */
@media (max-width: 349px) {
  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 600px) {
  .topbar-inner { padding-top: 12px; padding-bottom: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 26px; }
  /* Menu links: a second row, under the logo. */
  .topnav {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    order: 3;
    flex-basis: 100%;
    font-weight: 700;
    font-size: 15px;
  }
  .topnav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
  }
  .topnav a:hover { color: var(--teal); }
  .topbar-actions { gap: 10px; }
  .lang-toggle { padding: 4px; }
  .lang-toggle button { min-width: 44px; padding: 0 14px; }
  .topbar-cta { padding: 0 18px; }
}
@media (min-width: 1100px) {
  /* Wide screen: menu links on the same row, right after the logo. */
  .topnav { order: 0; flex-basis: auto; margin-left: 12px; }
}

/* ===== Hero: Pi says hello =====
   Text first, then Pi. Side by side once the screen is wide enough. */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 48px;
}
.hero-text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hello-bubble {
  align-self: flex-start;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px 20px 18px 4px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  transform: rotate(-2deg);
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.08;
  letter-spacing: -1px;
}
/* The hand-drawn coral squiggle under the second half of the headline.
   An SVG drawn in the stylesheet itself (nothing is downloaded). Its colour
   is fixed, because a colour name cannot reach inside it; this coral reads
   on both the light and the dark page. */
.scribble {
  padding-bottom: 0.14em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11c40-7 70-7 98-3s58 5 92-2 66-5 104 1' fill='none' stroke='%23E8714A' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  max-width: 560px;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
}
.ticks > span { display: flex; align-items: center; gap: 6px; }
.tick-ico { color: var(--green); }
.hero-art {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.hero-art-inner {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 10px;
}
/* The wobbly shape behind Pi. */
.hero-blob {
  position: absolute;
  inset: 6% 0 0 0;
  width: 100%;
  height: 94%;
}
.hero-art img { position: relative; display: block; width: 100%; height: auto; }
.star-a { top: 4%; right: 2%; width: 34px; height: 34px; }
.star-b { top: 22%; left: 0; width: 22px; height: 22px; color: var(--teal); }
/* "Do 5.º ao 12.º ano", stuck on the bottom of the picture. */
.hero-sticker {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 8%;
  padding: 8px 14px;
  font-size: 18px;
}

@media (min-width: 600px) {
  .hero { padding-top: 56px; gap: 40px; padding-bottom: 64px; }
  .hero-art-inner { max-width: 460px; }
  .hero-sticker { font-size: 22px; padding: 10px 18px; }
}

/* ===== Years and subjects: the yellow "poster" =====
   Like a tutoring flyer: one loud colour, three pinned cards (one per
   school level) with the subjects as chips with check marks. */
.poster { background: var(--sun); color: var(--on-sun); }
.poster-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.poster-head { position: relative; display: flex; flex-direction: column; gap: 10px; }
.poster .section-lead { color: var(--on-sun); }
.poster-star { top: -34px; right: 0; width: 30px; height: 30px; color: var(--on-sun); }
.levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 32px 22px;
  align-items: start;
}
.level {
  color: var(--ink);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Each card sits a little crooked, as if pinned up by hand. */
.level:nth-child(1) { transform: rotate(-1deg); }
.level:nth-child(2) { transform: rotate(0.8deg); }
.level:nth-child(3) { transform: rotate(-0.5deg); }
.level-cycle {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.level h3 { font-weight: 700; font-size: 26px; line-height: 1.15; }
.level-note { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.chips {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px 5px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px 999px 999px 999px / 900px 999px 950px 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}
.chips .ico { color: var(--green); }
.poster-ask {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
}
.poster-ask a { color: var(--on-sun); font-weight: 800; }
.poster-arrow { position: static; flex: none; color: var(--on-sun); width: 48px; height: 36px; margin-top: -6px; }

@media (min-width: 600px) {
  .poster-inner { padding-top: 64px; padding-bottom: 64px; }
  .poster-arrow { width: 64px; height: 48px; }
  .poster-head { padding-right: 56px; }
  .poster-star { top: -10px; width: 40px; height: 40px; }
}

/* ===== Section headers: Pi pose beside the section title ===== */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}
.section-head-text {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 680px;
}
/* The speech bubble under "Como funciona". */
.side-bubble {
  align-self: flex-start;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 4px 16px 18px 16px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 16px;
  transform: rotate(1.5deg);
}

/* ===== How it works: three numbered steps =====
   Each step is a sheet of lined school paper with a red margin line; the
   number sits in a hand-drawn ring. */
.how {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.pose-think { width: 120px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  box-shadow: 0 1px 0 var(--line), 0 10px 22px -14px var(--shadow);
}
.step {
  border-radius: 6px;
  padding: 28px 24px 26px 38px;
  display: flex;
  flex-direction: column;
  /* Lined paper: a faint line every 28px and the margin line on the left. */
  background-image:
    linear-gradient(90deg, transparent 22px, var(--coral) 22px, var(--coral) 24px, transparent 24px),
    repeating-linear-gradient(180deg, transparent 0 27px, var(--line) 27px 28px);
  /* Placed so the lines fall just under the text (number 56px + 12px
     below it, then 28px per line of text). */
  background-position: 0 0, 0 9px;
}
.step-number {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
}
.step-number svg { position: absolute; inset: 0; transform: rotate(-12deg); }
.step-number span { position: relative; color: var(--ink); }
.c-green { color: var(--green); }
.c-blue { color: var(--teal); }
.c-purple { color: var(--plum); }
.c-amber { color: var(--amber); }
.c-red { color: var(--coral); }
.step h3 { font-weight: 600; font-size: 22px; line-height: 28px; }
.step p { font-size: 16px; line-height: 28px; color: var(--ink-soft); }

@media (min-width: 600px) {
  .how { padding-top: 80px; }
}

/* ===== Examples: a tutor chat and a test question ===== */
.examples {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 48px;
  padding-bottom: 40px;
}
.pose-tablet { width: 140px; }
.example-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.example {
  flex: 1 1 440px;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.example-head {
  color: var(--on-panel);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.example-head.bg-blue { background: var(--teal); color: var(--on-teal); }
.example-head.bg-purple { background: var(--plum); color: var(--on-teal); }
.example-head .mode {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}
.example-head .tag {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
/* The "Exemplo ilustrativo" line at the bottom of each example. */
.example-note {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border-top: 2px dashed var(--line);
}

/* Tutor mode: the replay (demo/replay.html) in a frame shaped like a phone
   screen. On a phone it takes the card's whole width; on a big screen it is
   held to 400px and to most of the window's height, but never narrower than
   300px, because the app inside needs that much to show its messages without
   breaking every line (seen on Dejan's phone 2026-10-15, at 190px). */
.demo {
  flex: 1;
  background: var(--chat-bg);
  padding: 14px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.demo-frame {
  display: block;
  border: 0;
  width: min(100%, 400px, max(300px, calc(min(78vh, 640px) * 9 / 16)));
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  background: #FFFFFF; /* the replay inside is always light */
  box-shadow: 0 10px 28px var(--shadow);
}

/* Test question and final result. */
.prova {
  flex: 1;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prova-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
}
.prova-question { font-size: 18px; font-weight: 700; line-height: 1.45; }
.prova-answer {
  background: var(--chat-bg);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.5;
}
.small-label { font-size: 13px; font-weight: 800; color: var(--muted); }
.prova-answer .small-label { margin-bottom: 4px; }
.prova-mark {
  border: 2px solid var(--green);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.prova-mark .points {
  background: var(--green);
  color: var(--card);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  border-radius: 10px;
  padding: 4px 10px;
  flex: none;
}
.prova-mark .comment { font-size: 15px; line-height: 1.5; }
.prova-result {
  margin-top: auto;
  background: var(--panel);
  color: var(--on-panel);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prova-result-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
}
.prova-result-label { font-weight: 800; font-size: 14px; letter-spacing: 0.5px; }
.prova-score { font-family: var(--font-display); font-weight: 700; font-size: 30px; }
/* "— Satisfaz Bem" never splits over two lines; on a phone it moves under
   the score as a whole. */
.prova-score .mencao { color: var(--sun); white-space: nowrap; }
.bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}
.bar > span { display: block; height: 100%; border-radius: 999px; }
.prova-result .bar { background: rgba(255, 255, 255, 0.2); }
.prova-result .bar > span { background: var(--sun); }

@media (min-width: 600px) {
  .examples { padding-top: 60px; }
  .demo { padding: 20px; }
  .prova { padding: 22px; }
}

/* ===== For parents: mint band with a sample parent page =====
   The band starts with a hand-drawn wavy edge (the svg.wave). */
.parents { margin-top: 40px; }
.wave { display: block; width: 100%; height: 28px; margin-bottom: -1px; }
.parents-inner {
  background: var(--band);
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 64px;
  /* The band is full width; its content keeps the page width. */
  padding-left: max(var(--gutter), calc((100% - var(--page-width)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100% - var(--page-width)) / 2 + var(--gutter)));
}
.parents-text {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pose-thumbs { width: 140px; }
.parent-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.parent-points li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  font-size: 17px;
}
.tick-circle {
  width: 34px;
  height: 34px;
  border-radius: 50% 46% 52% 48%;
  background: var(--teal);
  color: var(--on-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
/* The sample parent page (a picture of the idea, not the real page). */
.mock {
  flex: 1 1 420px;
  min-width: 0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: rotate(1deg);
}
.mock-head { display: flex; align-items: center; gap: 12px; }
.mock-head img { width: 40px; height: 40px; border-radius: 10px; }
.mock-head .title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.mock-head .kid { display: block; font-size: 14px; color: var(--muted); font-weight: 700; }
.mock-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mock-tile { background: var(--chat-bg); border-radius: 14px; padding: 14px; }
.mock-tile .value { font-family: var(--font-display); font-weight: 700; font-size: 28px; font-variant-numeric: tabular-nums; }
.mastery-row { display: flex; flex-direction: column; gap: 6px; }
.mastery-row .row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
}
.mock .bar { background: var(--bar-bg); }
.mock .bar > span { background: var(--teal); }
.mock-note { font-size: 13px; font-weight: 700; color: var(--muted); }

@media (min-width: 600px) {
  .parents-inner { padding-top: 64px; padding-bottom: 80px; }
  .mock { padding: 24px; }
}

/* ===== Why it's different: the features =====
   Each one with a hand-drawn check mark in a coloured circle. */
.features {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.pose-desk { width: 150px; }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
/* Seven features: the first ("O meu material") is twice as wide, so the
   rows come out full: 2 columns from 600px, 4 from 1100px. */
@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid > :first-child { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.feature {
  border-radius: 14px;
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.check-badge {
  width: 34px;
  height: 34px;
  border-radius: 48% 52% 46% 54%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.feature-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature h3 { font-weight: 600; font-size: 20px; }
/* The yellow "Novo" / "New" label on the O meu material card (2026-11-02),
   now a small turned sticker. */
.new-tag {
  display: inline-block;
  vertical-align: 2px;
  margin-right: 4px;
  padding: 2px 8px;
  border-radius: 8px 10px 7px 9px;
  background: var(--sun);
  color: var(--on-sun);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.4;
  transform: rotate(-5deg);
}
.feature p { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

@media (min-width: 600px) {
  .features { padding-top: 80px; }
}

/* ===== Questions (FAQ) =====
   Each question opens and closes on its own; no script needed. */
.faq {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 48px;
  padding-bottom: 40px;
}
.faq .section-title { margin-bottom: 8px; }
.faq details {
  background: var(--card);
  border-radius: 12px;
  padding: 8px 18px;
  border: 2px solid var(--line);
}
.faq details[open] { border-color: var(--ink); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 6px 0;
  font-weight: 800;
  font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--coral);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .faq-plus { transition: transform 0.2s; }
}
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq details p {
  margin: 6px 0 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.faq-privacy { font-weight: 800; font-size: 16px; margin-top: 4px; }

@media (min-width: 600px) {
  .faq { padding-top: 60px; }
  .faq details { padding: 10px 22px; }
}

/* ===== Sign up: the teal panel at the bottom ===== */
.signup { padding-top: 48px; padding-bottom: 64px; }
.signup-panel {
  position: relative;
  background: var(--teal);
  color: var(--on-teal);
  border-radius: 28px 34px 26px 32px;
  padding: 36px 20px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
}
.signup-star-a { top: 18px; right: 22px; width: 30px; height: 30px; color: var(--sun); }
.signup-star-b { top: 56px; right: 62px; width: 18px; height: 18px; color: var(--sun); }
.signup-text {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.signup-sub { font-size: 18px; line-height: 1.55; }
.signup-pi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.signup-pi img {
  width: 200px;
  max-width: 60%;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}
.signup-bubble {
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 16px 18px 16px 16px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
}
.signup-bubble a { color: var(--teal); }
/* The white card that holds the sign-up button, a link to the app's sign-up
   page. */
.signup-card {
  flex: 1 1 380px;
  min-width: 0;
  color: var(--ink);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: rotate(-1deg);
}
/* The beta note above the button: the only place the page mentions the
   beta (2026-11-20). */
.beta-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.beta-note-title { font-weight: 800; font-size: 16px; color: var(--ink); }
.signup-card .btn {
  width: 100%;
  min-height: 54px;
  padding: 16px;
  font-size: 18px;
}
.consent { font-size: 14px; line-height: 1.5; font-weight: 600; }

@media (min-width: 600px) {
  .signup { padding-top: 60px; padding-bottom: 80px; }
  .signup-panel { padding: 44px 28px 40px; gap: 40px; }
  .signup-card { padding: 26px; }
}

/* ===== Footer ===== */
.footer { border-top: 2px dashed var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-made { margin-left: auto; }

/* Wider gutters from tablet size up, as in the design. */
@media (min-width: 600px) {
  :root { --gutter: 20px; }
}

/* Anyone who asked their device for less motion gets the cards straight. */
@media (prefers-reduced-motion: reduce) {
  .level, .mock, .signup-card, .hello-bubble, .side-bubble, .sticker, .new-tag { transform: none; }
}
