/* LinkSweepr site styles. Dark theme, royal-blue/cyan brand, IBM Plex type. */

/* Self-hosted IBM Plex (latin subset). No third-party font requests: the site
   is the privacy face of a privacy tool, so it must not phone Google Fonts. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("fonts/ibm-plex-sans.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-600.woff2") format("woff2");
}

:root {
  --bg: #0a0f1e;
  --bg-2: #0c1225;
  --panel: #121a30;
  --panel-2: #16203a;
  --ink: #eaf0fb;
  --muted: #94a3c4;
  --faint: #66739a;
  --accent: #2f6bf5;
  --accent-2: #4fc3f5;
  --line: #21304f;
  --warn: #e0a458;
  --good: #58d6a6;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1020px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 12% -170px, rgba(47, 107, 245, 0.20), transparent 60%),
    radial-gradient(900px 560px at 92% -130px, rgba(79, 195, 245, 0.12), transparent 58%),
    var(--bg);
  background-repeat: no-repeat;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(10, 15, 30, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; display: block; }
.brand b { font-size: 17px; letter-spacing: -0.01em; }
.nav-links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); }
.nav-links a.gh { color: var(--ink); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(47, 107, 245, 0.28); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-2); }

/* Store buttons. A live listing is an <a>; a pending one is a dimmed <span>. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  min-width: 210px;
}
.store[aria-disabled="true"] { opacity: 0.72; cursor: default; }
a.store { transition: border-color 0.12s ease, transform 0.12s ease; }
a.store:hover { border-color: var(--accent-2); transform: translateY(-1px); text-decoration: none; }
.store .glyph { width: 26px; height: 26px; flex: none; }
.store .st-name { font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.2; }
.store .st-sub { font-size: 12px; color: var(--faint); }

/* --- Hero --- */
.hero { padding: 70px 0 34px; text-align: center; }
.hero .mark { width: 108px; height: auto; margin: 0 auto 22px; display: block; }
.hero h1 {
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  font-weight: 700;
  text-wrap: balance;
}
.hero .lede {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 620px;
  margin: 14px auto 8px;
}
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 30px 0 12px; }
.hero .hero-note { color: var(--faint); font-size: 13px; margin-top: 8px; }

/* --- Editorial divider: hairline with a light bar that sweeps left to right --- */
.rule { position: relative; height: 1px; border: 0; margin: 46px 0; background: var(--line); overflow: hidden; }
.rule::after {
  content: "";
  position: absolute;
  top: 0; left: 0; height: 100%; width: 38%;
  background: linear-gradient(90deg, transparent, #4fc3f5 50%, #2f6bf5 62%, transparent);
  animation: sweep 5.5s ease-in-out infinite;
}
@keyframes sweep {
  0% { transform: translateX(-110%); opacity: 0; }
  18% { opacity: 1; }
  55% { opacity: 1; }
  70%, 100% { transform: translateX(320%); opacity: 0; }
}

/* --- Sections --- */
section { padding: 8px 0; }
h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 600; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 14px; }
.lead { font-size: 17px; color: var(--muted); max-width: 680px; }

/* --- Feature grid --- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card .ico { width: 34px; height: 34px; margin-bottom: 12px; color: var(--accent-2); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* --- Steps --- */
.steps { counter-reset: step; margin: 22px 0; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.step .n { counter-increment: step; width: 40px; height: 40px; border-radius: 10px; background: rgba(47, 107, 245, 0.14); color: var(--accent-2); font-family: var(--font-mono); font-weight: 600; display: grid; place-items: center; }
.step .n::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* --- Callout / privacy panel --- */
.callout { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.callout h2 { margin-bottom: 8px; }

/* --- Prose (tutorial, privacy, faq) --- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 38px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: #cdd6ea; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 7px; }
.prose code, .mono { font-family: var(--font-mono); font-size: 0.92em; color: var(--accent-2); background: rgba(79, 195, 245, 0.08); padding: 1px 6px; border-radius: 5px; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); line-height: 1.7; margin: 0 0 18px; }
.prose pre code { background: none; color: var(--ink); padding: 0; font-size: inherit; }
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; margin: 0 0 8px; }
.page-head .sub { color: var(--muted); font-size: 17px; margin: 0; }
.updated { color: var(--faint); font-size: 13px; font-family: var(--font-mono); margin: 6px 0 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.prose td { color: var(--muted); }
.prose td:first-child { color: var(--ink); font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }

/* --- FAQ --- */
.qa { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 12px; overflow: hidden; }
.qa summary { cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--accent-2); font-size: 22px; font-weight: 400; line-height: 1; }
.qa[open] summary::after { content: "\2212"; }
.qa .a { padding: 0 20px 18px; color: var(--muted); }
.qa .a p { margin: 0; }

/* --- Footer --- */
.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 30px 0 44px; color: var(--faint); font-size: 13.5px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.foot a { color: var(--muted); }
.foot .spacer { margin-left: auto; }

/* --- Reveal animation --- */
.reveal { opacity: 0; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.04s; } .d2 { animation-delay: 0.12s; } .d3 { animation-delay: 0.2s; }
.d4 { animation-delay: 0.28s; } .d5 { animation-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; }
  .rule::after { animation: none; opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links { gap: 15px; }
  .nav-links a:not(.gh) { display: none; }
  .hero { padding: 48px 0 26px; }
  /* More side gutter so content isn't pressed against the screen edge. */
  .wrap { padding: 0 26px; }
  /* Drop the hero clamp floor so the headline shrinks with the viewport
     instead of staying near-huge and edge-to-edge on a phone. */
  .hero h1 { font-size: clamp(30px, 8vw, 46px); }
  /* The hard break is a desktop two-line split; on a phone it strands the
     word before it ("of") on its own line. Let the headline flow instead. */
  .hero h1 br { display: none; }
}
