/* Connect page (#connect, site/pages.html, 2026-11-16): one address for everything, a line on bug reports, then two
   cards (the FAQ, a Mac App Store review) and who makes it. Minimal: big title, the address as the page's main thing.
   Script: js/connect.js (the Copy button). Head styled as the FAQ's. */

.cn {
  position: relative; isolation: isolate;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 10vw, 120px);
  font-family: var(--font);
}
/* The same low mint light as the Guide and the FAQ. */
.cn::before {
  content: ""; position: absolute; z-index: -1;
  left: -25%; top: -10%;
  width: 90%; aspect-ratio: 2 / 1;
  background: radial-gradient(closest-side, rgba(89, 214, 160, 0.10), transparent);
  pointer-events: none;
}

.cn__head { display: grid; gap: 18px; }
.cn__head .hud-label { color: var(--accent); }
.cn__head h1 {
  font-size: clamp(44px, 7.4vw, 88px);
  letter-spacing: -0.045em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 30%, #aab5b0);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: .08em; margin-bottom: -.08em;
}
.cn__lede { margin: 0; font-size: clamp(18px, 1.8vw, 22px); color: var(--muted); }

/* ---------- The address, then Write an email + Copy address ---------- */
.cn__mail {
  display: grid; justify-items: start; gap: clamp(20px, 2.6vw, 28px);
  margin-top: clamp(40px, 6vw, 72px);
}
/* "Write an email" (green: the page's one action) + "Copy address" beside it */
.cn__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.cn__write {
  gap: 9px; min-height: 46px; padding: 0 22px;
  font-size: 15.5px; letter-spacing: -0.01em;
  box-shadow: 0 8px 24px rgba(89, 214, 160, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.cn__write svg { flex: none; }
.cn__address {
  font-size: clamp(26px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1;
  color: var(--text); text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 6px;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.cn__address:hover { color: var(--accent); }
.cn__address:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }

.cn__copy {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--glass-edge);
  background: #ffffff0a; color: var(--text);
  font: 600 14px var(--font); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.cn__copy:hover { background: #ffffff14; border-color: var(--line-strong); }
.cn__copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cn__copy.is-done { border-color: var(--accent); }

.cn__tip { margin: 18px 0 0; max-width: 560px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Two cards ---------- */
.cn__cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin-top: clamp(48px, 7vw, 88px);
}
.cn-card {
  position: relative;
  display: grid; gap: 6px;
  padding: 22px 52px 22px 22px;
  border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text); text-decoration: none;
  transition: border-color .2s, background .2s;
}
.cn-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.cn-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cn-card b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.cn-card span { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.cn-card i {
  position: absolute; right: 22px; top: 22px;
  font-style: normal; font-size: 18px; color: var(--muted);
  transition: transform .2s, color .2s;
}
.cn-card:hover i { color: var(--text); transform: translateX(3px); }

.cn__legal { margin: clamp(48px, 7vw, 80px) 0 0; font-size: 13px; color: var(--faint); }

@media (max-width: 600px) {
  .cn__cards { grid-template-columns: 1fr; }
  .cn__address { font-size: clamp(24px, 7.2vw, 30px); }
}
@media (prefers-reduced-motion: reduce) {
  .cn-card i, .cn__address, .cn-card, .cn__copy { transition: none; }
}
