/* style.css — Sharebar site + Share Page. SPDX-License-Identifier: MIT
   No external fonts / CDN / network (zero external requests, N-008). System
   font stack only. Strict CSP forbids inline styles, so every visual lives here
   as a class. This file styles three things that share one design language:
     1. the marketing site  — Landing (LP) + Guide + Privacy + Support
     2. the Share Page       — the interactive receiver (#receiver, driven by
                               js/app.js; its class contract MUST be preserved)
     3. shared chrome        — header, footer, buttons, chips. */

:root {
  --bg: #0e1014;
  --bg-2: #12151c;
  --panel: #161a22;
  --panel-2: #1d212b;
  --panel-3: #232836;
  --ink: #e9edf4;
  --ink-soft: #c9d0db;
  --muted: #98a1b2;
  --muted-2: #6b7385;
  --line: #262b36;
  --line-2: #333a48;
  --accent: #5b8cff;
  --accent-2: #84a7ff;
  --accent-dim: rgba(91, 140, 255, 0.14);
  --accent-ink: #ffffff;
  --ok: #46c98b;
  --warn: #ffb454;
  --err: #ff6b6b;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 16, 20, 0.82);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--accent), #3f6de0);
  color: #fff; font-size: 13px; font-weight: 800; font-family: var(--mono);
  box-shadow: 0 4px 14px -4px rgba(91, 140, 255, 0.7);
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); padding: 7px 11px; border-radius: 8px; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--panel); text-decoration: none; }
.nav a.on { color: var(--ink); }
.nav .nav-cta { color: var(--accent-ink); background: var(--accent); margin-left: 6px; }
.nav .nav-cta:hover { background: #4a7bf0; color: #fff; }

/* ============================================================
   Language toggle (EN / 日本語)
   ============================================================
   Content exists twice in the markup, tagged data-lang="en"/"ja"; the
   <html lang> attribute (default "en" in the file, switched by js/i18n.js)
   decides which of the pair is visible. Pure CSS: with scripts disabled the
   page is simply English. display:none removes the hidden language from the
   accessibility tree and from find-in-page, so the page never reads twice. */
:root:not([lang="ja"]) [data-lang="ja"] { display: none !important; }
:root[lang="ja"] [data-lang="en"] { display: none !important; }
/* Inline pairs (spans inside buttons/chips/headings) must not add a box of
   their own, or flex gaps and pre-line headings would change: the visible
   span dissolves into its parent. The hide rules above still win (!important). */
span[data-lang="en"], span[data-lang="ja"] { display: contents; }

.lang-tabs {
  display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto;
  padding: 3px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
}
.lang-tabs button {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent;
  color: var(--muted); font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  line-height: 1; padding: 5px 9px; border-radius: 7px; cursor: pointer;
}
.lang-tabs button:hover { color: var(--ink); }
.lang-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 650; font-size: 15px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--ink); white-space: nowrap;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; background: var(--panel-3); border-color: var(--muted-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 22px -10px rgba(91, 140, 255, 0.8); }
.btn.primary:hover { background: #4a7bf0; border-color: transparent; }
.btn.lg { padding: 14px 24px; font-size: 16px; }
.btn.sm { padding: 9px 14px; font-size: 13.5px; }
.btn .px { font-family: var(--mono); font-size: 12px; font-weight: 500; opacity: 0.85; padding-left: 8px; margin-left: 2px; border-left: 1px solid rgba(255,255,255,0.25); }
.btn .ic { width: 16px; height: 16px; display: block; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ============================================================
   Eyebrow / kicker, chips, badges, kbd
   ============================================================ */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--accent-2); font-weight: 500;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
.eyebrow.center { justify-content: center; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 13.5px; color: var(--ink-soft); padding: 7px 13px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
}
.chip.hl { color: var(--accent-ink); background: var(--accent); border-color: transparent; font-weight: 600; }
.chip .g { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.chip.hl .g { color: rgba(255,255,255,0.9); }

.badge-share, .badge-local {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.4px;
  padding: 3px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap;
}
.badge-share { color: var(--accent-2); background: var(--accent-dim); border: 1px solid rgba(91, 140, 255, 0.35); }
.badge-local { color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2); }

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 24px; padding: 0 7px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 7px;
}

/* ============================================================
   Sections / generic layout helpers
   ============================================================ */
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 32px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(24px, 3vw, 33px); line-height: 1.18; letter-spacing: -0.02em; margin-top: 14px; }
.sec-head p { color: var(--muted); font-size: 17px; margin-top: 14px; line-height: 1.65; }
.note { color: var(--muted); font-size: 13px; margin-top: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.lean { grid-template-columns: 1.08fr 1fr; }

/* ============================================================
   Hero (LP — split / editorial, wireframe variant B)
   ============================================================ */
.lp-hero { padding: 60px 0 30px; position: relative; overflow: hidden; }
.lp-hero::before {
  content: ""; position: absolute; top: -180px; right: -120px; width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.22), transparent 62%);
  filter: blur(20px); pointer-events: none; z-index: 0;
}
.lp-hero .wrap { position: relative; z-index: 1; }
.lp-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.lp-hero h1 {
  font-size: clamp(34px, 5vw, 50px); line-height: 1.1; letter-spacing: -0.025em;
  margin-top: 18px; white-space: pre-line;
}
.lp-hero .lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin-top: 20px; line-height: 1.66; max-width: 30em; }

/* ============================================================
   Value strip (inline chips) + value cards
   ============================================================ */
.value-strip { display: flex; flex-wrap: wrap; gap: 11px; }
.value-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.vcard .ic {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; font-family: var(--mono);
  font-size: 18px; color: var(--accent-2); background: var(--accent-dim); border: 1px solid rgba(91,140,255,0.25);
}
.vcard h3 { font-size: 16.5px; margin-bottom: 7px; }
.vcard p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ============================================================
   Alternating feature rows (LP variant B)
   ============================================================ */
.lp-rows { display: flex; flex-direction: column; gap: 40px; }
.lp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lp-row.flip > .lp-row-media { order: -1; }
.lp-row h2 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.lp-row p { color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ============================================================
   Menu-bar popover mock (the product centerpiece, pure CSS)
   ============================================================ */
.popover {
  width: 300px; max-width: 100%; background: var(--panel); border: 1px solid var(--line-2);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.8), 0 6px 20px -10px rgba(0,0,0,0.6);
}
.pv-search { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.pv-cmd {
  width: 22px; height: 22px; border-radius: 6px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.pv-ph { color: var(--muted-2); font-size: 13.5px; }
.pv-detect { padding: 11px 13px; background: var(--accent-dim); border-bottom: 1px solid var(--line); }
.pv-detect .k { font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; color: var(--accent-2); }
.pv-detect .msg { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.pv-detect .run { float: right; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pv-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 9px; }
.pv-chips .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; color: var(--muted-2); }
.pv-chips .chip { padding: 4px 10px; font-size: 12px; }
.pv-list { padding: 6px; display: grid; gap: 1px; }
.pv-item { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; font-size: 13.5px; }
.pv-item .gl { width: 24px; flex: 0 0 auto; text-align: center; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.pv-item .nm { flex: 1; }
.pv-item .ret { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.85); }
.pv-item.sel { background: var(--accent); color: #fff; }
.pv-item.sel .gl { color: rgba(255,255,255,0.9); }

/* ============================================================
   Browser window mock (share page / receiver preview, pure CSS)
   ============================================================ */
.win { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: 0 30px 60px -28px rgba(0,0,0,0.8); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 10px 13px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.win-bar .d { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); flex: 0 0 auto; }
.win-bar .d:nth-child(1) { background: #ff5f57; } .win-bar .d:nth-child(2) { background: #febc2e; } .win-bar .d:nth-child(3) { background: #28c840; }
.win-url { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { padding: 16px; }
.win-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.5px; color: var(--muted-2); margin-bottom: 12px; text-transform: uppercase; }
.code-line { font-family: var(--mono); font-size: 13px; color: var(--accent-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; word-break: break-all; }
.result-ph { margin-top: 10px; padding: 16px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--muted); font-size: 13px; text-align: center; background: var(--bg-2); }
.win-cta { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* engine diagram (app <-> page share one core) */
.engine { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.engine .node { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 18px 14px; text-align: center; }
.engine .node .t { font-size: 14px; font-weight: 600; }
.engine .node .s { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; }
.engine .core { grid-column: 1 / -1; margin-top: 12px; background: var(--accent-dim); border: 1px solid rgba(91,140,255,0.3); border-radius: var(--radius-sm); padding: 12px; text-align: center; font-family: var(--mono); font-size: 12.5px; color: var(--accent-2); }
.engine .link { color: var(--muted-2); font-size: 20px; }

/* ============================================================
   Flow steps (numbered, with arrows)
   ============================================================ */
.flow { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.flow .step { flex: 1; min-width: 120px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.flow .step .n, .step-n {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-dim); color: var(--accent-2); border: 1px solid rgba(91,140,255,0.35);
  font-family: var(--mono); font-size: 13px; font-weight: 700;
}
.flow .step .lbl { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.flow .arrow { align-self: center; color: var(--muted-2); font-size: 18px; flex: 0 0 auto; }

/* ============================================================
   Callouts
   ============================================================ */
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--radius-sm); padding: 16px 18px; }
.callout.hi { border-left-color: var(--accent); background: linear-gradient(100deg, var(--accent-dim), transparent 70%), var(--panel); }
.callout .ct-h { font-size: 15px; font-weight: 650; margin-bottom: 5px; }
.callout p, .callout .ct-b { color: var(--muted); font-size: 14px; line-height: 1.6; }
.callout.big { padding: 26px 28px; }
.callout.big .ct-h { font-size: 21px; letter-spacing: -0.01em; }
.callout.big .ct-b { font-size: 15.5px; margin-top: 8px; }
.callout .pv-chips { margin: 8px 0; }
/* spacing for a callout that follows another visual block inside a guide card */
.flow + .callout, .perm-row + .callout, .tool-gallery + .callout { margin-top: 14px; }
.callout + .callout { margin-top: 12px; }

/* ============================================================
   Cross band (LP <-> Guide CTA)
   ============================================================ */
.cross-band {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: radial-gradient(120% 160% at 0% 0%, var(--accent-dim), transparent 55%), var(--panel);
  padding: 30px 32px;
}
.cross-band .cb-text { flex: 1; min-width: 240px; }
.cross-band .cb-h { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.cross-band .cb-b { color: var(--muted); font-size: 15px; margin-top: 5px; }
.cross-band .step-n { width: 40px; height: 40px; font-size: 17px; }

/* pricing split */
.price-band { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 34px 34px; }
.price-band .pb-text { flex: 1; min-width: 260px; }
.price-band .pb-text h2 { font-size: clamp(23px, 2.6vw, 29px); letter-spacing: -0.02em; margin-bottom: 8px; }
.price-band .pb-text p { color: var(--muted); font-size: 16px; }
.price-band .pb-cta { text-align: center; }

/* support / tips lanes (LP #support-tips — #342). Flex, not grid, so the
   Tip Jar lane spans the full band while the Ko-fi lane ships hidden
   (js/app.js reveals it only once its data-kofi URL is confirmed). */
.tip-lanes { display: flex; gap: 16px; flex-wrap: wrap; }
.tip-lane { flex: 1 1 300px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tip-lane h3 { font-size: 16.5px; margin-bottom: 7px; }
.tip-lane p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.tip-lane .tl-cta { margin-top: 12px; }

/* ============================================================
   Guide — sticky tabs + section grid (variant B)
   ============================================================ */
.guide-head { padding: 40px 0 22px; }
.guide-head h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.025em; }
.guide-head .lede { color: var(--muted); font-size: 18px; margin-top: 8px; }
.guide-tabs {
  position: sticky; top: 62px; z-index: 30;
  background: rgba(14, 16, 20, 0.9); backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.guide-tabs .wrap { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.guide-tabs a.chip { cursor: pointer; }
.guide-tabs a.chip:hover { text-decoration: none; border-color: var(--muted-2); color: var(--ink); }
.guide-grid { display: flex; flex-direction: column; gap: 20px; max-width: 880px; margin: 0 auto; padding-top: 32px; }
.guide-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px 28px; scroll-margin-top: 132px; }
.guide-card .vis-split { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.guide-card .vis-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .guide-card .vis-split { grid-template-columns: 1fr; } .guide-card .vis-2 { grid-template-columns: 1fr; } }
.guide-card .sec-num { font-family: var(--mono); font-size: 12px; color: var(--accent-2); letter-spacing: 1px; }
.guide-card h2 { font-size: 21px; margin: 4px 0 8px; letter-spacing: -0.01em; }
.guide-card > p { color: var(--muted); font-size: 14.5px; line-height: 1.66; }
.guide-card .vis { margin-top: 16px; }

/* tool gallery (10 tools) */
.tool-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 15px; }
.tcard .tc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.tcard .tc-gl { width: 30px; height: 30px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--accent-2); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; }
.tcard h4 { font-size: 14.5px; }
.tcard .tc-top .sp { flex: 1; }
.tcard .tc-body { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* pasteboard permission row (Allow / Ask / Deny) */
.perm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.perm { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.perm h4 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; margin-bottom: 7px; }
.perm h4 .st { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--muted-2); }
.perm.allow h4 .st { background: var(--ok); }
.perm.ask h4 .st { background: var(--warn); }
.perm.deny h4 .st { background: var(--err); }
.perm p { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* keyboard shortcuts table */
.keys { display: grid; gap: 0; }
.keys .krow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.keys .krow:last-child { border-bottom: none; }
.keys .combo { display: flex; gap: 5px; flex: 0 0 auto; flex-wrap: wrap; }
.keys .kdesc { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq .qa { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 17px; }
.faq .q { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.faq .q .step-n { width: 24px; height: 24px; font-size: 12px; }
.faq .a { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 8px; padding-left: 34px; }

/* guide install mocks */
.onboard-mock { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; text-align: center; height: 100%; }
.onboard-mock .mark { width: 42px; height: 42px; border-radius: 11px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--accent), #3f6de0); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 16px; box-shadow: 0 6px 16px -6px rgba(91,140,255,0.7); }
.onboard-mock .ob-t { font-weight: 650; font-size: 14.5px; }
.onboard-mock .ob-b { color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.55; }
.menubar-mock { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 14px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.menubar-mock .mm-sb { width: 22px; height: 22px; border-radius: 6px; flex: 0 0 auto; background: linear-gradient(150deg, var(--accent), #3f6de0); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.menubar-mock .sp { flex: 1; }
.menubar-cap { color: var(--muted); font-size: 12.5px; margin-top: 10px; text-align: center; }

/* ============================================================
   Receiver / Share Page  (class contract used by js/app.js — DO NOT rename)
   ============================================================ */
.receiver { padding: 40px 0 72px; }
.tool-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.tool-card h2 { margin: 0 0 4px; font-size: 22px; }
.subtle { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.editor { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; font-size: 15px;
  background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 8px; font-family: var(--mono);
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.result { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.kv { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.kv .k { color: var(--muted); font-size: 13px; min-width: 120px; font-weight: 600; }
.kv .v { font-family: var(--mono); font-size: 14px; word-break: break-word; }
.matches, .runs { display: grid; gap: 6px; }
.match, .run { font-family: var(--mono); font-size: 13px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.match { display: flex; flex-wrap: wrap; gap: 12px; }
.match .mi { color: var(--accent); font-weight: 700; }
.match .mr { color: var(--ink-soft); }
.match .mg { color: var(--muted); width: 100%; }
.invalid { color: var(--warn); font-family: var(--mono); font-size: 14px; }
.swatch { width: 100%; height: 64px; border-radius: 8px; border: 1px solid var(--line-2); }
.error { text-align: center; padding: 24px 0; }
.error-msg { color: var(--err); font-size: 16px; margin: 0 0 16px; }
.open-hint { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ============================================================
   Content pages (Privacy / Support)
   ============================================================ */
.doc { padding: 48px 0 72px; max-width: 760px; }
.doc h1 { font-size: 32px; margin: 0 0 6px; letter-spacing: -0.02em; }
.doc h2 { font-size: 19px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 22px; }
.doc code { font-family: var(--mono); font-size: 0.92em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.doc .updated { color: var(--muted); font-size: 13px; }
.doc .btn { color: var(--accent-ink); }
.doc .btn:hover { text-decoration: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 13.5px; }
.site-footer .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer .f-brand { font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.site-footer .f-brand .dot { color: var(--accent); }
.site-footer nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.site-footer a:hover { color: var(--ink); background: var(--panel); text-decoration: none; }
.site-footer .sp { flex: 1; }
.site-footer .f-note { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .split, .split.lean { grid-template-columns: 1fr; gap: 28px; }
  .lp-row { grid-template-columns: 1fr; gap: 22px; }
  .lp-row.flip > .lp-row-media { order: 0; }
  .value-cards { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .tool-gallery { grid-template-columns: 1fr; }
  .perm-row { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  /* Japanese nav labels are wider than the English ones; below ~780px the
     one-row header can't hold brand + 4 links + CTA + language tabs in ja.
     Trim the ja row only — the CTA is duplicated in the hero right below. */
  :root[lang="ja"] .nav .nav-cta { display: none; }
  :root[lang="ja"] .nav a { padding: 7px 8px; font-size: 13.5px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .lp-hero { padding: 40px 0 20px; }
  .section { padding: 48px 0; }
  .value-cards { grid-template-columns: 1fr; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .nav { gap: 1px; }
  .nav .nav-cta { display: none; } /* hero CTA is right below; keep the mobile bar uncramped */
  .kv .k { min-width: 0; }
  .flow .step { min-width: 100%; }
  .flow .arrow { display: none; }
  /* Two-row header: brand + language tabs on the first row, the nav links on
     their own full-width second row (the tabs are a SIBLING of .nav for this).
     Height becomes content-driven; .guide-tabs' sticky offset follows it. */
  .site-header .wrap { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; row-gap: 0; }
  .brand { margin-right: auto; }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .guide-tabs { top: 84px; }
}
