/* macdeficit.com. No fonts, scripts or images are loaded from anywhere else:
   the type is the Mac's own (New York and San Francisco), so a visit asks
   nothing of a third party. */

:root {
  --paper: #fbf7f0;
  --paper-2: #f4ede1;
  --card: #ffffff;
  --ink: #2b1c17;
  --copy: #4d3d36;
  --muted: #7d6b62;
  --line: rgba(73, 40, 28, 0.14);
  --red: #c2302a;
  --red-deep: #8f1d1c;
  --gold: #d9a52b;
  --leaf: #4c8a3a;
  --glow-gold: rgba(226, 179, 60, 0.26);
  --glow-red: rgba(200, 50, 43, 0.13);
  --shadow: 0 30px 70px -34px rgba(74, 30, 18, 0.5), 0 0 0 1px rgba(73, 40, 28, 0.08);
  --display: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17100e;
    --paper-2: #1f1613;
    --card: #251a17;
    --ink: #f6ede2;
    --copy: #d9cabd;
    --muted: #a8968a;
    --line: rgba(255, 232, 210, 0.13);
    --red: #e2554c;
    --red-deep: #c2302a;
    --gold: #e6b84a;
    --leaf: #7cba63;
    --glow-gold: rgba(226, 179, 60, 0.13);
    --glow-red: rgba(200, 50, 43, 0.16);
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 232, 210, 0.1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--copy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head p:not(.eyebrow) { margin-top: 1.1rem; }

/* Shown at once without the script; with it, each part rises as it is reached. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled, .nav.solid {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.nav nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav nav a { font-size: 0.92rem; text-decoration: none; color: var(--muted); white-space: nowrap; transition: color 0.2s; }
.nav nav a:hover, .nav nav a:focus-visible { color: var(--ink); }
.nav nav a.nav-cta { color: var(--paper); background: var(--ink); padding: 0.42rem 1rem; border-radius: 999px; font-weight: 600; }
.nav nav a.nav-cta:hover { background: var(--red-deep); color: #fff; }
@media (max-width: 820px) { .nav nav a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn.primary { color: #fff; background: linear-gradient(180deg, #d2403a, var(--red-deep)); box-shadow: 0 12px 26px -12px rgba(143, 29, 28, 0.75); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(143, 29, 28, 0.85); }
.btn.ghost { color: var(--ink); border-color: var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
/* A link that has nowhere to go yet: the download before the release, the store before its listing. */
.btn.is-soon { color: var(--muted); background: transparent; border: 1px dashed color-mix(in srgb, var(--muted) 55%, transparent); box-shadow: none; cursor: default; }
.btn.is-soon:hover { transform: none; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(120px, 15vw, 170px) 0 clamp(50px, 7vw, 90px); text-align: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 50% 8%, var(--glow-gold), transparent 70%),
    radial-gradient(40% 34% at 76% 34%, var(--glow-red), transparent 72%),
    radial-gradient(36% 30% at 20% 40%, var(--glow-gold), transparent 72%);
}
.hero-icon { width: 112px; height: 112px; margin: 0 auto 1.3rem; filter: drop-shadow(0 18px 24px rgba(143, 29, 28, 0.25)); animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero h1 { font-size: clamp(2.7rem, 7.4vw, 5rem); line-height: 1.04; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero .lead { max-width: 640px; margin: 1.5rem auto 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2.1rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--muted); }
.status-chip { display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.6rem; padding: 0.36rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--card) 65%, transparent); font-size: 0.8rem; color: var(--muted); }
.status-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-icon { animation: none; } }

/* A capture of the app's window. The captures keep the window's own rounded
   corners, so the shadow follows the picture rather than a box around it. */
.shot { margin: 0; }
.shot img { width: 100%; filter: drop-shadow(0 28px 44px rgba(74, 30, 18, 0.28)) drop-shadow(0 0 1px rgba(73, 40, 28, 0.45)); }
@media (prefers-color-scheme: dark) { .shot img { filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.7)); } }
.shot figcaption { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); text-align: center; }
.hero-shot { max-width: 1000px; margin: clamp(44px, 6vw, 72px) auto 0; padding: 0 20px; }

/* ---------- Figures ---------- */
.figures { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures li { padding: 1.8rem 1.4rem; text-align: center; border-left: 1px solid var(--line); }
.figures li:first-child { border-left: 0; }
.figures .n { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; line-height: 1.1; color: var(--ink); }
.figures .k { display: block; margin-top: 0.4rem; font-size: 0.95rem; color: var(--muted); }
.band { padding: 0 0 clamp(20px, 3vw, 40px); }
@media (max-width: 720px) {
  .figures { grid-template-columns: 1fr; }
  .figures li { border-left: 0; border-top: 1px solid var(--line); }
  .figures li:first-child { border-top: 0; }
}

/* ---------- Split: words beside a capture ---------- */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > .copy { order: 2; }
.split .copy p:not(.eyebrow) { margin-top: 1.1rem; }
.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.ticks li { position: relative; padding: 0.32rem 0 0.32rem 1.9rem; }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.82em; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg) translateY(-50%); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > .copy { order: 0; }
}
.tinted { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } }
.tour { margin: 0; }
.tour .shot img { filter: drop-shadow(0 16px 26px rgba(74, 30, 18, 0.22)) drop-shadow(0 0 1px rgba(73, 40, 28, 0.45)); }
.tour .shot { display: grid; align-items: center; aspect-ratio: 1600 / 1025; }
.shot a { display: block; cursor: zoom-in; }
.tour figcaption { padding-top: 1.1rem; }
.tour h3 { margin-bottom: 0.35rem; }
.tour p { font-size: 0.98rem; }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }
.pillars li { padding: 1.6rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.pillars .glyph { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 12px; color: var(--red); background: color-mix(in srgb, var(--red) 11%, transparent); }
.pillars .glyph svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillars p { margin-top: 0.5rem; font-size: 0.97rem; }
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Get it ---------- */
.get-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .get-grid { grid-template-columns: 1fr; } }
.get-card { display: flex; flex-direction: column; padding: 2rem 1.8rem; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.get-card.is-main { border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.get-card .kind { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.get-card h3 { margin-top: 0.5rem; font-size: 1.5rem; }
.price { margin-top: 1rem; font-family: var(--display); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--ink); }
.price small { font-family: var(--sans); font-size: 0.95rem; font-weight: 400; color: var(--muted); margin-left: 0.4rem; }
.get-card .ticks { margin: 1.2rem 0 1.6rem; font-size: 0.97rem; }
.get-card .btn { margin-top: auto; width: 100%; }
.get-card .after { margin-top: 0.9rem; font-size: 0.86rem; color: var(--muted); text-align: center; }
.needs { max-width: 900px; margin: 1.8rem auto 0; text-align: center; font-size: 0.93rem; color: var(--muted); }

/* ---------- Questions ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0.2rem; cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.13rem; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--red); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0.2rem 1.3rem; max-width: 68ch; }
.faq details p + p { margin-top: -0.4rem; }
.faq a, .prose a, .fine a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--red) 55%, transparent); text-underline-offset: 3px; }
.faq a:hover, .prose a:hover, .fine a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.footer { padding: clamp(50px, 7vw, 80px) 0 40px; text-align: center; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer img { width: 54px; height: 54px; margin: 0 auto; }
.footer-word { margin-top: 0.7rem; font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.footer-motto { font-family: var(--display); font-style: italic; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font-size: 0.93rem; }
.footer-links a { text-decoration: none; color: var(--copy); }
.footer-links a:hover { color: var(--red); }
.fine { margin-top: 1.6rem; font-size: 0.84rem; color: var(--muted); }

/* ---------- Plain pages: privacy, update ---------- */
.page { padding: clamp(110px, 13vw, 150px) 0 clamp(60px, 8vw, 100px); }
.prose { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; }
.prose .lead { margin-top: 1.2rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.6rem; }
.prose h2 + p, .prose p + p, .prose ul + p, .prose p + ul, .prose ol + p, .prose p + ol { margin-top: 0.9rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0.9rem 0 0; }
.prose li { margin: 0.35rem 0; }
.prose .updated { margin-top: 2.6rem; font-size: 0.88rem; color: var(--muted); }
.prose .cta-row { justify-content: flex-start; margin-top: 1.6rem; }
.note { margin-top: 1.4rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; background: var(--card); font-size: 0.96rem; }

/* ---------- Under the hood ---------- */
.hero-note a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--red) 55%, transparent); text-underline-offset: 3px; }
.hero-note a:hover { color: var(--red); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; padding: 0.08em 0.36em; border-radius: 5px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.engine .split { grid-template-columns: 1.05fr 1fr; align-items: start; }
@media (max-width: 880px) { .engine .split { grid-template-columns: 1fr; } }
/* The spec sheet stays dark in both themes, like a terminal on the page. */
.spec { margin: 0; padding: 0.6rem 1.5rem; border-radius: 18px; background: #1d1411; border: 1px solid rgba(255, 232, 210, 0.12); box-shadow: var(--shadow); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.86rem; line-height: 1.5; }
.spec div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid rgba(255, 232, 210, 0.1); }
.spec div:first-child { border-top: 0; }
.spec dt { color: #e6b84a; }
.spec dd { margin: 0; color: #f1e6d8; }
.spec code { background: rgba(255, 232, 210, 0.12); color: #fff; }
@media (max-width: 480px) { .spec div { grid-template-columns: 1fr; gap: 0.15rem; } }
