/* Colours and fonts from the app: cream background, Posso yellow buttons with dark outlines */
:root {
  --bg: #FDF5E1;
  --card: #FFFFFF;
  --ink: #1E1A14;
  --muted: #6B6252;
  --line: #EADFC4;
  --yellow: #EFB440;
  --yellow-soft: #FBE7B5;
  --green: #2FAE5B;
  --green-soft: #DDF1E4;
  --orange: #F08A24;
  --display: "Poppins", "Avenir Next", system-ui, sans-serif;
  --body: "Fredoka", "Avenir Next", system-ui, sans-serif;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: .8rem; }
h3 { font-size: 1.15rem; margin-bottom: .3rem; }
p { margin: 0 0 .8rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.eyebrow { display: inline-block; font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }

/* Buttons look like the app's big yellow buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.4rem; border: 3px solid var(--ink); border-radius: 18px;
  background: var(--yellow); color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 4px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: .7rem; font-weight: 500; line-height: 1; opacity: .8; }
.btn span { line-height: 1.1; text-align: left; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.trial { margin-top: .9rem; font-size: .95rem; color: var(--muted); }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
header .logo img { height: 40px; width: auto; }
nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }
/* Language menu: a details element, so it works without JavaScript */
.lang { position: relative; font-size: .9rem; font-weight: 600; }
.lang summary { list-style: none; cursor: pointer; border: 2px solid var(--line); border-radius: 999px; padding: 3px 12px; display: flex; align-items: center; gap: 6px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang[open] summary { border-color: var(--ink); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--card);
  border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); min-width: 160px; max-height: 70vh; overflow-y: auto; }
.lang li a { display: block; padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.lang li a:hover { background: var(--yellow-soft); }
.lang li a[aria-current] { background: var(--ink); color: #fff; }
@media (max-width: 860px) { nav { display: none; } .lang { margin-left: auto; } }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); color: inherit; padding: 0 .05em; }
.hero .lead { margin-top: 1.1rem; }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 250px; }
.hero-phones .phone:nth-child(1) { left: 0; top: 40px; transform: rotate(-6deg); }
.hero-phones .phone:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); }
.hero-phones .sticker { position: absolute; left: 50%; bottom: -10px; width: 170px; transform: translateX(-50%); filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phones { height: 440px; max-width: 380px; margin: 0 auto; width: 100%; }
  .hero-phones .phone { width: 190px; }
  .hero-phones .sticker { width: 130px; }
}

/* Phone frame around a screenshot */
.phone { border: 6px solid var(--ink); border-radius: 38px; overflow: hidden; background: var(--ink); box-shadow: 0 20px 40px rgba(60,40,0,.18); aspect-ratio: 1320 / 2868; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }

/* Subjects strip */
.subjects { padding: 28px 0; background: var(--ink); color: #fff; }
.subjects .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; }
.subjects p { margin: 0 8px 0 0; font-weight: 600; }
.chip { border: 2px solid rgba(255,255,255,.3); border-radius: 999px; padding: .25rem .9rem; font-weight: 500; }
.chip.lang-chip { border-style: dashed; opacity: .75; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 24px 22px; position: relative; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow);
  border: 3px solid var(--ink); font-family: var(--display); font-size: 1.1rem; margin-bottom: 14px; }
.steps li.highlight { background: var(--yellow-soft); }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Pocket section */
.pocket { background: var(--yellow); }
.pocket .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pocket .lead { color: #4A3608; }
.places { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.places span { background: var(--bg); border: 3px solid var(--ink); border-radius: 999px; padding: .35rem 1rem; font-weight: 600; }
.pocket-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.pocket-art .book { position: absolute; left: 6%; bottom: 8%; width: 46%; aspect-ratio: 3/4; background: #fff; border: 4px solid var(--ink); border-radius: 10px 18px 18px 10px;
  transform: rotate(-10deg); opacity: .55; display: grid; place-items: center; font-family: var(--display); font-size: 1rem; text-align: center; padding: 10px; }
.pocket-art .book::after { content: attr(data-caption); position: absolute; bottom: -38px; left: 0; right: 0; font-family: var(--body); font-weight: 600; font-size: .95rem; }
.pocket-art .phone { width: 210px; position: relative; transform: rotate(4deg); margin-left: 30%; }
.offline { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; font-weight: 600; }
.offline svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .pocket .wrap { grid-template-columns: 1fr; } .pocket-art { min-height: 400px; } .pocket-art .phone { width: 160px; margin-left: 45%; } .pocket-art .book { left: 0; width: 44%; } }

/* Audience sections */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: 1.15fr .85fr; }
.split.reverse > :first-child { order: 2; }
.features { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.features li { background: var(--card); border-radius: 18px; padding: 16px 18px 16px 62px; position: relative; }
.features li .ico { position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; background: var(--yellow-soft); }
.features li.key { background: var(--ink); color: #fff; }
.features li.key .ico { background: var(--yellow); }
.features li.key p { color: #D8D0BE; }
.features h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.features p { margin: 0; color: var(--muted); font-size: 1rem; }
.duo { display: flex; gap: 18px; justify-content: center; }
.duo .phone { width: 230px; }
.duo .phone:nth-child(2) { margin-top: 60px; }
.mascot-card { background: var(--card); border-radius: 28px; padding: 32px; text-align: center; }
.mascot-card img { width: 200px; margin: 0 auto 12px; }
.mascot-card blockquote { margin: 0; font-family: var(--display); font-size: 1.35rem; line-height: 1.25; }
.mascot-card cite { display: block; margin-top: .6rem; font-style: normal; color: var(--muted); }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .duo .phone { width: 46%; }
  .mascot-card img { width: 140px; }
}

/* Teachers and old-Posso band */
.band { border-radius: 28px; padding: 36px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.band img { width: 130px; }
.band.teacher { background: var(--card); }
.band.old { background: var(--green-soft); }
.band p:last-child { margin-bottom: 0; }
.bands { display: grid; gap: 22px; }
@media (max-width: 640px) { .band { grid-template-columns: 1fr; padding: 26px; } .band img { width: 100px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 2rem; }
.plan { background: var(--card); border-radius: var(--radius); padding: 28px 24px; border: 3px solid transparent; }
.plan.featured { border-color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.plan .price { font-family: var(--display); font-size: 2rem; margin: .4rem 0 0; }
.plan .price small { font-family: var(--body); font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan .alt { color: var(--muted); font-size: .95rem; }
.plan ul { padding-left: 1.1rem; margin: 1rem 0 0; }
.plan li + li { margin-top: .3rem; }
.badge { display: inline-block; background: var(--yellow); border-radius: 999px; padding: .1rem .7rem; font-size: .8rem; font-weight: 600; margin-bottom: .5rem; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 1.2rem; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; }
details { background: var(--card); border-radius: 18px; padding: 0 22px; margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 6px; }

/* Final call to action over the Posso pattern */
.final { position: relative; text-align: center; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: url(img/pattern.webp) center / 520px; opacity: .14; }
.final .wrap { position: relative; }
.final .card { background: var(--bg); border: 3px solid var(--ink); border-radius: 32px; padding: 44px 24px; max-width: 720px; margin: 0 auto; box-shadow: 0 8px 0 var(--ink); }
.final img { width: 150px; margin: -110px auto 8px; }
.final .stores { justify-content: center; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer img { height: 32px; width: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .spacer { flex: 1; }

/* Fan shop: product cards link to the Spreadshop */
.shop { padding-top: 24px; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 2rem 0; }
.product { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; border: 3px solid transparent; transition: border-color .15s; }
.product:hover { border-color: var(--ink); }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product span { display: block; padding: 12px 16px 16px; font-weight: 600; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* Download prompts: header button, ticks under the hero buttons, prompts between sections,
   plan buttons, QR code on desktop and a sticky bar on phones. On a phone only that phone's
   store button shows (the page's script marks html ios or android). */
html.ios .store-play, html.android .store-apple { display: none; }
.header-cta { padding: .45rem 1rem; font-size: .95rem; border-width: 2px; box-shadow: 0 3px 0 var(--ink); border-radius: 14px; }
.checks { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; }
.checks li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }
.hero .checks + .trial { margin-top: .4rem; }
.cta-strip { margin-top: 2rem; padding: 20px 24px; background: var(--yellow-soft); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.cta-strip p { margin: 0; font-weight: 600; font-size: 1.1rem; flex: 1 1 16rem; }
.cta-strip .stores { margin-top: 0; }
.plan { display: flex; flex-direction: column; }
.plan ul { flex: 1; }
.plan-cta { justify-content: center; margin-top: 1.4rem; }
.qr { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 1.4rem; }
.final .qr img { margin: 0; width: 96px; height: 96px; border-radius: 10px; border: 2px solid var(--line); }
.qr p { margin: 0; max-width: 14rem; text-align: left; color: var(--muted); font-weight: 500; }
html.ios .qr, html.android .qr { display: none; }
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  background: var(--card); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 4px 0 var(--ink); text-decoration: none; color: var(--ink);
  transform: translateY(140%); transition: transform .25s; }
.sticky-cta.show { transform: none; }
.sticky-cta img { width: 44px; height: 44px; border-radius: 11px; }
.sticky-cta strong { display: block; font-family: var(--display); line-height: 1.1; }
.sticky-cta small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.2; }
.sticky-cta .btn { margin-left: auto; padding: .55rem 1rem; font-size: .95rem; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
@media (max-width: 860px) {
  .sticky-cta { display: flex; }
  .qr { display: none; }
  .header-cta { margin-left: 4px; }
  .lang { margin-left: auto; }
}
@media (max-width: 380px) { .header-cta { display: none; } }
@media (max-width: 420px) {
  .sticky-cta { gap: 10px; padding: 8px 8px 8px 10px; }
  .sticky-cta img { width: 38px; height: 38px; }
  .sticky-cta small { white-space: nowrap; }
  .sticky-cta .btn { padding: .5rem .8rem; font-size: .9rem; }
}
.sticky-cta > span:first-of-type { flex: 1; min-width: 0; }
.sticky-cta small { overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .btn { flex: none; }
.header-cta { white-space: nowrap; flex: none; }
@media (max-width: 1060px) { nav { display: none; } .lang { margin-left: auto; } }

/* Bar on the Finnish home page offering the browser's language */
.lang-offer { background: var(--ink); color: #fff; font-size: .95rem; }
.lang-offer .wrap { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.lang-offer p { margin: 0; flex: 1; min-width: 0; line-height: 1.3; }
.lang-offer .btn { flex: none; padding: .3rem .9rem; border-width: 2px; border-color: var(--yellow); border-radius: 12px; background: var(--yellow); color: var(--ink); box-shadow: none; font-size: .9rem; }
.lang-offer .btn:hover { transform: none; }
.lang-offer button { flex: none; background: none; border: 0; color: #fff; font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 2px 6px; }

/* Google Play before the Android app is out: a "coming soon" label, not a link. */
.btn.soon { background: transparent; border-style: dashed; box-shadow: none; opacity: .65; cursor: default; }
.btn.soon:hover { transform: none; box-shadow: none; }
