/* Connect, For Real · legal, support and shared-link pages.
   Same tokens, type and parts as getconnectapp.github.io. */
:root {
  --ground: #F3F3F2; --card: #FFFFFF; --ink: #111111; --ink-2: #2E2E2E;
  --muted: #6B6B6B; --faint: #A3A3A3;
  --line: rgba(17,17,17,.20); --line-soft: rgba(17,17,17,.08);
  --inverse: #111111; --on-inverse: #FAFAFA;
  --glass: rgba(255,255,255,.70); --glass-edge: rgba(255,255,255,.78);
  --shadow: 0 1px 5px rgba(0,0,0,.11), 0 8px 22px rgba(0,0,0,.09), 0 20px 46px rgba(0,0,0,.05);
  --f-display: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0A0A0A; --card: #161616; --ink: #F1F1F1; --ink-2: #D6D6D6;
    --muted: #9A9A9A; --faint: #5E5E5E;
    --line: rgba(255,255,255,.18); --line-soft: rgba(255,255,255,.07);
    --inverse: #F1F1F1; --on-inverse: #111111;
    --glass: rgba(30,30,30,.66); --glass-edge: rgba(255,255,255,.10);
    --shadow: 0 1px 5px rgba(0,0,0,.5), 0 8px 22px rgba(0,0,0,.35), 0 20px 46px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
::selection { background: var(--ink); color: var(--ground); }
svg { fill: currentColor; }
svg.i { width: 1em; height: 1em; flex: none; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.display { font-family: var(--f-display); font-weight: 700; letter-spacing: -.022em; line-height: 1.02; }
.display em { font-style: italic; }
[hidden] { display: none !important; }
section, h2 { scroll-margin-top: 100px; }

/* nav */
.nav { position: fixed; z-index: 50; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 14px); padding-inline: 12px; pointer-events: none; transition: transform .5s var(--ease); }
.nav.is-hidden { transform: translateY(calc(-100% - 70px)); }
.nav__bar { pointer-events: auto; max-width: 1120px; margin-inline: auto; height: 56px; border-radius: 28px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 22px;
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
.wm { display: flex; align-items: center; color: var(--ink); margin-right: auto; }
.wm svg { height: 21px; width: auto; fill: currentColor; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { font-size: .92rem; text-decoration: none; color: var(--muted); padding: 8px 13px; border-radius: 18px; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); background: var(--line-soft); }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--line-soft); border-radius: 999px; padding: 3px; }
.seg__pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2); border-radius: 999px; background: var(--inverse); transition: transform .32s var(--ease); }
.seg button { position: relative; z-index: 1; padding: 6px 12px; font-size: .8rem; font-weight: 500; color: var(--muted); transition: color .25s; border-radius: 999px; }
.seg button[aria-pressed="true"] { color: var(--on-inverse); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; border-radius: 999px; font-weight: 500; white-space: nowrap; transition: background .2s, border-color .2s; border: 1.2px solid var(--line); }
.btn:hover { border-color: var(--ink); }
.btn--ink { background: var(--inverse); color: var(--on-inverse); border-color: var(--inverse); }
.btn--sm { height: 40px; padding: 0 18px; font-size: .9rem; }
.btn--lg { height: 54px; padding: 0 24px; font-size: 1rem; }
.btn svg.i { width: 18px; height: 18px; }
.badge { display: inline-flex; border-radius: 12px; }
.badge img { height: 52px; width: auto; display: block; }

/* page hero */
.hero { padding-top: calc(env(safe-area-inset-top, 0px) + 150px); padding-bottom: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(3rem, 7vw, 6rem); }
.hero .lead { font-size: 1.18rem; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.updated { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1.2px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.updated::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--ink); }

/* reading layout with an index */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-left: 1.2px solid var(--line-soft); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1.2px; border-left: 1.2px solid transparent; font-size: .9rem; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-on { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }
.toc__m { display: none; }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: clamp(44px, 6vw, 64px); }
.prose section { display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 4px; }
.prose p { color: var(--ink-2); }
.prose ul { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.prose li { position: relative; padding-left: 24px; color: var(--ink-2); }
.prose li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--ink); }
.prose li b { color: var(--ink); font-weight: 600; }
.prose a { text-decoration-thickness: 1.2px; text-underline-offset: 3px; }
.short { background: var(--card); border: 1.2px solid var(--line); border-radius: 24px; padding: clamp(22px, 3.4vw, 36px); box-shadow: var(--shadow); }
.short h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

/* support */
.help { padding-bottom: clamp(80px, 10vw, 140px); display: flex; flex-direction: column; gap: 16px; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding: clamp(26px, 5vw, 56px); border-radius: 36px; background: var(--card); border: 1.2px solid var(--line); box-shadow: var(--shadow); }
.contact h2 { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; }
.contact p { color: var(--muted); margin-top: 12px; max-width: 46ch; }
.contact__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mail { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 16px; border-radius: 999px; border: 1.2px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.mail button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.mail button:hover { background: var(--line-soft); }
.mail .i { width: 16px; height: 16px; }
.mail .i--ok { display: none; }
.mail.is-copied .i--copy { display: none; }
.mail.is-copied .i--ok { display: block; }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.topic { background: var(--card); border: 1.2px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.topic__ico { width: 44px; height: 44px; border-radius: 14px; background: var(--line-soft); display: grid; place-items: center; }
.topic__ico .i { width: 22px; height: 22px; }
.topic h2 { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.12; letter-spacing: -.015em; }
.topic p { color: var(--muted); }
.topic ul { display: flex; flex-direction: column; gap: 9px; }
.topic li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.topic li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--ink); }
.topic li b { color: var(--ink); font-weight: 600; }
.topic--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.topic--wide > div { display: flex; flex-direction: column; gap: 8px; }

/* footer */
footer { border-top: 1.2px solid var(--line); }
.foot { display: flex; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; padding-block: 28px calc(48px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .9rem; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* shared-link page */
.share { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }
.share__card { width: 100%; max-width: 420px; background: var(--card); border: 1.2px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); padding: 36px 26px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.share__wm { color: var(--ink); margin-bottom: 30px; }
.share__wm svg { height: 26px; width: auto; fill: currentColor; display: block; }
.share__kind { margin-bottom: 10px; }
.share h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 7vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.share__lead { color: var(--muted); margin: 12px 0 28px; max-width: 32ch; }
.share__acts { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.share__acts .btn--ink { width: 100%; height: 54px; font-size: 1rem; }
.share__hint { margin-top: 18px; font-size: .88rem; color: var(--muted); max-width: 32ch; }
.share__foot { display: flex; gap: 20px; font-size: .86rem; color: var(--muted); }
.share__foot a { text-decoration: none; }
.share__foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc__m { display: block; border: 1.2px solid var(--line); border-radius: 20px; background: var(--card); margin-bottom: 8px; }
  .toc__m summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
  .toc__m summary::-webkit-details-marker { display: none; }
  .toc__m summary .i { transition: transform .3s var(--ease); }
  .toc__m[open] summary .i { transform: rotate(90deg); }
  .toc__m ol { list-style: none; margin: 0; padding: 0 18px 14px; display: flex; flex-direction: column; }
  .toc__m a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: .95rem; border-top: 1.2px solid var(--line-soft); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__cta { align-items: stretch; }
  .topics { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .nav__bar { padding-left: 16px; }
  .wm svg { height: 18px; }
  .nav .btn--sm { padding: 0 14px; }
  .contact .btn--lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }

/* ---------- guide (same as getconnectapp.github.io) ---------- */
:root{--fill:#E8E8E7;--fill-2:#F3F3F2}@media (prefers-color-scheme:dark){:root{--fill:#222222;--fill-2:#2E2E2E}}
.g-launch{position:fixed;z-index:60;right:20px;bottom:calc(env(safe-area-inset-bottom,0px) + 20px);display:flex;align-items:center;gap:10px;height:54px;padding:0 20px 0 8px;border-radius:27px;background:var(--inverse);color:var(--on-inverse);box-shadow:var(--shadow);font-weight:500;font-size:.95rem;transition:opacity .2s,transform .5s var(--ease)}
.g-launch .mk{width:38px;height:38px;border-radius:50%;background:var(--on-inverse);color:var(--inverse);display:grid;place-items:center}
.g-launch .mk svg{width:22px;height:22px}
.g-launch[data-dot="1"]::after{content:"";position:absolute;top:6px;left:36px;width:10px;height:10px;border-radius:50%;background:var(--on-inverse);border:2px solid var(--inverse)}
.g-launch.is-hidden{opacity:0;transform:scale(.9);pointer-events:none}
.guide[hidden]{display:none}
.guide{position:fixed;z-index:70;right:20px;bottom:calc(env(safe-area-inset-bottom,0px) + 20px);width:min(410px,calc(100vw - 32px));height:min(640px,calc(100vh - 120px));display:flex;flex-direction:column;border-radius:28px;background:var(--card);border:1.2px solid var(--line);box-shadow:0 2px 8px rgba(0,0,0,.12),0 24px 60px -12px rgba(0,0,0,.3);overflow:hidden;transform-origin:bottom right;animation:g-in .38s var(--ease)}
@keyframes g-in{from{transform:translateY(14px) scale(.96)}to{transform:none}}
.g-head{display:flex;align-items:center;gap:12px;padding:16px 14px 14px 18px;border-bottom:1.2px solid var(--line-soft)}
.g-av{width:40px;height:40px;border-radius:50%;background:var(--inverse);color:var(--on-inverse);display:grid;place-items:center;flex:none}
.g-av svg{width:23px;height:23px}
.g-head b{display:block;font-size:1rem;font-weight:600;line-height:1.2}
.g-head small{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.78rem}
.g-head small i{width:7px;height:7px;border-radius:50%;background:var(--ink);display:block}
.g-x{margin-left:auto;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:18px;color:var(--muted)}
.g-x:hover{background:var(--line-soft);color:var(--ink)}
.g-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px 18px 8px;display:flex;flex-direction:column;gap:14px}
.m{max-width:88%;font-size:.95rem;line-height:1.5}
.m--me{align-self:flex-end;background:var(--inverse);color:var(--on-inverse);padding:10px 14px;border-radius:20px;border-bottom-right-radius:7px;white-space:pre-wrap}
.m--bot{align-self:flex-start;display:flex;flex-direction:column;gap:8px}
.m--bot p + p{margin-top:8px}
.m--bot ul{display:flex;flex-direction:column;gap:4px}
.m--bot li{display:flex;gap:8px}
.m--bot li::before{content:"";flex:none;width:5px;height:5px;margin-top:9px;transform:rotate(45deg);background:var(--ink)}
.m--bot b{font-weight:600}
.sk{display:flex;flex-direction:column;gap:8px;width:220px}
.sk i{display:block;height:11px;border-radius:6px;background:linear-gradient(90deg,var(--fill) 0%,var(--fill-2) 40%,var(--fill) 80%);background-size:300% 100%;animation:sk 1.4s ease-in-out infinite}
.sk i:nth-child(2){width:84%}.sk i:nth-child(3){width:58%}
@keyframes sk{from{background-position:100% 0}to{background-position:-100% 0}}
.g-chips{display:flex;gap:8px;padding:6px 18px 12px;overflow-x:auto;scrollbar-width:none}
.g-chips::-webkit-scrollbar{display:none}
.g-chips button{flex:none;font-size:.84rem;padding:8px 13px;border-radius:999px;border:1.2px solid var(--line);white-space:nowrap}
.g-chips button:hover{background:var(--line-soft)}
.g-chips button.tour{background:var(--inverse);color:var(--on-inverse);border-color:transparent}
.g-form{display:flex;align-items:flex-end;gap:8px;margin:0 12px 10px;padding:6px 6px 6px 16px;border-radius:24px;background:var(--line-soft)}
.g-form textarea{flex:1;min-width:0;border:0;background:transparent;resize:none;outline:none;font-size:.95rem;line-height:1.45;padding:8px 0;max-height:120px}
.g-form textarea::placeholder{color:var(--muted)}
.g-send{width:38px;height:38px;border-radius:50%;background:var(--inverse);color:var(--on-inverse);display:grid;place-items:center;font-size:17px;flex:none}
.g-send:disabled{opacity:.35;cursor:default}
.g-note{font-size:.72rem;color:var(--faint);text-align:center;padding:0 16px 12px}
@keyframes sk{from{background-position:100% 0}to{background-position:-100% 0}}
.m--bot a{text-decoration:underline;text-underline-offset:3px}
@media (max-width:700px){.guide{right:8px;left:8px;bottom:calc(env(safe-area-inset-bottom,0px) + 8px);width:auto;height:min(78vh,620px)}.g-launch{right:14px;bottom:calc(env(safe-area-inset-bottom,0px) + 14px)}}
