/* ==========================================================================
   Mofululu · official site
   Visual language mirrors the app prototype (hifi/): day / sunset / night
   tokens, liquid-glass panels, rounded type, tinted line icons, pill buttons.
   ========================================================================== */

/* ---------- Tokens: day ---------- */
:root {
  --font-ui: "Quicksand", "M PLUS Rounded 1c", "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", -apple-system, system-ui, sans-serif;
  --font-mystic: "Shippori Mincho", "Hiragino Mincho ProN", "Songti SC", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --page-bg: #eef4fc;
  --ink: #1e2949;
  --ink-2: rgba(30, 41, 73, 0.86);
  --ink-3: rgba(30, 41, 73, 0.70);
  --accent: #426ef0;
  --accent-2: #e864a2;
  --accent-ink: #ffffff;
  --link: #2b5be0;
  --mofi-ink: #a85f00;
  --on-thumb-ink: #2958da;
  --chip-bg: rgba(66, 110, 240, 0.13);
  --chip-ink: #2b5be0;
  --danger: #c92f58;
  --danger-bg: rgba(217, 58, 99, 0.10);
  --ok: #12805c;
  --ok-bg: rgba(18, 128, 92, 0.12);
  --cheki-bg: rgba(255, 255, 255, 0.90);
  --scrim-top: linear-gradient(180deg, rgba(232,242,255,0.68) 0%, rgba(232,242,255,0) 100%);
  --field-bg: rgba(255, 255, 255, 0.72);
  --field-rim: rgba(92, 116, 184, 0.42);

  --lg-bg: linear-gradient(150deg, rgba(255,255,255,0.80) 0%, rgba(244,248,255,0.62) 52%, rgba(236,244,255,0.72) 100%);
  --lg-card:
    radial-gradient(240px 150px at 12% 0%, rgba(255, 206, 234, 0.42), transparent 72%),
    radial-gradient(260px 170px at 92% 100%, rgba(186, 208, 255, 0.44), transparent 72%),
    linear-gradient(165deg, rgba(255,255,255,0.93) 0%, rgba(247,250,255,0.86) 54%, rgba(241,246,255,0.91) 100%);
  --lg-pill: rgba(255, 255, 255, 0.66);
  --lg-thumb: linear-gradient(165deg, rgba(255,255,255,0.99), rgba(242,247,255,0.92));
  --lg-rim: rgba(255, 255, 255, 0.94);
  --lg-rim-soft: rgba(255, 255, 255, 0.72);
  --lg-shadow: rgba(28, 44, 92, 0.15);
  --sheet-sheen: linear-gradient(90deg, transparent 4%, rgba(255,186,222,0.85) 32%, rgba(166,198,255,0.92) 68%, transparent 96%);
  --mystic-surface: linear-gradient(155deg, rgba(255,255,255,0.78) 0%, rgba(246,243,255,0.62) 100%);
  --btn-grad: linear-gradient(135deg, #629dff 0%, #5c6bf4 52%, #e46aa8 100%);
  /* Same hues, deepened so white label text clears 4.5:1 on the website. */
  --btn-grad-strong: linear-gradient(135deg, #2f6ae6 0%, #4a4fe0 52%, #cf3f86 100%);
  --btn-glow: rgba(92, 107, 244, 0.34);
  --aura: radial-gradient(780px 580px at 18% 18%, rgba(198,228,255,0.62) 0%, transparent 62%),
          radial-gradient(760px 560px at 84% 84%, rgba(255,214,236,0.58) 0%, transparent 62%);

  --ic-tint: #4d65c3;
  --ic-fill: 15%;
  --ic-glow: 17%;
  --ic-shine: rgba(255,255,255,.9);
  --ic-orb-shine: rgba(255,255,255,.64);
  --mofi-shine: #fffacb;
  --mofi-body: #ffc85c;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --bar-h: 60px;
  color-scheme: light;
}

/* ---------- Tokens: sunset ---------- */
html[data-mood="sunset"] {
  --page-bg: #fbf0ee;
  --ink: #382139;
  --ink-2: rgba(56, 33, 57, 0.86);
  --ink-3: rgba(56, 33, 57, 0.70);
  --accent: #de516b;
  --accent-2: #f08c4b;
  --link: #b92c4c;
  --on-thumb-ink: #c83756;
  --chip-bg: rgba(222, 81, 107, 0.14);
  --chip-ink: #b92c4c;
  --cheki-bg: rgba(255, 249, 251, 0.90);
  --scrim-top: linear-gradient(180deg, rgba(252,234,232,0.68) 0%, rgba(252,234,232,0) 100%);
  --field-bg: rgba(255, 252, 253, 0.74);
  --field-rim: rgba(160, 96, 128, 0.44);
  --lg-bg: linear-gradient(150deg, rgba(255,248,250,0.80) 0%, rgba(255,236,242,0.60) 52%, rgba(248,230,244,0.70) 100%);
  --lg-card:
    radial-gradient(240px 150px at 14% 0%, rgba(255, 198, 178, 0.44), transparent 72%),
    radial-gradient(250px 170px at 90% 100%, rgba(232, 190, 252, 0.42), transparent 72%),
    linear-gradient(164deg, rgba(255,250,252,0.93) 0%, rgba(255,241,246,0.86) 54%, rgba(250,236,248,0.91) 100%);
  --lg-pill: rgba(255, 247, 250, 0.66);
  --lg-thumb: linear-gradient(165deg, rgba(255,255,255,0.99), rgba(255,241,246,0.92));
  --lg-shadow: rgba(92, 40, 72, 0.17);
  --sheet-sheen: linear-gradient(90deg, transparent 4%, rgba(255,188,162,0.9) 32%, rgba(228,176,255,0.9) 68%, transparent 96%);
  --mystic-surface: linear-gradient(155deg, rgba(255,252,253,0.82) 0%, rgba(253,240,247,0.68) 100%);
  --btn-grad: linear-gradient(135deg, #ff8ca0 0%, #e35d73 54%, #b568e6 100%);
  --btn-grad-strong: linear-gradient(135deg, #d2405c 0%, #c2345a 54%, #9648d2 100%);
  --btn-glow: rgba(227, 93, 115, 0.34);
  --aura: radial-gradient(780px 580px at 18% 18%, rgba(255,214,200,0.62) 0%, transparent 62%),
          radial-gradient(760px 560px at 84% 84%, rgba(236,204,252,0.58) 0%, transparent 62%);
  --ic-tint: #b84c74;
  --mofi-shine: #fff5c2;
  --mofi-body: #ffa95d;
}

/* ---------- Tokens: night ---------- */
html[data-mood="night"] {
  --page-bg: #101631;
  --ink: #f6f7ff;
  --ink-2: rgba(240, 243, 255, 0.92);
  --ink-3: rgba(222, 229, 255, 0.80);
  --accent: #b8c8ff;
  --accent-2: #ffa4d4;
  --accent-ink: #161d3f;
  --link: #c3d0ff;
  --mofi-ink: #ffd66b;
  --on-thumb-ink: #ffffff;
  --chip-bg: rgba(138, 162, 255, 0.28);
  --chip-ink: #f2f5ff;
  --danger: #ff9ab8;
  --danger-bg: rgba(255, 143, 176, 0.16);
  --ok: #8fe6c3;
  --ok-bg: rgba(120, 230, 190, 0.14);
  --cheki-bg: rgba(38, 48, 96, 0.90);
  --scrim-top: linear-gradient(180deg, rgba(14,20,46,0.72) 0%, rgba(14,20,46,0) 100%);
  --field-bg: rgba(12, 18, 46, 0.52);
  --field-rim: rgba(190, 206, 255, 0.46);
  --lg-bg: linear-gradient(150deg, rgba(44,54,104,0.80) 0%, rgba(26,34,72,0.70) 55%, rgba(36,44,90,0.78) 100%);
  --lg-card:
    radial-gradient(240px 150px at 14% 0%, rgba(154, 112, 242, 0.30), transparent 72%),
    radial-gradient(250px 170px at 90% 100%, rgba(88, 164, 255, 0.26), transparent 72%),
    linear-gradient(165deg, rgba(31,40,86,0.94) 0%, rgba(19,26,60,0.91) 55%, rgba(28,36,80,0.94) 100%);
  --lg-pill: rgba(255, 255, 255, 0.13);
  --lg-thumb: linear-gradient(165deg, rgba(124,146,242,0.66), rgba(88,108,202,0.58));
  --lg-rim: rgba(214, 226, 255, 0.44);
  --lg-rim-soft: rgba(204, 218, 255, 0.28);
  --lg-shadow: rgba(5, 8, 24, 0.56);
  --sheet-sheen: linear-gradient(90deg, transparent 4%, rgba(255,168,220,0.72) 32%, rgba(152,188,255,0.82) 68%, transparent 96%);
  --mystic-surface: linear-gradient(155deg, rgba(54,66,132,0.58) 0%, rgba(34,42,92,0.52) 100%);
  --btn-grad: linear-gradient(135deg, #cedaff 0%, #a6baff 52%, #f4b6fc 100%);
  --btn-grad-strong: linear-gradient(135deg, #cedaff 0%, #a6baff 52%, #f4b6fc 100%);
  --btn-glow: rgba(162, 182, 255, 0.36);
  --aura: radial-gradient(780px 580px at 18% 18%, rgba(56,74,158,0.48) 0%, transparent 62%),
          radial-gradient(760px 560px at 84% 84%, rgba(104,58,146,0.44) 0%, transparent 62%);
  --ic-tint: #b8caff;
  --ic-fill: 20%;
  --ic-glow: 30%;
  --ic-shine: rgba(231,239,255,.68);
  --ic-orb-shine: rgba(203,218,255,.27);
  --mofi-shine: #fff3c8;
  --mofi-body: #ffd473;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 28px); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--font-ui); font-weight: 600; font-size: 16px; line-height: 1.7;
  color: var(--ink); background-color: var(--page-bg);
  background-image: var(--aura); background-attachment: fixed;
  transition: background-color 0.4s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
html[data-locale="zh"] body, html[data-locale="ja"] body { font-weight: 500; line-height: 1.8; }
img, svg, canvas { max-width: 100%; }
img { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button:not(:disabled):active, .btn:active { transform: scale(0.97); }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--link); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--page-bg); font-weight: 800; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Long-form content is authored once per language; show only the active one. */
html[data-locale="en"] [data-lang]:not([data-lang="en"]),
html[data-locale="zh"] [data-lang]:not([data-lang="zh"]),
html[data-locale="ja"] [data-lang]:not([data-lang="ja"]) { display: none !important; }

/* ---------- Icons (same recipe as the prototype sprite) ---------- */
svg.ic {
  width: 16px; height: 16px;
  color: var(--ic-tint);
  fill: currentColor; fill-opacity: 0.15;
  fill: color-mix(in srgb, currentColor var(--ic-fill), transparent);
  stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; flex: none; vertical-align: -3px; overflow: visible;
  filter: drop-shadow(0 .5px 0 var(--ic-shine)) drop-shadow(0 0 2px color-mix(in srgb, currentColor var(--ic-glow), transparent));
}
@supports (fill: color-mix(in srgb, red 10%, transparent)) { svg.ic { fill-opacity: 1; } }
:is(.btn-primary, .cta-pill, .checkin-btn, .on-grad, .cap-slider > .active.grad) svg.ic { color: inherit; --ic-fill: 18%; --ic-glow: 16%; --ic-shine: transparent; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { svg.ic { fill: none; filter: none; } }

/* ---------- Liquid glass ---------- */
.lg {
  background: var(--lg-bg);
  -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%);
  border: 1px solid var(--lg-rim);
  box-shadow: inset 0 1px 0.5px var(--lg-rim), inset 0 -0.5px 0 rgba(255,255,255,0.2), 0 10px 26px var(--lg-shadow);
}
.lg-card {
  background: var(--lg-card);
  -webkit-backdrop-filter: blur(32px) saturate(200%); backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--lg-rim);
  box-shadow: inset 0 1.2px 0.5px var(--lg-rim), 0 18px 44px var(--lg-shadow);
}
.lg-pill {
  background: var(--lg-pill);
  -webkit-backdrop-filter: blur(16px) saturate(165%); backdrop-filter: blur(16px) saturate(165%);
  border: 1px solid var(--lg-rim-soft);
  box-shadow: inset 0 1px 0 var(--lg-rim-soft);
}
@media (prefers-reduced-transparency: reduce) {
  .lg, .lg-card, .lg-pill { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--page-bg); }
}
.sheen { position: relative; }
.sheen::before { content: ""; position: absolute; top: -1px; left: 10%; right: 10%; height: 1.5px; background: var(--sheet-sheen); border-radius: 99px; pointer-events: none; }

/* ---------- Capsule slider ---------- */
.cap-slider {
  --pad: 3px; --count: 3; --idx: 0;
  position: relative; display: grid; grid-template-columns: repeat(var(--count), 1fr);
  padding: var(--pad); border-radius: 999px; isolation: isolate;
}
.cap-slider::before {
  content: ""; position: absolute; z-index: -1;
  top: var(--pad); bottom: var(--pad); left: var(--pad);
  width: calc((100% - var(--pad) * 2) / var(--count));
  transform: translateX(calc(100% * var(--idx)));
  border-radius: 999px; background: var(--lg-thumb);
  border: 0.5px solid var(--lg-rim);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 3px 9px var(--lg-shadow);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-mood="night"] .cap-slider::before { box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 9px var(--lg-shadow); }
.cap-slider > button {
  position: relative; border-radius: 999px; min-width: 0; padding: 0 8px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  transition: color 0.2s ease; white-space: nowrap;
}
.cap-slider > button.active { color: var(--ink); font-weight: 800; }
.cap-slider > button:focus-visible { outline-offset: -2px; border-radius: 999px; }

/* ---------- Buttons, chips ---------- */
.btn {
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15.5px; font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.2s ease;
}
.btn svg.ic { width: 18px; height: 18px; vertical-align: 0; }
.btn-primary { background: var(--btn-grad-strong); color: var(--accent-ink); box-shadow: 0 8px 22px var(--btn-glow), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--btn-glow), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn:focus-visible { border-radius: 999px; }

.type-chip {
  min-height: 26px; padding: 2px 11px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--chip-bg); color: var(--chip-ink); border: 0.5px solid var(--lg-rim);
  display: inline-flex; align-items: center; gap: 5px;
}
.type-chip svg.ic { width: 13px; height: 13px; color: currentColor; vertical-align: 0; }
.kicker { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 3px 13px 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--ink); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fc98a; box-shadow: 0 0 0 4px rgba(47,201,138,0.22); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px) scale(0.965); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes pulse { from { opacity: 0.9; transform: scale(0.85); } to { opacity: 0; transform: scale(1.5); } }

/* ---------- Top bar ---------- */
.site-head { position: fixed; z-index: 50; top: 10px; left: 0; right: 0; pointer-events: none; }
.bar {
  pointer-events: auto; height: var(--bar-h); border-radius: 999px; padding: 0 8px 0 14px;
  display: flex; align-items: center; gap: 10px; position: relative;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; border-radius: 999px; padding-right: 4px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 10px var(--lg-shadow); }
.brand b { font-family: "Quicksand", var(--font-ui); font-size: 21px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.brand b span { background: linear-gradient(135deg, #567df6, #7c64f5 55%, #e766ac); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-mood="sunset"] .brand b span { background-image: linear-gradient(135deg, #d2405c, #b84c9a 55%, #8a4fd6); }
html[data-mood="night"] .brand b span { background-image: linear-gradient(135deg, #b8c8ff, #cbb4ff 55%, #ffa4d4); }
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; margin-left: 8px; }
.site-nav a { min-height: 40px; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: var(--lg-pill); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 800; background: var(--lg-pill); box-shadow: inset 0 0 0 1px var(--lg-rim-soft); }
.lang-switch { --count: 3; height: 38px; margin-left: auto; flex: none; }
.lang-switch > button { min-width: 38px; font-size: 12.5px; }
.mood-switch { --count: 4; height: 38px; flex: none; }
.mood-switch > button { width: 32px; padding: 0; }
.mood-switch > button svg.ic { width: 16px; height: 16px; vertical-align: 0; }
.mood-switch > button.active svg.ic { --ic-fill: 28%; --ic-glow: 35%; }
.bar .btn { flex: none; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; flex: none; }
.menu-btn svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; fill: none; }

@media (max-width: 1100px) {
  .bar { padding-right: 9px; }
  .bar > .btn { display: none; }
  .mood-switch { margin-left: auto; }
  .menu-btn { display: grid; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; border-radius: 26px;
    /* opaque base: a nested backdrop-filter cannot blur through the glass bar */
    background: var(--lg-card), var(--page-bg);
    border: 1px solid var(--lg-rim); box-shadow: 0 18px 44px var(--lg-shadow);
    display: none;
  }
  .site-nav.open { display: flex; animation: riseIn 0.26s cubic-bezier(0.22, 1, 0.36, 1); }
  .site-nav a { min-height: 46px; padding: 0 16px; font-size: 15.5px; }
  .lang-switch { margin: 6px 0 2px; height: 44px; align-self: stretch; }
}
@media (max-width: 380px) {
  .brand b { font-size: 19px; }
  .brand img { width: 30px; height: 30px; }
  .bar { gap: 6px; padding-left: 10px; }
}

/* ---------- Sky (watercolour street) ---------- */
.sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky-l { position: absolute; inset: 0; background-size: cover; background-position: 50% 62%; opacity: 0; transition: opacity 0.8s ease; }
html[data-mood="day"] .sky-l.d, html.seen-day .sky-l.d { background-image: url("assets/hero-day.jpg"); }
html[data-mood="sunset"] .sky-l.s, html.seen-sunset .sky-l.s { background-image: url("assets/hero-sunset.jpg"); }
html[data-mood="night"] .sky-l.n, html.seen-night .sky-l.n { background-image: url("assets/hero-night.jpg"); }
html[data-mood="day"] .sky-l.d, html[data-mood="sunset"] .sky-l.s, html[data-mood="night"] .sky-l.n { opacity: 1; }
.sky-l.n { background-position: 50% 78%; }
.sky::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; z-index: 2; background: var(--scrim-top); }
.sky::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; z-index: 2; background: linear-gradient(180deg, transparent, var(--page-bg)); }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }
.sky-band { height: 460px; -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); opacity: 0.9; }
.sky-band::after { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100vh, 980px); min-height: min(100svh, 980px); display: flex; align-items: center; padding: calc(var(--bar-h) + 44px) 0 72px; }
.hero-grid { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: clamp(24px, 5vw, 64px); }
.hero-copy { border-radius: 34px; padding: clamp(22px, 3.4vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero-copy h1 { font-size: clamp(31px, 4.6vw, 54px); line-height: 1.16; letter-spacing: -0.025em; }
html[data-locale="zh"] .hero-copy h1, html[data-locale="ja"] .hero-copy h1 { letter-spacing: 0; line-height: 1.3; font-size: clamp(29px, 4.1vw, 48px); }
.hero-copy h1 em { font-style: normal; color: var(--link); position: relative; white-space: nowrap; }
html[data-locale="en"] .hero-copy h1 em { white-space: normal; }
.hero-copy .lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.promise-row { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 14px; border-top: 1px dashed var(--lg-rim-soft); width: 100%; }
.hero-phone { display: grid; place-items: center; }
.hero-phone > div { width: min(352px, 100%); }
@media (max-width: 900px) {
  .hero { padding-bottom: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { order: 2; }
}
@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
}

/* ---------- Phone mock (HTML/CSS mirror of the app UI) ---------- */
.iphone {
  position: relative; width: 100%; aspect-ratio: 392 / 800;
  border-radius: 52px; padding: 9px;
  background: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(224,236,254,0.58));
  border: 1px solid rgba(255,255,255,0.94);
  box-shadow: 0 30px 76px rgba(22, 34, 68, 0.30), inset 0 1px 0 #fff;
  font-size: 12px; line-height: 1.5; font-weight: 600;
}
html[data-mood="night"] .iphone { background: linear-gradient(160deg, rgba(96,108,168,0.52), rgba(36,42,80,0.70)); border-color: rgba(200,212,255,0.36); box-shadow: 0 30px 76px rgba(2, 4, 18, 0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; isolation: isolate; background: #d6e7fc center 40% / cover no-repeat url("assets/phone-day.jpg"); }
html[data-mood="sunset"] .screen { background-color: #f8e2dc; background-image: url("assets/hero-sunset.jpg"); background-position: 42% 50%; }
html[data-mood="night"] .screen { background-color: #131b42; background-image: url("assets/phone-night.jpg"); }
.screen::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; background: var(--scrim-top); z-index: 1; pointer-events: none; }
.dynamic-island {
  position: absolute; z-index: 30; top: 10px; left: 50%; transform: translateX(-50%);
  height: 26px; padding: 0 12px; border-radius: 999px; background: rgba(18, 22, 36, 0.88); color: #fff;
  border: 0.5px solid rgba(255,255,255,0.24); box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.dynamic-island svg.ic { width: 12px; height: 12px; color: #c1d1ff; --ic-glow: 40%; --ic-shine: transparent; vertical-align: 0; }
.top-hud { position: absolute; z-index: 12; top: 46px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.loc-pill { height: 36px; border-radius: 999px; padding: 3px 4px 3px 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.loc-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fc98a; box-shadow: 0 0 0 3px rgba(47,201,138,0.25); flex: none; }
.checkin-btn { height: 28px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--btn-grad-strong); color: var(--accent-ink); box-shadow: 0 3px 9px var(--btn-glow); display: inline-flex; align-items: center; gap: 4px; }
.checkin-btn svg.ic { width: 12px; height: 12px; vertical-align: 0; }
.hud-chip { height: 32px; padding: 0 10px 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.hud-chip svg.ic { width: 14px; height: 14px; color: var(--accent); vertical-align: 0; }
.light-pill { position: absolute; z-index: 11; top: 90px; left: 12px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; color: var(--ink-2); }
.light-pill svg.ic { width: 13px; height: 13px; color: var(--mofi-ink); vertical-align: 0; }
.light-pill i { width: 46px; height: 5px; border-radius: 99px; background: rgba(140,160,210,0.3); overflow: hidden; display: block; }
.light-pill i::after { content: ""; display: block; width: 85%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8ec5ff, #b996ff 45%, #ff8ec8 75%, #ffb357); }

.fx-rail { position: absolute; z-index: 11; right: 12px; top: 92px; padding: 5px; border-radius: 999px; display: flex; flex-direction: column; gap: 4px; }
.fx-orb { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(ellipse at 34% 22%, var(--ic-orb-shine), transparent 64%); }
.fx-orb svg.ic { width: 16px; height: 16px; vertical-align: 0; color: var(--fx, var(--ic-tint)); --ic-glow: 36%; }
html[data-mood="night"] .fx-orb svg.ic { color: color-mix(in srgb, var(--fx, var(--ic-tint)) 60%, #fff); }

.puni-marker { position: absolute; z-index: 8; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; animation: bob 4.2s ease-in-out infinite; }
.puni-marker:nth-of-type(2n) { animation-delay: -1.6s; }
.jelly-cap {
  position: relative; width: 40px; height: 40px; border-radius: 15px 15px 17px 17px; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,0.96) 0%, var(--c1) 50%, var(--c2) 100%);
  border: 1.5px solid rgba(255,255,255,0.95);
  box-shadow: inset 0 3px 6px #fff, inset 0 -3px 7px rgba(255,255,255,0.45), 0 8px 20px var(--cglow);
}
.jelly-cap::before, .jelly-cap::after { content: ""; position: absolute; top: -5px; width: 10px; height: 7.5px; background: rgba(255,255,255,0.95); border: 1px solid #fff; border-radius: 80% 60% 30% 80%; }
.jelly-cap::before { left: 7.5px; transform: rotate(24deg); }
.jelly-cap::after { right: 7.5px; transform: scaleX(-1) rotate(24deg); }
.jelly-cap svg.ic { width: 18px; height: 18px; color: #fff; --ic-fill: 30%; --ic-shine: transparent; filter: drop-shadow(0 1px 2px rgba(40,50,110,0.35)); vertical-align: 0; }
.jelly-cap b { position: absolute; top: -7px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: #fff; color: #33407a; font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(30,40,90,0.25); z-index: 1; }
.map-label { padding: 2px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; background: rgba(255,255,255,0.92); color: #27325e; border: 1px solid #fff; white-space: nowrap; box-shadow: 0 3px 8px rgba(30,40,90,0.18); }
.puni-marker.sel .jelly-cap { box-shadow: 0 0 0 3.5px rgba(255,255,255,0.7), inset 0 3px 6px #fff, 0 10px 24px var(--cglow); }
.mofi-dom { position: absolute; z-index: 9; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 0; filter: drop-shadow(0 0 16px rgba(255,212,102,0.95)); animation: bob 3.2s ease-in-out infinite; }
.mofi-dom img { width: 58px; height: 58px; }
.mofi-dom span { padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; background: rgba(255,250,228,0.95); color: #7c5110; border: 1px solid #fff; white-space: nowrap; margin-top: -6px; }

.sheet-wrap { position: absolute; z-index: 14; left: 10px; right: 10px; bottom: 72px; }
.glass-sheet { position: relative; border-radius: 28px; padding: 8px 13px 13px; display: flex; flex-direction: column; gap: 8px; }
.glass-sheet::before { content: ""; position: absolute; top: -1px; left: 8%; right: 8%; height: 1.5px; background: var(--sheet-sheen); border-radius: 99px; }
.glass-sheet.swap { animation: riseIn 0.36s cubic-bezier(0.22, 1, 0.36, 1); }
.sheet-grabber { width: 38px; height: 4.5px; border-radius: 999px; margin: 0 auto 1px; background: linear-gradient(90deg, rgba(160,180,235,0.42), rgba(232,150,202,0.56), rgba(160,180,235,0.42)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.75); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px dashed var(--lg-rim-soft); }
.sheet-title { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; min-width: 0; }
.sheet-title svg.ic { width: 16px; height: 16px; vertical-align: 0; }
.sheet-head .type-chip { min-height: 22px; font-size: 10px; padding: 0 8px; white-space: nowrap; }
.cheki-frame { position: relative; border-radius: 15px; overflow: hidden; background: var(--cheki-bg); border: 1.5px solid var(--lg-rim); box-shadow: 0 8px 20px rgba(16, 26, 58, 0.18); }
.cheki-frame img { width: 100%; height: 104px; object-fit: cover; }
.cheki-tag { position: absolute; bottom: 7px; left: 8px; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #fff; white-space: nowrap; background: rgba(18, 24, 46, 0.68); border: 0.5px solid rgba(255,255,255,0.48); display: inline-flex; align-items: center; gap: 4px; }
.cheki-tag svg.ic { width: 11px; height: 11px; color: #fff; --ic-shine: transparent; vertical-align: 0; }
.mystic { font-family: var(--font-mystic); font-size: 13.5px; line-height: 1.6; font-weight: 600; color: var(--ink); }
.quick-row { display: flex; gap: 6px; flex-wrap: wrap; }
.q-bubble { min-height: 28px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.q-bubble svg.ic { width: 13px; height: 13px; vertical-align: 0; }
.q-bubble.on-grad { background: var(--btn-grad-strong); color: var(--accent-ink); border-color: transparent; box-shadow: 0 4px 12px var(--btn-glow); }
.yaho-postcard { position: relative; border-radius: 18px; padding: 12px 12px 10px; background: var(--mystic-surface); border: 1px solid var(--lg-rim); box-shadow: inset 0 1px 0 var(--lg-rim), 0 8px 20px var(--lg-shadow); display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.yaho-postcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: repeating-linear-gradient(125deg, #ff96c5 0 10px, transparent 10px 16px, #7cb4ff 16px 26px, transparent 26px 32px); opacity: 0.78; }
.yaho-postcard small { font-size: 10.5px; font-weight: 800; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.yaho-me { align-self: flex-end; max-width: 88%; padding: 6px 11px; border-radius: 15px 15px 4px 15px; background: var(--chip-bg); color: var(--ink); font-size: 11.5px; font-weight: 700; }
.input-capsule { min-height: 42px; border-radius: 999px; padding: 3px 4px 3px 13px; display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-3); }
.input-capsule > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-grad-strong); color: var(--accent-ink); box-shadow: 0 4px 12px var(--btn-glow); flex: none; }
.send-btn svg.ic { width: 15px; height: 15px; color: inherit; --ic-shine: transparent; vertical-align: 0; }
.stamp-row { display: flex; align-items: center; gap: 12px; }
.stamp-pad { width: 86px; height: 86px; border-radius: 50%; flex: none; border: 2.5px solid #e0487c; background: linear-gradient(135deg, #fff0f6, #ffdce9); transform: rotate(-8deg); box-shadow: 0 8px 22px rgba(224,72,124,0.28); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #b3275c; font-size: 10px; font-weight: 800; text-align: center; line-height: 1.25; }
.stamp-pad svg.ic { width: 22px; height: 22px; color: #c8326b; --ic-shine: transparent; vertical-align: 0; }
.peta-list { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.peta-list li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 12px; background: var(--lg-pill); border: 1px solid var(--lg-rim-soft); }
.peta-list li svg.ic { width: 13px; height: 13px; vertical-align: 0; }
.peta-note { font-size: 10.5px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.peta-note svg.ic { width: 12px; height: 12px; vertical-align: 0; }
.bottom-nav { position: absolute; z-index: 15; left: 18px; right: 18px; bottom: 12px; height: 52px; --pad: 4px; }
.bottom-nav > button { gap: 6px; font-size: 13px; }
.bottom-nav > button svg.ic { width: 18px; height: 18px; vertical-align: 0; }
.bottom-nav > button.active svg.ic { --ic-fill: 28%; --ic-glow: 35%; }
.phone-cap { margin-top: 14px; font-size: 13px; color: var(--ink-2); text-align: center; display: flex; justify-content: center; }
.phone-cap span { padding: 4px 14px; border-radius: 999px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.02em; }
html[data-locale="zh"] .section-head h2, html[data-locale="ja"] .section-head h2 { letter-spacing: 0; }
.section-head p { font-size: 17px; color: var(--ink-2); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); display: inline-flex; align-items: center; gap: 7px; }
.eyebrow svg.ic { width: 14px; height: 14px; vertical-align: 0; color: currentColor; }

/* Feature bento */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.feature { grid-column: span 2; border-radius: 30px; padding: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.feature:hover { transform: translateY(-4px); }
.feature.wide { grid-column: span 3; }
.feature-top { display: flex; align-items: center; gap: 14px; }
.orb { width: 58px; height: 58px; border-radius: 22px 22px 25px 25px; flex: none; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,0.96) 0%, var(--c1) 50%, var(--c2) 100%);
  border: 1.5px solid rgba(255,255,255,0.95);
  box-shadow: inset 0 3px 6px #fff, inset 0 -3px 7px rgba(255,255,255,0.45), 0 10px 22px var(--cglow); }
.orb svg.ic { width: 28px; height: 28px; color: #fff; --ic-fill: 30%; --ic-shine: transparent; filter: drop-shadow(0 1px 2.5px rgba(40,50,110,0.4)); vertical-align: 0; }
.orb.round { border-radius: 50%; }
.orb img { width: 54px; height: 54px; }
.orb.mofi { background: radial-gradient(circle at 32% 26%, #fff 0%, var(--mofi-shine) 46%, var(--mofi-body) 100%); }
.c-blue { --c1: #9cc4ff; --c2: #5c7ef2; --cglow: rgba(92,126,242,0.42); }
.c-pink { --c1: #ffb3d6; --c2: #ea5f9f; --cglow: rgba(234,95,159,0.40); }
.c-mint { --c1: #a5ecd7; --c2: #2fae98; --cglow: rgba(47,174,152,0.38); }
.c-gold { --c1: #ffe08f; --c2: #f0a030; --cglow: rgba(240,160,48,0.42); }
.c-violet { --c1: #cdb8ff; --c2: #8a63ee; --cglow: rgba(138,99,238,0.42); }
.feature h3 { font-size: 25px; letter-spacing: -0.02em; display: flex; flex-direction: column; gap: 1px; }
.feature h3 small { font-size: 13px; font-weight: 800; color: var(--link); letter-spacing: 0; }
.feature p { color: var(--ink-2); font-size: 15.5px; }
.feature .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.feature .type-chip { background: var(--lg-pill); color: var(--ink); border: 1px solid var(--lg-rim-soft); font-weight: 700; }
.feature .type-chip svg.ic { color: var(--fx, var(--ic-tint)); }
.feature-deco { position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; opacity: 0.09; pointer-events: none; }
.feature-deco svg { width: 100%; height: 100%; color: var(--ink); fill: currentColor; stroke: none; }
html[data-mood="night"] .feature-deco { opacity: 0.12; }
@media (max-width: 900px) { .feature, .feature.wide { grid-column: span 3; } .feature.last { grid-column: span 6; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } .feature, .feature.wide, .feature.last { grid-column: auto; padding: 20px; border-radius: 26px; } }

/* Pilot */
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 16px; align-items: start; }
.steps { border-radius: 30px; padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 16px 0; position: relative; }
.step + .step { border-top: 1px dashed var(--lg-rim-soft); }
html[data-mood="day"] .step + .step, html[data-mood="sunset"] .step + .step { border-top-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.step-dot { counter-increment: step; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-grad-strong); color: var(--accent-ink); font-weight: 800; font-size: 17px; box-shadow: 0 6px 16px var(--btn-glow); }
.step-dot::before { content: counter(step); }
.step h3 { font-size: 18.5px; margin-bottom: 3px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.facts { border-radius: 30px; padding: clamp(18px, 3vw, 26px); display: flex; flex-direction: column; gap: 4px; }
.facts h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.facts h3 svg.ic { width: 19px; height: 19px; vertical-align: 0; }
.facts dl { display: flex; flex-direction: column; }
.facts dl > div { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 14%, transparent); align-items: flex-start; }
.facts dl > div:last-child { border-bottom: 0; }
.facts dt { font-size: 13px; font-weight: 800; color: var(--ink-3); flex: 0 0 5.6em; padding-top: 1px; }
.facts dd { font-size: 15px; font-weight: 700; flex: 1; min-width: 0; }
.facts .note { font-size: 13.5px; color: var(--ink-2); padding: 12px 14px; border-radius: 18px; margin-top: 8px; }
@media (max-width: 860px) { .pilot-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; } .step-dot { width: 36px; height: 36px; font-size: 15px; } }

/* Promise cards */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promise { border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 9px; }
.promise .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.promise .ico svg.ic { width: 22px; height: 22px; vertical-align: 0; }
.promise h3 { font-size: 18.5px; }
.promise p { color: var(--ink-2); font-size: 15.5px; }
.more-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { border-radius: 38px; padding: clamp(26px, 5vw, 54px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; overflow: hidden; position: relative; }
.cta-band .app-icon { width: clamp(96px, 14vw, 148px); height: auto; aspect-ratio: 1; border-radius: 24%; box-shadow: 0 22px 50px var(--btn-glow), 0 0 0 1px var(--lg-rim); animation: bob 5s ease-in-out infinite; }
.cta-band h2 { font-size: clamp(25px, 3.2vw, 38px); margin-bottom: 10px; }
.cta-band p { color: var(--ink-2); max-width: 36em; }
.cta-band .hero-cta { margin-top: 20px; }
.cta-band small { display: block; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 640px) { .cta-band { grid-template-columns: 1fr; border-radius: 30px; } }

/* ---------- Footer ---------- */
.site-foot { padding: 34px 0 44px; margin-top: 24px; position: relative; }
.foot-in { border-radius: 30px; padding: 24px clamp(18px, 3vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; }
.foot-in .tag { font-family: var(--font-mystic); font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: flex-end; }
.foot-links a { min-height: 40px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; color: var(--ink-2); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.foot-links a:hover { background: var(--lg-pill); color: var(--ink); }
.foot-legal { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); padding-top: 14px; border-top: 1px dashed color-mix(in srgb, var(--ink) 14%, transparent); }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; margin-left: -12px; } }

/* ---------- Sub pages ---------- */
.page { position: relative; padding: calc(var(--bar-h) + 64px) 0 40px; min-height: 80vh; }
.page > .wrap { position: relative; z-index: 4; }
.page-head { border-radius: 30px; padding: clamp(20px, 3.4vw, 34px); margin-bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; }
.page-head p { color: var(--ink-2); font-size: 17px; max-width: 44em; }
.narrow { max-width: calc(820px + var(--gutter) * 2); }
.panel { border-radius: 30px; padding: clamp(18px, 3.2vw, 32px); }
.draft-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; margin-bottom: 16px; background: color-mix(in srgb, #ffb84a 22%, var(--page-bg)); border: 1.5px solid color-mix(in srgb, #d98400 55%, transparent); color: var(--ink); font-size: 15px; font-weight: 700; }
.draft-banner svg.ic { width: 20px; height: 20px; color: var(--mofi-ink); margin-top: 3px; vertical-align: 0; }

/* Prose (privacy / terms) */
.prose { font-size: 16px; }
.prose > * + * { margin-top: 0.9em; }
.prose h2 { font-size: 21px; margin-top: 1.8em; padding-top: 1.1em; border-top: 1px dashed color-mix(in srgb, var(--ink) 16%, transparent); display: flex; align-items: baseline; gap: 10px; }
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.2em; }
.prose h2 .n { font-size: 13px; font-weight: 800; color: var(--chip-ink); background: var(--chip-bg); min-width: 26px; height: 26px; border-radius: 99px; display: inline-grid; place-items: center; flex: none; transform: translateY(-2px); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { display: flex; flex-direction: column; gap: 0.45em; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before { content: "✦"; position: absolute; left: 0.1em; top: 0.05em; color: var(--accent-2); font-size: 0.8em; }
.prose strong { color: var(--ink); font-weight: 800; }
.prose .meta { font-size: 14px; color: var(--ink-3); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.toc a { text-decoration: none; }

/* ---------- Help ---------- */
.search { display: flex; align-items: center; gap: 10px; min-height: 56px; border-radius: 999px; padding: 4px 8px 4px 18px; width: 100%; max-width: 640px; }
.search svg.ic { width: 20px; height: 20px; vertical-align: 0; }
.search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font-size: 16px; font-weight: 700; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--ink-3); font-weight: 600; }
.search:focus-within { outline: 2.5px solid var(--link); outline-offset: 2px; }
.search button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.search button svg.ic { width: 15px; height: 15px; }
.topic-row { display: flex; flex-wrap: wrap; gap: 7px; }
.topic-row button { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.topic-row button svg.ic { width: 14px; height: 14px; vertical-align: 0; }
.topic-row button[aria-pressed="true"] { background: var(--btn-grad-strong); color: var(--accent-ink); border-color: transparent; box-shadow: 0 4px 12px var(--btn-glow); font-weight: 800; }
.topic-row button[aria-pressed="true"] svg.ic { color: inherit; --ic-shine: transparent; }
.faq-group { margin-top: 26px; }
.faq-group > h2 { font-size: 15px; font-weight: 800; color: var(--ink-2); letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; margin: 0 6px 10px; }
.faq-group > h2 svg.ic { width: 17px; height: 17px; vertical-align: 0; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border-radius: 22px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-size: 16.5px; font-weight: 800; position: relative; line-height: 1.45; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2.4px solid var(--link); border-bottom: 2.4px solid var(--link); transform: rotate(45deg); transition: transform 0.25s ease; border-radius: 1px; }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:focus-visible { outline-offset: -4px; border-radius: 22px; }
.faq-item .a { padding: 0 20px 18px; color: var(--ink-2); font-size: 15.5px; }
.faq-item .a > * + * { margin-top: 0.7em; }
.faq-item .a ul { display: flex; flex-direction: column; gap: 0.35em; }
.faq-item .a li { position: relative; padding-left: 1.4em; }
.faq-item .a li::before { content: "✦"; position: absolute; left: 0.1em; color: var(--accent-2); font-size: 0.8em; top: 0.1em; }
.faq-item .a strong { color: var(--ink); font-weight: 800; }
.faq-item[open] .a { animation: riseIn 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
mark { background: color-mix(in srgb, #ffcf5a 55%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.empty { border-radius: 26px; padding: 28px 22px; text-align: center; margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty img { width: 76px; height: 76px; animation: bob 3.2s ease-in-out infinite; }
.help-foot { margin-top: 30px; border-radius: 26px; padding: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.help-foot p { color: var(--ink-2); }
.help-foot b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); }

/* ---------- Forms (feedback) ---------- */
.tabs { --count: 2; height: 52px; --pad: 4px; max-width: 460px; margin-bottom: 16px; }
.tabs > button { font-size: 14.5px; gap: 7px; }
.tabs > button svg.ic { width: 17px; height: 17px; vertical-align: 0; }
.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-size: 15px; font-weight: 800; padding: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.field > legend { margin-bottom: 8px; }
.opt { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.hint { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
.input, .textarea {
  width: 100%; border-radius: 18px; padding: 13px 16px; font-size: 16px; font-weight: 600; line-height: 1.6;
  background: var(--field-bg); border: 1.5px solid var(--field-rim); color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(20, 30, 70, 0.06); transition: border-color 0.2s, box-shadow 0.2s;
}
.input { min-height: 50px; border-radius: 999px; padding: 0 18px; }
.textarea { min-height: 170px; resize: vertical; display: block; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); font-weight: 500; opacity: 1; }
.input:focus, .textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 22%, transparent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.count { font-size: 13px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.count.over { color: var(--danger); }
.err { font-size: 13.5px; font-weight: 700; color: var(--danger); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat { position: relative; }
.cat input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cat span { min-height: 44px; padding: 0 16px 0 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 700; color: var(--ink); background: var(--lg-pill); border: 1.5px solid var(--field-rim); transition: all 0.18s ease; }
.cat span svg.ic { width: 17px; height: 17px; vertical-align: 0; }
.cat input:checked + span { background: var(--btn-grad-strong); color: var(--accent-ink); border-color: transparent; box-shadow: 0 5px 14px var(--btn-glow); font-weight: 800; }
.cat input:checked + span svg.ic { color: inherit; --ic-shine: transparent; }
.cat input:focus-visible + span { outline: 2.5px solid var(--link); outline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-actions .hint { flex: 1; min-width: 220px; }
.alert { display: flex; gap: 11px; align-items: flex-start; padding: 13px 16px; border-radius: 18px; font-size: 15px; font-weight: 700; background: var(--danger-bg); border: 1.5px solid color-mix(in srgb, var(--danger) 55%, transparent); color: var(--ink); }
.alert svg.ic { width: 19px; height: 19px; color: var(--danger); margin-top: 3px; vertical-align: 0; }
.alert.ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.alert.ok svg.ic { color: var(--ok); }
.alert.warn { background: color-mix(in srgb, #ffb84a 20%, transparent); border-color: color-mix(in srgb, #d98400 55%, transparent); }
.alert.warn svg.ic { color: var(--mofi-ink); }

.done { display: flex; flex-direction: column; gap: 18px; animation: riseIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.done-top { display: flex; align-items: center; gap: 16px; }
.done-top img { width: 72px; height: 72px; flex: none; animation: bob 3.2s ease-in-out infinite; }
.done-top h2 { font-size: 24px; }
.done-top p { color: var(--ink-2); }
.creds { display: grid; gap: 10px; }
.cred { border-radius: 20px; padding: 12px 12px 12px 18px; display: flex; align-items: center; gap: 12px; background: var(--field-bg); border: 1.5px dashed var(--field-rim); }
.cred > div { flex: 1; min-width: 0; }
.cred small { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink-3); letter-spacing: 0.04em; }
.cred code { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.cred code.big { font-size: 24px; letter-spacing: 0.06em; }

.saved { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.saved-chip { display: inline-flex; align-items: center; border-radius: 999px; overflow: hidden; }
.saved-chip button { min-height: 38px; padding: 0 12px; font-size: 13.5px; font-weight: 800; font-family: var(--font-mono); color: var(--ink); }
.saved-chip button + button { padding: 0 11px 0 8px; border-left: 1px solid var(--lg-rim-soft); color: var(--ink-3); font-family: var(--font-ui); }
.saved-chip button:hover { background: var(--lg-thumb); color: var(--on-thumb-ink); }
.lookup-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px; }
@media (max-width: 600px) { .lookup-grid { grid-template-columns: 1fr; } }

.ticket { margin-top: 24px; padding-top: 22px; border-top: 1px dashed color-mix(in srgb, var(--ink) 16%, transparent); display: flex; flex-direction: column; gap: 16px; animation: riseIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ticket-head h2 { font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.04em; margin-right: auto; }
.status { min-height: 30px; padding: 0 12px 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; background: var(--chip-bg); color: var(--chip-ink); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status[data-status="answered"] { background: var(--ok-bg); color: var(--ok); }
.status[data-status="pending"] { background: color-mix(in srgb, #ffb84a 24%, transparent); color: var(--mofi-ink); }
.status[data-status="closed"] { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink-2); }
.ticket-meta { font-size: 13.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: min(86%, 560px); display: flex; flex-direction: column; gap: 4px; }
.msg .who { font-size: 12.5px; font-weight: 800; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.msg .who img { width: 20px; height: 20px; border-radius: 6px; }
.msg .bubble { padding: 11px 15px; border-radius: 20px; font-size: 15.5px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.user .bubble { background: var(--chip-bg); border: 1px solid var(--lg-rim-soft); border-bottom-right-radius: 6px; }
.msg.team { align-self: flex-start; }
.msg.team .bubble { background: var(--mystic-surface); border: 1px solid var(--lg-rim); box-shadow: 0 6px 16px var(--lg-shadow); border-bottom-left-radius: 6px; }
.reply { display: flex; flex-direction: column; gap: 10px; }
.reply .textarea { min-height: 110px; }
.skeleton { height: 64px; border-radius: 20px; background: linear-gradient(100deg, color-mix(in srgb, var(--ink) 8%, transparent) 30%, color-mix(in srgb, var(--ink) 16%, transparent) 50%, color-mix(in srgb, var(--ink) 8%, transparent) 70%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton + .skeleton { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: 999px; background: rgba(18, 22, 36, 0.92); color: #fff; font-size: 14px; font-weight: 700; pointer-events: none; transition: opacity 0.25s, transform 0.25s; box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .sky canvas { display: none; }
}
@media print {
  .site-head, .sky, .site-foot, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .page { padding-top: 0; }
  .lg, .lg-card, .lg-pill { background: none; box-shadow: none; border-color: #ccc; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
