/* TimedCapture — site styles
   Palette and type tuned for a quiet, Apple-like product page. */

:root {
  --bg: #fbfbfd;
  --bg-soft: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f6f6f8;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #8a8a90;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, 0.09);
  --danger: #d70015;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 50px rgba(0, 0, 0, 0.08);
  --shadow-pop: 0 24px 70px rgba(0, 0, 0, 0.18);
  --radius: 24px;
  --radius-sm: 16px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

:root[data-theme="dark"] {
  --bg: #08080a;
  --bg-soft: #0e0e11;
  --surface: #131316;
  --surface-2: #1a1a1e;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #8e8e94;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #4da3ff;
  --accent-soft: rgba(77, 163, 255, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-pop: 0 28px 80px rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08080a;
    --bg-soft: #0e0e11;
    --surface: #131316;
    --surface-2: #1a1a1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #8e8e94;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --accent: #4da3ff;
    --accent-soft: rgba(77, 163, 255, 0.14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.55);
    --shadow-pop: 0 28px 80px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: clip; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 38% at 50% -6%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 72%),
    radial-gradient(36% 28% at 88% 6%, rgba(122, 92, 255, 0.06), transparent 70%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 999;
}
.skip:focus { left: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--bg);
  flex: none;
}
.brand-mark svg { width: 16px; height: 16px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg) !important;
  font-weight: 600;
  font-size: 13.5px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.9; }

/* Hero */
.hero {
  padding: clamp(64px, 9vw, 118px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
h1 {
  margin: 22px auto 0;
  max-width: 980px;
  font-size: clamp(42px, 7.2vw, 86px);
  line-height: 1.03;
  font-weight: 650;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.grad {
  background: linear-gradient(96deg, #0071e3 0%, #6156ff 52%, #ff5f8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="dark"] .grad {
  background: linear-gradient(96deg, #6ab4ff 0%, #9d8bff 52%, #ff8fb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grad {
    background: linear-gradient(96deg, #6ab4ff 0%, #9d8bff 52%, #ff8fb0 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
.hero-sub {
  margin: 24px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface); }

/* Floating stage */
.stage {
  position: relative;
  height: clamp(250px, 34vw, 370px);
  max-width: 900px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  perspective: 1200px;
}
.stage-glow {
  position: absolute;
  inset: 6% 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    color-mix(in srgb, var(--accent) 26%, transparent),
    transparent 66%);
  filter: blur(52px);
  opacity: 0.8;
}
.stage-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(190px, 24vw, 260px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow:
    inset 0 0 0 18px color-mix(in srgb, var(--surface) 62%, transparent),
    inset 0 0 0 19px var(--border-strong),
    0 0 60px color-mix(in srgb, var(--accent) 14%, transparent);
  background:
    conic-gradient(from 210deg,
      color-mix(in srgb, var(--accent) 58%, transparent),
      transparent 36%,
      transparent 68%,
      color-mix(in srgb, #a06bff 46%, transparent));
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
  mask: radial-gradient(circle, transparent 55%, #000 56%);
  opacity: 1;
}
.stage-clock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(92px, 11vw, 118px);
  height: clamp(92px, 11vw, 118px);
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stage-clock svg { width: 46%; height: 46%; color: var(--text); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 14px;
  transform: rotate(var(--r, 0deg));
  animation: float 8s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.float-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.fc-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.fc-icon svg { width: 19px; height: 19px; }
.card-a { left: 0; top: 34%; --r: -5deg; }
.card-b { left: 30%; top: 2%; --r: 2deg; animation-delay: -2.6s; }
.card-c { right: 0; top: 44%; --r: 5deg; animation-delay: -5.2s; }

@keyframes float {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
  50% { transform: rotate(var(--r, 0deg)) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2 { margin-top: 14px; }
h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 650;
  margin: 0;
  text-wrap: balance;
}
.section-head p { margin: 16px auto 0; max-width: 600px; color: var(--muted); font-size: 17.5px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 20px 0 8px; font-size: 19px; letter-spacing: -0.02em; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.band-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.band h2 { font-size: clamp(26px, 3.4vw, 40px); }
.band p.lead { color: var(--muted); margin: 16px 0 0; font-size: 17px; }
.checks { display: grid; gap: 14px; }
.check {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.check .tick {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}
.check .tick svg { width: 14px; height: 14px; }
.check b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.check span { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }

/* Download */
.download-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(80% 120% at 50% -20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--surface);
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
}
.download-card h2 { font-size: clamp(30px, 4.6vw, 52px); }
.download-card p { color: var(--muted); max-width: 520px; margin: 16px auto 0; }
.download-actions { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.download-meta { margin-top: 18px; color: var(--faint); font-size: 13px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }
.footer-note { margin-top: 18px; color: var(--faint); font-size: 12.5px; max-width: 720px; }

/* Floating controls */
.controls {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.ctrl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s ease;
}
.ctrl:hover, .ctrl[aria-expanded="true"] { background: var(--surface-2); }
.ctrl svg { width: 17px; height: 17px; flex: none; }
.ctrl-sep { width: 1px; height: 18px; background: var(--border); }

.menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 190px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu[hidden] { display: none; }
.menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.menu button:hover { background: var(--surface-2); }
.menu button[aria-checked="true"]::after {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}
.menu .menu-label {
  padding: 6px 11px 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 110px); }
.legal .wrap { max-width: 820px; }
.legal h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 650;
}
.legal .meta { margin-top: 14px; color: var(--faint); font-size: 14px; }
.legal .lead {
  margin: 28px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}
.summary {
  margin: 36px 0 12px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.summary h2 { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.summary-item { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.summary-item:first-of-type { border-top: 0; padding-top: 0; }
.summary-item:last-child { padding-bottom: 0; }
.summary-item b { display: block; font-size: 15px; font-weight: 600; }
.summary-item span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.summary-item .tick {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex: none; margin-top: 1px;
}
.summary-item .tick svg { width: 13px; height: 13px; }

.legal section { margin-top: 44px; }
.legal h2 { margin: 0 0 10px; font-size: 21px; letter-spacing: -0.015em; font-weight: 650; }
.legal p { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal .note {
  margin-top: 36px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
}
.legal-foot { margin-top: 40px; color: var(--faint); font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .band-inner { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
}
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav { height: 58px; }
  .hero { padding-top: 48px; }
  .stage { height: 300px; }
  .card-a { display: none; }
  .card-b { left: 50%; margin-left: -86px; top: 0; }
  .card-c { left: 0; right: auto; top: auto; bottom: 4%; }
  .float-card { padding: 11px 13px; font-size: 13px; }
  .float-card small { font-size: 11px; }
  .controls { right: 12px; bottom: 12px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .legal .lead { font-size: 17.5px; }
}
@media (max-width: 420px) {
  .float-card { font-size: 12.5px; padding: 10px 12px; }
  .fc-icon { width: 32px; height: 32px; }
  .fc-icon svg { width: 17px; height: 17px; }
}

html[lang="ja"] .band h2 { font-size: clamp(24px, 3.1vw, 34px); }
html[lang="ja"] .card h3 { letter-spacing: 0; }

/* Print */
@media print {
  .controls, .site-header, .site-footer, .download-actions { display: none !important; }
  body { overflow-x: clip; }

body::before { display: none; }
  body { background: #fff; color: #000; }
}

/* Minimal one-screen landing */
body.mini-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.mini-main {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  padding: clamp(40px, 7vw, 80px) 24px clamp(32px, 5vw, 56px);
}
.mini-inner { text-align: center; max-width: 760px; }
.mini-icon {
  width: clamp(84px, 9vw, 104px);
  height: clamp(84px, 9vw, 104px);
  margin: 0 auto clamp(24px, 3vw, 34px);
  border-radius: 26%;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(120% 120% at 30% 0%, #4a4a4f 0%, #1d1d1f 58%, #0c0c0e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 18px 44px rgba(0, 0, 0, 0.24);
  position: relative;
}
.mini-icon::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 22%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}
.mini-icon svg { width: 48%; height: 48%; position: relative; z-index: 1; }
.mini-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.mini-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.mini-inner h1 {
  margin: 16px auto 0;
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 650;
  max-width: 820px;
  text-wrap: balance;
}
.mini-sub {
  margin: 18px auto 0;
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(15.5px, 1.7vw, 18px);
  line-height: 1.6;
  text-wrap: pretty;
}
.mini-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px auto 0;
  color: var(--faint);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.mini-facts span { display: inline-flex; align-items: center; gap: 10px; }
.mini-facts span + span::before {
  content: "·";
  color: var(--border-strong);
  margin-right: 2px;
}
.mini-cta { margin-top: 30px; position: relative; display: inline-flex; justify-content: center; }
.mini-cta .btn { min-width: 176px; }

.soon {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  width: min(300px, calc(100vw - 48px));
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  text-align: left;
  z-index: 130;
}
.soon[hidden] { display: none; }
.soon::before {
  content: "";
  position: absolute;
  top: -6px;
  left: var(--arrow, 50%);
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.soon b { display: block; font-size: 13.5px; letter-spacing: -0.01em; }
.soon p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.soon a { display: inline-block; margin-top: 9px; color: var(--accent); font-size: 12.5px; font-weight: 600; }
.soon a:hover { text-decoration: underline; }

.mini-footer {
  flex: none;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  padding-right: 190px;
  color: var(--faint);
  font-size: 12px;
}
.mini-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  padding: 0;
}
.mini-footer nav { display: flex; gap: 18px; }
.mini-footer a:hover { color: var(--text); }

@media (max-width: 720px) {
  .mini-main { padding-top: 28px; }
  .mini-icon { border-radius: 24px; }
  .mini-facts { gap: 8px 16px; }
  .mini-facts span + span::before { display: none; }
  .mini-footer { padding-right: 24px; }
  .mini-footer .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Typing headline */
.type-title {
  margin: 22px auto 0;
  max-width: 1000px;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 650;
  text-wrap: balance;
}
.type-title .type-line { display: block; }
.type-title .type-line-two {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.22em;
  min-height: 1.12em;
}
.type-word {
  display: inline-block;
  white-space: pre;
  color: var(--accent);
}
.cursor {
  display: inline-block;
  width: 0.055em;
  height: 0.82em;
  margin-left: 0.02em;
  margin-right: 0.04em;
  border-radius: 1px;
  background: var(--accent);
  transform: translateY(0.02em);
  animation: caret-blink 1.05s steps(1) infinite;
}
.cursor.typing { animation: none; opacity: 1; }
@keyframes caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
.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;
}

html[lang="zh-Hans"] .type-line-two,
html[lang="zh-Hant"] .type-line-two,
html[lang="ja"] .type-line-two { gap: 0; }

/* Real app icon in the header */
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  flex: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Footer: legal links + appearance/language controls */
.footer-copy { color: var(--faint); font-size: 12.5px; }
.site-footer .footer-row { align-items: center; }
.footer-controls {
  position: relative;
  right: auto;
  bottom: auto;
  padding: 0;
  gap: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.footer-controls .ctrl { height: 32px; padding: 0 9px; }
.footer-controls .menu { bottom: calc(100% + 8px); }
.type-title { margin-top: 0; }

@media (max-width: 720px) {
  .footer-controls { margin-top: 6px; }
  .footer-controls .ctrl { padding-left: 0; }
  .footer-controls .ctrl:first-child { padding-left: 8px; }
}

/* Scenario grid (replaces the ring + floating cards) */
.scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: clamp(32px, 5vw, 52px) auto 0;
  text-align: left;
}
.scene {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow-sm);
}
.scene-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  flex: none;
}
.scene-icon svg { width: 18px; height: 18px; }
.scene b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.scene small { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .scene { min-height: 64px; padding: 11px 12px; gap: 10px; }
  .scene b { font-size: 12.5px; }
  .scene small { font-size: 11px; }
}

/* Language-aware headline scale and tighter feature intro */
html[lang="zh-Hans"] .type-title,
html[lang="zh-Hant"] .type-title { font-size: clamp(32px, 6vw, 72px); }
html[lang="ja"] .type-title { font-size: clamp(26px, 6vw, 68px); }
.type-line { text-wrap: balance; }
#features { padding-top: clamp(36px, 5vw, 64px); }
.scenes { max-width: 1000px; }

/* Header download with Apple mark */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}
.apple-icon { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* One-line footer */
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-copy { flex: 1 1 auto; min-width: 0; color: var(--faint); font-size: 11.5px; line-height: 1.5; letter-spacing: 0.002em; }
.footer-links { flex: none; }
.footer-controls { flex: none; }
@media (max-width: 1120px) {
  .footer-copy { font-size: 10.8px; }
  .footer-row { gap: 12px; }
  .footer-links { gap: 14px; }
}
@media (max-width: 760px) {
  .site-footer .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-copy { font-size: 11.5px; }
}

/* Large, swipeable scenario cards */
.scenes {
  display: flex;
  gap: 14px;
  max-width: 1000px;
  margin: clamp(30px, 4.5vw, 46px) auto 0;
  padding: 4px 2px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scenes::-webkit-scrollbar { display: none; }
.scenes:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 22px; }
.scene {
  flex: 0 0 clamp(238px, 70vw, 300px);
  min-height: 152px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  scroll-snap-align: start;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: var(--shadow-sm);
}
.scene-icon { width: 42px; height: 42px; border-radius: 12px; }
.scene-icon svg { width: 21px; height: 21px; }
.scene b { font-size: 17px; letter-spacing: -0.015em; }
.scene small { margin-top: 3px; font-size: 13px; line-height: 1.45; }

/* Fade the partially visible card at the right edge of the scenario strip */
.scenes {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
}

/* Tighten the gap between the scenario strip and the feature section */
.hero { padding-bottom: clamp(20px, 3vw, 36px); }
#features { padding-top: clamp(32px, 4vw, 56px); }

/* Auto-scrolling scenario marquee */
.scenes {
  position: relative;
  display: block;
  max-width: 1000px;
  margin: clamp(30px, 4.5vw, 46px) auto 0;
  padding: 0;
  overflow: hidden;
  scroll-snap-type: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 38px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 38px), transparent 100%);
}
.scenes-track {
  display: flex;
  width: max-content;
  animation: scene-marquee 70s linear infinite;
  will-change: transform;
}
.scene {
  flex: 0 0 280px;
  min-height: 132px;
  margin-right: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  scroll-snap-align: none;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: var(--shadow-sm);
}
.scene b { font-size: 19px; letter-spacing: -0.02em; }
.scene-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.scene-meta .fn {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
  flex: none;
}
.scenes:hover .scenes-track,
.scenes:focus-within .scenes-track { animation-play-state: paused; }
@keyframes scene-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 560px) {
  .scene { flex-basis: 252px; padding: 20px; min-height: 124px; }
  .scene b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .scenes {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .scenes-track { animation: none; }
}

/* Phones: no auto marquee, swipe the cards manually */
@media (max-width: 720px) {
  .scenes {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
    mask-image: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .scenes::-webkit-scrollbar { display: none; }
  .scenes-track { animation: none; }
  .scene { scroll-snap-align: start; }
}

/* Tighter cards, gentler start */
.scene { min-height: 112px; padding: 20px 22px; gap: 12px; }
.scene b { font-size: 18px; }
.scenes-track { animation-delay: 2s; }
@media (max-width: 560px) {
  .scene { min-height: 108px; padding: 18px 20px; gap: 10px; }
  .scene b { font-size: 17px; }
}

/* Compact coming-soon tooltip */
.soon {
  width: auto;
  max-width: calc(100vw - 48px);
  padding: 11px 16px;
  border-radius: 12px;
  text-align: center;
}
.soon b { font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Privacy modal (works in previews that cannot navigate to another file) */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 36px 36px 40px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--bg-soft); }
.modal-panel h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.03em; }
.modal-meta { margin: 8px 0 0; color: var(--faint); font-size: 13px; }
.modal-lead { margin: 18px 0 0; color: var(--text); font-size: 16px; line-height: 1.6; }
.modal-panel h3 { margin: 32px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.modal-panel p { margin: 0 0 10px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.modal-panel ul { margin: 0 0 10px; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.modal-panel li { margin: 5px 0; }
.modal-panel a { color: var(--accent); }
.modal-summary { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--bg-soft); }
.modal-summary h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.modal-summary b { display: block; font-size: 14px; }
.modal-summary span { display: block; color: var(--muted); font-size: 13.5px; margin: 2px 0 10px; }
body.modal-open { overflow: hidden; }

/* Swiss-style legal documents */
.legal { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.legal .wrap { max-width: 760px; }
.legal h1 {
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 650;
}
.legal .meta { margin-top: 12px; font-size: 14px; color: var(--faint); }
.legal .lead { margin-top: 26px; font-size: 19px; line-height: 1.6; color: var(--text); }
.legal section { margin-top: 44px; }
.legal h2 { margin: 0 0 10px; font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.legal p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.72; }
.legal ul { margin: 0 0 12px; font-size: 16.5px; line-height: 1.72; }
.legal .legal-foot { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .legal { padding-top: 40px; }
  .legal .lead { font-size: 17.5px; }
}

/* Footer: keep the right side on one line; only the copy wraps */
.site-footer .footer-row {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 720px;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: none;
}
.footer-right .footer-links { gap: 18px; }
.footer-right .controls { flex: none; }
@media (max-width: 820px) {
  .site-footer .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-copy { max-width: none; }
  .footer-right { width: 100%; justify-content: space-between; gap: 16px; }
}

/* Privacy: app / website / general blocks */
.policy-part {
  margin: 64px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.03em;
  font-weight: 650;
}
.part-intro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
@media (max-width: 720px) {
  .policy-part { margin-top: 44px; padding-top: 20px; }
}

.modal-part {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.modal-part-intro { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
