/*
  The satellite sites' shared sheet. The look of the app itself: a pine night, cream ink, Poppins, gold for the app's
  name and the numbers. Flat panels, no glow, no gradient text, no white grounds. Each site appends its own shade of
  the pine (build.mjs writes the :root block at the end).
  Phones first (95% of the visits measured on the main site are on a phone); from 880px a heading column beside the
  text. Every link and button is at least 44px tall; the two store badges always share one height (both stores ask
  for it). Sides are logical (inline-start/end), so right-to-left pages mirror by themselves.
*/
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff") format("woff"); }

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600.woff") format("woff"); }

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700.woff") format("woff"); }

/* The stand-in while Poppins loads takes the same room, so nothing jumps when it arrives */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"), local("Roboto"), local("Helvetica Neue"); size-adjust: 113%; ascent-override: 93%; descent-override: 31%; line-gap-override: 9%; }

:root {
  --bg: #0a1e16;
  --bg-top: #113a29;
  --panel: #10291f;
  --panel2: #163a2b;
  --ink: #f4f1e8;
  --soft: #c6d1c8;
  --muted: #94a79c;
  --line: rgba(244, 241, 232, 0.12);
  --gold: #f6c453;
  --page: 1080px;
  --gutter: 20px;
  --badge: 48px;
  --font: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Scripts Poppins does not draw: each falls to the phone's own font for that script */
:lang(ja) { --font: "Poppins", "Poppins Fallback", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif; }

:lang(ko) { --font: "Poppins", "Poppins Fallback", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif; }

:lang(ar) { --font: "Poppins", "Geeza Pro", "SF Arabic", "Noto Sans Arabic", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; }

* { box-sizing: border-box; }

/* The sticky top bar is 60px tall: a section reached from a link starts below it */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  /* Lighter pine behind the headline, settling into the night below it */
  background: var(--bg) linear-gradient(180deg, var(--bg-top) 0, var(--bg) 620px) no-repeat;
  color: var(--ink);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

.skip { position: absolute; inset-inline-start: -999px; top: 12px; z-index: 40; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; }

.skip:focus { inset-inline-start: 12px; }

/* ---------- Top bar: stays at the top, the store badges on the right ---------- */

/* Its ground is the colour the page starts with, so at the top the bar melts into the headline area and text never
   shows through it further down; site.js adds a hairline once the page moves */
.bar { position: sticky; top: 0; z-index: 30; background: var(--bg-top); transition: box-shadow 0.2s ease; }

.scrolled .bar { box-shadow: 0 1px 0 var(--line); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--page); margin: 0 auto; padding: 8px var(--gutter); }

.brand { display: flex; flex-shrink: 0; align-items: center; gap: 10px; min-width: 44px; min-height: 44px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }

.brand img { width: 34px; height: 34px; border-radius: 9px; }

/* On a phone the name is read out but not shown: the two badges need the room */
.brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.top-right { display: flex; align-items: center; gap: 10px; }

/* The badges in the bar: 40px tall, the smallest the stores allow on a screen, with 2px more above and below to tap */
.top .stores-top { flex-wrap: nowrap; gap: 8px; margin-top: 0; }

.top .stores-top .store { padding: 2px 0; }

.top .stores-top .store img { height: 40px; }

/* The owner (26 Nov): the bar's badges show only once the visitor scrolls past the page's own store buttons, so
   nothing to download sits at the top on arrival. site.js adds bar-wait, then bar-stores; the badges keep their room,
   so nothing moves when they appear. Without the script they simply show. */
.bar-wait .top .stores-top { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s; }

.bar-wait.bar-stores .top .stores-top { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s; }

/* The language menu lives in the footer on a phone */
.top-right > nav { display: none; }

.lang { position: relative; }

.lang summary { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 30, 22, 0.45); color: var(--soft); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; list-style: none; }

.lang summary::-webkit-details-marker { display: none; }

.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 10; min-width: 210px; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel2); }

.lang a { display: flex; align-items: center; min-height: 46px; padding: 0 12px; border-radius: 12px; font-size: 15px; text-decoration: none; }

.lang a[aria-current] { background: rgba(244, 241, 232, 0.1); font-weight: 600; }

/* ---------- Hero: the headline, the store buttons, three phones ---------- */

.hero {
  display: grid;
  gap: 30px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 20px var(--gutter) 44px;
  /* A few still snowflakes, as on the app's own screens */
  background-image: radial-gradient(circle, rgba(244, 241, 232, 0.5) 1px, transparent 1.7px), radial-gradient(circle, rgba(244, 241, 232, 0.26) 1px, transparent 1.7px);
  background-position: 34px 18px, 118px 96px;
  background-size: 210px 190px, 150px 230px;
}

h1 { font-size: clamp(36px, 10.2vw, 70px); font-weight: 700; line-height: 1.07; letter-spacing: -0.028em; text-wrap: balance; }

.mark { color: var(--gold); }

.lead { max-width: 31em; margin-top: 16px; color: var(--soft); font-size: 17.5px; line-height: 1.55; text-wrap: pretty; }

/* Store badges: always the same height, the visitor's own store first (site.js), never a redirect */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }

.store { display: block; border-radius: 10px; }

.store img { width: auto; height: var(--badge); }

.on-ios .store-ios, .on-android .store-android { order: -1; }

/* Each fact starts with a small gold dot, so a fact that wraps to the next line still reads as a list */
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }

.facts li { display: flex; align-items: center; gap: 8px; }

.facts li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* The three phones: a sealed gift, the decorated tree, an opened message (one picture) */
.hero-art img { width: min(100%, 460px); margin: 0 auto; }

/* ---------- Reading blocks ---------- */

.block { max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; padding: 48px var(--gutter); border-top: 1px solid var(--line); }

h2 { margin-bottom: 16px; font-size: clamp(25px, 6.6vw, 36px); font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }

h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }

.block p { color: var(--soft); text-wrap: pretty; }

.block p + p { margin-top: 12px; }

.block .answer { color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.5; }

.block .intro { max-width: 40em; }

.body a { color: var(--ink); font-weight: 600; }

/* ---------- Cards: one flat panel style for steps, gifts, features, tips, numbers, questions and the stores ---------- */

.step, .gifts li, .inside li, .tips li, .numbers li, .faq details, .store-card { border: 1px solid var(--line); background: var(--panel); }

/* Steps: the app's screen on a stage, the words under it. A row to swipe on a phone, three columns on a computer */
.block.wide { max-width: var(--page); }

.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; margin: 22px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }

.steps::-webkit-scrollbar { display: none; }

.step { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; scroll-snap-align: start; }

.step-shot { padding-top: 26px; overflow: hidden; background: var(--panel2); }

/* The phone's lower fifth stays under the stage's edge */
.step-shot img { width: 60%; margin: 0 auto -24%; }

.step-text { padding: 20px 22px 24px; }

.step-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--bg); font-size: 14px; font-weight: 700; }

.step h3 { margin: 12px 0 6px; font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

.step p { color: var(--soft); font-size: 15px; line-height: 1.6; }

/* The gifts friends can hang: the app's own pictures, each with its name */
.gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }

.gifts li { display: flex; flex-direction: column; align-items: center; padding: 14px 8px 12px; border-radius: 20px; text-align: center; }

.gifts img { width: 78%; max-width: 116px; aspect-ratio: 1; object-fit: contain; }

.gifts span { margin-top: 8px; color: var(--soft); font-size: 13.5px; font-weight: 600; line-height: 1.35; }

/* What is in the app */
.inside { display: grid; gap: 10px; }

.inside li { padding: 16px 18px; border-radius: 18px; }

.inside p { margin-top: 3px; font-size: 15px; line-height: 1.55; }

/* Numbered tips under an extra section's answer */
.tips { display: grid; gap: 10px; margin-top: 20px; counter-reset: tip; }

.tips li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 16px; border-radius: 18px; color: var(--soft); font-size: 15px; line-height: 1.55; counter-increment: tip; }

.tips li::before { content: counter(tip); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--bg); font-size: 14px; font-weight: 700; line-height: 1; }

.tips b { color: var(--ink); font-weight: 600; }

/* Store names: one card per store, label and value in rows */
.store-cards { display: grid; gap: 10px; margin-top: 18px; }

.store-card { padding: 18px 18px 4px; border-radius: 20px; }

.store-card h3 { margin-bottom: 8px; font-size: 18px; font-weight: 700; }

.store-card dl div { display: grid; grid-template-columns: minmax(0, 37%) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }

/* Long labels ("Desenvolvedor", "Entwickler") break with a hyphen, never mid-word without one */
.store-card dt { color: var(--muted); font-size: 13.5px; font-weight: 600; line-height: 1.5; -webkit-hyphens: auto; hyphens: auto; }

.store-card dd { color: var(--soft); font-size: 14.5px; line-height: 1.5; }

.store-link { display: flex; align-items: center; min-height: 50px; border-top: 1px solid var(--line); font-size: 15px; }

.block .note { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* Numbers */
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.numbers li { padding: 18px 16px; border-radius: 20px; }

.numbers b { display: block; color: var(--gold); font-size: clamp(22px, 6.2vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

.numbers span { display: block; margin-top: 6px; color: var(--soft); font-size: 13.5px; line-height: 1.5; }

.block .source { margin-top: 18px; color: var(--muted); font-size: 13px; }

/* Folded questions */
.faq { display: grid; gap: 10px; }

.faq details { border-radius: 18px; }

.faq summary { position: relative; display: flex; align-items: center; min-height: 58px; padding-block: 14px; padding-inline: 18px 50px; cursor: pointer; list-style: none; }

.faq summary::-webkit-details-marker { display: none; }

.faq summary h3 { font-size: 16px; font-weight: 600; line-height: 1.4; }

.faq summary::after { content: "+"; position: absolute; inset-inline-end: 18px; top: 50%; margin-top: -15px; color: var(--gold); font-size: 24px; font-weight: 400; line-height: 30px; }

.faq details[open] summary::after { content: "\2212"; }

.faq details p { padding: 0 18px 18px; font-size: 15px; }

/* ---------- Last call ---------- */

.cta { max-width: calc(var(--page) - 2 * var(--gutter)); margin: 8px var(--gutter) 0; padding: 46px 16px; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(180deg, var(--panel2), var(--panel)); text-align: center; }

.cta h1 { font-size: clamp(32px, 8.6vw, 52px); }

.cta h2 { margin-bottom: 8px; }

.cta p { color: var(--soft); }

.cta .stores { justify-content: center; }

/* On a phone the last card is narrower than the page, so its badges are a size down to stay side by side */
.cta .store img { height: 44px; }

.cta .back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-weight: 600; }

.lost { margin-top: 30px; }

/* ---------- Footer: this page's sections, the stores, the languages, help ---------- */

.foot { max-width: var(--page); margin: 0 auto; padding: 46px var(--gutter) 40px; color: var(--muted); font-size: 14.5px; }

.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

.foot-brand img { width: 34px; height: 34px; border-radius: 9px; }

.foot-about { max-width: 34em; margin-top: 10px; }

/* On a phone: the sections across the top, then the stores and help in one column beside the languages */
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "page page" "app langs" "help langs"; gap: 28px 20px; margin-top: 30px; }

.foot-page { grid-area: page; }

.foot-app { grid-area: app; }

.foot-langs { grid-area: langs; }

.foot-help { grid-area: help; }

.foot-h { margin-bottom: 4px; color: var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }

.foot-cols a { display: flex; align-items: center; min-height: 44px; color: var(--soft); line-height: 1.3; text-decoration: none; }

.foot-cols a:hover { color: var(--ink); text-decoration: underline; }

.foot-cols a[aria-current] { color: var(--ink); font-weight: 600; }

/* This page's sections in two columns */
.foot-page ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }

/* A one-language site names the 19 languages the app speaks: plain words, not links */
.tongues { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 10px; color: var(--soft); font-size: 13.5px; line-height: 1.9; }

/* The root page's "Listed on" strip: icon + name chips sliding by on their own (the list twice for a seamless loop),
   stopped while hovered or focused; with reduced motion the row stands still and scrolls sideways instead */
.listed { margin-top: 30px; }

.listed .foot-h { margin-bottom: 12px; }

.listed-run { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }

.listed-track { display: flex; width: max-content; animation: listed-slide 150s linear infinite; }

.listed-run:hover .listed-track, .listed-run:focus-within .listed-track { animation-play-state: paused; }

.listed-set { display: flex; gap: 8px; margin: 0; padding: 0 8px 0 0; list-style: none; }

.listed-set a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); font-size: 13px; line-height: 1.4; white-space: nowrap; text-decoration: none; }

.listed-set a:hover { border-color: rgba(246, 196, 83, 0.45); color: var(--ink); }

.listed-set img { width: 18px; height: 18px; border-radius: 5px; }

@keyframes listed-slide { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .listed-run { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .listed-track { animation: none; }
  .listed-set[aria-hidden] { display: none; }
  .bar-wait .top .stores-top, .bar-wait.bar-stores .top .stores-top { transform: none; transition: none; }
}

.foot-end { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; }

.foot-end p + p { margin-top: 6px; }

/* Plain pages (privacy) */
.page { border-top: 0; padding-top: 26px; }

.page h1 { margin-bottom: 8px; font-size: clamp(34px, 9.4vw, 52px); }

.page h2 { margin: 30px 0 8px; font-size: 20px; letter-spacing: -0.01em; }

.page .source { margin-top: 0; }

/* ---------- Japanese, Korean, Arabic: no tight tracking (it breaks Arabic joining), taller lines ---------- */

:lang(ja) body, body:lang(ja), :lang(ko) body, body:lang(ko), :lang(ar) body, body:lang(ar) { line-height: 1.85; }

:lang(ja) h1, :lang(ko) h1, :lang(ar) h1 { line-height: 1.25; letter-spacing: 0; }

:lang(ja) h2, :lang(ko) h2, :lang(ar) h2, :lang(ja) .step h3, :lang(ko) .step h3, :lang(ar) .step h3, :lang(ar) .numbers b, :lang(ar) .brand, :lang(ar) .foot-brand { line-height: 1.4; letter-spacing: 0; }

:lang(ja) .foot-h, :lang(ko) .foot-h, :lang(ar) .foot-h { letter-spacing: 0.02em; }

/* Japanese has no spaces: headings break between phrases where the browser can tell them (auto-phrase), never
   inside a word kept whole (keep-all would make the whole headline one word and push the page wide) */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; line-break: strict; }

/* The Japanese headline breaks only at the zero-width spaces its text carries between phrases (Safari knows no
   auto-phrase), a size down so each phrase fits a phone's line; anywhere is the safety valve for a narrow screen */
:lang(ja) h1 { font-size: clamp(30px, 8.4vw, 60px); word-break: keep-all; overflow-wrap: anywhere; }

/* Korean breaks at its spaces, as Korean pages do, so no word is split across two lines */
:lang(ko) body, body:lang(ko) { word-break: keep-all; }

/* ---------- Traditional Chinese: the phone's own letters, no tight tracking, taller lines ---------- */

:lang(zh-Hant) { --font: "Poppins", "Poppins Fallback", "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif; }

:lang(zh-Hant) body, body:lang(zh-Hant) { line-height: 1.8; }

:lang(zh-Hant) h1 { line-height: 1.2; letter-spacing: 0; }

:lang(zh-Hant) h2, :lang(zh-Hant) .step h3 { line-height: 1.35; letter-spacing: 0; }

/* ---------- Thai: the phone's Thai font after Poppins, no tight tracking, room for the marks above and below ---------- */

:lang(th) { --font: "Poppins", "Thonburi", "Sukhumvit Set", "Noto Sans Thai", "Noto Sans Thai UI", "Leelawadee UI", Tahoma, sans-serif; }

:lang(th) body, body:lang(th) { line-height: 1.85; }

:lang(th) h1 { line-height: 1.3; letter-spacing: 0; }

:lang(th) h2, :lang(th) .step h3 { line-height: 1.45; letter-spacing: 0; }

/* ---------- Vietnamese: Poppins has no Vietnamese letters, so the page uses the phone's own font throughout ---------- */

:lang(vi) { --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

/* Russian and Hindi: the Poppins subset has no Cyrillic or Devanagari, so the phone's own fonts, as for Vietnamese;
   Devanagari needs taller lines for its vowel signs above and below */
:lang(ru) { --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

:lang(ru) h1, :lang(ru) h2 { letter-spacing: -0.015em; }

:lang(hi) { --font: "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari", "Nirmala UI", Mangal, system-ui, -apple-system, sans-serif; }

:lang(hi) body, body:lang(hi) { line-height: 1.85; }

:lang(hi) h1 { line-height: 1.3; letter-spacing: 0; }

:lang(hi) h2, :lang(hi) .step h3 { line-height: 1.45; letter-spacing: 0; }

:lang(vi) h1, :lang(vi) h2 { letter-spacing: -0.015em; }

/* ---------- The top bar by width ---------- */

/* The smallest phones keep only the two badges */
@media (max-width: 349px) {
  .brand { display: none; }
  .top { justify-content: flex-end; }
}

@media (min-width: 600px) {
  .brand-name { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

@media (min-width: 760px) {
  .top-right > nav { display: block; }
}

/* ---------- From a tablet up ---------- */

@media (min-width: 640px) {
  .steps { grid-auto-columns: 44%; }
  .gifts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .inside { grid-template-columns: 1fr 1fr; gap: 12px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); grid-template-areas: "page page page" "app langs help"; }
}

@media (min-width: 880px) {
  :root { --gutter: 28px; --badge: 54px; }
  body { background-image: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 760px); }
  .hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: center; gap: 40px; padding-top: 36px; padding-bottom: 72px; }
  .lead { font-size: 19px; }
  .hero-art img { width: 100%; max-width: 470px; }
  /* The heading stands in its own column, so every section starts on the same line as the headline above */
  .block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; max-width: var(--page); padding-top: 64px; padding-bottom: 64px; }
  .block > h2 { margin-bottom: 0; }
  .block.wide, .block.page { display: block; }
  .block.wide > h2 { margin-bottom: 16px; }
  .block.page { max-width: 780px; }
  .steps { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0 0; padding: 0; overflow: visible; }
  .step-text { padding: 22px 26px 28px; }
  .gifts { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .gifts li { padding: 18px 10px 14px; }
  .store-card { padding: 22px 24px 6px; }
  .numbers { gap: 12px; }
  .numbers li { padding: 22px 20px; }
  .cta { margin-inline: auto; padding: 68px 24px; }
  .cta .store img { height: var(--badge); }
  .foot { padding-top: 64px; }
  .foot-cols { grid-template-columns: 2.3fr 1fr 1fr 1.3fr; grid-template-areas: "page app langs help"; gap: 28px 40px; }
  .foot-cols a { min-height: 38px; }
}

/* ---------- Guides (site/guides/<language>.mjs): the hub, the articles, breadcrumbs, contents, countdown ---------- */

.crumbs { max-width: 760px; margin: 0 auto; padding: 18px var(--gutter) 0; color: var(--muted); font-size: 13.5px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }

.crumbs li + li::before { content: "›"; margin-inline-end: 8px; color: var(--muted); }

.crumbs a { color: var(--soft); text-decoration: none; }

.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.guide { max-width: 760px; margin: 0 auto; padding: 14px var(--gutter) 24px; }

.guide h1 { font-size: clamp(30px, 6.4vw, 46px); line-height: 1.12; letter-spacing: -0.02em; }

.guide .lead { margin-top: 14px; color: var(--soft); font-size: 18px; line-height: 1.6; }

.guide > .stores { margin-top: 20px; }

.g-meta { margin-top: 10px; color: var(--muted); font-size: 13px; }

.toc { margin-top: 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }

.toc-h { margin: 0 0 6px; color: var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }

.toc ol { margin: 0; padding-inline-start: 20px; color: var(--muted); }

.toc li { margin: 6px 0; }

.toc a { color: var(--soft); text-decoration: none; }

.toc a:hover { color: var(--ink); text-decoration: underline; }

.g-sec { margin-top: 44px; }

.g-sec h2 { font-size: clamp(23px, 4.6vw, 30px); line-height: 1.22; letter-spacing: -0.01em; }

.g-sec > p { margin-top: 12px; color: var(--soft); line-height: 1.72; }

.g-figure { margin: 18px 0 0; }

.g-figure img { display: block; width: 100%; max-width: 520px; height: auto; }

.g-steps { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }

.g-steps li { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }

.g-steps li:has(.g-shot) { grid-template-columns: 120px 1fr; align-items: start; }

.g-shot img { display: block; width: 100%; height: auto; }

.g-step-text h3 { margin-top: 8px; font-size: 18px; line-height: 1.3; }

.g-step-text p { margin-top: 6px; color: var(--soft); line-height: 1.6; }

.g-list { margin: 14px 0 0; padding-inline-start: 22px; color: var(--soft); line-height: 1.7; }

.g-list li + li { margin-top: 6px; }

.g-messages { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }

.g-messages h3 { color: var(--gold); font-size: 17px; line-height: 1.3; }

.g-messages ul { margin: 10px 0 0; padding-inline-start: 20px; color: var(--soft); line-height: 1.65; }

.g-messages li + li { margin-top: 8px; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }

.countdown div { padding: 16px 6px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel2); text-align: center; }

.countdown b { display: block; color: var(--gold); font-size: clamp(28px, 7vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; }

.countdown span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

.guide .cta { margin-top: 48px; }

.related { margin-top: 44px; }

.related h2 { font-size: 22px; }

.guide-cards { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }

.guide-cards a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: inherit; text-decoration: none; }

.guide-cards a:hover { border-color: rgba(246, 196, 83, 0.45); }

.guide-cards h2, .guide-cards h3 { color: var(--ink); font-size: 17px; line-height: 1.3; letter-spacing: 0; }

.guide-cards p { margin-top: 6px; color: var(--soft); font-size: 14.5px; line-height: 1.55; }

.guide-cards .more { display: inline-block; margin-top: 10px; color: var(--gold); font-size: 14px; font-weight: 600; }

/* The footer gains a row for the guides */
.foot-cols.has-guides { grid-template-areas: "page page" "guides guides" "app langs" "help langs"; }

.foot-guides { grid-area: guides; }

.foot-guides ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }

@media (min-width: 640px) {
  .foot-cols.has-guides { grid-template-areas: "page page page" "guides guides guides" "app langs help"; }
}

@media (min-width: 760px) {
  .guide-cards { grid-template-columns: 1fr 1fr; }
  .g-steps li:has(.g-shot) { grid-template-columns: 170px 1fr; }
}

@media (min-width: 880px) {
  .foot-cols.has-guides { grid-template-areas: "page app langs help" "guides guides guides guides"; }
  .foot-guides ul { grid-template-columns: repeat(5, auto); justify-content: start; column-gap: 28px; }
}

/* decormytree.link: its own shade of the pine night */
:root {
  --bg: #0a1e16;
  --bg-top: #113a29;
  --panel: #10291f;
  --panel2: #163a2b;
  --gold: #f6c453;
}
