/* road2scratchapp.com: the game's own colours (ProfileStyle in the game) and its Fredoka font. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #faf6eb;          /* cream */
  --card: #fffdf5;
  --ink: #294a38;
  --quiet: #67736a;
  --green: #4a9957;
  --dark-green: #2b5c40;
  --sage: #e8f0de;
  --line: #dfe6d6;
  --coral: #e67a5c;
  --gold: #d9a633;
  --sky-top: #bfe3f3;
  --sky-bottom: #a6d8ee;
  --grass: #5ea865;
  --on-green: #ffffff;
  --shadow: 0 6px 24px rgba(41, 74, 56, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141c17;
    --card: #1c2620;
    --ink: #e9efe6;
    --quiet: #a5b2a8;
    --green: #6fbf7b;
    --dark-green: #8fd19a;
    --sage: #24312a;
    --line: #2d3a32;
    --sky-top: #1d3542;
    --sky-bottom: #234556;
    --grass: #2f5f3a;
    --on-green: #0f1712;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, .brand, .button { font-family: "Fredoka", -apple-system, sans-serif; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; font-weight: 600; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }
p { margin: 0 0 12px; }
a { color: var(--green); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 600;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom) 62%, var(--grass) 62%);
  border-radius: 28px;
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero .icon {
  width: 128px; height: 128px; border-radius: 30px; margin: 0 auto 22px;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(38px, 7vw, 64px); margin-bottom: 8px; }
.hero .tagline {
  font-family: "Fredoka", sans-serif; font-size: clamp(20px, 3.4vw, 28px);
  color: var(--dark-green); margin-bottom: 18px;
}
.hero .lead { max-width: 560px; margin: 0 auto 26px; }
.hero .card-text {
  background: var(--card); border-radius: 20px; padding: 22px 20px 18px;
  max-width: 620px; margin: 0 auto; box-shadow: var(--shadow);
}

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--dark-green); color: var(--on-green);
  font-size: 18px; font-weight: 600; text-decoration: none;
}
.platforms { margin: 10px 0 0; color: var(--quiet); font-size: 15px; }
.button.soft { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.button[aria-disabled="true"] { cursor: default; }

/* ---------- Sections ---------- */
section { padding: 56px 0 8px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.section-head p { color: var(--quiet); }

.features {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
}
.feature .dot {
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 22px; background: var(--sage);
}
.feature p { color: var(--quiet); margin: 0; }

.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px;
}
.shots figure {
  flex: 0 0 auto; width: min(240px, 62vw); margin: 0; scroll-snap-align: center;
}
.shots img {
  width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover;
  border-radius: 24px; border: 6px solid var(--card); box-shadow: var(--shadow); background: var(--sage);
}
.shots figcaption { text-align: center; color: var(--quiet); font-size: 15px; margin-top: 10px; }

.journey {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  counter-reset: step;
}
.journey div {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
}
.journey strong { font-family: "Fredoka", sans-serif; font-size: 18px; display: block; }
.journey span { color: var(--quiet); font-size: 15px; }

.callout {
  background: var(--sage); border-radius: 24px; padding: 28px 24px; text-align: center;
}

/* ---------- Support page ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 24px 0 8px; }
.page h1 { font-size: clamp(32px, 6vw, 44px); }
.contact {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin: 18px 0 8px;
}
.contact .mail { font-size: 20px; font-weight: 600; word-break: break-all; }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 0 18px; margin-bottom: 10px;
}
summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--green);
}
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 16px; color: var(--quiet); }
details ol, details ul { margin: 0 0 8px; padding-left: 22px; }

/* ---------- Footer ---------- */
footer {
  margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line);
  color: var(--quiet); font-size: 15px;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--quiet); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav { gap: 14px; font-size: 15px; }
  .hero { padding: 40px 16px 32px; border-radius: 22px; }
  .hero .icon { width: 104px; height: 104px; border-radius: 24px; }
  h2 { font-size: 26px; }
  section { padding-top: 44px; }
}
