/* Hamdori landing. The page is the desktop the hamster lives on: the screen recordings' own plain wallpaper
   (#F3D9C2, #F1DECA as browsers draw the clips) is the background, so the clips show no frame; text sits in the app's brush pieces (bubble frame, pill
   buttons, seed). One look, no dark theme: the wallpaper is the product's setting. */
@font-face { font-family: "GowunDodum"; src: url(fonts/GowunDodum.woff2) format("woff2"); font-display: swap; }
:root {
  --wall: #f1deca;       /* the recordings' wallpaper (#f3d9c2) as browsers draw it in the clips (WebKit, Chromium) */
  --paper: #fdf6ee;      /* inside a bubble */
  --ink: #3b2419;        /* the app's ink */
  --soft: #7a5a48;       /* secondary text */
  --fur: #c8641f;        /* the hamster's orange: marks, focus */
  --link: #9a4a14;       /* the orange dark enough for small text (4.8:1 on the wall) */
  --pink: #f4c4be;       /* the app's pink pill */
  --font: "GowunDodum", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
:root:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }   /* Korean breaks between words */
:root:lang(ja) h1 { font-size: clamp(30px, 4.3vw, 48px); }
:root:lang(ja) { --font: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; }
* { box-sizing: border-box; }
html { background: var(--wall); }
body { margin: 0; background: var(--wall); color: var(--ink); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
.ph { display: inline-block; }   /* a phrase kept whole (build.mjs ph) */
li > .ph { vertical-align: top; }   /* a list line's bullet stays by its first line when a phrase wraps inside itself (QA 2026-10-22) */
.say .ph { white-space: nowrap; }   /* lines marked in build.mjs: ja, en */
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid var(--fur); outline-offset: 3px; border-radius: 6px; }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }

/* the menu bar: the brand at the left, languages and the price at the right, as on the desktop it lives on */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(241, 222, 202, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 36, 25, .08); }
.bar .wrap { display: flex; align-items: center; gap: 18px; height: 52px; font-size: 15px; }
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; }
.brand img { width: 28px; height: 28px; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 10px; }
.langs a { color: var(--soft); text-decoration: none; white-space: nowrap; }
.langs a[aria-current] { color: var(--ink); font-weight: 700; }

/* the app's pill buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px;
  font: inherit; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; background: none;
  border: 14px solid transparent; border-image: url(ui/pill-pink.png) 25 fill / 14px stretch; }
.pill.small { min-height: 34px; padding: 0 4px; border-width: 10px; border-image-width: 10px; font-size: 14px; }
.pill { transition: transform .15s ease-out; }
@media (hover: hover) { .pill:hover { transform: rotate(-2deg); } .pill:hover:active { transform: rotate(-2deg) scale(.97); } }
.pill:active { transform: scale(.97); }

/* the hero: the hamster's real corner of the desktop, its line in the app's own bubble */
.hero { padding: 56px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.2; margin: 0 0 18px; letter-spacing: -.01em; text-wrap: balance; }
.lede { font-size: 19px; color: var(--soft); margin: 0 0 28px; max-width: 34em; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.terms { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 14px 0 0; font-size: 14px; color: var(--soft); }
.terms li::before { content: ""; display: inline-block; width: 9px; height: 12px; margin-right: 6px; background: url(ui/seed.png) center / contain no-repeat; vertical-align: -1px; }
.scene { position: relative; }
.scene video { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.say { position: absolute; right: 46%; top: 30%; max-width: 54%; padding: 4px 8px; font-size: clamp(14px, 1.6vw, 18px); line-height: 1.4;
  border: 16px solid transparent; border-image: url(ui/bubble.png) 44 fill / 16px stretch; pointer-events: none; }
/* the page's one orchestrated moment: the hamster's line pops out toward it once the page is up */
.say { transform-origin: 100% 50%; animation: say-pop .45s cubic-bezier(.3, 1.6, .5, 1) .6s both; }
@keyframes say-pop { from { opacity: 0; transform: scale(.5); } }
.say::after { content: ""; position: absolute; right: -26px; top: 50%; width: 14px; height: 22px; translate: 0 -50%; background: url(ui/tail.png) center / contain no-repeat; scale: -1 1; }

section { padding: 56px 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; margin: 0 0 8px; text-wrap: balance; }
.sub { color: var(--soft); margin: 0 0 32px; max-width: 40em; }

/* what it does: each a real clip on the same wallpaper, its words under it */
.does { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
/* the tools: one per row, the clip wide beside its words, so the app's own bubbles stay readable */
.does.work { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.does.work figure { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.work-h { margin-top: 64px; margin-bottom: 28px; }
.does figure { margin: 0; }
/* the hamster sits in the lower part of its 4:3 clip: the empty wallpaper above it is cut off */
.does video { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 85%; cursor: pointer; }
.does.work video { aspect-ratio: 2 / 1; }
.scene video { cursor: pointer; }
/* the clips' edges fade into the page: a browser may draw the video's wallpaper a shade off the page's */
/* the fade would cut the focus ring off: a focused clip shows its edges instead */
video:focus-visible { -webkit-mask-image: none; mask-image: none; }
video { -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }
.does figcaption { margin-top: 10px; }
.does h3 { font-size: 20px; margin: 0 0 4px; }
.does p { margin: 0; color: var(--soft); }

/* the paper panels: the app's bubble frame, for what to trust and what it costs */
.paper { padding: 18px 22px; border: 22px solid transparent; border-image: url(ui/bubble.png) 44 fill / 22px stretch; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; list-style: none; padding: 0; margin: 0; }
.trust li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; }
.trust .mark { width: 64px; height: auto; margin-top: 2px; }
.trust b { display: block; font-size: 18px; }
.trust span { color: var(--soft); font-size: 15px; }
.price { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 40px; align-items: center; }
.tag { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pouch { width: 84px; height: auto; }
.amount { font-size: 64px; font-weight: 700; line-height: 1; }
.promo { display: inline-block; font-size: 14px; font-weight: 700; color: var(--link); }
.amount .promo { display: block; margin-top: 6px; line-height: 1.4; }
.amount small { display: block; font-size: 15px; font-weight: 400; color: var(--soft); margin-top: 8px; }
.price ul { margin: 0; padding-left: 1.1em; }
.price .buy { grid-column: 1 / -1; }
.fine { font-size: 14px; color: var(--soft); margin: 6px 0 0; }

/* Windows: the steps are a real sequence */
.win-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.shield { width: 120px; height: auto; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); font-weight: 700; font-size: 15px; }

details { padding: 14px 0; border-top: 1.5px dashed rgba(59, 36, 25, .22); }
details:last-child { border-bottom: 1.5px dashed rgba(59, 36, 25, .22); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--fur); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 8px 0 0; color: var(--soft); max-width: 46em; }
details[open] p { animation: open .25s ease-out; }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } }

/* the seed trails between sections: seeds dropped one by one as a trail comes into view (build.mjs script) */
.trail { padding: 8px 0; }
.trail img { display: block; width: min(560px, 80%); height: auto; margin: 0 auto; opacity: .85; }
.trail.wait img { clip-path: inset(0 100% 0 0); }
.trail.wait.seen img { clip-path: inset(0 0 0 0); transition: clip-path 1.4s steps(9, end); }

footer { padding: 40px 0 56px; font-size: 14px; color: var(--soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--soft); }

/* the download page */
.get { display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 24px 0; }
.get > div { display: grid; justify-items: start; gap: 4px; }
.get small { color: var(--soft); font-size: 14px; }
.soon { margin: 24px 0; }

/* the policy pages */
.doc { max-width: 720px; padding-block: 48px 64px; }
.doc h1 { font-size: 36px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc .updated { color: var(--soft); font-size: 14px; }

@media (max-width: 820px) {
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero .scene { order: -1; margin-inline: -16px; }
  .does, .trust, .does.work figure { grid-template-columns: minmax(0, 1fr); }
  .does.work figure { gap: 10px; }
  .trust li { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .trust .mark { width: 48px; }
  .win-head { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .shield { width: 72px; order: -1; }
  .price { grid-template-columns: minmax(0, 1fr); }
  .bar .wrap { gap: 10px; }
  .bar nav, .langs { gap: 8px; }
  .langs { font-size: 14px; }
}
@media (max-width: 400px) { .say { max-width: calc(54% - 16px); } }
@media (max-width: 380px) { .langs { gap: 6px; font-size: 12px; } .bar nav { gap: 6px; } .pouch { width: 52px; } .amount { font-size: 48px; } }
@media (max-width: 350px) { .brand span { display: none; } }   /* the icon alone: the languages and the price keep their room */
@media print { .trail.wait img { clip-path: none; } }
@media (prefers-reduced-motion: reduce) { .pill:hover, .pill:active { transform: none; } .say, details[open] p { animation: none; } }
