/* Needlings · theyplay.games — shared styles for index / support / privacy.
   Picture-book paper-cut look. Fredoka is bundled locally (SIL OFL, see fonts/OFL.txt); body uses system fonts. No external requests. */
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --sky: #CCE3EC; --peach: #F7DCC8; --moss: #5E7F5A; --fern: #A9C79B; --bark: #4A3B33; --berry: #C2546E; --page: #FFFBF4;
  --bg: var(--page); --surface: #FFFFFF; --fill: #F3EADF; --text: var(--bark); --muted: #75655B; --line: rgba(74,59,51,.12);
  --accent: var(--berry); --accent-soft: #F8E3E6; --max: 1040px;
  --paper-shadow: 0 2px 0 rgba(74,59,51,.08), 0 8px 18px -8px rgba(74,59,51,.28);
  --round: "Fredoka", ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--round); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--bark); }
h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.6vw, 34px); margin-top: 1.6em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"], html[lang="de"] [data-lang="de"] { display: revert; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 5; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--round); font-weight: 600; font-size: 21px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--paper-shadow); }
.topnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.navlink { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 10px; font-size: 15px; }
.navlink[aria-current="page"] { color: var(--text); background: var(--fill); }
.lang-toggle { display: flex; background: var(--fill); border-radius: 11px; padding: 2px; margin-left: 4px; }
.lang-toggle button { font: inherit; font-size: 13px; border: 0; background: none; color: var(--muted); padding: 4px 8px; border-radius: 9px; cursor: pointer; }
.lang-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(74,59,51,.15); }

/* Hero: sky → peach with paper-cut hills */
.hero { position: relative; background: linear-gradient(180deg, var(--sky) 0%, var(--peach) 100%); padding: 64px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; position: relative; z-index: 2; padding-bottom: 150px; }
.hero h1 { color: var(--bark); }
.hero .sun { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: #FFF3DC; right: 8%; top: 36px; box-shadow: 0 0 0 18px rgba(255,243,220,.45); z-index: 1; }
.hero-art { justify-self: center; width: 100%; max-width: 280px; }
.hero-art img { width: 100%; height: auto; display: block; border-radius: 22%; box-shadow: 0 4px 0 rgba(74,59,51,.10), 0 22px 40px -14px rgba(74,59,51,.45); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 170px; display: block; z-index: 1; }
.hills path { filter: drop-shadow(0 -3px 2px rgba(74,59,51,.14)); }
.lede { font-size: 20px; color: var(--muted); }
.hero .lede { color: #5D4B41; }
.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--berry); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 16px; font-family: var(--round); font-weight: 600; font-size: 18px; margin-top: 8px; box-shadow: 0 3px 0 #9A3F56, 0 10px 20px -10px rgba(154,63,86,.6); }
.cta:active { transform: translateY(2px); box-shadow: 0 1px 0 #9A3F56; }
.badge { display: inline-block; background: rgba(255,251,244,.75); color: var(--moss); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; padding: 0; list-style: none; }
.chips li { background: rgba(255,251,244,.7); border-radius: 999px; padding: 3px 12px; font-size: 14px; color: var(--bark); }

/* Sections */
.section { padding-top: 8px; padding-bottom: 8px; }
.section > h2:first-child { margin-top: 1.4em; }
.section-intro { color: var(--muted); max-width: 640px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 12px 0 8px; counter-reset: step; }
.step { background: var(--surface); border-radius: 22px; padding: 22px 20px 20px; box-shadow: var(--paper-shadow); counter-increment: step; position: relative; }
.step::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--fern); color: var(--bark); font-family: var(--round); font-weight: 700; font-size: 19px; margin-bottom: 12px; }
.step:nth-child(2)::before { background: var(--peach); }
.step:nth-child(3)::before { background: var(--accent-soft); color: var(--berry); }
.step p { color: var(--muted); margin: 0; }

.needs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.needs li { background: var(--fill); border-radius: 999px; padding: 4px 12px; font-size: 15px; }

.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 12px 0 8px; }
.world { border-radius: 20px; padding: 18px 16px 44px; box-shadow: var(--paper-shadow); min-height: 150px; position: relative; overflow: hidden; }
.world h3 { margin-bottom: .3em; }
.world p { margin: 0; font-size: 15px; color: #5D4B41; position: relative; }
.world .tag { display: inline-block; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.75); border-radius: 999px; padding: 2px 9px; margin-bottom: 8px; }
.world::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -36px; height: 70px; border-radius: 50% 50% 0 0; opacity: .55; }
.w-forest { background: #DCEAD3; } .w-forest::after { background: var(--moss); }
.w-beach { background: #FBE6D3; } .w-beach::after { background: #E9C79F; }
.w-winter { background: #E4F0F5; } .w-winter::after { background: #FFFFFF; opacity: .9; }
.w-farm { background: #F3E7C9; } .w-farm::after { background: var(--fern); }
.w-space { background: #2F3550; } .w-space h3, .w-space p { color: #F4EEF7; } .w-space::after { background: #8C86B8; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 12px 0 8px; }
.feature { background: var(--surface); border-radius: 20px; padding: 20px; box-shadow: var(--paper-shadow); }
.feature p { color: var(--muted); margin: 0; }
.feature h3::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--fern); margin-right: 9px; vertical-align: 2px; }

.card { background: linear-gradient(160deg, var(--accent-soft), #FCEFE6); border-radius: 24px; padding: 26px; margin: 28px 0 16px; box-shadow: var(--paper-shadow); }
.card p { color: var(--text); }
.price-list { margin: 0 0 1em; padding-left: 1.2em; }
.price-list li { margin-bottom: .3em; }

.page-head { padding: 48px 0 8px; }
.effective { color: var(--muted); font-size: 14px; }
details { background: var(--surface); border-radius: 16px; padding: 14px 18px; margin: 10px 0; box-shadow: var(--paper-shadow); }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }
address { font-style: normal; }

footer { margin-top: 56px; padding: 28px 0 40px; color: #F3EADF; font-size: 14px; background: var(--moss); position: relative; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; background: var(--moss); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; position: relative; }
footer a { color: #FFFBF4; }

@media (max-width: 900px) {
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .worlds .w-space { grid-column: span 2; }
}
@media (max-width: 760px) {
  .topnav { gap: 0; flex-wrap: nowrap; }
  .navlink { padding: 6px 7px; font-size: 14px; }
  .brand { font-size: 18px; }
  .lang-toggle { margin-left: 2px; }
  .hero .wrap, .features, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero .wrap { padding-bottom: 110px; gap: 24px; }
  .hero .sun { width: 80px; height: 80px; right: 6%; top: 20px; }
  .hero-art { max-width: 160px; grid-row: 1; }
  .hills { height: 110px; }
}
