/* DiskSense companion site. Apple-style product page: system type, generous space,
   translucent navigation, light and dark appearance. No external fonts or scripts. */

:root {
  --bg: #fbfbfd;
  --bg-elevated: #ffffff;
  --bg-band: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --hairline: rgba(0, 0, 0, 0.1);
  --nav-bg: rgba(251, 251, 253, 0.72);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.06);
  --shot-shadow: 0 30px 80px -20px rgba(24, 20, 70, 0.35), 0 10px 30px -10px rgba(0, 0, 0, 0.25);
  --safe: #1fb978;
  --tool: #1f97e6;
  --review: #e8900f;
  --leave: #8b6fe8;
  --radius: 22px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elevated: #161617;
    --bg-band: #0d0d0f;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #86868b;
    --hairline: rgba(255, 255, 255, 0.12);
    --nav-bg: rgba(22, 22, 23, 0.72);
    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
    --shot-shadow: 0 40px 100px -20px rgba(80, 60, 220, 0.35), 0 10px 40px -10px rgba(0, 0, 0, 0.8);
    --safe: #30d68f;
    --tool: #40b3ff;
    --review: #ffa833;
    --leave: #9e85f2;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 52px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--text); opacity: 0.8; font-size: 13px; letter-spacing: -0.01em; }
.nav ul a:hover { opacity: 1; text-decoration: none; }
.nav ul a[aria-current="page"] { opacity: 1; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 980px;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  border: 0;
}
.button:hover { background: var(--accent-hover); text-decoration: none; }
.button.small { padding: 5px 14px; font-size: 13px; }
.button.quiet {
  background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline);
  cursor: default;
}
.button.quiet:hover { background: transparent; }
.link-arrow::after { content: " ›"; }

/* Hero */
.hero { position: relative; overflow: hidden; text-align: center; padding: 84px 0 0; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(40% 50% at 22% 30%, rgba(94, 92, 230, 0.28), transparent 70%),
    radial-gradient(38% 46% at 78% 26%, rgba(48, 214, 200, 0.22), transparent 70%),
    radial-gradient(40% 50% at 55% 70%, rgba(255, 55, 140, 0.16), transparent 70%);
  filter: blur(10px);
}
.hero .app-icon { width: 132px; height: 132px; margin: 0 auto 26px; filter: drop-shadow(0 14px 30px rgba(40, 30, 110, 0.35)); }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--text-secondary); margin: 0 0 8px; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin: 0 auto 18px; max-width: 14ch; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--text-secondary); max-width: 34em; margin: 0 auto 30px; letter-spacing: -0.015em; }
.cta { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.requirements { font-size: 13px; color: var(--text-tertiary); margin-top: 14px; }
.hero-shot { margin: 64px auto 0; max-width: 1180px; padding: 0 22px; }
.hero-shot img { border-radius: 14px; box-shadow: var(--shot-shadow); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 72px 0 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(34px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--text-secondary); font-size: 15px; }

/* Feature sections */
section.feature { padding: 110px 0 20px; }
.feature .wrap { display: grid; grid-template-columns: 1fr; gap: 38px; }
.feature header { max-width: 720px; }
.feature.center header { margin: 0 auto; text-align: center; }
.kicker { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.kicker.safe { color: var(--safe); } .kicker.tool { color: var(--tool); } .kicker.review { color: var(--review); } .kicker.leave { color: var(--leave); }
.kicker.blue { color: var(--accent); }
h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 16px; }
.feature p.body { font-size: clamp(19px, 2vw, 21px); line-height: 1.42; color: var(--text-secondary); margin: 0; }
.feature p.body strong { color: var(--text); font-weight: 600; }
.shot img { border-radius: 12px; box-shadow: var(--shot-shadow); }

/* Safety chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 980px; font-size: 15px; font-weight: 600; background: var(--bg-elevated); box-shadow: var(--card-shadow); }
.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chip.safe i { background: var(--safe); } .chip.tool i { background: var(--tool); }
.chip.review i { background: var(--review); } .chip.leave i { background: var(--leave); }

/* Tiles grid */
.band { background: var(--bg-band); margin-top: 120px; padding: 100px 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.tile { background: var(--bg-elevated); border-radius: var(--radius); padding: 30px 28px 32px; box-shadow: var(--card-shadow); }
.tile svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 18px; }
.tile h3 { font-size: 21px; letter-spacing: -0.02em; margin: 0 0 8px; }
.tile p { margin: 0; color: var(--text-secondary); font-size: 17px; line-height: 1.45; }

/* Privacy highlight */
.privacy-band { text-align: center; padding: 120px 0 60px; }
.privacy-band svg { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 18px; display: block; }

/* Download */
.download { text-align: center; padding: 100px 0 120px; }
.download img { width: 110px; height: 110px; margin: 0 auto 22px; }
.download h2 { margin-bottom: 10px; }
.download .lede { margin-bottom: 26px; }

/* What's new */
.notes { max-width: 720px; margin: 0 auto; }
.notes ul { padding-left: 1.1em; color: var(--text-secondary); }
.notes li { margin: 6px 0; }

/* Article pages (support, privacy) */
.page-hero { padding: 84px 0 30px; text-align: center; }
.page-hero h1 { max-width: none; font-size: clamp(40px, 6vw, 64px); }
.article { max-width: 760px; margin: 0 auto; padding: 10px 22px 100px; }
.article h2 { font-size: 28px; margin: 48px 0 12px; }
.article h3 { font-size: 21px; margin: 32px 0 8px; letter-spacing: -0.02em; }
.article p, .article li { color: var(--text-secondary); }
.article p strong, .article li strong { color: var(--text); }
.article .updated { color: var(--text-tertiary); font-size: 15px; text-align: center; margin-top: -10px; }
.contact-card {
  background: var(--bg-elevated); border-radius: var(--radius); box-shadow: var(--card-shadow);
  padding: 30px; text-align: center; margin: 40px 0;
}
.contact-card h2 { margin-top: 0; }

details { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 26px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details ol, details ul { margin: 12px 0 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; background: var(--bg-band); padding: 2px 6px; border-radius: 6px; }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 26px 0 40px; font-size: 12px; color: var(--text-tertiary); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--text-secondary); }
footer .legal { flex-basis: 100%; }

/* Reveal on scroll. Only hidden where scripts run, so content never stays invisible. */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reveal.shown { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Small screens */
@media (max-width: 860px) {
  .nav ul { gap: 16px; }
  .nav ul li.hide-small { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr; }
  section.feature { padding-top: 80px; }
  .band { margin-top: 80px; padding: 70px 0; }
}
@media (max-width: 480px) {
  .nav ul { display: none; }
  .nav .button { margin-left: auto; }
  .hero { padding-top: 56px; }
}

/* Small utilities */
.centered { text-align: center; }
h1.wide { max-width: none; }
