/* Website of Quizetto. Colors and fonts follow the app (src/theme/tokens.ts). */
@font-face { font-family: Overpass; src: url(/fonts/overpass-800.ttf) format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: Signika; src: url(/fonts/signika-400.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Signika; src: url(/fonts/signika-600.ttf) format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --night: #14213D;
  --night-2: #1D2E55;
  --yellow: #FFCC00;
  --bg: #F7F4EC;
  --card: #FFFFFF;
  --ink: #14213D;
  --muted: #55607A;
  --line: #E4DFD2;
  --link: #1D4ED8;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0E1830; --card: #18274A; --ink: #EEF1F8; --muted: #AEB8CF; --line: #2A3A62; --link: #FFCC00; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.125rem/1.55 Signika, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.15em; }
h1, h2, h3 { font-family: Overpass, system-ui, sans-serif; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p, ul { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.top, footer, main > section, main.doc { padding-inline: max(16px, calc((100% - 1040px) / 2)); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-block: 14px; background: var(--night); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--yellow); font: 800 1.3rem/1 Overpass, system-ui, sans-serif; text-decoration: none; }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: #DCE3F2; text-decoration: none; font-size: 1rem; }
.top nav a:hover { text-decoration: underline; }

.draft { padding: 10px 16px; background: var(--yellow); color: #14213D; text-align: center; font-weight: 600; }

.hero { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; padding-block: 44px 0; background: radial-gradient(circle at 70% 30%, var(--night-2) 0%, var(--night) 60%); color: #EEF1F8; }
.hero h1 { color: var(--yellow); font-size: clamp(3.2rem, 13vw, 5.5rem); }
.tagline { margin-top: 6px; font: 600 clamp(1.25rem, 4.5vw, 1.6rem)/1.25 Signika, system-ui, sans-serif; color: #FFFFFF; }
.hero .lead { margin-top: 18px; max-width: 34em; color: #DCE3F2; }
.cta { display: inline-block; margin-top: 26px; padding: 14px 26px; border-radius: 999px; background: var(--yellow); color: #14213D; font-weight: 600; text-decoration: none; }
a.cta:hover { filter: brightness(1.08); }
.cta.soon { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }
.note { margin-top: 10px; font-size: 1rem; color: #AEB8CF; }
/* The phone peeks out of the hero: only its upper part shows. */
.hero-shot { justify-self: center; align-self: end; width: min(300px, 78%); height: 400px; overflow: hidden; }
.hero-shot img, .strip img { border-radius: 28px; border: 6px solid #0B1326; box-shadow: 0 18px 40px rgba(6, 12, 28, 0.35); }
.hero-shot img { border-bottom: 0; border-radius: 28px 28px 0 0; }

.band { padding-block: 56px; }
.band + .band { border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin-bottom: 22px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.cards article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.cards h3 { font-size: 1.25rem; margin-bottom: 6px; }
.cards p, .band li, .price p { color: var(--muted); }
.aside { margin-top: 18px; font-weight: 600; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 230px); gap: 18px; overflow-x: auto; padding: 4px 16px 18px; margin-inline: -16px; scroll-snap-type: x mandatory; }
.strip figure { margin: 0; scroll-snap-align: center; }
.strip figcaption { margin-top: 10px; font-size: 0.95rem; color: var(--muted); text-align: center; }

.two { display: grid; grid-template-columns: 1fr; gap: 40px; }
.band ul { padding-left: 1.2em; display: grid; gap: 8px; }
.band li::marker { color: var(--yellow); }

.price { text-align: center; }
.price p { max-width: 40em; margin-inline: auto; }
.price .cta.soon { color: var(--ink); border-color: var(--ink); }
.price .note { color: var(--muted); }

main.doc { padding-block: 44px 64px; }
main.doc > * { max-width: 44rem; }
main.doc h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 14px; overflow-wrap: anywhere; }
main.doc h2 { font-size: 1.4rem; margin: 34px 0 10px; }
main.doc p { margin-bottom: 12px; }
main.doc ul { padding-left: 1.2em; margin-bottom: 12px; display: grid; gap: 4px; }
main.doc .lead, main.doc .date { color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0 !important; color: var(--muted); }

footer { padding-block: 28px 36px; background: var(--night); color: #AEB8CF; font-size: 1rem; display: grid; gap: 12px; }
footer nav, .langs { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: #DCE3F2; }
.langs span { color: var(--yellow); font-weight: 600; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding-block: 64px 0; }
  .hero-shot { width: 300px; height: 440px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .two { grid-template-columns: 1fr 1fr; }
  .strip { grid-auto-columns: 1fr; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
