/* ClearMac website. Colors follow the app icon: deep teal, bright teal, warm paper. */
:root {
  --paper: #f7f5ef;
  --surface: #ffffff;
  --ink: #1b2b2e;
  --muted: #55666a;
  --line: #e2ddd0;
  --deep: #134e57;
  --deep-2: #0b3138;
  --teal: #0f766e;
  --bright: #2dd4bf;
  --accent-text: #0f766e;
  --code-bg: #efece3;
  /* Tier colors, as in the app: green, blue, orange, gray. */
  --t-rebuilds: #1f7a3d;
  --t-rebuilds-bg: #e3f3e7;
  --t-redownloads: #1d5fb8;
  --t-redownloads-bg: #e2ecfa;
  --t-yourData: #a14f00;
  --t-yourData-bg: #fbeedd;
  --t-protected: #555d61;
  --t-protected-bg: #e9ebec;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a1c;
    --surface: #152427;
    --ink: #e9efee;
    --muted: #9fb0b2;
    --line: #253a3e;
    --accent-text: #5eead4;
    --code-bg: #1c2f33;
    --t-rebuilds: #7fd69a;
    --t-rebuilds-bg: #173524;
    --t-redownloads: #8fb8f5;
    --t-redownloads-bg: #172a45;
    --t-yourData: #f3b56b;
    --t-yourData-bg: #3a2811;
    --t-protected: #b8c1c4;
    --t-protected-bg: #2a3336;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent-text); text-underline-offset: 2px; }
code {
  font: 0.88em ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.draft-banner {
  background: #fff4c2;
  color: #5b4a00;
  text-align: center;
  font-size: 14px;
  padding: 8px 16px;
}
@media (prefers-color-scheme: dark) { .draft-banner { background: #3d3510; color: #f5e39a; } }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 7px; }
nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
nav a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
nav a:hover { color: var(--accent-text); }

/* Buttons */
.button {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
}
.button:hover { background: var(--deep); color: #fff; }
nav a.button, nav a.button:hover { color: #fff; }
.button.small { padding: 6px 14px; font-size: 14px; }
.button.secondary { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 1.5px currentColor; }
.button.secondary:hover { background: transparent; color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.3fr 1fr; } }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(320px, 70vw); filter: drop-shadow(0 18px 30px rgba(11, 49, 56, 0.25)); }

/* Sections */
.band { padding: 64px 0; border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 12px; }
.band .intro { color: var(--muted); max-width: 40em; margin: 0 0 32px; font-size: 18px; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Tier chips */
.tier {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: 0.1em;
}
.tier-rebuilds { color: var(--t-rebuilds); background: var(--t-rebuilds-bg); }
.tier-redownloads { color: var(--t-redownloads); background: var(--t-redownloads-bg); }
.tier-yourData { color: var(--t-yourData); background: var(--t-yourData-bg); }
.tier-protected { color: var(--t-protected); background: var(--t-protected-bg); }
.tier-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tier-table th, .tier-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* Pricing */
.pricing { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 0; }
.plan .terms { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.plan ul { padding-left: 20px; margin: 0 0 24px; flex: 1; }
.plan li { margin: 6px 0; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 16px 72px; }
@media (min-width: 720px) { .prose { padding: 64px 32px 88px; } }
.prose h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 16px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; line-height: 1.25; }
.prose h3 { font-size: 19px; margin: 28px 0 6px; }
.prose .lede { font-size: 20px; color: var(--muted); }
.prose li { margin: 6px 0; }
.prose .updated, .prose .source { color: var(--muted); font-size: 15px; }
.prose table { width: 100%; }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
.notice.legal { border-left-color: #c28a00; }
.crumbs { font-size: 15px; margin: 0 0 8px; }
.answer { font-size: 20px; }
.kb-group { margin-top: 36px; }
.kb-group h2 { margin-bottom: 4px; }
.kb-group h2 .tier { font-size: 16px; padding: 4px 14px; }
.kb-list { columns: 2 220px; padding-left: 20px; }
.steps li { margin: 10px 0; }
.tbd { background: #fff4c2; color: #5b4a00; border-radius: 4px; padding: 0 4px; font-style: normal; }
@media (prefers-color-scheme: dark) { .tbd { background: #3d3510; color: #f5e39a; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer p { margin: 0 0 8px; }
.brand-small { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); }
.brand-small img { border-radius: 5px; }
.fineprint { margin-top: 32px; font-size: 13px; }
.soon { margin: 0; padding: 12px 0; color: var(--muted); font-weight: 600; }
