/* Little Mac Apps — one stylesheet for the whole site. Palette from the File Stacker icon. */
:root {
  color-scheme: light dark;
  --ink: #17203a; --muted: #5a6480; --faint: #8a93ab;
  --paper: #f8f7f3; --card: #ffffff; --line: #e4e2da; --soft: #f0eee7;
  --navy: #26324f; --amber: #e9a93a; --mint: #3fae95; --coral: #e0705c; --lilac: #9c8fc2;
  --accent: #2c66d0; --accent-ink: #ffffff; --good: #2b8a66;
  --radius: 18px; --shadow: 0 24px 60px -32px rgba(23, 32, 58, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #edf0f7; --muted: #a8b0c6; --faint: #7d86a0;
    --paper: #10141f; --card: #171d2c; --line: #2a3247; --soft: #1c2335;
    --accent: #7ea8f5; --accent-ink: #0c1322; --good: #6fd1ad;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.62 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 50; }
kbd { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.ui { font-weight: 600; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; word-break: break-all; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn-primary { color: var(--accent-ink); } .nav a.btn-dark { color: var(--paper); } /* buttons keep their own ink */
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.note { display: block; color: var(--faint); font-size: 14px; margin-top: 10px; }

/* Type */
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0 0 18px; font-size: clamp(38px, 6vw, 64px); line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 46em; margin-bottom: 36px; }
.head p { color: var(--muted); font-size: 18px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } section { padding: 56px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.chip { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.chip svg { width: 20px; height: 20px; }
.c-amber { background: color-mix(in srgb, var(--amber) 20%, transparent); color: #a8701a; }
.c-mint { background: color-mix(in srgb, var(--mint) 20%, transparent); color: #23826c; }
.c-coral { background: color-mix(in srgb, var(--coral) 20%, transparent); color: #b5503e; }
.c-blue { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.c-lilac { background: color-mix(in srgb, var(--lilac) 22%, transparent); color: #6b5ca0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-amber { color: var(--amber); } :root:not([data-theme="light"]) .c-mint { color: var(--mint); } :root:not([data-theme="light"]) .c-coral { color: var(--coral); } :root:not([data-theme="light"]) .c-lilac { color: var(--lilac); } }
.tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: var(--accent); color: var(--accent-ink); }
.tag.free { background: var(--good); }

/* Home hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; padding: 88px 0 72px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 48px 0; gap: 36px; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stage { position: relative; aspect-ratio: 1 / 0.86; border-radius: 28px; background: radial-gradient(120% 90% at 20% 10%, #33416a 0%, var(--navy) 55%, #1c2640 100%); box-shadow: var(--shadow); overflow: hidden; }
.stage .icon { position: absolute; width: 44%; left: 28%; top: 16%; filter: drop-shadow(0 22px 30px rgba(0,0,0,.35)); }
.stage .bar { position: absolute; height: 12px; border-radius: 99px; left: 12%; }
.stage .b1 { background: var(--amber); width: 58%; bottom: 25%; opacity: .9; }
.stage .b2 { background: var(--mint); width: 42%; bottom: 17%; opacity: .9; }
.stage .b3 { background: var(--coral); width: 24%; bottom: 9%; opacity: .9; }

/* App card (home) */
.app-card { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 32px; }
.app-card img { width: 112px; height: 112px; }
.app-card .actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
@media (max-width: 760px) { .app-card { grid-template-columns: 1fr; text-align: left; } .app-card .actions { flex-direction: row; flex-wrap: wrap; } }
.soon { border-style: dashed; background: transparent; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.facts li::before { content: "•"; margin-right: 8px; color: var(--faint); }
.facts li:first-child::before { content: none; }

/* Product hero */
.p-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0 56px; }
@media (max-width: 900px) { .p-hero { grid-template-columns: 1fr; padding: 40px 0; gap: 32px; } }
.p-hero .title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.p-hero .title img { width: 72px; height: 72px; }
.p-hero .title h1 { margin: 0; font-size: clamp(36px, 5vw, 54px); }

/* Illustrations (drawn, not screenshots) */
.window { background: var(--navy); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
.window .dots { display: flex; gap: 6px; padding: 2px 4px 12px; }
.window .dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.22); }
.treemap { display: grid; grid-template-columns: 3fr 2fr 1.3fr; grid-template-rows: 1.6fr 1fr .8fr; gap: 6px; aspect-ratio: 4 / 3; }
.treemap div { border-radius: 8px; padding: 10px; color: #17203a; font: 600 12px/1.25 -apple-system, sans-serif; display: flex; flex-direction: column; justify-content: flex-end; }
.treemap small { font-weight: 500; opacity: .75; }
.t1 { grid-row: 1 / 3; background: var(--amber); } .t2 { grid-column: 2 / 4; background: var(--mint); } .t3 { background: #efe6d2; }
.t4 { background: var(--coral); } .t5 { background: #8fa3d6; } .t6 { grid-column: 2 / 4; background: #c9b8e8; }

.vitals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vital { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.vital .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vital .v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vital .s { font-size: 13px; color: var(--muted); }
.meter { display: flex; height: 6px; margin-top: 10px; border-radius: 99px; overflow: hidden; background: var(--line); }
.meter i { display: block; height: 100%; }
.verdict { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--good) 11%, var(--card)); border-color: color-mix(in srgb, var(--good) 35%, var(--line)); }
.verdict svg { width: 22px; height: 22px; color: var(--good); flex: none; margin-top: 2px; }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 30px; }
.plan.pro { border: 2px solid var(--accent); }
.price { font-size: 46px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 2px; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .checks { flex: 1; margin-bottom: 24px; }
.table { overflow-x: auto; max-width: 900px; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
th + th, td + td { text-align: center; width: 92px; }
td.y { color: var(--good); font-weight: 700; } td.n { color: var(--faint); }

/* Guide */
.guide { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.guide > *, .split > *, .grid-2 > * { min-width: 0; } /* long words must not widen grid columns on phones */
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .toc { position: static !important; } }
.toc { position: sticky; top: 88px; font-size: 14.5px; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.howto { display: grid; gap: 14px; }
.howto article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.howto h3 { font-size: 20px; margin-bottom: 4px; }
.howto .why { color: var(--muted); margin-bottom: 12px; }
.howto ol { margin: 0; padding-left: 22px; }
.howto li { margin-bottom: 8px; }
.howto .tip { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 15px; color: var(--muted); }
.howto .tip b { color: var(--ink); }

/* Shortcuts */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 24px; max-width: 900px; }
.keys div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; max-width: 900px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Plain pages */
.page { max-width: 780px; padding: 56px 24px 64px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); }
.page h2 { font-size: 22px; margin-top: 36px; }
.page li { margin-bottom: 8px; }
.page table { margin: 12px 0 8px; font-size: 14.5px; }
.page th + th, .page td + td { text-align: left; width: auto; }
.meta { color: var(--faint); font-size: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

.nav .btn { white-space: nowrap; }

/* Contact form */
.form { margin-top: 28px; display: grid; gap: 20px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .req { color: var(--faint); font-weight: 500; font-size: 13px; margin-left: 6px; }
.field .hint { color: var(--faint); font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.field textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; cursor: pointer; }
.form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-error { margin: 0; color: var(--coral); font-weight: 600; }
.form-done { margin-top: 28px; max-width: 640px; }
.form-done h3 { font-size: 20px; margin-bottom: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Make the hidden attribute win over display rules */
[hidden] { display: none !important; }

/* About page */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; max-width: 900px; }
.page:has(.about) { max-width: 980px; }
.about-photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about h1 { margin-top: 0; }
.about .muted { margin-top: 0; }
@media (max-width: 680px) { .about { grid-template-columns: 1fr; gap: 24px; } .about-photo { width: 160px; height: 160px; } }

/* Keep menu items on one line on small screens */
.nav a { white-space: nowrap; }
.brand { flex-shrink: 0; }
@media (max-width: 400px) { .nav a:not(.btn) { display: none; } }
