/* Cleanux pages on greyfoxlimited.com.
   Palette, type scale, spacing and component shapes are taken from the
   homepage so these read as the same site. --accent is the warm edge the
   homepage uses for borders and tints; it lives in one place here so the
   whole set can be re-pointed in a single line if the homepage ever is. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:            #89CFF0;
  --blue-deep:       #6ab8df;
  --grey-fox-dark:   #1a1a2e;
  --grey-fox-mid:    #16213e;
  --grey-fox-card:   #0f3460;
  --text-light:      #e8e8e8;
  --text-muted:      #9ba3af;
  --accent:          232, 100, 26;
  --edge:            rgba(255,255,255,0.08);
  --safe:            #5dbb87;
  --caution:         #d6a243;
  --careful:         #d4705f;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--grey-fox-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--accent), 0.15);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo span { font-size: 1.1rem; font-weight: 700; color: var(--text-light); letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }

/* ── LAYOUT ── */
.wrap { max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 760px; }
section { padding: 6rem 2rem; }

/* ── HERO ── */
/* The homepage hero's wash and 60px grid, carried over so the product pages
   open the same way. Applied to the first section of each page. */
.hero {
  padding-top: 9rem;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(var(--accent), 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(15,52,96,0.5) 0%, transparent 60%),
    var(--grey-fox-dark);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--accent), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent), 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero .wrap { position: relative; }

/* Help and the transparency list carry their heading in a .hero and the body
   in a plain section below, so the grid stays at the top of a long page. */
.page-head { padding-bottom: 3rem; }
.page-body { padding-top: 3rem; }

/* The portfolio card's icon tile, reused at the top of the product hero.
   Cleanux ships a full app icon with its own plate, so it fills the tile. */
.product-icon {
  width: 64px; height: 64px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; overflow: hidden;
}
.product-icon img { width: 100%; height: 100%; object-fit: contain; }

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }

.section-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.75rem;
}
.lede { font-size: 1.1rem; color: var(--text-muted); max-width: 620px; }
.section-intro { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin-bottom: 3.5rem; }
p + p { margin-top: 1rem; }

/* ── BUTTONS ── */
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 0.75rem 1.75rem;
  border-radius: 8px; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s; border: 1px solid transparent;
  cursor: pointer;
  /* A real <button> otherwise takes the browser's grey face and system font.
     The rest of the site uses anchors for these, so set both here and let
     .btn-primary paint over the background below. */
  background: transparent; font-family: inherit;
}
.btn-primary { background: var(--blue); color: #1a1a2e; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.2); color: var(--text-light); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ── DOWNLOAD DETAIL ── */
.dl-meta { color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; }
.dl-verify {
  color: var(--text-muted); font-size: 0.84rem;
  margin-top: 2rem; line-height: 1.9;
}
.dl-verify code { font-size: 0.95em; }
.dl-verify .hash { word-break: break-all; }

/* ── CARDS ── */
.card {
  background: var(--grey-fox-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(var(--accent), 0.4); transform: translateY(-3px); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* The homepage's hero eyebrow. */
.badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue);
  border: 1px solid rgba(var(--accent), 0.35);
  padding: 0.35rem 1rem; border-radius: 100px; margin-bottom: 1.5rem;
}

/* ── SCREENSHOTS ── */
/* The shots carry their own macOS window shadow on a transparent surround,
   so they need no frame, border or radius of their own. */
/* One shot floated into the hero, so the lede, price and buttons wrap around
   it rather than the page growing by a screen per screenshot. The PNG carries
   its own macOS shadow on a transparent surround, so it needs no frame; the
   negative margins pull that shadow back in so it reads as flush. */
.hero-shot {
  float: right; width: 48%; max-width: 560px;
  margin: -7rem -1.5rem 0 2rem;
}
.hero-shot img { display: block; width: 100%; height: auto; }
.hero .wrap::after { content: ""; display: block; clear: both; }

/* ── PRICE ── */
.price-row { display: flex; align-items: baseline; gap: 0.6rem; margin: 1.75rem 0 0.35rem; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-unit { color: var(--text-muted); font-size: 1rem; }
.price-note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* ── PROMISES ── */
.promise { display: flex; gap: 0.85rem; align-items: flex-start; }
.promise .mark { color: var(--safe); font-weight: 700; flex: none; line-height: 1.5; }
.promise h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.promise p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ── TABLE / TRANSPARENCY ── */
.tools { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 2rem; }
.search {
  flex: 1 1 260px; min-width: 0;
  background: rgba(255,255,255,0.05); border: 1px solid var(--edge);
  border-radius: 8px; padding: 0.7rem 0.9rem;
  color: var(--text-light); font-size: 0.95rem; font-family: inherit;
}
.search:focus { outline: none; border-color: var(--blue); }
.count { color: var(--text-muted); font-size: 0.9rem; }

.scanner-group { margin-bottom: 2rem; }
.scanner-head {
  display: flex; align-items: baseline; gap: 0.65rem; flex-wrap: wrap;
  padding-bottom: 0.6rem; margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--edge);
}
.scanner-head h3 { margin: 0; }
.scanner-head .count { font-size: 0.85rem; }

.path-row {
  padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.045);
  display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: start;
}
.path-row:last-child { border-bottom: none; }
.path-name { font-weight: 600; font-size: 0.97rem; }
.path-pattern {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.83rem; color: var(--blue); word-break: break-all;
  margin-top: 0.15rem;
}
.path-why { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.35rem; grid-column: 1 / -1; }

.risk {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; border-radius: 100px; white-space: nowrap;
}
.risk-low     { background: rgba(93,187,135,0.14);  color: var(--safe);    border: 1px solid rgba(93,187,135,0.3); }
.risk-medium  { background: rgba(214,162,67,0.14);  color: var(--caution); border: 1px solid rgba(214,162,67,0.3); }
.risk-high    { background: rgba(212,112,95,0.14);  color: var(--careful); border: 1px solid rgba(212,112,95,0.3); }

.legend { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.legend-item { display: flex; gap: 0.5rem; align-items: center; font-size: 0.88rem; color: var(--text-muted); }

.empty { color: var(--text-muted); padding: 2rem 0; }

/* ── HELP ── */
.toc { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 3rem; }
.toc a {
  display: inline-block; text-decoration: none; font-size: 0.88rem;
  padding: 0.4rem 0.9rem; border-radius: 100px;
  border: 1px solid var(--edge); color: var(--text-muted);
}
.toc a:hover { border-color: var(--blue); color: var(--blue); }

.help-block { margin-bottom: 3rem; scroll-margin-top: 90px; }
.help-block h2 { font-size: 1.5rem; margin-bottom: 0.85rem; }
.help-block p, .help-block li { color: var(--text-muted); }
.help-block ol, .help-block ul { margin: 0.75rem 0 0 1.25rem; }
.help-block li { margin-bottom: 0.45rem; }
.help-block strong { color: var(--text-light); }

code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.88em; background: rgba(255,255,255,0.07);
  padding: 0.12rem 0.4rem; border-radius: 4px; color: var(--blue);
}

/* ── THANK YOU / LICENCE KEY ── */
/* The key is long, unbroken and has to be copied by eye when the clipboard
   button is unavailable, so it gets room, a monospace face and a wrap that
   breaks anywhere rather than overflowing the card. */
.key-card { cursor: default; }
.key-card:hover { border-color: rgba(255,255,255,0.07); transform: none; }
.key-value {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.95rem; line-height: 1.7; color: var(--blue);
  background: rgba(0,0,0,0.25); border: 1px solid var(--edge);
  border-radius: 10px; padding: 1rem 1.1rem;
  word-break: break-all; user-select: all;
}
.key-status { font-weight: 700; display: flex; align-items: center; gap: 0.6rem; }
.key-note { color: var(--text-muted); font-size: 0.92rem; margin-top: 1rem; }

.spinner {
  width: 14px; height: 14px; flex: none;
  border: 2px solid rgba(255,255,255,0.18); border-top-color: var(--blue);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Respect a reduced-motion preference: the text already says what is going
   on, so the ring can simply sit still. */
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}

/* ── FOOTER ── */
footer {
  background: #12121e; border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
/* Company details, required on the site to take payments. */
.footer-legal {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-legal p { font-size: 0.78rem; line-height: 1.7; }
.footer-legal p + p { margin-top: 0; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: var(--text-light); }
.footer-logo img { width: 20px; height: auto; }
footer p, footer a { font-size: 0.82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.25rem; list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--blue); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  /* The wordmark wraps to two lines at phone width and pushes the links to
     three. The logo mark alone still gets you home. */
  .nav-logo span { display: none; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { white-space: nowrap; font-size: 0.85rem; }
  section { padding: 4rem 1.25rem; }
  .hero { padding-top: 7rem; }
  .page-head { padding-bottom: 2rem; }
  .page-body { padding-top: 2rem; }
  .hero-shot { float: none; width: 100%; max-width: none; margin: 2rem 0 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .path-row { grid-template-columns: 1fr; }
  .risk { justify-self: start; }
}
