/* Storage Health Monitor website. Colours follow the app (src\Ui.cs). No external fonts, scripts or trackers. */

:root {
  --navy: #0b2856;
  --navy-2: #134287;
  --blue: #0a5bc4;
  --blue-hover: #0e52b0;
  --blue-soft: #e8f0fc;
  --blue-text: #094ea8;
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --card: #ffffff;
  --border: #e0e4ea;
  --text: #1b1f24;
  --muted: #586372;
  --faint: #6b7686;
  --good: #1a7f37;
  --good-soft: #e6f4ea;
  --warn: #8a5a00;
  --warn-soft: #fff4d6;
  --bad: #b42318;
  --bad-soft: #fde8e7;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 32, 64, .06), 0 10px 30px rgba(16, 32, 64, .10);
  --shadow-big: 0 2px 6px rgba(8, 20, 48, .18), 0 30px 70px rgba(8, 20, 48, .28);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #4c9aff;
    --blue-hover: #6aabff;
    --blue-soft: #132a4a;
    --blue-text: #8bbcff;
    --bg: #0e1116;
    --bg-alt: #141922;
    --card: #19202a;
    --border: #2a3340;
    --text: #e7ebf1;
    --muted: #a7b1be;
    --faint: #8e99a7;
    --good: #4ac26b;
    --good-soft: #13301d;
    --warn: #e3b341;
    --warn-soft: #33290f;
    --bad: #ff7b72;
    --bad-soft: #3a1714;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-text); text-underline-offset: 2px; }
a:hover { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
.lead, .section-head p { text-wrap: pretty; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 650; letter-spacing: -0.02em; }
h2 { font-size: clamp(27px, 3.4vw, 38px); font-weight: 650; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 17px; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { background: var(--bg-alt); color: var(--text); }
.nav a[aria-current="page"] { color: var(--blue-text); font-weight: 600; }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .menu-panel a.btn-primary, .nav a.btn-primary:hover, .menu-panel a.btn-primary:hover { color: #fff; }
.nav a.btn-primary:hover, .menu-panel a.btn-primary:hover { background: var(--blue-hover); }
@media (prefers-color-scheme: dark) { .nav a.btn-primary, .menu-panel a.btn-primary, .nav a.btn-primary:hover, .menu-panel a.btn-primary:hover { color: #071a33; } }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; flex-direction: column; position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.menu-panel a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.menu-panel a:hover { background: var(--bg-alt); }
.menu-panel .btn { margin-top: 6px; }
@media (max-width: 900px) { .nav { display: none; } .menu { display: block; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-primary:hover { color: #071a33; } }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--faint); color: var(--text); }
.btn-small { padding: 7px 14px; font-size: 15px; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e9f0fb; color: var(--navy); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(76, 154, 255, .35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 76px 0 0;
  overflow: hidden;
}
.hero .wrap { text-align: center; }
.hero h1 { max-width: 880px; margin: 0 auto 18px; }
.hero .lead { max-width: 720px; margin: 0 auto 30px; font-size: clamp(17px, 2vw, 20px); color: #d5e2f5; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 14px; }
.hero .fine { font-size: 14px; color: #b9cbe6; margin: 0 0 48px; }
.hero .fine span + span::before { content: "·"; margin: 0 10px; color: #7f9cc6; }
.hero-shot { max-width: 1080px; margin: 0 auto; transform: translateY(1px); }
.hero-shot img { border-radius: 12px 12px 0 0; box-shadow: var(--shadow-big); border: 1px solid rgba(255, 255, 255, .25); border-bottom: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 10px; }
.hero .eyebrow { color: #9cc3ff; }

/* ---------- facts strip ---------- */
.facts { border-bottom: 1px solid var(--border); background: var(--bg); }
.facts ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.facts strong { display: block; color: var(--text); font-size: 16px; }
.facts svg { flex: none; width: 24px; height: 24px; color: var(--blue); margin-top: 2px; }
@media (max-width: 900px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .facts ul { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; }
@media (max-width: 600px) { .section { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--muted); }
.feature-text ul { padding: 0; margin: 18px 0 0; list-style: none; }
.feature-text li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.feature-text li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a5bc4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--card); }
.shot-tall { max-width: 520px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 72px; }
}

/* ---------- cards grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid.two { grid-template-columns: 1fr; } }

/* ---------- email mock ---------- */
.mail { max-width: 520px; margin: 0 auto; background: #fff; color: #1b1f24; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 15px; }
.mail-top { background: #0b2856; color: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mail-top img { width: 24px; height: 24px; }
.mail-body { padding: 20px; }
.mail-banner { background: #fff4d6; border-left: 4px solid #b7791f; border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; }
.mail-banner small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #8a5a00; }
.mail-banner b { font-size: 17px; }
.mail h4 { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: #586372; margin: 16px 0 6px; padding-bottom: 6px; border-bottom: 1px solid #e0e4ea; }
.mail ul { margin: 0; padding-left: 18px; }
.mail table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mail td { padding: 6px 0; border-bottom: 1px solid #eef0f3; }
.mail td:first-child { color: #586372; width: 46%; }
.mail .warn { color: #8a5a00; font-weight: 600; }

/* ---------- privacy band ---------- */
.band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 16px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.band h2 { color: #fff; }
.band p { color: #d5e2f5; }
.band ul { margin: 0; padding: 0; list-style: none; }
.band li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); color: #e6eefb; }
.band li:last-child { border-bottom: 0; }
.band li b { color: #fff; }
.band a { color: #9cc3ff; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; gap: 8px; padding: 32px 24px; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 30px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .plan .tag { color: #071a33; } }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.price { font-family: var(--font-display); font-size: 44px; font-weight: 650; line-height: 1; letter-spacing: -0.02em; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); font-size: 15px; margin: 8px 0 22px; min-height: 48px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; font-size: 15px; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-top: 1px solid var(--border); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan .cta { margin-top: auto; display: grid; gap: 10px; }
.plan .cta .sub { text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } .price-note { min-height: 0; } }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: var(--bg-alt); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table td.yes { color: var(--good); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ---------- final call to action ---------- */
.final { text-align: center; }
.final .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 64px 0 48px; }
.page-head p { color: var(--muted); font-size: 19px; max-width: 760px; margin: 0; }
.prose, .wrap.prose, .page-head .wrap { max-width: 828px; }
.prose .mt-0 { margin-top: 0; }
.prose .steps { padding-left: 0; }
.prose h2 { font-size: 26px; margin-top: 48px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.note { border-radius: 12px; padding: 16px 20px; margin: 0 0 28px; border: 1px solid; }
.note.info { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 30%, transparent); }
.note.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.note p:last-child { margin-bottom: 0; }
code, .code { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: .92em; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
pre.code { display: block; padding: 14px 16px; overflow-x: auto; white-space: pre; line-height: 1.5; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 20px 72px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-text); font-weight: 700; display: grid; place-items: center; }
.steps li p { color: var(--muted); margin: 4px 0 0; }

.download-box { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 30px; box-shadow: var(--shadow); margin: 0 0 40px; }
.download-box .meta { color: var(--muted); font-size: 15px; margin: 4px 0 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 48px 0 36px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--text); font-size: 15px; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.head-actions, .page-head .head-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.table-scroll { margin-bottom: 18px; }
.pricing-note { text-align: center; color: var(--muted); font-size: 15px; margin: 22px 0 0; }
.tagline { margin: 12px 0 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
