/* Jeolmi / 절미 / チョルミ — site styles.
   Paper, ink and one grape accent, taken from the app's DesignSystem/Theme.swift.
   Light only, like the app (UIUserInterfaceStyle: Light). No inline styles anywhere (strict CSP). */

:root {
  color-scheme: light;
  /* Theme.Paper */
  --paper: #F6F1E7;
  --paper-deep: #EEE6D6;
  --cream: #FFF8EE;
  --card: #FFFBF5;
  --ink: #2B2B2B;
  --ink-soft: #5C5650;
  --line: #5A3E2B;               /* marker outline brown */
  --line-12: rgba(90, 62, 43, .12);
  --line-20: rgba(90, 62, 43, .20);
  --grape: #C9B6FF;              /* Jeolmi's own colour */
  --grape-deep: #8F6BFF;
  --grape-ink: #6445D6;          /* 5.9:1 on cream: the only purple used for text */
  --grape-wash: #EFE8FF;
  --butter: #FFE58A;
  --salmon: #FFB4A8;
  --sky: #BFE3FF;
  --mint: #CFF3E0;
  --wood: #F1C898;
  --wood-edge: #E3B47C;
  --wall: #F8F0E3;
  /* Theme.LockIn (the dark "lock-in" share template) */
  --night: #141018;
  --night-card: #1F1926;
  --night-ink: #F4EEFF;
  --night-soft: #BDB3CF;
  --lavender: #C7B3FF;
  --lilac: #E9DDFF;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow-soft: 0 1px 0 rgba(90, 62, 43, .05), 0 22px 48px -28px rgba(90, 62, 43, .35);
  --shadow-lift: 0 2px 0 rgba(90, 62, 43, .05), 0 30px 60px -30px rgba(90, 62, 43, .45);

  --font-display: "Jua", "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Hiragino Sans", system-ui, sans-serif;
  --font-display-ja: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --font-body-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Pretendard Variable", sans-serif;
  --font-num: "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
strong, b { font-weight: 700; }

/* ---------- language switching: only the active language renders ---------- */
html[lang="ko"] [data-lang]:not([data-lang="ko"]),
html[lang="en"] [data-lang]:not([data-lang="en"]),
html[lang="ja"] [data-lang]:not([data-lang="ja"]) { display: none !important; }

/* ---------- per-language typesetting ---------- */
/* Korean: break only between words (keep-all) with the overflow safety pin, body tracking 0. */
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; line-height: 1.75; }
/* Japanese: strict kinsoku, normal breaking, a phrase-aware break where the browser supports it. */
html:lang(ja) body { font-family: var(--font-body-ja); line-break: strict; word-break: normal; overflow-wrap: break-word; line-height: 1.85; font-size: 16px; }
@supports (word-break: auto-phrase) { html:lang(ja) .display, html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; } }
html:lang(en) body { line-height: 1.62; }
/* .p = one phrase that never breaks inside (used in Japanese and a few Korean headlines) */
.p { display: inline-block; }

.display, h1, h2, h3, .h3 {
  font-family: var(--font-display);
  font-weight: 400;              /* Jua ships one weight: never synthesize bold */
  color: var(--ink);
  text-wrap: balance;
}
html:lang(ja) .display, html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(ja) .h3 {
  font-family: var(--font-display-ja);
  font-weight: 700;
}
p { text-wrap: pretty; }

/* ---------- grain (fixed, never on scrolling layers) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .17 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }
.section { padding-block: 84px; position: relative; }
@media (min-width: 900px) { .section { padding-block: 128px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none;
  transition: top .3s var(--ease);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--grape-ink); outline-offset: 3px; border-radius: 10px; }
.night :focus-visible { outline-color: var(--lavender); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- eyebrow, headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 9px;
  border-radius: 999px;
  background: var(--grape-wash);
  color: var(--grape-ink);
  font-size: 13px; font-weight: 700; line-height: 1.4;
  letter-spacing: .02em;
}
html:lang(en) .eyebrow { letter-spacing: .06em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grape-deep); flex: none; }
.night .eyebrow { background: rgba(199, 179, 255, .14); color: var(--lilac); }
.night .eyebrow .dot { background: var(--lavender); }

.h2 { font-size: clamp(30px, 5.4vw + 8px, 52px); line-height: 1.22; letter-spacing: -.01em; margin-top: 18px; }
html:lang(en) .h2 { line-height: 1.1; letter-spacing: -.015em; }
html:lang(ja) .h2 { font-size: clamp(26px, 4.2vw + 8px, 44px); line-height: 1.35; letter-spacing: .01em; }
.lede { color: var(--ink-soft); font-size: clamp(16.5px, .5vw + 15px, 19px); max-width: 38em; margin-top: 18px; }
html:lang(ja) .lede { max-width: 34em; }
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* ---------- navigation (floating pill) ---------- */
.nav-shell { position: sticky; top: 0; z-index: 40; padding: 10px var(--gutter) 0; }
.nav {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex; align-items: center; gap: 10px;
  height: 58px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  background: rgba(255, 251, 245, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border: 1px solid var(--line-12);
  box-shadow: 0 10px 30px -20px rgba(90, 62, 43, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: none; border-radius: 999px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-12); }
.brand .word { font-family: var(--font-display); font-size: 21px; line-height: 1; letter-spacing: .01em; padding-top: 2px; }
html:lang(ja) .brand .word { font-family: var(--font-display-ja); font-weight: 700; font-size: 18px; }
.nav-links { display: none; gap: 4px; margin-left: 14px; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); padding: 8px 12px; border-radius: 999px; transition: color .3s var(--ease), background-color .3s var(--ease); }
.nav-links a:hover { color: var(--ink); background: rgba(90, 62, 43, .06); }
.nav-sp { flex: 1; }
.langs {
  display: inline-flex; gap: 2px; padding: 3px;
  border-radius: 999px;
  background: rgba(90, 62, 43, .07);
}
.langs button {
  font-size: 13px; font-weight: 700; line-height: 1;
  min-height: 36px; min-width: 40px; padding: 0 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.langs button:hover { color: var(--ink); }
.langs button.on { background: var(--ink); color: var(--cream); }
.nav .nav-store { display: none; }
@media (min-width: 900px) { .nav-links { display: inline-flex; } }
@media (min-width: 1180px) { .nav .nav-store { display: inline-flex; } }
@media (max-width: 380px) {
  .brand .word { font-size: 19px; }
  .langs button { padding: 0 8px; min-width: 36px; }
}

/* ---------- App Store button (text button, no Apple badge art) ---------- */
.btn-store {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 60px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700; font-size: 16.5px; line-height: 1.25;
  box-shadow: 0 18px 36px -18px rgba(43, 43, 43, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .5s var(--ease);
}
.btn-store .ic {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grape);
  color: var(--ink);
  transition: transform .5s var(--ease);
}
.btn-store .ic svg { width: 20px; height: 20px; }
.btn-store:hover { transform: scale(1.02); box-shadow: 0 24px 44px -20px rgba(43, 43, 43, .7), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-store:hover .ic { transform: translateY(2px); }
.btn-store:active { transform: scale(.98); }
.btn-store.sm { min-height: 44px; font-size: 14px; padding: 5px 5px 5px 16px; gap: 10px; box-shadow: none; }
.btn-store.sm .ic { width: 34px; height: 34px; }
.btn-store.sm .ic svg { width: 16px; height: 16px; }
.night .btn-store { background: var(--cream); color: var(--ink); }

/* Pre-launch: App Store buttons read "coming soon" with a clock (lang.js LAUNCHED = false adds html.soon). */
.btn-store .soon, .btn-store .i-soon { display: none; }
html.soon .btn-store .live, html.soon .btn-store .i-live { display: none; }
html.soon .btn-store .soon { display: inline; }
html.soon .btn-store .i-soon { display: block; }
html.soon .btn-store { cursor: default; }
html.soon .btn-store:hover, html.soon .btn-store:active { transform: none; }
html.soon .btn-store:hover .ic { transform: none; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line-20);
  text-decoration: none; font-weight: 700; font-size: 15px;
  color: var(--ink);
  background: rgba(255, 251, 245, .6);
  transition: transform .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
}
.btn-ghost:hover { transform: scale(1.02); background: var(--card); border-color: rgba(90, 62, 43, .35); }
.btn-ghost:active { transform: scale(.98); }
.btn-ghost svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ---------- the seal, composed like SealView (prop centre at 58% / 66%, 0.42 of body width, -6°) ---------- */
.seal { position: relative; width: 100%; aspect-ratio: 900 / 396; }
.seal .body { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal .prop {
  position: absolute;
  left: 37%; top: 18.27%;
  width: 42%; height: 95.45%;
  object-fit: contain;
  transform: rotate(-6deg);
  transform-origin: 50% 50%;
}
.seal .prop.swap { animation: prop-pop .55s var(--ease); }
@keyframes prop-pop { from { opacity: 0; transform: rotate(-14deg) scale(.82) translateY(6%); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }

/* speech bubble, like the app's (white, marker outline, lowercase seal line) */
.bubble {
  position: relative;
  display: inline-block;
  max-width: 280px;
  padding: 10px 16px 9px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid var(--line);
  font-family: var(--font-display);
  font-size: 16px; line-height: 1.4;
  color: var(--ink);
  box-shadow: 0 8px 18px -12px rgba(90, 62, 43, .45);
}
html:lang(ja) .bubble { font-family: var(--font-display-ja); font-weight: 700; font-size: 14.5px; }
.bubble::after {
  content: "";
  position: absolute; left: 30px; bottom: -9px;
  width: 16px; height: 16px;
  background: #fff;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  transform: rotate(45deg) skew(8deg, 8deg);
  border-bottom-right-radius: 3px;
}

/* ---------- grapes (solid = timer, dotted = task, half = carried over) ---------- */
.grapes { display: inline-flex; align-items: center; gap: 6px; }
.grape {
  --c: var(--grape);
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  background: var(--c);
  border: 2.5px solid var(--line);
}
.grape.sky { --c: var(--sky); }
.grape.mint { --c: var(--mint); }
.grape.salmon { --c: var(--salmon); }
.grape.butter { --c: var(--butter); }
.grape.dotted { background: color-mix(in srgb, var(--c) 45%, transparent); border-style: dotted; }
.grape.half { background: linear-gradient(to top, var(--c) 50%, transparent 50%); }
.grape.empty { background: transparent; border-color: rgba(90, 62, 43, .3); }
.grapes.lg .grape { width: 30px; height: 30px; border-width: 3px; }
.grapes.sm .grape { width: 12px; height: 12px; border-width: 1.8px; }

/* ---------- hero ---------- */
.hero { padding-top: 36px; padding-bottom: 72px; }
.hero-grid { display: grid; gap: 28px; grid-template-areas: "head" "art" "body"; }
.hero-head { grid-area: head; }
.hero-art { grid-area: art; }
.hero-body { grid-area: body; }
.hero h1 {
  font-size: clamp(38px, 8.6vw + 4px, 76px);
  line-height: 1.2;
  letter-spacing: -.012em;
  margin-top: 18px;
}
html:lang(en) .hero h1 { line-height: 1.06; letter-spacing: -.02em; font-size: clamp(38px, 7.4vw + 4px, 64px); }
html:lang(ja) .hero h1 { font-size: clamp(30px, 5.2vw + 4px, 52px); line-height: 1.34; letter-spacing: .01em; }
.hero h1 .ink { color: var(--grape-ink); }
.hero .lede { margin-top: 0; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.hero-meta { color: var(--ink-soft); font-size: 14px; font-weight: 600; margin-top: 16px; }

@media (min-width: 960px) {
  .hero { padding-top: 64px; padding-bottom: 110px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    grid-template-areas: "head art" "body art";
    grid-template-rows: auto 1fr;
    column-gap: 56px; row-gap: 26px;
    align-items: start;
  }
  .hero-head { align-self: end; }
}

/* the desk card in the hero */
.desk {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--card);
  padding: 8px;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line-12);
}
.desk-inner {
  position: relative;
  border-radius: calc(var(--r-xl) - 8px);
  overflow: hidden;
  aspect-ratio: 1 / .92;
  background: var(--wall);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8);
}
.desk-inner::after { /* desk top */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background:
    repeating-linear-gradient(90deg, rgba(160, 104, 52, .07) 0 2px, transparent 2px 38px),
    linear-gradient(180deg, var(--wood) 0%, #EFC08C 100%);
  border-top: 3px solid var(--wood-edge);
}
.desk .seal { position: absolute; z-index: 2; width: 74%; left: 12%; bottom: 17%; }
.desk .bubble { position: absolute; z-index: 3; right: 7%; top: 30%; white-space: nowrap; max-width: none; }
.desk .bubble::after { left: 26px; }
.task-note {
  position: absolute; z-index: 3; left: 6%; top: 8%;
  display: flex; align-items: center; gap: 10px;
  max-width: 64%;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--cream);
  border: 1.5px solid var(--line-20);
  box-shadow: 0 10px 24px -16px rgba(90, 62, 43, .55);
  transform: rotate(-3deg);
}
.task-note .tape {
  position: absolute; top: -14px; left: 50%;
  width: 92px; height: auto;
  transform: translateX(-50%) rotate(4deg);
  opacity: .92;
}
.task-note .check { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid rgba(90, 62, 43, .45); }
.task-note .tn { display: flex; flex-direction: column; min-width: 0; }
.task-note .tn-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.task-note .tn-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-top: 2px; }
.task-note .tn-sub i { width: 4px; height: 11px; border-radius: 2px; background: #7DB7E8; display: inline-block; }
.task-note .tn-prop { width: 34px; height: 34px; object-fit: contain; flex: none; margin-left: 2px; }
.bunch-chip {
  position: absolute; z-index: 4; right: -6px; bottom: -18px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line-12);
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
}
.bunch-chip .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 420px) {
  .task-note { max-width: 74%; padding: 10px 12px; }
  .task-note .tn-title { font-size: 14px; }
  .desk .bubble { font-size: 14.5px; top: 29%; }
  .bunch-chip { right: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .desk .seal { animation: breathe 5.5s var(--ease) infinite; transform-origin: 50% 100%; }
}
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.015); } }

/* ---------- how it works: three taped paper notes ---------- */
.steps { display: grid; gap: 30px; margin-top: 56px; }
.step {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line-12);
  box-shadow: var(--shadow-soft);
  padding: 34px 26px 28px;
}
.step:nth-child(1) { transform: rotate(-1.2deg); }
.step:nth-child(2) { transform: rotate(.9deg); }
.step:nth-child(3) { transform: rotate(-.6deg); }
.step > .tape { position: absolute; top: -15px; left: 28px; width: 104px; transform: rotate(-5deg); }
.step:nth-child(2) > .tape { left: auto; right: 34px; transform: rotate(6deg); }
.step-num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grape);
  font-family: var(--font-display);
  font-size: 20px; line-height: 1; padding-top: 2px;
  border: 2px solid var(--line);
}
.step h3 { font-size: clamp(22px, 1.6vw + 14px, 27px); line-height: 1.3; margin-top: 16px; }
html:lang(en) .step h3 { line-height: 1.15; }
.step p { color: var(--ink-soft); margin-top: 10px; font-size: 15.5px; }
.step-visual {
  margin-top: 22px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px dashed var(--line-20);
  min-height: 132px;
  display: grid; place-items: center;
  padding: 18px;
}
.type-field {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 12px 12px 12px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line-20);
  font-weight: 600; font-size: 15px;
}
.type-field .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-field .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--grape-ink); vertical-align: -3px; margin-left: 1px; }
@media (prefers-reduced-motion: no-preference) { .type-field .caret { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.type-field img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.step-visual .seal { width: 88%; max-width: 250px; margin-bottom: 8%; }
.step-visual .grape-stack { display: grid; justify-items: center; gap: 10px; }
.step-visual .grape-label { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-soft); font-size: 14px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px; align-items: start; }
  .step:nth-child(1) { grid-column: 1 / span 4; }
  .step:nth-child(2) { grid-column: 5 / span 4; margin-top: 56px; }
  .step:nth-child(3) { grid-column: 9 / span 4; margin-top: 18px; }
}

/* ---------- mirror demo ---------- */
.mirror-grid { display: grid; gap: 40px; margin-top: 48px; }
.stage {
  border-radius: var(--r-xl);
  background: var(--card);
  padding: 8px;
  border: 1px solid var(--line-12);
  box-shadow: var(--shadow-lift);
}
.stage-inner {
  border-radius: calc(var(--r-xl) - 8px);
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(201, 182, 255, .28), transparent 60%),
    var(--paper);
  padding: 22px 18px 26px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8);
}
.stage .type-field { max-width: 460px; margin-inline: auto; }
.stage-seal { position: relative; max-width: 480px; margin: 44px auto 0; }
.stage-seal .bubble { position: absolute; z-index: 2; left: 2%; top: -34px; max-width: 78%; }
.stage-seal .seal { margin-top: 28px; }
.stage-floor { height: 14px; margin: 26px auto 0; max-width: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 62, 43, .16), transparent); }
.chips-label { text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.chip {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line-20);
  font-weight: 600; font-size: 14.5px;
  color: var(--ink);
  transition: transform .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: rgba(90, 62, 43, .35); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.stage-note { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 16px; }
.mirror-side { display: grid; gap: 18px; align-content: start; }
.mirror-points { display: grid; gap: 14px; margin-top: 8px; }
.mirror-points li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--ink-soft); }
.mirror-points li b { color: var(--ink); }
.mirror-points .ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--grape-wash); color: var(--grape-ink); margin-top: 1px; }
.mirror-points .ico svg { width: 16px; height: 16px; }
.mirror-side figure { width: min(100%, 300px); margin-inline: auto; }
@media (min-width: 960px) {
  .mirror-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .mirror-grid .stage { position: sticky; top: 100px; }
  .mirror-side figure { width: min(100%, 320px); }
}

/* ---------- screenshots (real captures, rounded, no fake device frame) ---------- */
.shot {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-12);
  box-shadow: 0 30px 60px -30px rgba(90, 62, 43, .5), 0 0 0 6px rgba(255, 251, 245, .9);
}
.shot img { width: 100%; aspect-ratio: 660 / 1434; object-fit: cover; }
.shot-cap { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.night .shot { border-color: rgba(255, 255, 255, .08); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 255, 255, .06); }
.night .shot-cap { color: var(--night-soft); }
/* peek: only the top of a capture, fading into the card */
.peek { position: relative; overflow: hidden; border-radius: 26px 26px 0 0; }
.peek img { width: 100%; aspect-ratio: 660 / 1434; object-fit: cover; object-position: top; }
.tile .peek { max-height: 360px; }
.tile.big .peek { max-height: 440px; }
@media (min-width: 1040px) { .tile.big .peek { max-height: 560px; } .tile .peek { max-height: 330px; } }
.peek::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(to bottom, rgba(255, 251, 245, 0), var(--card)); pointer-events: none; }

/* ---------- lock screen (night) ---------- */
.night { background: var(--night); color: var(--night-ink); overflow: hidden; }
.night::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 70%;
  background: radial-gradient(60% 60% at 30% 40%, rgba(199, 179, 255, .16), transparent 70%), radial-gradient(50% 50% at 85% 20%, rgba(255, 62, 154, .06), transparent 70%);
  pointer-events: none;
}
.night .h2 { color: var(--night-ink); }
.night .lede { color: var(--night-soft); }
.lock-grid { position: relative; display: grid; gap: 48px; margin-top: 8px; }
.lock-copy .facts { display: grid; gap: 16px; margin-top: 30px; }
.lock-copy .facts li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--night-soft); font-size: 15.5px; }
.lock-copy .facts li b { color: var(--night-ink); font-weight: 700; }
.lock-copy .facts .ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(199, 179, 255, .14); color: var(--lilac); }
.lock-copy .facts .ico svg { width: 16px; height: 16px; }
.lock-visual { position: relative; display: grid; gap: 26px; justify-items: center; }
.lockscreen {
  position: relative;
  width: 100%; max-width: 420px;
  padding: 18px 14px 26px;
  border-radius: 40px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(199, 179, 255, .22), transparent 70%),
    linear-gradient(180deg, #2A2233 0%, #1A1520 70%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.island {
  margin: 0 auto;
  width: 190px; height: 38px;
  border-radius: 999px;
  background: #050407;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05);
}
.island img { width: 26px; height: 26px; border-radius: 50%; }
.island .t { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; color: #F4EEFF; letter-spacing: .01em; }
.lock-time { text-align: center; margin-top: 18px; color: rgba(244, 238, 255, .92); }
.lock-time .d { font-size: 15px; font-weight: 600; opacity: .85; }
.lock-time .c { font-family: var(--font-num); font-weight: 600; font-size: 76px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.la {
  margin-top: 26px;
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8);
}
.la-top { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.la-seal { width: 96px; }
.la-seal .seal { width: 100%; }
.la-title { font-family: var(--font-display); font-size: 17px; line-height: 1.25; color: var(--ink); }
html:lang(ja) .la-title { font-family: var(--font-display-ja); font-weight: 700; font-size: 15.5px; }
.la-sub { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); margin-top: 3px; }
.la-sub i { width: 4px; height: 12px; border-radius: 1.5px; background: #7DB7E8; display: inline-block; }
.la-timer { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 30px; line-height: 1.1; margin-top: 4px; letter-spacing: -.01em; }
.la-progress { height: 4px; border-radius: 3px; background: rgba(90, 62, 43, .14); margin-top: 12px; overflow: hidden; }
.la-progress span { display: block; width: 26%; height: 100%; background: #7DB7E8; border-radius: 3px; }
.la-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.la-row .line { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.la-row .grapes { gap: 3px; }
.la-row .grape { width: 11px; height: 11px; border-width: 1.6px; }
.la-btns { display: flex; gap: 8px; margin-top: 12px; }
.la-btns > span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--cream);
  border: 1.5px solid rgba(90, 62, 43, .25);
  font-family: var(--font-display); font-size: 13.5px; line-height: 1.2;
}
html:lang(ja) .la-btns > span { font-family: var(--font-display-ja); font-weight: 700; font-size: 12.5px; }
.la-btns > span { white-space: nowrap; flex: none; }
.la-btns svg { width: 11px; height: 11px; flex: none; }
.la-btns .done { margin-left: auto; background: var(--grape); }
.lock-note { font-size: 12.5px; color: var(--night-soft); text-align: center; max-width: 360px; margin-inline: auto; }
.lock-shot { width: min(62vw, 250px); }
@media (min-width: 960px) {
  .lock-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
  .lock-visual { grid-template-columns: 1fr 190px; align-items: end; justify-items: stretch; gap: 22px; }
  .lock-visual .lockscreen { grid-column: 1; }
  .lock-visual .lock-side { grid-column: 2; padding-bottom: 12px; }
  .lock-visual .lock-note { grid-column: 1 / -1; }
  .lock-shot { width: 100%; }
}

/* ---------- grapes & bunch ---------- */
.bunch-grid { display: grid; gap: 48px; margin-top: 8px; }
.legend { display: grid; gap: 12px; margin-top: 28px; }
.legend li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-12); font-weight: 600; font-size: 15px; }
.legend .grape { width: 26px; height: 26px; }
.clap-card {
  position: relative;
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center;
  margin-top: 26px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--grape-wash);
  border: 1px solid rgba(100, 69, 214, .15);
}
.clap-card img { width: 112px; }
.clap-card .bubble { max-width: none; font-size: 15px; }
.clap-card .bubble::after { left: -9px; bottom: 18px; transform: rotate(135deg) skew(8deg, 8deg); }
.clap-card p { color: var(--ink-soft); font-size: 14px; margin-top: 12px; }
.bunch-visual { position: relative; display: grid; justify-items: center; }
.bunch-visual .shot { width: min(74vw, 320px); transform: rotate(2deg); }
.bunch-visual .stamp-leaf { position: absolute; width: 88px; top: -26px; left: calc(50% - 190px); transform: rotate(-18deg); }
.bunch-visual .crane { position: absolute; width: 96px; bottom: 30px; right: calc(50% - 205px); transform: rotate(8deg); }
@media (max-width: 520px) {
  .bunch-visual .stamp-leaf { left: 2%; width: 70px; }
  .bunch-visual .crane { right: 0; width: 76px; }
}
@media (min-width: 960px) {
  .bunch-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
}

/* ---------- bento ---------- */
.bento { display: grid; gap: 18px; margin-top: 52px; }
.tile {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line-12);
  box-shadow: var(--shadow-soft);
  padding: 8px;
  overflow: hidden;
}
.tile-in { border-radius: calc(var(--r-xl) - 8px); padding: 24px 22px 0; height: 100%; display: flex; flex-direction: column; }
.tile h3 { font-size: clamp(22px, 1.2vw + 16px, 27px); line-height: 1.3; }
html:lang(en) .tile h3 { line-height: 1.15; }
.tile p { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }
.tile .peek { margin: 24px auto 0; width: min(100%, 300px); box-shadow: 0 0 0 1px var(--line-12); }
.tile.big .peek { width: min(100%, 330px); }
.tile .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--grape-ink); margin-bottom: 12px; }
.tile .tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--grape-deep); display: inline-block; }
.tile.tint-a .tile-in { background: linear-gradient(180deg, rgba(191, 227, 255, .35), transparent 55%); }
.tile.tint-b .tile-in { background: linear-gradient(180deg, rgba(255, 229, 138, .32), transparent 55%); }
.tile.tint-c .tile-in { background: linear-gradient(180deg, rgba(207, 243, 224, .45), transparent 55%); }
.tile.tint-d .tile-in { background: linear-gradient(180deg, rgba(201, 182, 255, .30), transparent 55%); }
.tile.tint-e .tile-in { background: linear-gradient(180deg, rgba(255, 180, 168, .28), transparent 55%); }
/* widgets tile illustration */
.widgets-demo { display: flex; gap: 14px; align-items: flex-end; justify-content: center; margin: 26px 0 26px; flex-wrap: wrap; }
.w-small {
  width: 132px; height: 132px; border-radius: 28px;
  background: var(--paper); border: 1px solid var(--line-12);
  box-shadow: var(--shadow-soft);
  padding: 12px; display: flex; flex-direction: column; justify-content: space-between;
}
.w-small .seal { width: 100%; }
.w-small .h { font-family: var(--font-num); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.w-small .h small { font-size: 11px; color: var(--ink-soft); font-weight: 600; margin-left: 2px; }
.w-rect {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 20px;
  background: rgba(43, 43, 43, .88);
  color: #F4EEFF;
  font-family: var(--font-num); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums;
}
.w-rect img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.w-rect .grapes { gap: 3px; }
.w-rect .grape { width: 9px; height: 9px; border-width: 1.5px; border-color: #F4EEFF; }
.w-rect .grape.empty { border-color: rgba(244, 238, 255, .45); }
.w-cap { font-size: 12px; color: var(--ink-soft); text-align: center; margin-bottom: 22px; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.big { grid-row: span 2; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .tile.a { grid-column: 1 / span 3; grid-row: 1 / span 2; }
  .tile.b { grid-column: 4 / span 3; grid-row: 1 / span 2; }
  .tile.c { grid-column: 1 / span 2; }
  .tile.d { grid-column: 3 / span 2; }
  .tile.e { grid-column: 5 / span 2; }
  .tile.c .peek, .tile.d .peek { width: min(100%, 250px); }
}

/* ---------- privacy promise ---------- */
.promise {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line-12);
  box-shadow: var(--shadow-lift);
  padding: 44px 22px 30px;
  display: grid; gap: 34px;
}
.promise > .tape { position: absolute; top: -16px; left: 50%; width: 130px; transform: translateX(-50%) rotate(-3deg); }
.checks { display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 15.5px; color: var(--ink-soft); }
.checks li b { color: var(--ink); }
.checks svg { width: 26px; height: 26px; color: var(--grape-ink); margin-top: 1px; }
.promise .seal-lie { width: 220px; justify-self: center; margin-top: 4px; }
.promise-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (min-width: 960px) {
  .promise { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding: 64px 56px 52px; gap: 56px; align-items: center; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 34px; }
.faq-list { display: grid; gap: 12px; }
.faq {
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line-12);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.faq[open] { border-color: var(--line-20); box-shadow: var(--shadow-soft); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; gap: 14px;
  min-height: 60px;
  padding: 16px 18px 16px 22px;
  cursor: pointer;
  font-weight: 700; font-size: 16.5px; line-height: 1.45;
  border-radius: 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { flex: 1; }
.faq summary .pm {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grape-wash); color: var(--grape-ink);
  transition: transform .45s var(--ease), background-color .45s var(--ease);
}
.faq summary .pm svg { width: 14px; height: 14px; }
.faq[open] summary .pm { transform: rotate(45deg); background: var(--grape); color: var(--ink); }
.faq .a { padding: 0 22px 22px; color: var(--ink-soft); font-size: 15.5px; }
.faq .a p + p { margin-top: 10px; }
.faq .a a { color: var(--grape-ink); font-weight: 700; text-underline-offset: 3px; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: 110px; }
}

/* ---------- final CTA ---------- */
.final { text-align: center; padding-bottom: 110px; }
.final-card {
  position: relative;
  border-radius: 44px;
  padding: 64px 22px 56px;
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(201, 182, 255, .45), transparent 70%),
    var(--cream);
  border: 1px solid var(--line-12);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.final-card .seal-sleep { width: min(62vw, 300px); margin: 0 auto 8px; }
.final-card .h2 { max-width: 760px; margin-inline: auto; }
.final-card .lede { margin-inline: auto; }
.final-card .hero-cta { justify-content: center; }

/* ---------- sticky CTA (mobile) ---------- */
.dock {
  position: fixed; z-index: 45;
  left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 251, 245, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border: 1px solid var(--line-12);
  box-shadow: 0 16px 40px -18px rgba(90, 62, 43, .55);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.dock.show { transform: none; opacity: 1; }
.dock img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.dock .dt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; font-weight: 700; }
.dock .dt small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .btn-store.sm { flex: none; }
@media (min-width: 900px) { .dock { display: none; } }
@media (prefers-reduced-motion: reduce) { .dock { transition: opacity .2s linear; transform: none; } }

/* ---------- footer ---------- */
footer.site-foot { border-top: 1px solid var(--line-12); padding: 56px 0 120px; font-size: 14px; color: var(--ink-soft); }
@media (min-width: 900px) { footer.site-foot { padding-bottom: 64px; } }
.foot-grid { display: grid; gap: 28px; }
.foot-brand p { margin-top: 12px; max-width: 30em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink); transition: background-color .3s var(--ease); }
.foot-links a:hover { background: rgba(90, 62, 43, .07); }
.foot-links a[aria-current="page"] { background: var(--grape-wash); color: var(--grape-ink); }
.foot-mail a { color: var(--grape-ink); font-weight: 700; text-underline-offset: 3px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line-20); font-size: 13px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } .foot-links { justify-content: flex-end; } .foot-side { text-align: right; } }

/* ---------- scroll reveal (only with JS; off for reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .step.reveal.in:nth-child(1) { transform: rotate(-1.2deg); }
.js .step.reveal.in:nth-child(2) { transform: rotate(.9deg); }
.js .step.reveal.in:nth-child(3) { transform: rotate(-.6deg); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .step.reveal:nth-child(1) { transform: rotate(-1.2deg); }
  .js .step.reveal:nth-child(2) { transform: rotate(.9deg); }
  .js .step.reveal:nth-child(3) { transform: rotate(-.6deg); }
  .seal .prop.swap { animation: none; }
}

/* ======================================================================
   Document pages (privacy, terms, safety, support, 404)
   ====================================================================== */
.doc-hero { padding: 44px 0 10px; }
.doc-hero .h2 { font-size: clamp(32px, 5vw + 10px, 54px); }
.doc-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-12); font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.doc-layout { display: grid; gap: 28px; padding: 34px 0 96px; }
.toc {
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line-12);
  padding: 20px 20px 18px;
  font-size: 14px;
}
.toc .toc-t { font-weight: 800; color: var(--ink); margin-bottom: 8px; font-size: 13px; letter-spacing: .02em; }
.toc ol { display: grid; gap: 2px; counter-reset: t; }
.toc a { display: block; padding: 6px 8px; border-radius: 10px; text-decoration: none; color: var(--ink-soft); font-weight: 600; line-height: 1.45; }
.toc a:hover { background: rgba(90, 62, 43, .06); color: var(--ink); }
.doc {
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line-12);
  box-shadow: var(--shadow-soft);
  padding: 30px 22px 36px;
  min-width: 0;
}
.doc > :first-child { margin-top: 0; }
.doc .summary {
  position: relative;
  border-radius: var(--r-md);
  background: var(--grape-wash);
  border: 1px solid rgba(100, 69, 214, .14);
  padding: 20px 20px 18px;
  color: var(--ink);
  font-size: 15.5px;
}
.doc .summary .tape { position: absolute; top: -13px; right: 26px; width: 84px; transform: rotate(5deg); }
.doc .summary b { color: var(--grape-ink); }
.doc h2 { font-size: clamp(21px, 1vw + 17px, 25px); line-height: 1.35; margin: 40px 0 12px; scroll-margin-top: 100px; }
html:lang(en) .doc h2 { line-height: 1.2; }
.doc h3 { font-family: var(--font-body); font-weight: 800; font-size: 16px; margin: 22px 0 8px; }
html:lang(ja) .doc h3 { font-family: var(--font-body-ja); }
.doc p, .doc li { color: #463F3A; font-size: 15.5px; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol.list { margin: 10px 0; display: grid; gap: 7px; }
.doc ul li { position: relative; padding-left: 18px; }
.doc ul li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--grape-deep); }
.doc ol.list { counter-reset: li; }
.doc ol.list li { position: relative; padding-left: 28px; counter-increment: li; }
.doc ol.list li::before { content: counter(li) "."; position: absolute; left: 0; font-weight: 800; color: var(--grape-ink); font-variant-numeric: tabular-nums; }
.doc a { color: var(--grape-ink); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc strong { color: var(--ink); }
.doc .table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 16px; border: 1px solid var(--line-12); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-12); }
.doc th { background: var(--paper); font-weight: 800; color: var(--ink); width: 32%; }
@media (min-width: 640px) { .doc th { white-space: nowrap; width: 1%; } }
.doc code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line-12); overflow-wrap: anywhere; }
.doc tr:last-child td { border-bottom: 0; }
.doc td { color: #463F3A; }
.doc .note { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.doc .callout { border-radius: 18px; background: var(--paper); border: 1px dashed var(--line-20); padding: 16px 18px; margin: 14px 0; }
.doc .eff-foot { margin-top: 40px; padding-top: 18px; border-top: 1px dashed var(--line-20); font-size: 14px; color: var(--ink-soft); }
@media (min-width: 980px) {
  .doc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
  .toc { position: sticky; top: 100px; }
  .doc { padding: 46px 52px 52px; }
}

/* crisis lines (safety page) */
.lines { display: grid; gap: 14px; margin-top: 28px; }
.line-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px;
  padding: 20px 20px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line-12);
  box-shadow: var(--shadow-soft);
}
.line-card .where { font-size: 13px; font-weight: 800; color: var(--ink-soft); letter-spacing: .02em; }
.line-card .who { font-weight: 700; font-size: 15.5px; margin-top: 2px; }
.line-card .when { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.tel {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 20px 0 14px;
  border-radius: 999px;
  background: var(--mint);
  border: 1.5px solid rgba(90, 62, 43, .25);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-num); font-weight: 800; font-size: 21px; font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: transform .45s var(--ease);
}
.tel:hover { transform: scale(1.03); }
.tel:active { transform: scale(.98); }
.tel svg { width: 20px; height: 20px; }
.doc .tel { color: var(--ink); font-weight: 800; }
.emergency { display: grid; gap: 10px; margin-top: 16px; }
.emergency li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-left: 0 !important; }
.emergency li::before { display: none; }
.emergency .tel { min-height: 44px; font-size: 17px; padding: 0 16px 0 12px; background: var(--salmon); }
@media (max-width: 420px) {
  .line-card { grid-template-columns: 1fr; }
  .line-card .tel { justify-self: start; }
}

/* 404 */
.lost { min-height: calc(100dvh - 200px); display: grid; place-items: center; text-align: center; padding: 48px 0 80px; }
.lost .seal-sleep { width: min(70vw, 320px); margin: 0 auto 18px; }
.lost .bubble { margin-bottom: 22px; }
.lost .bubble::after { left: 50%; margin-left: -8px; }
.lost .hero-cta { justify-content: center; }
