/* Shared look of the Go Frans! site, in the app's own colours (GoFrans/App.xaml) and its own
   fonts, served from here so a visit asks nothing of any other site. */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("fonts/Fredoka-Bold.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("fonts/Nunito-Regular.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("fonts/Nunito-Bold.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("fonts/Nunito-ExtraBold.ttf") format("truetype"); }
:root {
  --surface: #FFF4E4; --sheet: #FFFFFF; --action: #FFA92E; --action-depth: #DB8300;
  --ink: #3B2E20; --ink-muted: #6E5D49; --ink-faint: #8A7659; --ink-hint: #BBA98F;
  --calm: #EBDCC4; --good-fill: #DCF2E4; --good-stroke: #B7E2C6; --good-ink: #14663F;
  --bad-fill: #FBE3E0; --bad-stroke: #F0BDB5; --bad-ink: #A23A2A;
  --tip-fill: #FFE3B3; --tip-ink: #7A4B00; --score: #C25E00;
  --display: "Fredoka", system-ui, sans-serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 18px/1.6 var(--text); }
a { color: var(--score); font-weight: 700; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 4vw, 2rem); margin: 0 0 12px; }
h3 { font-size: 1.25rem; margin: 0 0 6px; }
p, li { margin: 8px 0; }
ul, ol { padding-left: 1.3rem; }
strong { font-weight: 800; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--action-depth); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Top bar: the brand, and the pages of the site. On a phone the links scroll sideways. */
.topbar { position: sticky; top: 0; z-index: 10; font: 18px/1.6 var(--text); background: rgba(255, 244, 228, .94);
          backdrop-filter: blur(8px); border-bottom: 1px solid var(--calm); }
.topbar-inner { max-width: 68rem; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--action);
              box-shadow: 0 3px 0 var(--action-depth); display: grid; place-items: center;
              font: 700 18px/1 var(--display); color: var(--ink); }
.brand-name { font: 700 22px/1 var(--display); }
.topbar nav { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-muted); text-decoration: none;
                font-size: .95rem; font-weight: 800; white-space: nowrap; }
.topbar nav a:hover { background: var(--sheet); color: var(--ink); }
.topbar nav a[aria-current="page"] { background: var(--ink); color: var(--surface); }
@media (max-width: 560px) {
  html { scroll-padding-top: 128px; }
  .topbar-inner { flex-wrap: wrap; gap: 10px; padding: 12px 16px 10px; }
  .topbar nav { margin-left: 0; width: 100%; }
  .topbar nav a { padding: 7px 10px; font-size: .9rem; }
  .brand-name { font-size: 20px; }
}

/* Buttons that look like the app's pill keys. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
          padding: 12px 26px; border-radius: 999px; background: var(--action); color: var(--ink);
          box-shadow: 0 4px 0 var(--action-depth); font: 700 1.1rem/1.1 var(--display); text-decoration: none; }
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--action-depth); }
.button.quiet { background: var(--sheet); box-shadow: 0 4px 0 var(--calm); }
.button.quiet:active { box-shadow: 0 2px 0 var(--calm); }
.button.small { padding: 8px 16px; font-size: .95rem; }
.button:disabled { opacity: .5; cursor: default; }
.kbd { display: inline-block; padding: 0 10px; border-radius: 999px; background: var(--surface);
       border: 1.5px solid var(--calm); font-weight: 800; font-size: .92em; white-space: nowrap; }
.kbd.go { background: var(--action); border-color: var(--action-depth); }

main { max-width: 68rem; margin: 0 auto; padding: 8px 16px 40px; }
section.panel { background: var(--sheet); border-radius: 26px; padding: 32px; margin: 22px 0; }
@media (max-width: 760px) { section.panel { padding: 24px 18px; } }
.intro { color: var(--ink-muted); max-width: 40rem; }
.tip { background: var(--tip-fill); color: var(--tip-ink); border-radius: 16px; padding: 12px 16px; margin: 18px 0 0; }

footer { max-width: 68rem; margin: 0 auto; font-family: var(--text); padding: 8px 20px 56px; text-align: center; color: var(--ink-muted); font-size: .95rem; }

/* Questions that open on a tap. */
.faq details { border-top: 1px solid var(--calm); }
.faq details:last-of-type { border-bottom: 1px solid var(--calm); }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 32px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 700 24px/1 var(--display); color: var(--action-depth); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 2px 0 32px; }
.faq details > div > p:last-child { margin-bottom: 0; }
.faq details:last-of-type { margin-bottom: 8px; }
.faq details > div > p:first-child { margin-top: 0; }

/* Drawn phone screens */
figure { margin: 0; }
figcaption { text-align: center; color: var(--ink-faint); font-size: .9rem; margin-top: 10px; }
.phone {
  position: relative; width: 100%; max-width: 230px; margin: 0 auto; aspect-ratio: 9 / 18; border-radius: 36px;
  background: var(--surface); border: 7px solid var(--ink);
  box-shadow: 0 0 0 1.5px #5C4834, 0 30px 60px -24px rgba(59, 46, 32, .55), 0 12px 24px -12px rgba(59, 46, 32, .3);
  padding: 30px 13px 16px;
  display: flex; flex-direction: column; gap: 10px; overflow: hidden; font-size: 12px; line-height: 1.3;
}
/* The camera at the top of the screen. */
.phone::before { content: ""; position: absolute; top: 9px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px;
                 border-radius: 50%; background: var(--ink); }
.phone .title { font: 700 16px/1.2 var(--display); color: var(--ink-muted); text-align: center; margin: 4px 0; }
.phone .grow { flex: 1; }
.phone .card { background: var(--sheet); border-radius: 14px; padding: 9px 11px; box-shadow: 0 2px 8px rgba(59,46,32,.06); }
.phone .card.chosen { border: 2px solid var(--ink); }
.phone .card b { font: 700 14px/1.2 var(--display); display: block; }
.phone .meta { color: var(--ink-muted); font-weight: 700; font-size: 11px; }
.phone .group { font-weight: 800; font-size: 10px; color: var(--ink-faint); letter-spacing: .06em; margin: 2px 2px -4px; }
.phone .row { display: flex; align-items: center; gap: 8px; }
.phone .tick { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--calm); flex: none; }
.phone .tick.on { background: var(--ink); border-color: var(--ink); color: var(--surface); display: grid; place-items: center; font-size: 10px; }
.phone .pill { align-self: center; background: var(--action); box-shadow: 0 3px 0 var(--action-depth);
               border-radius: 999px; padding: 8px 32px; font: 700 15px/1 var(--display); }
.phone .link { text-align: center; color: var(--ink-faint); font-weight: 800; font-size: 11px; }
.phone .bigcard { background: var(--sheet); border-radius: 18px; border: 2px solid var(--calm); min-height: 92px;
                  display: grid; place-items: center; font: 700 21px/1.2 var(--display); padding: 10px; text-align: center; }
.phone .bigcard.fr { color: var(--score); border-color: var(--good-stroke); }
.phone .top { display: flex; align-items: center; gap: 6px; }
.phone .bar { flex: 1; height: 5px; border-radius: 3px; background: var(--calm); overflow: hidden; }
.phone .bar i { display: block; height: 100%; background: var(--action); }
.phone .clock { font-weight: 800; color: var(--ink-muted); font-size: 11px; }
.phone .key { width: 30px; height: 30px; border-radius: 50%; background: var(--sheet); flex: none;
              box-shadow: 0 3px 0 var(--calm); display: grid; place-items: center; }
.phone .key svg { width: 15px; height: 15px; }
.phone .chip { align-self: center; background: var(--good-fill); color: var(--good-ink); border-radius: 999px;
               padding: 4px 12px; font-weight: 800; font-size: 11px; }
.phone .dots { text-align: center; color: var(--action); letter-spacing: 2px; font-size: 9px; }
.phone .score { font: 700 50px/1 var(--display); color: var(--score); text-align: center; }
.phone .qr { width: 120px; height: 120px; margin: 4px auto; border-radius: 10px; border: 9px solid var(--sheet);
             background: repeating-conic-gradient(var(--ink) 0 25%, var(--sheet) 0 50%) 0 0 / 24px 24px; }
.phone .camera { flex: 1; border-radius: 14px; background: #2b2219; display: grid; place-items: center; }
.phone .camera .qr { box-shadow: 0 0 0 3px var(--action); }
