/* Clean Desktop — cleanmacdesktop.com
   Palette lifted from the app icon so the site and the product agree. */

:root {
  --navy:  #122539;
  --blue:  #3c8fd9;
  --blue-dark: #2f74b0;
  --ink:   #1b2430;
  --muted: #5d6b7c;
  --line:  #e2e8ef;
  --bg:    #ffffff;
  --soft:  #f5f8fa;
  --radius: 10px;
  --wrap: 68rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy:  #0d1a28;
    --ink:   #e8eef4;
    --muted: #9aa8b8;
    --line:  #23313f;
    --bg:    #0f1720;
    --soft:  #15202b;
  }
}

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

html { 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.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* Keyboard users should not have to tab through the nav on every page. */
.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 3rem; }
h3 { font-size: 1.15rem; margin-top: 2rem; }
p  { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Header */
.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 5;
}
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.brand { flex-shrink: 0; white-space: nowrap; display: flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.site-head nav { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-head nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); }
/* Phones: the nav drops to its own row under the brand rather than wrapping
   the product name onto two lines. */
@media (max-width: 520px) {
  .site-head .wrap { flex-wrap: wrap; height: auto; padding-top: .7rem; padding-bottom: .7rem; row-gap: .4rem; }
  .site-head nav { margin-left: 0; width: 100%; }
}

/* Buttons */
.btn {
  display: inline-block; padding: .7rem 1.4rem; border-radius: var(--radius);
  background: var(--blue); color: #fff; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1.5rem 0 .75rem; }

/* Hero */
.hero { padding: 4rem 0 2rem; }
.hero .lede { margin-bottom: 0; }
.hero-icon { width: 92px; height: 92px; margin-bottom: 1.25rem; }

/* Screenshot slots */
figure { margin: 2rem 0; }
figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft);
}
figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }

/* Feature grid */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 2rem 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--soft); }
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card p:last-child { margin-bottom: 0; }

/* Spec table */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { width: 12rem; font-weight: 600; color: var(--muted); }

/* FAQ */
.qa { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.qa:last-of-type { border-bottom: 0; }
.qa h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.qa p:last-child { margin-bottom: 0; }

/* Callout */
.note {
  border-left: 3px solid var(--blue); background: var(--soft);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

/* Price */
.price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 5rem; padding: 2.5rem 0; color: var(--muted); font-size: .9rem; }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: .75rem; }

main { padding-bottom: 2rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
       background: var(--soft); padding: .1em .35em; border-radius: 4px; }
