/* MacAnywhere website — the app's brand (design-system/macanywhere/MASTER.md): system type, one teal accent.
   No scripts, fonts or inline styles: the CSP in _headers allows only this file and our own images. */
:root {
  color-scheme: light dark;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --background: #ffffff;
  --surface: #f5f5f7;
  --raised: #ffffff;
  --accent: #0f766e; /* AccentColor light: 5.5:1 on white */
  --accent-fill: #0f766e; /* AccentFill: white text on it 5.5:1, light and dark */
  --rule: #d2d2d7;
  --bar: rgba(255, 255, 255, 0.78);
  --device: #1d1d1f;
  --shadow: rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --background: #000000;
    --surface: #161617;
    --raised: #1c1c1e;
    --accent: #26bbac; /* AccentColor dark: 7.1:1 on #1c1c1e */
    --rule: #38383a;
    --bar: rgba(22, 22, 23, 0.78);
    --device: #3a3a3c;
    --shadow: rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { max-width: 100%; }

/* Header: a translucent bar that stays at the top. */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  padding: 0 max(22px, calc((100% - 980px) / 2));
  height: 52px;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}

header a.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

header a.brand img { width: 22px; height: 22px; }
nav { display: flex; gap: 22px; }
nav a { color: var(--secondary); text-decoration: none; font-size: 14px; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

/* Inner pages (Download, Support, Privacy): one readable column. */
main, footer { max-width: 760px; margin: 0 auto; padding: 0 22px; }
main { padding-top: 40px; padding-bottom: 56px; }
h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; margin: 40px 0 8px; }
h3 { font-size: 19px; line-height: 1.3; margin: 24px 0 4px; }
.lede { font-size: 21px; line-height: 1.45; color: var(--secondary); margin: 0 0 32px; }
.meta { color: var(--secondary); font-size: 15px; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
.app-icon { display: block; width: 96px; height: 96px; margin: 0 0 20px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 0 0 12px; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--accent-fill);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.button.secondary { background: var(--surface); color: var(--accent); }
/* Not available yet: shown, but nothing to click. */
.button.soon { background: var(--surface); color: var(--secondary); }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }

.card { background: var(--surface); border-radius: 18px; padding: 20px 24px; margin: 24px 0; }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

footer {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--rule);
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.5;
}

footer nav { flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }

/* Home: full-width sections, centred, generous space. */
.home main { max-width: none; padding: 0; }
.home footer { max-width: 980px; }
.home section { padding: 96px max(22px, calc((100% - 980px) / 2)); text-align: center; }
.home h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; }
.home h3 { font-size: 21px; margin: 0 0 8px; }
.home .lede { max-width: 680px; margin: 0 auto 32px; }
.home .actions { justify-content: center; }
.band { background: var(--surface); }

.hero { padding-top: 72px; padding-bottom: 0; overflow: hidden; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 19px; margin: 0 0 8px; }
.hero h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 20px; }
.hero .lede { font-size: clamp(19px, 2.4vw, 24px); }
.hero-art { display: block; width: 100%; max-width: 900px; height: auto; margin: 48px auto 0; }
.art-device { fill: var(--device); }
.art-shadow { fill: var(--shadow); }

.steps ol { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { margin: 0; }
.steps p { color: var(--secondary); margin: 0; }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: #ffffff;
  font-weight: 600;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; text-align: left; }
.tile { background: var(--raised); border-radius: 22px; padding: 32px 28px; }
.tile p { color: var(--secondary); margin: 0; }

.privacy .checks { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; text-align: left; }
.checks li { position: relative; padding-left: 36px; margin: 14px 0; font-size: 19px; }
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; margin-bottom: 24px; }
.plan { background: var(--raised); border-radius: 22px; padding: 28px 24px; border: 2px solid transparent; }
.plan.featured { border-color: var(--accent); }
.plan .price { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 0; }
.plan .price span { font-size: 15px; font-weight: 400; color: var(--secondary); letter-spacing: 0; }
.plan .yearly { color: var(--secondary); font-size: 15px; margin: 0 0 16px; }
.plan ul { padding-left: 18px; margin: 0; font-size: 15px; }
#pricing .meta { max-width: 680px; margin: 0 auto; }

.faq { text-align: left; }
.home .faq h2 { text-align: center; margin-bottom: 32px; }
.faq details { max-width: 760px; margin: 0 auto; border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 20px 0; font-size: 19px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--secondary); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--secondary); margin: 0 0 20px; }

.closing { background: var(--surface); }
.closing img { display: block; margin: 0 auto 20px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .grid, .plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  header { padding: 0 16px; }
  nav { gap: 14px; }
  header nav a[href^="#"] { display: none; }
  .home section { padding: 64px 16px; }
  .hero { padding-top: 48px; padding-bottom: 0; }
  .steps ol, .grid, .plans { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  main, footer, .home footer { padding-left: 16px; padding-right: 16px; }
}

/* ---- Home redesign (owner, 2026-11-22): quiet chrome, the real product as the one rich picture, the teal status
   dot as the one signature. ---- */
h1, h2, .home h3 { font-weight: 600; }
.hero h1 { margin-bottom: 20px; }
.soon-note { color: var(--secondary); font-size: 15px; }
.home .faq { text-align: left; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin: 0 8px 1px 0; border-radius: 50%; background: #26bbac; }

/* Steps: numbers are quiet; the accent stays for actions. */
.step-number { background: transparent; color: var(--secondary); border: 1px solid var(--rule); font-variant-numeric: tabular-nums; font-weight: 500; }

/* Checks: a drawn tick in the accent, no filled discs. */
.checks li::before {
  content: "";
  left: 6px;
  top: 4px;
  width: 7px;
  height: 14px;
  border-radius: 0;
  background: none;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Devices are Apple's Product Bezels (launch T4), as Apple's marketing guidelines allow: as is, upright, never
   cropped, tilted, covered or animated — so the tabs swap instantly and no device overlaps another. */
.device { display: block; width: 100%; height: auto; }

/* The hero's devices: three radio buttons and CSS only (the CSP allows no script). */
.switcher { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 56px; }
.switcher input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switcher label { padding: 8px 20px; border: 1px solid var(--rule); color: var(--secondary); font-size: 15px; font-weight: 500; cursor: pointer; }
.switcher label[for="dev-ipad"] { border-radius: 10px 0 0 10px; border-right: 0; }
.switcher label[for="dev-iphone"] { border-right: 0; }
.switcher label[for="dev-duo"] { border-radius: 0 10px 10px 0; }
.switcher input:checked + label { background: var(--text); color: var(--background); border-color: var(--text); }
.switcher input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.product { flex-basis: 100%; max-width: 880px; margin: 40px auto 0; }
.product figcaption { margin: 20px 0 0; color: var(--secondary); font-size: 15px; }
.stage { position: relative; }
.frame-iphone, .frame-duo { position: absolute; top: 50%; transform: translateY(-50%); visibility: hidden; }
.frame-iphone { left: 0; width: 100%; }
.frame-duo { left: 2%; width: 96%; }
#dev-iphone:checked ~ .product .frame-ipad, #dev-duo:checked ~ .product .frame-ipad { visibility: hidden; }
#dev-iphone:checked ~ .product .frame-iphone, #dev-duo:checked ~ .product .frame-duo { visibility: visible; }
.cap-iphone, .cap-duo, #dev-iphone:checked ~ .product .cap-ipad, #dev-duo:checked ~ .product .cap-ipad { display: none; }
#dev-iphone:checked ~ .product .cap-iphone, #dev-duo:checked ~ .product .cap-duo { display: inline; }

/* The iPad plays a real recording in the bezel's screen (124,118 → 2752×2064 of 3000×2300), never sped up; the bezel
   is drawn over it. Reduce Motion gets the still. */
.frame-ipad { position: relative; }
.frame-ipad .clip { position: absolute; left: 4.133%; top: 5.13%; width: 91.733%; height: 89.739%; object-fit: cover; background: #000; }
.frame-ipad .bezel-over { position: relative; display: block; width: 100%; height: auto; pointer-events: none; }
.frame-ipad .clip-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .frame-ipad .clip, .frame-ipad .bezel-over { display: none; }
  .frame-ipad .clip-still { display: block; width: 100%; height: auto; }
}

/* The Mac mini section: the opportunity, beside our own Mac mini on an iPad. */
.home .mini { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; text-align: left; }
.mini h2 { font-size: clamp(30px, 3.4vw, 36px); }
.home .mini .lede { margin: 0 0 24px; max-width: none; font-size: 19px; }
.mini .checks { list-style: none; padding: 0; margin: 0; }
.mini .checks li { font-size: 17px; }
.mini-shot { margin: 0; }
.mini-shot figcaption { margin: 16px 0 0; color: var(--secondary); font-size: 14px; }

/* Features: the moat gets the big tile, its iPad and iPhone side by side. */
.tile-feature { grid-column: 1 / 3; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tile-feature .tile-text { max-width: 420px; }
.shape-pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: center; }
.tablet, .phone { margin: 0; }
.tablet figcaption, .phone figcaption { margin: 10px 0 0; color: var(--text); font-size: 13px; }

/* Use cases: ten short items, numbers quiet. */
.use-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; text-align: left; counter-reset: use; }
.use-list li { margin: 0; padding: 20px 0 20px 48px; border-top: 1px solid var(--rule); position: relative; counter-increment: use; }
.use-list li::before { content: counter(use); position: absolute; left: 0; top: 22px; color: var(--secondary); font-variant-numeric: tabular-nums; font-size: 15px; }
.use-list h3 { font-size: 19px; margin: 0 0 4px; }
.use-list p { margin: 0; color: var(--secondary); }

@media (max-width: 900px) {
  .tile-feature { grid-row: auto; }
  .home .mini { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .tile-feature { grid-column: auto; }
  .shape-pair, .use-list { grid-template-columns: 1fr; }
  .product { margin-top: 32px; }
}
