/* site48 — WeTheNorth Mirror Hub. Canadian red on clean light. */
:root {
  --red:        #c1272d;
  --red-dark:   #a01f24;
  --red-soft:   #f8d9da;
  --ink:        #111;
  --ink-soft:   #444;
  --muted:      #6b6f76;
  --bg:         #f7f9fc;
  --card:       #ffffff;
  --line:       #e3e6ec;
  --good:       #1f8a45;
  --warn:       #b56612;
  --shadow:     0 2px 18px rgba(20,30,50,.06);
  --radius:     12px;
}
*, *:before, *:after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* ----- topbar / nav ----- */
.topbar {
  background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--ink);
}
.brand img { height: 36px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .b1 { font-size: 15px; }
.brand-text .b2 { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
nav.nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
nav.nav a {
  color: var(--ink-soft); padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
}
nav.nav a:hover { background: var(--red-soft); color: var(--red-dark); text-decoration: none; }
nav.nav a.on { color: #fff; background: var(--red); }

/* ----- hero ----- */
.hero {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 14px; }
.hero h1 .accent { color: var(--red); }
.hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 760px; margin: 0; }
.hero-cta { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  font-weight: 700; font-size: 14px; border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; text-decoration: none; }
.btn-ghost { background: #fff; color: var(--red); border-color: var(--red); }
.btn-ghost:hover { background: var(--red-soft); text-decoration: none; }

.hero-meta { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hero-meta div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.hero-meta b { display: block; color: var(--red); font-size: 20px; }
.hero-meta span { font-size: 12px; color: var(--muted); }

/* ----- mirror panel ----- */
.mirror-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
}
.mirror-card .row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px dashed var(--line);
}
.mirror-card .row:first-child { border-top: 0; }
.mirror-card .row .lbl { width: 110px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mirror-card .row .val { flex: 1; }
.mirror-card .row .val code {
  background: #f3f5f9; padding: 6px 10px; border-radius: 6px;
  font-size: 13px; word-break: break-all; user-select: all;
}

/* Hero onion box — front and center. */
.onion-box {
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 30px 20px 18px; margin-top: 28px;
  box-shadow: 0 12px 30px rgba(193,39,45,.18);
  position: relative;
}
.onion-box .tag {
  position: absolute; top: -10px; left: 16px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; padding: 3px 10px; border-radius: 4px;
  text-transform: uppercase;
}
.onion-box .addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px; font-weight: 700; color: var(--ink);
  word-break: break-all; user-select: all; line-height: 1.4;
}
.onion-box .meta {
  margin-top: 10px; display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.onion-box .meta .pill {
  background: #e6f5ec; color: var(--good); padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.onion-box .meta .copy-hint { font-size: 12px; }
.mirror-card .row .status { font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.status.ok { background: #e6f5ec; color: var(--good); }
.status.warn { background: #fbeedc; color: var(--warn); }

/* ----- sections ----- */
section { padding: 48px 0; border-bottom: 1px solid var(--line); }
section.alt { background: #fff; }
section h2 { font-size: 28px; margin: 0 0 8px; }
section h3 { font-size: 18px; margin: 22px 0 8px; color: var(--ink); }
section p { color: var(--ink-soft); }
section .sub { color: var(--muted); margin-bottom: 24px; max-width: 720px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.feature .ico {
  width: 36px; height: 36px; background: var(--red-soft);
  color: var(--red-dark); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.feature h3 { margin: 12px 0 4px; }
.feature p { margin: 0; font-size: 14px; }

.callout {
  background: var(--red-soft); border: 1px solid #f0c0c2;
  color: var(--red-dark); border-radius: var(--radius);
  padding: 14px 16px; margin: 18px 0; font-size: 14px;
}
.callout b { color: var(--red-dark); }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding: 12px 0 12px 48px; position: relative; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.steps li b { display: block; margin-bottom: 4px; color: var(--ink); }

table.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.tbl th, table.tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
table.tbl th { background: #fafbfd; font-weight: 700; color: var(--ink); }
table.tbl tr:last-child td { border-bottom: 0; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 10px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq p { margin: 10px 0 0; }

/* ----- footer ----- */
footer { padding: 28px 0; background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .row { display: flex; gap: 24px; flex-wrap: wrap; align-items: baseline; }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero h1 { font-size: 30px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  nav.nav a { padding: 6px 8px; font-size: 13px; }
}
