/* Hoolo Owl site: the app's hand-painted look (D-058, LAYOUT_SPEC §9). Paper with canvas grain, pencil-sketched
   frames instead of flat iOS boxes, warm dark wood for night bands, one solid gold button.
   Pencil chrome (assets/sk_*.webp) is the app's SketchRoundedRect algorithm rendered to images and stretched
   with border-image 9-slice, like the painted button. Owl palette: docs/art-ref/README.md */
:lang(ko) { word-break: keep-all; }
:root {
  /* Softer light palette, same values as the app's Theme (D-058 §9a item 5) */
  --paper: #F2EDE2;
  --surface: #F8F4EB;
  --tint: #E9E2D2;
  --line: #D9CFBD;
  --ink: #2E2720;
  --ink-2: #4F463B;
  --muted: #625849;
  --sketch: #4A3A2C;

  /* Night = warm dark wood (D-058), cream pencil */
  --night: #1C140E;
  --night-2: #2A1F16;
  --night-ink: #FBF1DC;
  --night-ink-2: #E3CFAE;
  --moon: #FBE6A6;
  --window: #F6C453;

  --owl: #8B5E3C;          /* large text / icons only (3:1) */
  --owl-text: #5E3F28;     /* small brown text on paper (AA) */
  --wood: #8A6142;
  --accent: #E3A12F;
  --accent-lip: #A8701A;
  --accent-text: #7F5612;
  --brick: #B5523B;

  --r: 22px;
  --r-sm: 14px;

  --fs-display: clamp(40px, 6vw, 80px);
  --fs-h2: clamp(30px, 4vw, 54px);
  --fs-h3: clamp(19px, 1.7vw, 24px);
  --fs-lead: clamp(18px, 1.7vw, 23px);
  --fs-body: clamp(16px, 1.3vw, 18px);
  --fs-small: 14px;

  --col: 1120px;
  --gutter: 16px;

  /* Paper grain: texture_canvas multiplied over paper (0.30 light / 0.18 dark, as the app), baked into a tile */
  --paper-bg: var(--paper) url(/assets/paper.webp) 0 0 / 683px repeat;
  --wood-bg: var(--night) url(/assets/paper_dark.webp) 0 0 / 683px repeat;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans JP", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-break: strict;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: italic; font-weight: 600; }
.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* Lucide icons via CSS mask: <span class="ic" style="--i:url(/assets/icons/NAME.svg)"> (no emoji, hard rule) */
.ic { display: inline-block; width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.card .icon .ic { width: 24px; height: 24px; color: var(--owl); }
.chip .dot .ic { width: 18px; height: 18px; color: var(--owl); }
.chip .streak .ic { color: var(--accent-lip); }

/* ---------- Pencil chrome ----------
   One frame image per tone, 9-sliced. The pencil line sits 5px outside the image edge on the canvas, so
   border-image-outset 5px puts it exactly on the element's edge. Inside: a light wash over the paper grain.
   border-style must be solid (width 0) or some engines skip the image. */
.card, .souvenir, .faq details, .step {
  border: 0 solid transparent;
  border-image: url(/assets/sk_card_a.webp) 66 fill / 33px / 5px stretch;
  background: none;
}
.card:nth-child(even), .souvenir:nth-child(even), .faq details:nth-child(even) { border-image-source: url(/assets/sk_card_b.webp); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: url(/assets/sk_line.webp) center bottom / 1600px 10px no-repeat,
              color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 18px; letter-spacing: .01em; }
.logo img { width: 36px; height: 36px; }
.nav { display: none; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.lang-switch { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
@media (min-width: 860px) { .nav { display: flex; } .lang-switch { margin-left: 0; } }

/* ---------- Buttons ----------
   Founder's painted button (same art as the app, D-062), 9-slice via border-image:
   the rounded ends keep their shape, the middle stretches to any width. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 6px; border: solid transparent; border-width: 14px 28px;
  border-image: url(/assets/btn_soft.webp) 55 110 fill / 14px 28px / 0 stretch;
  background: none; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 16px; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform 120ms cubic-bezier(.2,0,0,1), filter 120ms;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(2px); }
.btn-store, .btn-accent { border-image-source: url(/assets/btn_primary.webp); color: var(--ink); }
.btn-store svg { width: 20px; height: 20px; fill: currentColor; }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .8; line-height: 1.1; }
.btn-store span { line-height: 1.15; text-align: left; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; } .hero { padding: 72px 0 96px; } }
/* Capsule label with a pencil rim (eyebrow, level, badge) */
.eyebrow, .level {
  display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--owl-text);
  border: 0 solid transparent; border-image: url(/assets/sk_pill.webp) 48 56 fill / 50% 28px / 3px stretch;
}
.eyebrow { font-size: 14px; padding: 7px 18px; }
.hero h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 20px 0 20px; }
.hero h1 em { color: var(--owl); font-weight: 700; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.5; margin: 0 0 28px; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--fs-small); color: var(--muted); font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust span::before { content: ""; width: 16px; height: 16px; background: var(--owl); -webkit-mask: url(/assets/icons/hand/check.webp) center/contain no-repeat; mask: url(/assets/icons/hand/check.webp) center/contain no-repeat; }

/* Window scene: the app's own art (D-062): frame_window over sky_night, painted sill,
   owl + letters + lamp standing on one foot line (numbers from docs/art-ref/LAYOUT_SPEC.md).
   Box is 1 : 0.95; vertical % below are of that height, horizontal % of the width.
   The sky is cut larger than the hole (12% of the frame in from each side, bottom under the sill) and the
   frame is drawn over it, so the painted wood hides the sky's edge: no paper gap where the hand-drawn hole
   is not straight (same as the app). */
.window { position: relative; aspect-ratio: 1 / .95; }
.window > * { position: absolute; }
.window .opening { top: 12.6%; left: 12%; right: 12%; bottom: 12%; overflow: hidden; }
.window .sky { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.window .frame { top: 0; left: 0; width: 100%; z-index: 2; }
.window .moon { top: 20.5%; right: 21%; width: 11%; border-radius: 50%;   /* founder's painted moon (D-063) */
  /* painted moon is a muted ochre: lift it so it glows on the night sky (founder 22/11) */
  filter: brightness(1.35) saturate(.85) drop-shadow(0 0 10px rgb(251 230 166 / 70%));
  box-shadow: 0 0 60px 16px rgb(246 231 176 / 28%); }
.window::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(246 196 83 / 30%) 0%, transparent 62%); pointer-events: none; }
/* the sill sits BEHIND the frame: the posts and bottom bar hide its cut ends (founder 22/11) */
.window .sill { top: 61.4%; left: 6%; width: 88%; z-index: 1; }
/* Contact shadows (D-053): a soft dark core under the feet + a wider pool, night tone, leaning away from the lamp */
.window::before { content: ""; position: absolute; z-index: 3; left: 24.5%; bottom: 10.6%; width: 21%; height: 4.6%;
  background: radial-gradient(closest-side, rgb(14 8 4 / 62%) 0%, rgb(14 8 4 / 38%) 45%, transparent 100%); filter: blur(2px); pointer-events: none; }
.window .letters, .window .lamp { filter: drop-shadow(0 3px 2px rgb(14 8 4 / 45%)); }
.window img.owl { left: 15%; bottom: 11.4%; width: 42%; z-index: 4; animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.window .letters { left: 42%; bottom: 16.9%; width: 20%; z-index: 3; }
.window .lamp { left: 57%; bottom: 15.6%; width: 26%; z-index: 3; }
/* Nest chips sit inside the sky, clear of the wood and of the owl's head */
.chip {
  position: absolute; display: flex; gap: 8px; align-items: center; z-index: 5;
  border: solid transparent; border-width: 8px 18px; padding: 0 2px;
  border-image: url(/assets/btn_soft.webp) 55 110 fill / 8px 18px / 0 stretch;
  color: var(--ink); font-size: 12px; line-height: 1.3; filter: drop-shadow(0 3px 4px rgb(8 6 20 / 35%));
}
.chip b { display: block; font-size: 13px; }
.chip .dot { display: grid; place-items: center; }
.chip .streak { margin-left: 6px; font-weight: 700; color: var(--accent-text); }
.chip.c1 { top: 20.5%; left: 19.5%; }
.chip.c2 { top: 34%; right: 19.5%; }
@media (min-width: 560px) { .chip { font-size: 13px; border-width: 10px 22px; border-image-width: 10px 22px; } .chip b { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .window img.owl { animation: none; } }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
@media (min-width: 960px) { section { padding: 112px 0; } }
.section-head { max-width: 46rem; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--owl-text); margin: 0 0 12px; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin: 0 0 16px; }
h2 em { color: var(--owl); }
h3 { font-size: var(--fs-h3); line-height: 1.25; margin: 0 0 8px; font-weight: 700; letter-spacing: .005em; }
.section-head p { color: var(--ink-2); font-size: var(--fs-lead); margin: 0; line-height: 1.5; }

/* Feature cards */
.grid { display: grid; gap: 22px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { padding: 28px; }
.card p { margin: 0; color: var(--ink-2); }
/* Icon in a pencil ring, no filled tile */
.card .icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 16px;
  background: url(/assets/sk_ring.webp) center / contain no-repeat; }

/* Night band: warm dark wood with grain (D-058), cream pencil */
.band-night { background: radial-gradient(120% 70% at 50% 0%, rgb(110 72 40 / 32%) 0%, transparent 60%), var(--wood-bg);
  color: var(--night-ink); position: relative; overflow: hidden; }
.band-night .kicker { color: var(--window); }
.band-night h2 em { color: var(--window); }
.band-night .section-head p { color: var(--night-ink-2); }
.steps { counter-reset: s; }
.step { border-image-source: url(/assets/sk_card_dark_a.webp); padding: 24px; display: flex; flex-direction: column; }
.step:nth-child(even) { border-image-source: url(/assets/sk_card_dark_b.webp); }
/* Art stands on a piece of the painted sill with a contact shadow (D-053), no tile behind it */
.step .art { position: relative; aspect-ratio: 1 / .9; margin-bottom: 18px; }
.step .art::before { content: ""; position: absolute; left: 2%; right: 2%; bottom: 0; height: 22%; border-radius: 3px 3px 5px 5px;
  background: url(/assets/windowsill.webp) center 72% / 260% auto no-repeat;
  /* a loose plank, not a cut-off sill: ends fade out (founder 22/11) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%); }
.step .art::after { content: ""; position: absolute; left: 50%; bottom: 16%; width: 40%; height: 9%; transform: translate(-50%, 50%);
  background: radial-gradient(closest-side, rgb(14 8 4 / 65%) 0%, rgb(14 8 4 / 38%) 45%, transparent 100%); filter: blur(2px); }
.step .art img { position: absolute; z-index: 1; left: 12%; width: 76%; bottom: 13.3%; }
.step:first-child .art::after { width: 80%; }
.step:first-child .art img { left: 4%; width: 92%; bottom: 13.5%; }
.step h3 { display: flex; align-items: center; gap: 10px; }
.step h3::before { counter-increment: s; content: counter(s); flex: none; display: inline-grid; place-items: center;
  width: 34px; height: 34px; background: url(/assets/sk_ring_dark.webp) center / contain no-repeat;
  color: var(--window); font-size: 16px; font-weight: 800; }
.step p { margin: 0; color: var(--night-ink-2); }

/* Souvenirs */
.souvenirs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 680px) { .souvenirs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .souvenirs { grid-template-columns: repeat(6, 1fr); } }
.souvenir { position: relative; padding: 18px 12px 16px; text-align: center; }
.souvenir img { position: relative; z-index: 1; width: 70%; margin: 0 auto 14px; }
/* Contact shadow on paper (day tone, D-053): painted behind the object's base, on the img's own box */
.souvenir img { background: radial-gradient(34% 5.5% at 50% 86%, rgb(58 36 20 / 34%) 0%, rgb(58 36 20 / 14%) 55%, transparent 100%); }
.souvenir b { display: block; font-size: 15px; }
.souvenir span { font-size: 13px; color: var(--muted); }

/* Nests */
.nests .card { text-align: center; }
.level { font-size: 13px; font-weight: 700; padding: 3px 14px; margin-bottom: 10px; }

/* Pricing */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; background: var(--owl); -webkit-mask: url(/assets/icons/hand/check.webp) center/contain no-repeat; mask: url(/assets/icons/hand/check.webp) center/contain no-repeat; }
.plan .price { font-size: 15px; color: var(--muted); margin: 0; }
.plan.premium { position: relative; border-image-source: url(/assets/sk_card_gold.webp); }
/* Badge: the founder's painted primary button, small (the one gold spot in this section) */
.plan.premium .badge { display: inline-flex; gap: 6px; align-items: center; position: absolute; top: -16px; right: 22px;
  border: solid transparent; border-width: 6px 14px; padding: 0 2px;
  border-image: url(/assets/btn_primary.webp) 55 110 fill / 6px 14px / 0 stretch;
  color: var(--ink); font-size: 13px; font-weight: 700; }
.fine { margin-top: 18px; font-size: var(--fs-small); color: var(--muted); text-align: center; }

/* FAQ */
.faq { max-width: 52rem; margin: 0 auto; display: grid; gap: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 30px; height: 30px; transform: translateY(-50%);
  background: url(/assets/sk_ring.webp) center / contain no-repeat; }
.faq summary::before { content: ""; position: absolute; right: 27px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); background: var(--owl);
  -webkit-mask: url(/assets/icons/plus.svg) center/contain no-repeat; mask: url(/assets/icons/plus.svg) center/contain no-repeat; transition: transform 160ms; }
.faq details[open] summary::before { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .faq summary::before { transition: none; } }

/* Closing CTA */
.closing { text-align: center; }
.closing img { width: min(260px, 60vw); margin: 0 auto 8px; animation: fly 5s ease-in-out infinite; }
@keyframes fly { 50% { transform: translateY(-10px) rotate(-2deg); } }
.closing .cta-row { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .closing img { animation: none; } }

/* Footer: sits right under the night band, whose edge is the divider (no flat line) */
.site-footer { padding: 56px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 32px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { margin: 0 0 12px; color: var(--ink); font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: 8px 0 0; }

/* ---------- Legal pages ---------- */
/* Same paper, header and footer as the home pages (shared partials, scripts/site-partials.py).
   Long text in a ~65ch column; the title sits in a pencil frame, sections are split by pencil rules
   (like the app's Nest detail), the Vietnamese copy starts after a pencil rule with the sitting owl. */
.doc { max-width: calc(65ch + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 88px; }
.doc > h1, .doc > section > h1 {
  font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; line-height: 1.12; margin: 0 0 12px;
  padding: 22px 24px 20px; border: 0 solid transparent;
  border-image: url(/assets/sk_card_a.webp) 66 fill / 33px / 5px stretch; }
.doc h2 { font-size: 20px; margin: 34px 0 8px; padding-top: 26px; letter-spacing: 0;
  background: url(/assets/sk_line.webp) left top / 1600px 10px no-repeat; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--owl); }
.doc .meta { color: var(--muted); font-size: var(--fs-small); margin: 0 0 28px; padding: 0 4px; }
/* "Tiếng Việt" jump link as a pencil capsule */
.doc .meta a { display: inline-block; padding: 1px 12px; margin-left: 4px; font-weight: 700; text-decoration: none;
  border: 0 solid transparent; border-image: url(/assets/sk_pill.webp) 48 56 fill / 50% 28px / 3px stretch; }
.doc a { color: var(--owl-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:hover { color: var(--ink); }
.doc hr { border: 0; height: 120px; margin: 56px 0 40px;
  background: url(/assets/owl_sit.webp) center top / 80px auto no-repeat, url(/assets/sk_line.webp) center bottom / 1600px 10px no-repeat; }
.doc section { scroll-margin-top: 80px; }
/* Doc pages end on paper, not on the night band: the footer gets a pencil rule on top */
main:has(.doc) + .site-footer { background: url(/assets/sk_line.webp) center top / 1600px 10px no-repeat; }

/* Mobile: steps and nests as compact rows (art left, words right), like the app's lists */
@media (max-width: 679px) {
  .step { display: grid; grid-template-columns: 104px 1fr; column-gap: 16px; align-items: start; padding: 16px; }
  .step .art { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 4px; }
  .nests .card { display: grid; grid-template-columns: 132px 1fr; column-gap: 18px; align-items: center; text-align: left; padding: 18px; }
  .nests .nest-window { grid-row: span 3; width: 100%; margin: 0; }
  .nests .level { justify-self: start; margin-bottom: 6px; }
  .nests .card h3 { margin-bottom: 2px; }
}


/* ---------- Nest in a window (D-039): sky → nest → frame ----------
   Painted skies (sky_day / sky_night) cut larger than the hole, under the frame (no paper gap at the
   hand-drawn inner edge). The nest keeps the hole's size: hole is 17.5%–82.5% of the frame across, its
   bottom at 82.4%; in the 12%-inset opening that is left 7.2%, width 85.5%, bottom 7.4%. */
.nest-window { position: relative; aspect-ratio: 1; width: 86%; margin: 0 auto 12px; }
.nest-window .opening { position: absolute; inset: 12%; overflow: hidden; }
.nest-window .sky { position: absolute; inset: 0; background: url(/assets/sky_day.webp) center / cover; filter: saturate(.85); }
.nest-window.dusk .sky { filter: sepia(.75) saturate(1.7) hue-rotate(-22deg) brightness(.82); }
.nest-window.night .sky { background-image: url(/assets/sky_night.webp); }
.nest-window .nest { position: absolute; left: 7.2%; bottom: 7.4%; width: 85.5%; }
.nest-window .frame { position: absolute; inset: 0; width: 100%; pointer-events: none; }
.nests .nest-window img { margin: 0; }

/* ---------- Language menu with round flags + CJK tuning (D-041) ---------- */
.langs { display: flex; gap: 4px; margin-left: auto; font-size: 13px; font-weight: 600; }
.langs a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); padding: 4px 10px 4px 5px; border-radius: 999px; white-space: nowrap; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { color: var(--ink); background: rgb(74 58 44 / 9%); }
.langs img { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); display: block; }
@media (min-width: 860px) { .langs { margin-left: 0; } }
@media (max-width: 560px) { .langs a { font-size: 0; gap: 0; padding: 4px; } .langs img { width: 22px; height: 22px; } }
:lang(ja) em, :lang(ko) em { font-style: normal; }
:lang(ja) h1, :lang(ko) h1, :lang(ja) h2, :lang(ko) h2 { letter-spacing: -0.01em; line-height: 1.2; }

/* Sections that used to be split by a tinted band now share the paper: one section gap, not two */
#premium, #faq { padding-top: 0; }

/* ---------- Close every day (D-064): a few windows = days home, many letter stacks = days you call ----------
   No ages, no counts, no chart: just "few" next to "many", drawn with the app's own art. */
.near { padding-top: 0; }
.near-grid { display: grid; gap: 8px; align-items: center; }
@media (min-width: 900px) { .near-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } .near .section-head { margin-bottom: 0; } }
.near-art { display: grid; grid-template-columns: 2fr 3fr; gap: 18px; align-items: end; padding: 28px 22px 20px; }
.near-art .cap { display: block; margin-top: 10px; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.visits { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.visits .mini { position: relative; display: block; aspect-ratio: 1; }
.visits .mini:nth-child(1) { transform: rotate(-3deg); }
.visits .mini:nth-child(2) { transform: rotate(2deg) translateY(10%); }
.visits .mini:nth-child(3) { grid-column: 1 / 3; width: 50%; justify-self: center; transform: rotate(-1deg); }
.visits .mini .sky { position: absolute; left: 12%; top: 12%; width: 76%; height: 76%; object-fit: cover; filter: saturate(.85); }
.visits .mini .frame { position: absolute; inset: 0; width: 100%; }
.visits .cap { grid-column: 1 / 3; }
/* A heap of letter stacks, 4 + 3 + 2, with a contact shadow on the paper */
.pile { position: relative; display: block; aspect-ratio: 1.15; }
.pile img { position: absolute; width: 30%; }
.pile img:nth-child(1) { left: 0; bottom: 0; }
.pile img:nth-child(2) { left: 23%; bottom: 0; }
.pile img:nth-child(3) { left: 46%; bottom: 0; }
.pile img:nth-child(4) { left: 69%; bottom: 0; }
.pile img:nth-child(5) { left: 11%; bottom: 17%; }
.pile img:nth-child(6) { left: 34%; bottom: 17%; }
.pile img:nth-child(7) { left: 57%; bottom: 17%; }
.pile img:nth-child(8) { left: 22%; bottom: 34%; }
.pile img:nth-child(9) { left: 45%; bottom: 34%; }
.pile::before { content: ""; position: absolute; left: 2%; right: 2%; bottom: -1%; height: 9%;
  background: radial-gradient(closest-side, rgb(58 36 20 / 34%) 0%, rgb(58 36 20 / 14%) 55%, transparent 100%); }
