/* MacModes site. System fonts (SF Pro on Apple devices), light and dark, no external requests. */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.18), 0 8px 24px -8px rgba(0, 0, 0, 0.10);
  --home: #34c759; --work: #0a84ff; --game: #af52de; --private: #ff9f0a; --present: #ff453a; --offhours: #5e5ce6;
  --radius: 28px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0b0b0d;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --line: rgba(255, 255, 255, 0.10);
    --card: rgba(28, 28, 32, 0.66);
    --card-solid: #161618;
    --accent: #2997ff;
    --accent-hover: #47a8ff;
    --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--card-solid); padding: 8px 14px; border-radius: 10px; }

/* Nav: translucent bar like apple.com */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 52px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 13px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav .pill { font-size: 13px; padding: 5px 13px; }
@media (max-width: 720px) { .nav-links { display: none; } .nav .pill { margin-left: auto; } }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 980px; background: var(--accent); color: #fff;
  font-weight: 500; padding: 12px 24px; font-size: 17px; transition: background .2s, transform .2s; }
.pill:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); }
.pill.ghost { background: transparent; color: var(--accent); padding-left: 6px; padding-right: 6px; }
.pill.ghost:hover { text-decoration: underline; transform: none; }
.ctas { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }

/* Type */
.eyebrow { font-size: 21px; font-weight: 600; color: var(--text-2); margin: 0 0 8px; letter-spacing: 0.004em; }
h1 { font-size: clamp(48px, 8.5vw, 96px); line-height: 1.04; letter-spacing: -0.015em; font-weight: 700; margin: 0; }
h2 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.06; letter-spacing: -0.009em; font-weight: 700; margin: 0 0 18px; }
h3 { font-size: 24px; line-height: 1.17; letter-spacing: 0.009em; font-weight: 600; margin: 0 0 8px; }
.lede { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.32; color: var(--text-2); font-weight: 500; max-width: 760px; margin: 22px auto 0; letter-spacing: 0.004em; }
.lede strong { color: var(--text); font-weight: 600; }
.gradient-text { background: linear-gradient(90deg, var(--work), var(--game) 55%, var(--present)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.small { font-size: 14px; color: var(--text-2); }

/* Sections */
section { padding: 110px 0; }
section.alt { background: var(--bg-alt); }
.hero { padding: 96px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero .icon { width: 128px; height: 128px; margin: 0 auto 26px; filter: drop-shadow(0 20px 40px rgba(110, 60, 220, .35)); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1;
  background: radial-gradient(40% 40% at 25% 30%, color-mix(in srgb, var(--work) 22%, transparent), transparent 70%),
              radial-gradient(35% 35% at 78% 28%, color-mix(in srgb, var(--game) 24%, transparent), transparent 70%),
              radial-gradient(30% 30% at 55% 70%, color-mix(in srgb, var(--home) 14%, transparent), transparent 70%); }
.req { margin-top: 18px; font-size: 14px; color: var(--text-2); }

/* Glass */
.glass { background: var(--card); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Product mockup: the menu bar panel */
.stage { position: relative; margin: 70px auto 0; max-width: 980px; min-height: 520px; border-radius: 34px; overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #6d28d9 45%, #db2777 100%); box-shadow: var(--shadow); }
.stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 20%, rgba(255,255,255,.25), transparent 60%); pointer-events: none; }
.menubar { height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 16px; font-size: 13px; font-weight: 500; color: #fff;
  background: rgba(0, 0, 0, .18); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.menubar .spacer { flex: 1; }
.menubar > * { white-space: nowrap; }
@media (max-width: 520px) { .menubar .mi { display: none; } }
.menubar .mm { width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,.95); display: grid; place-items: center; }
.menubar .mm::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--game); }
.panel { position: absolute; right: 28px; top: 44px; width: 340px; padding: 18px; border-radius: 22px; color: #1d1d1f; z-index: 2;
  background: rgba(246, 246, 248, .78); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 40px 90px -20px rgba(0,0,0,.55); }
@media (prefers-color-scheme: dark) { .panel { background: rgba(30, 30, 34, .72); color: #f5f5f7; border-color: rgba(255,255,255,.12); } }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.badge { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.badge svg { width: 24px; height: 24px; }
.panel-head b { display: block; font-size: 20px; }
.panel-head span { font-size: 13px; opacity: .6; }
.toggle { margin-left: auto; width: 38px; height: 22px; border-radius: 11px; background: var(--home); position: relative; }
.toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.pills { display: flex; gap: 6px; margin-bottom: 14px; font-size: 12px; font-weight: 500; }
.pills span { padding: 4px 10px; border-radius: 99px; background: rgba(127,127,127,.14); }
.grid-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { border-radius: 14px; padding: 10px 6px 8px; text-align: center; font-size: 12px; font-weight: 500; background: rgba(127,127,127,.10); transition: transform .3s; }
.tile .badge { width: 34px; height: 34px; border-radius: 10px; margin: 0 auto 6px; }
.tile .badge svg { width: 19px; height: 19px; }
.tile.on { background: rgba(127,127,127,.22); outline: 2px solid color-mix(in srgb, var(--game) 70%, transparent); }
.back-home { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px;
  background: var(--home); color: #fff; font-weight: 600; font-size: 14px; }
.windows { position: absolute; left: 40px; top: 70px; right: 400px; bottom: 30px; }
.win { position: absolute; border-radius: 12px; background: rgba(255,255,255,.88); box-shadow: 0 20px 50px -10px rgba(0,0,0,.45); overflow: hidden; transition: all .8s cubic-bezier(.2,.8,.2,1); }
@media (prefers-color-scheme: dark) { .win { background: rgba(40,40,46,.9); } }
.win i { display: block; height: 22px; background: rgba(127,127,127,.15); }
.win i::before { content: "● ● ●"; font-style: normal; font-size: 8px; letter-spacing: 2px; color: rgba(127,127,127,.7); padding-left: 9px; line-height: 22px; }
.win b { display: block; margin: 12px; height: 9px; border-radius: 5px; background: rgba(127,127,127,.25); }
.win b + b { width: 60%; }
.w1 { left: 0; top: 0; width: 62%; height: 58%; }
.w2 { left: 30%; top: 30%; width: 58%; height: 52%; }
.w3 { left: 8%; top: 54%; width: 40%; height: 40%; }
.stage.game .w1, .stage.game .w2, .stage.game .w3 { opacity: 0; transform: scale(.85) translateY(30px); }
.gamewin { position: absolute; left: 40px; top: 70px; right: 400px; bottom: 30px; border-radius: 14px; opacity: 0; transform: scale(.95); transition: all .8s cubic-bezier(.2,.8,.2,1);
  background: radial-gradient(80% 80% at 30% 20%, #ffb74d, #e65100 40%, #1a0f2e 80%); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 28px; letter-spacing: .02em; text-shadow: 0 4px 20px rgba(0,0,0,.4); }
.stage.game .gamewin { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .stage { min-height: 600px; }
  .panel { left: 50%; right: auto; transform: translateX(-50%); width: min(340px, calc(100% - 32px)); top: 250px; }
  .windows, .gamewin { right: 24px; left: 24px; height: 200px; bottom: auto; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.step { padding: 34px 30px; }
.step .num { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.step p { color: var(--text-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin-top: 56px; }
.feature { padding: 34px 30px; grid-column: span 2; position: relative; overflow: hidden; }
.feature.wide { grid-column: span 3; }
.feature.full { grid-column: span 6; }
.feature .badge { margin-bottom: 18px; }
.feature p { color: var(--text-2); margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } .feature, .feature.wide, .feature.full { grid-column: auto; } }

/* Dark game band */
.band-dark { background: #000; color: #f5f5f7; }
.band-dark .lede, .band-dark .feature p { color: #a1a1a6; }
.band-dark .glass { background: rgba(28,28,32,.7); border-color: rgba(255,255,255,.1); }
.stat { font-size: clamp(56px, 8vw, 88px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; text-align: center; }
.stats > div { padding: 40px 24px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }

/* Quick switcher mockup */
.switcher { display: flex; gap: 10px; justify-content: center; padding: 18px; margin: 56px auto 0; width: fit-content; max-width: 100%; overflow-x: auto; border-radius: 26px; }
.switcher .tile { width: 92px; padding: 14px 6px 10px; }
.switcher .tile.sel { background: color-mix(in srgb, var(--accent) 22%, transparent); outline: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent); }
.keys { margin-top: 18px; text-align: center; color: var(--text-2); font-size: 14px; }
kbd { font: 600 13px -apple-system, sans-serif; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--card-solid); box-shadow: 0 1px 0 var(--line); }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.privacy-grid > div { padding: 30px 26px; }
.privacy-grid h3 { font-size: 19px; }
.privacy-grid p { color: var(--text-2); margin: 0; font-size: 15px; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.faq summary { cursor: pointer; font-size: 21px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 28px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-2); margin: 14px 0 0; }

/* Final CTA + footer */
.final { text-align: center; }
.final .icon { width: 96px; height: 96px; margin: 0 auto 24px; }
footer { border-top: 1px solid var(--line); padding: 30px 0 46px; font-size: 12px; color: var(--text-2); }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--text-2); }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 80px 22px 100px; }
.doc h1 { font-size: 48px; margin-bottom: 8px; }
.doc h2 { font-size: 28px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text-2); }

/* Scroll reveal (off for reduced motion and without JavaScript) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .win, .gamewin, .tile { transition: none; }
}
.nav .pill.end { margin-left: auto; }

/* Pricing */
.price-card { max-width: 560px; margin: 48px auto 0; padding: 44px 40px; text-align: center; }
.price { font-size: 72px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin: 6px 0 4px; }
.price small { font-size: 21px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.includes { list-style: none; padding: 0; margin: 26px auto 30px; text-align: left; max-width: 360px; }
.includes li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.includes li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 14px; height: 8px; border-left: 2.5px solid var(--home); border-bottom: 2.5px solid var(--home); transform: rotate(-45deg); }
.pill.secondary { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.pill.secondary:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.pill[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Guides */
.crumbs { font-size: 14px; color: var(--text-2); margin: 0 0 18px; }
.crumbs a { color: var(--text-2); }
.doc .lede-doc { font-size: 21px; color: var(--text); margin: 18px 0 8px; }
.doc h3 { font-size: 21px; margin: 28px 0 6px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { font: 15px ui-monospace, "SF Mono", Menlo, monospace; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.doc pre { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; overflow-x: auto; }
.doc pre code { border: 0; padding: 0; background: none; }
.callout { padding: 28px 28px 24px; margin: 44px 0 10px; }
.callout h2 { margin-top: 0 !important; }
.callout p { margin: 0 0 16px; }
.related { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.related a { font-weight: 600; }
a.guide-card { color: inherit; text-decoration: none; display: block; transition: transform .2s; }
a.guide-card:hover { transform: translateY(-2px); text-decoration: none; }
a.guide-card h3 { color: var(--text); }
a.guide-card .more { color: var(--accent); font-weight: 600; margin-top: 12px; display: inline-block; }
@media (max-width: 600px) { .doc { padding-top: 48px; } .doc h1 { font-size: 34px; } .doc h2 { font-size: 24px; } .callout { padding: 22px 20px 18px; } }
