/* Quem Tem Mais: home and /desafio. Colors from the app (lib/ui/theme/app_colors.dart). */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/fonts/DMSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("/fonts/DMSans-Medium.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("/fonts/DMSans-Bold.ttf") format("truetype"); }
:root { --bg: #12172B; --surface: #1D2440; --text: #F4F1E8; --muted: #A9B0C8; --soft: #C9CEDD; --border: #3A4366; --accent: #FFC93C; --blue: #8FB8FF; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; overflow-x: hidden; }
a { color: var(--accent); text-underline-offset: 2px; }
.d, h1, .lead { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; font-weight: 800; }
.eb { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); }
.eb.blue { color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.glow { position: absolute; left: 0; right: 0; top: 0; height: 560px; pointer-events: none; background: radial-gradient(80% 60% at 50% 0%, rgba(255,201,60,.20), rgba(255,201,60,0) 70%); }
.page { position: relative; max-width: 1120px; margin: 0 auto; padding: 16px 16px 28px; }
.page.narrow { max-width: 560px; }
.bar { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.bar.center { justify-content: center; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 17px; }
.brand img { border-radius: 10px; }
.bar nav { margin-left: auto; display: none; gap: 22px; font-size: 15px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--text); }
.page:not(.narrow) .bar .brand { visibility: hidden; }

/* Header: the three app screens fanned like cards, fading out to ~10% at 75%
   of their height, and the logo in front of them from 55% down. */
/* The header fills the first screen: the logo sits in its middle, the fan of
   screens starts right at the top and runs down behind the logo. */
.page:not(.narrow) .bar { display: none; }
.hero { position: relative; height: calc(100svh - 16px); min-height: 600px; max-height: 920px; margin: -16px -16px 0; }
.fan { position: absolute; left: 0; right: 0; top: 0; height: 74%; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.1) 75%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.1) 75%, rgba(0,0,0,0) 100%); }
.fan img { position: absolute; left: 50%; height: auto; box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.fan .c1, .fan .c3 { top: 44px; width: 164px; margin-left: -82px; border-radius: 15px; transform-origin: 50% 100%; }
.fan .c1 { transform: translateX(-104px) rotate(-12deg); }
.fan .c3 { transform: translateX(104px) rotate(12deg); }
.fan .c2 { top: 16px; width: 196px; margin-left: -98px; border-radius: 17px; z-index: 1; }
.hero-logo { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-38%); z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.scroll-hint svg { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint svg { animation: none; } }
.app-icon { width: 96px; height: 96px; border-radius: 23px; box-shadow: 0 0 0 6px var(--bg), 0 28px 60px rgba(0,0,0,.6), 0 0 90px rgba(255,201,60,.25); }
.hero h1 { margin: 27px 0 0; line-height: 0; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.wordmark { width: 120px; height: auto; }
.lead { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; font-weight: 800; }
.eb { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); }
.eb.blue { color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.glow { position: absolute; left: 0; right: 0; top: 0; height: 560px; pointer-events: none; background: radial-gradient(80% 60% at 50% 0%, rgba(255,201,60,.20), rgba(255,201,60,0) 70%); }
.page { position: relative; max-width: 1120px; margin: 0 auto; padding: 16px 16px 28px; }
.page.narrow { max-width: 560px; }
.bar { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.bar.center { justify-content: center; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 17px; }
.brand img { border-radius: 10px; }
.bar nav { margin-left: auto; display: none; gap: 22px; font-size: 15px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--text); }
.page:not(.narrow) .bar .brand { visibility: hidden; }

.lead { margin: 21px 0 0; font-size: 26px; line-height: 1.06; letter-spacing: -.5px; max-width: 320px; }
.sub { margin: 0; font-size: 16px; color: var(--muted); max-width: 340px; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.badges a { display: block; line-height: 0; }
.badges img { height: 48px; width: auto; }
/* The Google badge image has transparent space above and below: a bit taller so both badges look the same height. */
.badges img.gp { height: 62px; margin: -7px 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--soft); }
.chips li { padding: 5px 12px; border-radius: 14px; background: var(--surface); }

/* How to play: four steps, each with a drawing of the app inside a phone.
   The drawings are decorative markup with inline styles (see index.html). */
.play { margin-top: 8px; display: flex; flex-direction: column; gap: 56px; }
.play-head { text-align: center; margin-bottom: -12px; }
.play-bar { display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--accent); margin: 0 auto 18px; }
.play-head h2 { margin: 0; font-size: 34px; line-height: 1.05; letter-spacing: -.6px; }
.play-head p { margin: 8px auto 0; font-size: 15px; color: var(--muted); max-width: 300px; }
.pstep { position: relative; text-align: center; }
.pstep::before { content: ""; position: absolute; left: -16px; right: -16px; top: 40px; height: 420px; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(var(--g), .16), rgba(var(--g), 0)); }
.pstep-text { position: relative; }
.pstep-n { display: block; font-size: 64px; line-height: .9; letter-spacing: -2px; color: var(--c); }
.pstep h2 { margin: 8px 0 0; font-size: 26px; line-height: 1.08; letter-spacing: -.4px; }
.pstep p { margin: 8px auto 0; font-size: 15px; line-height: 1.45; color: var(--soft); max-width: 310px; }
.phone-wrap { position: relative; margin-top: 20px; }
.phone { position: relative; width: 326px; margin: 0 auto; text-align: left; transform: translateX(-6px) rotate(-2deg); }
.pstep:nth-of-type(odd) .phone { transform: translateX(6px) rotate(2deg); }
.phone i { display: block; position: absolute; }
.phone .b1, .phone .b2, .phone .b3 { width: 4px; border-radius: 2px; background: #2C3558; }
.phone .b1 { left: -5px; top: 96px; height: 30px; }
.phone .b2 { left: -5px; top: 136px; height: 52px; }
.phone .b3 { right: -5px; top: 120px; height: 70px; }
.phone-body { position: relative; padding: 14px 10px 16px; border-radius: 46px; background: var(--bg); box-shadow: 0 0 0 2px #4A5480, 0 0 0 7px #232B4A, 0 0 0 8px #3A4366, 0 30px 60px rgba(0,0,0,.55), 0 0 80px rgba(var(--g), .18); }
.phone .island { left: 50%; top: 12px; width: 84px; height: 22px; margin-left: -42px; border-radius: 11px; background: #05070F; }
.phone .homebar { position: static; width: 110px; height: 4px; border-radius: 2px; background: var(--border); margin: 12px auto 0; }
.ph-status { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 10px; font-size: 12px; font-weight: 700; }
.ph-status span:last-child { display: flex; gap: 5px; align-items: center; }
@media (max-width: 379px) { .phone-wrap { zoom: .86; } }

.how { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.how h2 { font-family: "DM Sans", sans-serif; }
.intro { margin: -4px 0 0; font-size: 15px; color: var(--soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { padding: 16px 18px; border-radius: 18px; background: var(--surface); display: flex; gap: 14px; align-items: flex-start; }
.steps .num { flex: none; width: 34px; height: 34px; border-radius: 17px; background: var(--c); color: #12172B; display: flex; align-items: center; justify-content: center; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 17px; }
.steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.steps b { font-size: 16px; }
.steps li > span:last-child > span { font-size: 14px; color: var(--muted); }

.cta { margin-top: 28px; padding: 22px 18px; border-radius: 24px; background: var(--surface); border: 1.5px solid rgba(255,201,60,.5); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cta p { margin: 0; font-size: 22px; line-height: 1.15; }
/* Home: plain on phones, a card on wide screens. */
.cta.end { margin-top: 44px; padding: 0; background: none; border: 0; }
.cta.end p { font-size: 26px; line-height: 1.1; }

.daily { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 18px; }
.daily h1 { margin: 0; font-size: 34px; line-height: 1.05; }
.board { width: 250px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 8px 0 4px; }
.board span { aspect-ratio: 1; border-radius: 10px; }
.note { margin: 0; font-size: 13px; color: var(--muted); }
.note.light { color: var(--soft); }

.foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.foot p { margin: 0 0 8px; }

@media (min-width: 900px) {
  .page:not(.narrow) { padding: 28px 80px 40px; }
  .page.narrow .bar .brand { visibility: visible; }
  .bar nav { display: flex; }
  .page:not(.narrow) .bar { display: flex; }
  .hero { height: calc(100svh - 70px); min-height: 760px; max-height: 1000px; margin: 0 -80px; }
  .fan { height: 76%; }
  .fan .c1, .fan .c3 { top: 56px; width: 270px; margin-left: -135px; border-radius: 24px; }
  .fan .c1 { transform: translateX(-215px) rotate(-14deg); }
  .fan .c3 { transform: translateX(215px) rotate(14deg); }
  .fan .c2 { top: 16px; width: 310px; margin-left: -155px; border-radius: 28px; }
  .hero-logo { transform: translateY(-30%); }
  .app-icon { width: 150px; height: 150px; border-radius: 36px; box-shadow: 0 0 0 9px var(--bg), 0 28px 60px rgba(0,0,0,.6), 0 0 90px rgba(255,201,60,.25); }
  .hero h1 { margin-top: 42px; }
  .wordmark { width: 150px; }
  .lead { margin-top: 33px; font-size: 60px; line-height: 1.04; letter-spacing: -1px; max-width: 800px; }
  .play { margin-top: 0; gap: 96px; }
  .play-head { margin-bottom: -16px; }
  .play-head h2 { font-size: 48px; }
  .play-head p { font-size: 18px; max-width: none; }
  .pstep { display: flex; align-items: center; gap: 56px; max-width: 900px; margin: 0 auto; text-align: left; width: 100%; }
  .pstep::before { display: none; }
  .pstep-text { flex: 1; }
  .pstep:nth-of-type(odd) .pstep-text { order: 2; }
  .pstep-n { font-size: 112px; line-height: .85; letter-spacing: -4px; }
  .pstep h2 { margin-top: 18px; font-size: 44px; line-height: 1.04; letter-spacing: -.8px; max-width: 420px; }
  .pstep p { margin: 14px 0 0; font-size: 19px; line-height: 1.5; max-width: 400px; }
  .phone-wrap { flex: none; width: 400px; margin: 0; }
  .phone-wrap::before { content: ""; position: absolute; inset: -20px -40px; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(var(--g), .20), rgba(var(--g), 0)); }
  .phone { transform: rotate(2deg); }
  .pstep:nth-of-type(odd) .phone { transform: rotate(-2deg); }
  .cta.end { margin-top: 110px; padding: 44px 32px; border-radius: 28px; background: var(--surface); border: 1.5px solid rgba(255,201,60,.5); }
  .cta.end p { font-size: 40px; margin-bottom: 6px; }
  .chips { font-size: 14px; }
  .how { margin-top: 64px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cta { margin-top: 40px; padding: 32px; }
  .page.narrow .daily h1 { font-size: 40px; }
}
