/* Sokumi — sokumi.pasahome.org. Written by hand; the pages come from tools/build.py.
   System fonts only (ui-rounded first), no external resources. */

:root {
  --ink: #3a2c40;
  --ink-2: #6b5a6e;
  --cream: #fff9f3;
  --white: #ffffff;
  --lilac: #f1eafb;
  --lilac-2: #e3d6f7;
  --peach: #ffeadf;
  --mint: #e2f4eb;
  --pink: #fde9ef;
  --sky: #e8f0fb;
  --accent: #6e4fb0;
  --accent-2: #8f6fd6;
  --link: #5e3fa6;
  --kicker: #a63f70;
  --night: #1e1b3a;
  --night-2: #2b2752;
  --night-ink: #f3eeff;
  --night-ink-2: #cdc4ec;
  --radius: 26px;
  --shadow: 0 14px 34px -16px rgba(74, 46, 110, .28), 0 2px 6px rgba(74, 46, 110, .06);
  --shadow-lg: 0 30px 60px -24px rgba(74, 46, 110, .38), 0 4px 12px rgba(74, 46, 110, .08);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:lang(ja) { --font: "Hiragino Maru Gothic ProN", ui-rounded, "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif; }
:lang(zh-Hans) { --font: ui-rounded, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:lang(ar) { --font: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
:lang(ja) :is(h1, h2, h3), :lang(zh-Hans) :is(h1, h2, h3), :lang(ar) :is(h1, h2, h3) { letter-spacing: 0; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--ink-2); text-align: center; margin-top: .7em; line-height: 1.4; }
bdi[dir="ltr"] { unicode-bidi: isolate; direction: ltr; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
.tiny { font-size: .85rem; color: var(--ink-2); }

/* ------------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 246, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgba(110, 79, 176, .1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top { background: var(--cream); }
}
.top-row { display: flex; align-items: center; gap: 10px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 3px 10px -3px rgba(74, 46, 110, .35); }
.nav { flex: 1; min-width: 0; }
.nav ul { display: flex; gap: 2px; justify-content: center; }
.nav a {
  display: block; padding: 7px 13px; border-radius: 999px; color: var(--ink); text-decoration: none;
  font-weight: 650; font-size: .95rem; white-space: nowrap; transition: background .15s ease;
}
.nav a:hover { background: rgba(110, 79, 176, .08); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--lilac-2); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.drop { position: relative; }
.drop > summary { list-style: none; cursor: pointer; }
.drop > summary::-webkit-details-marker { display: none; }
.lang > summary {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(110, 79, 176, .16); background: rgba(255, 255, 255, .7);
  font-weight: 750; font-size: .85rem; letter-spacing: .04em; color: var(--ink); white-space: nowrap;
}
.lang > summary:hover, .lang[open] > summary { background: var(--white); border-color: rgba(110, 79, 176, .3); }
.lang > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.lang[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60; min-width: 200px;
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 6px;
  border: 1px solid rgba(110, 79, 176, .08);
}
.lang-menu a { display: flex; justify-content: space-between; padding: 9px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang-menu a:hover { background: var(--lilac); }
.lang-menu a[aria-current="true"] { background: var(--lilac-2); }
.lang-menu a[aria-current="true"]::after { content: "✓"; color: var(--accent); }
.sheet > summary {
  display: none; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(110, 79, 176, .16); background: rgba(255, 255, 255, .7); color: var(--ink);
}
.sheet svg path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .2s ease, opacity .2s ease; transform-origin: 12px 12px; }
.sheet[open] .b1 { transform: translateY(5px) rotate(45deg); }
.sheet[open] .b2 { opacity: 0; }
.sheet[open] .b3 { transform: translateY(-5px) rotate(-45deg); }
.sheet-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60; width: min(320px, calc(100vw - 24px));
  background: var(--white); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 10px;
  border: 1px solid rgba(110, 79, 176, .08);
}
.sheet-panel ul { display: grid; gap: 2px; margin-bottom: 10px; }
.sheet-panel a:not(.btn-store) { display: block; padding: 12px 14px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.sheet-panel a:not(.btn-store):hover, .sheet-panel a[aria-current="page"] { background: var(--lilac); }
.sheet-panel .btn-store { width: 100%; justify-content: center; }

.btn-store {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 750; font-size: 1.05rem;
  padding: 14px 24px; border-radius: 999px; min-height: 48px;
  box-shadow: 0 12px 26px -10px rgba(110, 79, 176, .7), inset 0 -3px 0 rgba(0, 0, 0, .14);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-store:hover { color: #fff; background: #5f41a0; transform: translateY(-1px); }
.btn-store:active { transform: translateY(1px); box-shadow: 0 6px 14px -8px rgba(110, 79, 176, .7); }
.btn-store.small { white-space: nowrap; height: 38px; min-height: 0; padding: 0 15px; font-size: .88rem; box-shadow: 0 6px 14px -8px rgba(110, 79, 176, .8); }

@media (max-width: 939px) {
  .nav { display: none; }
  .sheet > summary { display: grid; }
}
@media (max-width: 359px) { .top-actions .btn-store.small { display: none; } }

/* ------------------------------------------------------------------ sections */
.sec { position: relative; padding-block: clamp(64px, 9vw, 112px); background: var(--bg, var(--cream)); }
.sec::before {
  /* a scalloped top edge, in the section's own colour */
  content: ""; position: absolute; inset-inline: 0; top: -17px; height: 18px; pointer-events: none;
  background: radial-gradient(circle at 20px 20px, var(--bg, var(--cream)) 18.5px, transparent 19.5px) 0 0 / 40px 20px repeat-x;
}
.sec-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.sec-head.left { text-align: start; margin-inline: 0; }
.kicker { display: inline-block; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--kicker); margin-bottom: .7em; }
:lang(ja) .kicker, :lang(zh-Hans) .kicker, :lang(ar) .kicker { letter-spacing: .04em; font-size: .92rem; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.22rem); color: var(--ink-2); }
.pill-note {
  width: fit-content; max-width: 100%; margin: clamp(28px, 4vw, 44px) auto 0; text-align: center;
  background: var(--white); padding: 12px 22px; border-radius: 28px; box-shadow: var(--shadow); font-weight: 650;
}

/* phones, Macs, iPads */
.phone .shot, .theme-card .shot, .pack .shot, .phone-wide .shot {
  width: 100%; border-radius: 13% / 6%; border: 5px solid var(--white); box-shadow: var(--shadow-lg); background: var(--white);
}
.phone { max-width: 300px; margin-inline: auto; width: 100%; }
.mac { max-width: 880px; margin-inline: auto; }
.macs .mac { max-width: none; }
.mac .shot { border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; }
.ipad .shot { border-radius: 6% / 4.5%; border: 6px solid var(--white); box-shadow: var(--shadow-lg); width: 100%; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(36px, 6vw, 80px) clamp(64px, 8vw, 100px);
  background:
    radial-gradient(60% 50% at 85% 20%, #f3e3fb 0, transparent 70%),
    radial-gradient(45% 45% at 10% 85%, #ffe6dc 0, transparent 70%),
    radial-gradient(40% 40% at 60% 100%, #def3ea 0, transparent 70%),
    var(--cream);
}
.hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
h1 { margin: 0 0 .4em; }
.h1-name {
  display: block; font-size: clamp(3.4rem, 2rem + 7vw, 6.4rem); line-height: 1.05; letter-spacing: -.035em;
  background: linear-gradient(100deg, #6e4fb0 0%, #a63f70 60%, #b4532a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.h1-tag { display: block; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.1rem); color: var(--ink); margin-top: .2em; }
.hero .lead { max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 26px 0 14px; }
.cta-row.center { justify-content: center; }
.devices { font-weight: 700; color: var(--ink-2); }
.note { font-size: .95rem; color: var(--ink-2); }
.hero-art { position: relative; }
.fan { position: relative; width: min(100%, 480px); aspect-ratio: 1 / 1.08; margin-inline: auto; }
.fan .shot { position: absolute; border-radius: 13% / 6%; border: 5px solid var(--white); box-shadow: var(--shadow-lg); }
.fan .s-mid { left: 50%; top: 0; width: 47%; transform: translateX(-50%); z-index: 2; }
.fan .s-left { left: 3%; top: 10%; width: 39%; transform: rotate(-8deg); }
.fan .s-right { right: 3%; top: 10%; width: 39%; transform: rotate(8deg); }
.float { position: absolute; width: clamp(40px, 7vw, 64px); filter: drop-shadow(0 6px 8px rgba(74, 46, 110, .18)); z-index: 3; }
.f0 { top: 2%; left: 2%; }
.f1 { top: 0; right: 14%; width: clamp(28px, 4.5vw, 42px); }
.f2 { bottom: 4%; left: 8%; }
.f3 { top: 44%; left: 0; width: clamp(26px, 4vw, 38px); }
.f4 { bottom: 2%; right: 6%; }
.f5 { top: 38%; right: 0; width: clamp(26px, 4vw, 38px); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(28px, 5vw, 56px); }
.chips li { background: var(--white); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .95rem; box-shadow: var(--shadow); }
.chips li::before { content: "✦"; color: var(--accent-2); margin-inline-end: 8px; }

/* ------------------------------------------------------------------ calculator */
.sec-calc { --bg: #fffdf9; }
.calc-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 300px; } }
.feats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feat { background: var(--white); border-radius: var(--radius); padding: 22px 22px 8px; box-shadow: var(--shadow); border: 1px solid rgba(110, 79, 176, .07); }
.feat:nth-child(6n+1) { background: linear-gradient(180deg, #fff, #faf6ff); }
.feat:nth-child(6n+2) { background: linear-gradient(180deg, #fff, #fff6f1); }
.feat:nth-child(6n+3) { background: linear-gradient(180deg, #fff, #f2fbf6); }
.feat:nth-child(6n+4) { background: linear-gradient(180deg, #fff, #fdf3f6); }
.feat:nth-child(6n+5) { background: linear-gradient(180deg, #fff, #f3f7fd); }
.feat:nth-child(6n+6) { background: linear-gradient(180deg, #fff, #fffbef); }
.feat h3 { margin-bottom: .35em; }
.feat p { color: var(--ink-2); font-size: 1rem; }
.feat .demo { font-size: 1.45rem; font-weight: 800; color: var(--accent); margin-bottom: .45em; font-variant-numeric: tabular-nums; min-height: 1.6em; }
.rad { display: inline-flex; align-items: flex-end; }
.rad-sign { font-weight: 700; }
.rad-body { border-top: 2.5px solid currentColor; padding: 0 3px; margin-inline-start: -1px; line-height: 1.15; }
.keys { display: inline-flex; gap: 6px; }
.keys span { font-size: 1rem; background: var(--lilac); border-radius: 10px; padding: 3px 10px; box-shadow: inset 0 -2px 0 var(--lilac-2); }
.calc-shots { display: grid; gap: 20px; }
.sec-calc .mac { margin-top: clamp(36px, 5vw, 64px); }

/* ------------------------------------------------------------------ Base Pack themes */
.sec-themes { --bg: var(--lilac); }
.theme-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 1000px) { .theme-grid { grid-template-columns: repeat(5, 1fr); } }
.theme-card { background: var(--white); border-radius: 30px; padding: 12px 12px 6px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.theme-card .phone { max-width: none; }
.theme-card .shot { border-width: 0; box-shadow: none; border-radius: 22px; }
.tc-body { text-align: center; padding: 0 6px; }
.tc-char { width: 66px; height: 66px; margin: -36px auto 4px; position: relative; background: var(--white); border-radius: 50%; padding: 7px; box-shadow: var(--shadow); }
.tc-body h3 { font-size: 1.1rem; margin-bottom: .3em; }
.tc-body p { font-size: .93rem; color: var(--ink-2); line-height: 1.5; }

/* ------------------------------------------------------------------ packs */
.sec-packs { --bg: #fbf7f0; }
.pack-list { display: grid; gap: clamp(28px, 4vw, 44px); }
.pack {
  display: grid; gap: clamp(20px, 4vw, 48px); align-items: center;
  border-radius: 36px; padding: clamp(18px, 3.5vw, 40px); box-shadow: var(--shadow);
  background: var(--pk, #fff);
}
@media (min-width: 760px) {
  .pack { grid-template-columns: minmax(200px, 260px) 1fr; }
  .pack.flip { grid-template-columns: 1fr minmax(200px, 260px); }
  .pack.flip .phone { order: 2; }
}
.pack .phone { max-width: 250px; }
.p-marbre { --pk: linear-gradient(135deg, #fbf8f3, #efe8dc); }
.p-washi { --pk: linear-gradient(135deg, #fdf6ef, #f6e3dc); }
.p-velours { --pk: linear-gradient(135deg, #eef6f0, #dcebe1); }
.p-noeldore { --pk: linear-gradient(135deg, #fdf1ef, #f6dcdc); }
.p-noelneige { --pk: linear-gradient(135deg, #f4f8fc, #e2ebf5); }
.pack h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.pack p { color: var(--ink-2); }
.swatches { display: flex; align-items: center; margin-bottom: 14px; }
.swatches .sw { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow); }
.swatches .sw + .sw { margin-inline-start: -16px; }
.swatches .sw-charm { width: 44px; height: auto; margin-inline-start: 14px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .15)); }
.pk-snd { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0 0 16px; }
.pk-snd div { background: rgba(255, 255, 255, .75); border-radius: 18px; padding: 10px 14px; }
.pk-snd dt { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--kicker); }
:lang(ja) .pk-snd dt, :lang(zh-Hans) .pk-snd dt, :lang(ar) .pk-snd dt { letter-spacing: 0; font-size: .85rem; }
.pk-snd dd { margin: 0; font-weight: 700; }
.player { background: rgba(255, 255, 255, .85); border-radius: 20px; padding: 10px 12px 8px; }
.pl-label { display: block; font-size: .88rem; font-weight: 700; margin: 0 4px 6px; }
audio { width: 100%; height: 40px; display: block; }
.phone-wide { max-width: 320px; margin: clamp(36px, 5vw, 60px) auto 0; }

/* ------------------------------------------------------------------ characters, charms */
.sec-chars { --bg: var(--mint); }
.char-grid { display: grid; gap: 22px 14px; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); margin-bottom: clamp(56px, 8vw, 96px); }
@media (min-width: 1000px) { .char-grid { grid-template-columns: repeat(5, 1fr); } }
.char-grid li { text-align: center; display: flex; flex-direction: column; align-items: center; }
.bubble { display: inline-grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); }
.bubble img { width: 72%; }
.bubble.big { width: 120px; height: 120px; }
.b-nuage { background: #efe6fb; } .b-patisserie { background: #fde4ec; } .b-animaux { background: #ddf3e6; }
.b-lofi { background: #2c2a52; } .b-herbier { background: #f1e7d3; } .b-marbre { background: #f3eee6; }
.b-washi { background: #f9e7df; } .b-velours { background: #d8eadf; } .b-noeldore { background: #f8dede; } .b-noelneige { background: #e3edf7; }
.c-name { font-weight: 800; margin-top: 10px; }
.c-what { font-size: .92rem; color: var(--ink-2); }
.charm-wrap { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (min-width: 900px) { .charm-wrap { grid-template-columns: 1.1fr 1fr; } }
.charm-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
@media (min-width: 900px) { .charm-grid { grid-template-columns: repeat(4, 1fr); } }
.charm-grid li { text-align: center; font-weight: 700; font-size: .95rem; }
.charm-tile { display: grid; place-items: center; aspect-ratio: 1; background: var(--white); border-radius: 26px; box-shadow: var(--shadow); margin-bottom: 8px; }
.charm-tile img { width: 58%; transform-origin: 50% 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo .phone { max-width: 260px; }

/* ------------------------------------------------------------------ make it yours */
.sec-yours { --bg: var(--peach); }
.yours-grid { display: grid; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (min-width: 960px) { .yours-grid { grid-template-columns: .9fr 1.4fr; } }
.blocks { display: grid; gap: 16px; }
.blocks li { background: var(--white); border-radius: var(--radius); padding: 20px 22px 6px; box-shadow: var(--shadow); }
.blocks li p { color: var(--ink-2); font-size: 1rem; }
.trio { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.trio .phone { max-width: 260px; }

/* ------------------------------------------------------------------ sounds (night) */
.sec-sounds { --bg: var(--night); color: var(--night-ink); color-scheme: dark; }
.sec-sounds .lead, .sec-sounds p { color: var(--night-ink-2); }
.sec-sounds .kicker { color: #f6b3d0; }
.sec-sounds h2, .sec-sounds h3 { color: var(--night-ink); }
.sec-sounds a { color: #d7c6ff; }
.sec-sounds a:hover { color: #fff; }
.sec-sounds :focus-visible { outline-color: #d7c6ff; }
.sec-sounds .tiny, .sec-sounds figcaption { color: var(--night-ink-2); }
.stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .7; overflow: hidden;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 47% 12%, #ffe9a8 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 66% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 82% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 90% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 6% 82%, #ffe9a8 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 56% 88%, #fff 50%, transparent 51%),
    radial-gradient(60% 40% at 80% 0%, rgba(143, 111, 214, .28), transparent 70%);
}
.sec-sounds .wrap { position: relative; }
.sounds-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .sounds-grid { grid-template-columns: 1fr 1fr; } }
.snd-list { display: grid; gap: 12px; margin: 18px 0 12px; }
.snd { background: var(--night-2); border-radius: 20px; padding: 12px 14px 10px; display: grid; gap: 2px; border: 1px solid rgba(255, 255, 255, .06); }
.snd-name { font-weight: 800; color: var(--night-ink); }
.snd-d { font-size: .92rem; color: var(--night-ink-2); margin-bottom: 6px; }
.bin-row { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 820px) { .bin-row { grid-template-columns: 280px 1fr; } }
.bin-row .phone { max-width: 280px; }
.sec-sounds .phone .shot { border-color: #3a3566; }
.bin { background: var(--night-2); border-radius: 30px; padding: clamp(20px, 3vw, 34px); }
.credits { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 18px; padding-top: 16px; font-size: .92rem; }
.credits h3 { font-size: 1rem; }

/* ------------------------------------------------------------------ roll, messages */
.sec-roll { --bg: var(--cream); }
.roll-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .roll-grid { grid-template-columns: 1fr 1fr; } }
.roll-grid .phone { margin-inline: 0; max-width: 280px; }
@media (max-width: 899px) { .roll-grid .phone { margin-inline: auto; } }
.msg-card { background: linear-gradient(160deg, #eef5ff, #f6edfd); border-radius: 36px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.msg-card p:not(.kicker) { color: var(--ink-2); }
.msg-art { display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--accent-2); }
.msg-art .bubble { width: 92px; height: 92px; flex: none; }
.msg-path { width: min(200px, 40%); height: auto; margin-bottom: 30px; }
.sec-roll .mac { margin-top: clamp(40px, 6vw, 72px); }

/* ------------------------------------------------------------------ devices */
.sec-devices { --bg: var(--sky); }
.ipads { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: clamp(28px, 4vw, 48px); }
.macs { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

/* ------------------------------------------------------------------ price, privacy, cta */
.sec-price { --bg: var(--pink); }
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); align-items: stretch; }
.pr { background: var(--white); border-radius: 32px; padding: 28px 26px 12px; box-shadow: var(--shadow); position: relative; }
.pr-base { background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(135deg, #b9a6e0, #f4a6c0, #ffc9a6) border-box; border: 3px solid transparent; }
.pr p { color: var(--ink-2); font-size: 1rem; }
.pr-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: var(--lilac); margin-bottom: 14px; }
.pr-icon img { width: 70%; }
.sec-priv { --bg: var(--mint); }
.priv { max-width: 760px; text-align: center; }
.priv p { color: var(--ink-2); font-size: 1.1rem; }
.link-arrow { font-weight: 750; }
.link-arrow::after { content: " →"; }
[dir="rtl"] .link-arrow::after { content: " ←"; }
.sec-cta { --bg: var(--lilac); text-align: center; }
.cta { max-width: 720px; }
.cta-icon { width: 104px; margin: 0 auto 18px; border-radius: 26px; box-shadow: var(--shadow-lg); }
.cta p { color: var(--ink-2); font-size: 1.1rem; }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--night); color: var(--night-ink-2); padding: 44px 0 36px; font-size: .95rem; position: relative; }
.foot::before { content: ""; position: absolute; inset-inline: 0; top: -17px; height: 18px; background: radial-gradient(circle at 20px 20px, var(--night) 18.5px, transparent 19.5px) 0 0 / 40px 20px repeat-x; }
.foot .wrap { display: grid; gap: 10px; justify-items: center; text-align: center; }
.foot .brand { color: var(--night-ink); }
.foot a { color: #d7c6ff; }
.foot a:hover { color: #fff; }
.foot :focus-visible { outline-color: #d7c6ff; }
.foot p { margin: 0; }
.foot .tiny { color: var(--night-ink-2); }

/* ------------------------------------------------------------------ support, privacy */
.sub-hero { text-align: center; padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(50% 60% at 50% 0%, #f1e6fb, transparent 70%); }
.sub-hero .bubble { margin-bottom: 18px; }
.sub-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); }
.sub-hero .lead { max-width: 640px; margin-inline: auto; }
.sub-body { max-width: 780px; padding-bottom: clamp(56px, 8vw, 96px); display: grid; gap: 18px; }
.sub-body h2 { font-size: 1.5rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 24px 26px 10px; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); }
.contact { text-align: center; background: linear-gradient(160deg, #fff, #f6effd); }
.btn-mail { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 750; padding: 12px 22px; border-radius: 999px; overflow-wrap: anywhere; }
.btn-mail:hover { color: #fff; background: #5f41a0; }
.qa { background: var(--white); border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 12px; }
.qa summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 750; display: flex; gap: 12px; align-items: center; justify-content: space-between; border-radius: 22px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lilac); color: var(--accent); font-size: 1.25rem; font-weight: 800; line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa p { padding: 0 22px 8px; color: var(--ink-2); }
.updated { color: var(--ink-2); text-align: center; margin-top: 8px; }

/* ------------------------------------------------------------------ motion, only when welcome */
@media (prefers-reduced-motion: no-preference) {
  .float { animation: bob 7s ease-in-out infinite alternate; }
  .f1, .f3, .f5 { animation-name: sway; transform-origin: 50% 0; animation-duration: 4.5s; }
  .f2 { animation-delay: -2s; } .f4 { animation-delay: -4s; } .f3 { animation-delay: -1.5s; } .f5 { animation-delay: -3s; }
  .charm-grid li:nth-child(4n+1) .charm-tile img, .charm-grid li:hover .charm-tile img { animation: sway 4s ease-in-out infinite alternate; }
  .charm-grid li:nth-child(4n+3) .charm-tile img { animation: sway 5s ease-in-out -2s infinite alternate; }
  .tc-char, .char-grid .bubble img { animation: bob 6s ease-in-out infinite alternate; }
  .char-grid li:nth-child(2n) .bubble img { animation-delay: -3s; }
  .theme-card, .feat, .pr { transition: transform .25s ease, box-shadow .25s ease; }
  .theme-card:hover, .feat:hover, .pr:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

@media print {
  .top, .float, audio, .stars { display: none !important; }
  .sec-sounds, .foot { background: #fff; color: #000; }
}

/* ------------------------------------------------------------------ guide */
.guide-grid { display: grid; gap: clamp(20px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 96px); align-items: start; }
@media (min-width: 1000px) { .guide-grid { grid-template-columns: 250px 1fr; } }
.toc { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px 14px; }
@media (min-width: 1000px) { .toc { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; } }
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--kicker); }
:lang(ja) .toc h2, :lang(zh-Hans) .toc h2, :lang(ar) .toc h2 { letter-spacing: 0; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
@media (min-width: 600px) and (max-width: 999px) { .toc ol { grid-template-columns: 1fr 1fr; } }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: .95rem; line-height: 1.35; }
.toc a::before { content: counter(toc); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lilac); color: var(--accent); font-size: .78rem; font-weight: 800; }
.toc a:hover { background: var(--lilac); }
.g-body { display: grid; gap: 22px; min-width: 0; }
.g-sec { background: var(--white); border-radius: 30px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.g-text { min-width: 0; overflow-wrap: break-word; }
@media (min-width: 760px) { .g-sec.has-figs { grid-template-columns: minmax(0, 1fr) minmax(180px, 230px); } }
.g-sec h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); display: flex; align-items: center; gap: 12px; }
.g-num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, #b9a6e0, #f4a6c0); color: #fff; font-size: 1rem; }
.g-text p { color: var(--ink-2); }
.g-list { display: grid; gap: 10px; margin-bottom: 1em; }
.g-list li { position: relative; padding-inline-start: 26px; color: var(--ink); }
.g-list li::before { content: ""; position: absolute; inset-inline-start: 6px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.g-ex { background: var(--lilac); border-radius: 16px; padding: 12px 16px; color: var(--ink) !important; font-weight: 650; }
.g-figs { display: grid; gap: 18px; }
.g-figs .phone { max-width: 230px; }
.table-wrap { overflow-x: auto; }
.keys-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.keys-table th, .keys-table td { text-align: start; padding: 8px 12px; vertical-align: middle; }
.keys-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--kicker); }
.keys-table tbody th { background: var(--lilac); border-start-start-radius: 14px; border-end-start-radius: 14px; font-weight: 600; }
.keys-table tbody td { background: #faf7fe; border-start-end-radius: 14px; border-end-end-radius: 14px; color: var(--ink-2); }
kbd { display: inline-block; min-width: 1.9em; text-align: center; font: 700 .9rem/1.6 var(--font); background: var(--white); border-radius: 8px; padding: 1px 7px; margin: 2px 1px; box-shadow: inset 0 -2px 0 rgba(110, 79, 176, .22), 0 1px 2px rgba(74, 46, 110, .12); color: var(--ink); }
