/* PalmDesk website. Dark like the app; type, spacing and rhythm follow Apple's
   product pages (one idea per screen, alternating black and near-black
   chapters, big headlines, stat lockups, footnoted claims). System fonts only. */

:root {
  --bg: #000;
  --bg-alt: #0b0b0d;
  --tile: #161617;
  --tile-2: #1d1d1f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #86868b;
  --accent: #1478ff;
  --accent-hover: #3a8cff;
  --link: #2997ff;
  --green: #30d158;
  --yellow: #ffd60a;
  --grad: linear-gradient(100deg, #67c7f3 0%, #1478ff 72%);
  --r-tile: 28px;
  --r-card: 18px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.47 var(--font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.6vw, 80px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.24; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
b, strong { font-weight: 600; }
sup { font-size: 0.6em; line-height: 0; vertical-align: super; }
sup a { color: inherit; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--tile); padding: 2px 6px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.mt { margin-top: clamp(28px, 4vw, 48px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 980px; border: 1px solid transparent;
  font: 500 17px/1 var(--font); letter-spacing: -0.01em; color: var(--text);
  white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 30px; padding: 0 14px; font-size: 13px; }
.btn.is-soon { background: var(--tile-2); color: var(--text); border-color: var(--line-strong); cursor: default; }
/* Download buttons read like the App Store badge: a small lead-in over the name. */
.btn-store { min-height: 56px; min-width: 176px; padding: 0 22px; gap: 11px; border-radius: 14px; justify-content: flex-start; text-align: left; }
/* The Mac button has no icon; its two lines sit centred instead. */
.btn-store:not(:has(svg)) { justify-content: center; }
.btn.btn-store:not(:has(svg)) { text-align: center; }
.btn-store svg { width: 26px; height: 26px; }
.btn-store-text { display: flex; flex-direction: column; gap: 3px; }
.btn-store-text small { font-size: 12px; font-weight: 400; line-height: 1; letter-spacing: 0; opacity: .82; }
.btn-store-text b { font-size: 19px; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.plan .btn-store { justify-content: center; }
/* Stacked on a phone, the two buttons share one width and keep the badge's left-aligned text. */
@media (max-width: 480px) {
  .cta-row .btn-store { width: min(100%, 300px); justify-content: center; }
  .btn.btn-store { text-align: left; }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row.center { justify-content: center; }
/* On a Mac the free Mac app is the first thing to install, so it leads. */
html[data-platform="mac"] [data-adaptive] [data-for="mac"] { order: -1; }
html[data-platform="mac"] [data-adaptive] [data-for="mac"].btn-ghost { background: var(--accent); border-color: transparent; color: #fff; }
html[data-platform="mac"] [data-adaptive] [data-for="ios"].btn-primary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.link-more { font-size: 17px; font-weight: 400; }
.link-more::after { content: " ›"; }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; } }

/* ---------- header (acts as Apple's sticky local nav) ---------- */
.lang-suggest { background: var(--tile); border-bottom: 1px solid var(--line); font-size: 14px; }
.lang-suggest .wrap { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.lang-suggest button { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 20px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 6px 8px; border-radius: 8px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); }
.lang-menu summary svg { width: 15px; height: 15px; }
.lang-menu ul { list-style: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; background: var(--tile-2); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); z-index: 60; }
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--text); font-size: 14px; }
.lang-menu li a:hover { background: rgba(255, 255, 255, .07); text-decoration: none; }
.lang-menu li a[aria-current] { color: var(--link); }
.footer-langs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); width: 36px; height: 36px; cursor: pointer; padding: 6px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-actions { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 20px;
    background: rgba(0, 0, 0, 0.96); border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 17px; padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ---------- home: hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; text-align: center; overflow: hidden; }
.hero-eyebrow { color: var(--muted); font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.01em; }
.hero h1 { margin: 10px auto 18px; max-width: 13ch; }
.hero-sub { color: var(--muted); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; max-width: 34em; margin: 0 auto; }
.hero-price { color: var(--text); font-size: 17px; margin-top: 22px; }
.hero .cta-row { justify-content: center; margin-top: 22px; }
.hero-note { color: var(--faint); font-size: 14px; margin-top: 14px; }

/* Device lineup: MacBook in the middle, iPad left, iPhone right. */
.lineup { position: relative; width: min(1100px, 100%); margin: clamp(36px, 6vw, 64px) auto 0; aspect-ratio: 1100 / 560; }
.lineup .macbook { position: absolute; left: 50%; bottom: 0; width: 72%; transform: translateX(-50%); }
.lineup .tablet { position: absolute; left: 0; bottom: 0; width: 25%; }
.lineup .phone { position: absolute; right: 3%; bottom: 0; width: 14%; }
@media (max-width: 640px) {
  .lineup { aspect-ratio: 1100 / 700; }
  .lineup .macbook { width: 88%; bottom: 14%; }
  .lineup .tablet { width: 30%; left: 0; }
  .lineup .phone { width: 18%; right: 0; }
}

/* ---------- device frames ---------- */
.phone, .phone-land, .tablet, .macbook { position: relative; }
.phone { aspect-ratio: 700 / 1431; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6)); }
.phone-land { aspect-ratio: 1431 / 700; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6)); }
.tablet { aspect-ratio: 1816 / 2568; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .65)); }
.macbook { aspect-ratio: 1280 / 842; filter: drop-shadow(0 40px 70px rgba(0, 0, 0, .6)); }
.phone img, .phone-land img, .tablet img, .macbook img { position: absolute; object-fit: cover; background: #000; }
.phone img { left: 5.3333%; top: 2.5%; width: 89.3333%; height: 95%; border-radius: 9% / 4.4%; }
.phone-land img { left: 2.5%; top: 5.3333%; width: 95%; height: 89.3333%; border-radius: 4.4% / 9%; }
.tablet img { left: 4.0749%; top: 2.8816%; width: 91.8502%; height: 94.2368%; border-radius: 5.5% / 3.8%; }
.macbook img { left: 10.859%; top: 11.401%; width: 78.281%; height: 77.197%; }
.phone::after, .phone-land::after, .tablet::after, .macbook::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-repeat: no-repeat; background-size: 100% 100%;
}
.phone::after { background-image: url(../img/bezel-iphone.webp); }
.phone-land::after { background-image: url(../img/bezel-iphone-landscape.webp); }
.tablet::after { background-image: url(../img/bezel-ipad.webp); }
.macbook::after { background-image: url(../img/bezel-macbook.webp); }

/* ---------- chapters (Apple feature sections) ---------- */
.chapter { padding: clamp(80px, 11vw, 144px) 0; background: var(--bg); }
.chapter.alt { background: var(--bg-alt); }
.chapter-label { display: block; color: var(--muted); font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.chapter-label.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapter-title { font-size: clamp(36px, 5.6vw, 72px); letter-spacing: -0.035em; max-width: 16ch; }
.chapter-copy { color: var(--muted); font-size: clamp(19px, 1.9vw, 21px); line-height: 1.42; max-width: 36em; margin-top: 22px; }
.chapter-copy b { color: var(--text); font-weight: 600; }
.chapter-head.center .chapter-title, .chapter-head.center .chapter-copy { margin-inline: auto; }
.chapter-head .link-more { display: inline-block; margin-top: 18px; }
.chapter-media { margin-top: clamp(40px, 6vw, 72px); display: grid; justify-items: center; }
.chapter-media .phone-land { width: min(900px, 100%); }
.chapter-media .phone { width: min(300px, 70vw); }
.chapter-media .tablet { width: min(460px, 86vw); }
.media-pair { display: flex; align-items: flex-end; justify-content: center; gap: clamp(18px, 4vw, 48px); }
.media-pair .tablet { width: min(420px, 56%); }
.media-pair .phone { width: min(250px, 34%); }

/* Stat lockups: big value, small caption. */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(48px, 7vw, 80px); }
.stat-value { display: block; font: 600 clamp(36px, 4.4vw, 56px)/1.05 var(--font-display); letter-spacing: -0.03em; }
.stat-value small { font-size: 0.5em; letter-spacing: -0.01em; }
.stat-label { display: block; color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 18em; }
@media (max-width: 760px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* Bento tiles */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.bento.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--tile); border-radius: var(--r-tile); padding: clamp(28px, 3.4vw, 44px); overflow: hidden; }
.chapter.alt .tile { background: var(--tile-2); }
.tile h3 { font-size: clamp(24px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.14; }
.tile p { color: var(--muted); font-size: 17px; margin-top: 10px; }
.tile .tile-ic { width: 44px; height: 44px; color: var(--link); margin-bottom: 18px; }
.tile .tile-ic svg { width: 100%; height: 100%; }
.tile.wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .bento, .bento.three { grid-template-columns: minmax(0, 1fr); } }

/* Services strip for the Media Remote chapter */
.services { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(36px, 5vw, 56px); }
.services span { border: 1px solid var(--line-strong); border-radius: 980px; padding: 8px 16px; font-size: 15px; color: var(--muted); }

/* ---------- highlights carousel ---------- */
.highlights { padding: clamp(80px, 10vw, 128px) 0 clamp(60px, 8vw, 100px); background: var(--bg-alt); }
.hl-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.hl-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 880px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100vw - var(--wrap)) / 2));
  padding: 0 max(16px, calc((100vw - var(--wrap)) / 2)) 12px; scrollbar-width: none;
}
.hl-track::-webkit-scrollbar { display: none; }
.hl-item {
  scroll-snap-align: start; background: var(--tile); border-radius: var(--r-tile); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 24px;
  padding: clamp(28px, 4vw, 56px); min-height: min(560px, 120vw);
}
.hl-item h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.08; }
.hl-item p { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); margin-top: 14px; }
.hl-item .phone { width: min(250px, 100%); justify-self: center; }
.hl-item .tablet { width: min(330px, 100%); justify-self: center; }
.hl-nav { display: flex; gap: 10px; }
.hl-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tile-2); color: var(--text);
  font-size: 20px; cursor: pointer; display: grid; place-items: center;
}
.hl-nav button:hover { background: #2a2a2d; }
@media (max-width: 700px) {
  .hl-item { grid-template-columns: minmax(0, 1fr); text-align: left; min-height: 0; }
  .hl-item .phone { width: min(200px, 60vw); }
  .hl-item .tablet { width: min(260px, 70vw); }
  .hl-nav { display: none; }
}

/* ---------- setup steps ---------- */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
.steps.row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.steps li { counter-increment: step; background: var(--tile); border-radius: var(--r-card); padding: 26px 26px 26px 78px; position: relative; }
.chapter.alt .steps li { background: var(--tile-2); }
.steps li::before {
  content: counter(step); position: absolute; left: 26px; top: 24px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
}
.steps.row li { padding: 32px; }
.steps.row li::before { position: static; margin-bottom: 20px; }
.steps p { color: var(--muted); font-size: 16px; margin-top: 8px; }
@media (max-width: 900px) { .steps.row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- which is right for you ---------- */
.choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.choose-col { background: var(--tile); border-radius: var(--r-tile); padding: clamp(32px, 4vw, 52px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.chapter.alt .choose-col { background: var(--tile-2); }
.choose-col h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.choose-col .price { font: 600 clamp(32px, 3.4vw, 44px)/1.1 var(--font-display); letter-spacing: -0.03em; margin-top: 18px; }
.choose-col .price-note { color: var(--muted); font-size: 15px; margin-top: 8px; }
.choose-col ul { list-style: none; margin: 28px 0 32px; display: grid; gap: 14px; }
.choose-col li { color: var(--muted); font-size: 17px; border-top: 1px solid var(--line); padding-top: 14px; }
.choose-col li:first-child { border-top: 0; padding-top: 0; }
.choose-col li b { color: var(--text); }
.choose-col .cta-row { margin-top: auto; justify-content: center; }
@media (max-width: 760px) { .choose { grid-template-columns: minmax(0, 1fr); } }

/* ---------- trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; color: var(--muted); font-size: 15px; margin-top: 28px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--green); }
.rating { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 18px; color: var(--muted); }
.rating b { font: 600 28px/1 var(--font-display); color: var(--text); }

/* ---------- inner pages ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--faint); font-size: 13px; padding-top: 22px; }
.crumbs a { color: var(--muted); }
.page-head { padding: clamp(28px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); max-width: 860px; }
.page-head h1 { font-size: clamp(38px, 5.6vw, 64px); margin-bottom: 18px; }
.page-head.center { margin-inline: auto; text-align: center; }
.page-head.center .cta-row { justify-content: center; }
.lead { color: var(--muted); font-size: clamp(19px, 2vw, 22px); line-height: 1.4; }
.updated { color: var(--faint); font-size: 14px; margin-top: 18px; }
.block { margin-top: clamp(56px, 8vw, 96px); }
/* The last block keeps the same distance from the footer that blocks keep from each
   other. Pages ending in footnotes don't: that band already belongs to the footer. */
main:not(:has(> .footnotes:last-child)) { padding-bottom: clamp(56px, 8vw, 96px); }
/* Footnotes after ordinary content get the same distance; after a tinted chapter
   (the home page) they continue its background and stay flush. */
main > .wrap + .footnotes { margin-top: clamp(56px, 8vw, 96px); }
.block > h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 20px; }
.block > p { color: var(--muted); max-width: 46em; }
.block > p + p { margin-top: 12px; }
.block-note { color: var(--muted); margin-top: 22px; max-width: 52em; }
.note { border-left: 3px solid var(--accent); padding: 14px 18px; background: var(--tile); border-radius: 0 12px 12px 0; color: var(--muted); }

.answer { background: var(--tile); border-radius: var(--r-card); padding: clamp(22px, 3vw, 32px); }
.answer-label { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.answer > p:not(.answer-label) { font-size: 19px; line-height: 1.5; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
.split > .tablet { width: min(420px, 100%); justify-self: center; }
.split > .phone { width: min(300px, 76vw); justify-self: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
h2 + .lead, h2 + p { margin-top: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--tile); border-radius: var(--r-card); padding: 28px; }
.card p { color: var(--muted); font-size: 16px; margin-top: 8px; }
a.card { color: inherit; display: block; transition: background-color .2s; }
a.card:hover { text-decoration: none; background: var(--tile-2); }
a.card .more { color: var(--link); font-size: 16px; display: inline-block; margin-top: 12px; }
@media (max-width: 900px) { .cards, .cards.two { grid-template-columns: minmax(0, 1fr); } }

.check-list { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.check-list li { position: relative; padding-left: 32px; color: var(--muted); }
.check-list li b { color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(48, 209, 88, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330d158' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list.no li::before {
  background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* tables */
.table-wrap { overflow-x: auto; background: var(--tile); border-radius: var(--r-card); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table caption { caption-side: bottom; text-align: left; padding: 14px 20px 18px; color: var(--faint); font-size: 13px; }
.table th, .table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.table tbody th { font-weight: 600; color: var(--text); }
.table td { color: var(--muted); }
.table tr:last-child > * { border-bottom: 0; }
.table .us { background: rgba(20, 120, 255, 0.1); color: var(--text); }
.table.compare { min-width: 880px; }
.table.compare td, .table.compare th { font-size: 14px; padding: 12px 14px; }
.table.compare tbody th, .table.compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--tile); min-width: 150px; }
.yes { color: var(--green); font-weight: 600; }
.no { color: var(--faint); }
.part { color: var(--yellow); }

/* Apple-style tech specs rows: category on the left, values on the right */
.specs { border-top: 1px solid var(--line-strong); }
.spec-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.spec-row h2 { font-size: 24px; letter-spacing: -0.02em; }
.spec-row dl { margin: 0; display: grid; gap: 18px; }
.spec-row dt { font-weight: 600; font-size: 17px; }
.spec-row dd { margin: 4px 0 0; color: var(--muted); font-size: 17px; }
.spec-row ul { list-style: none; display: grid; gap: 8px; color: var(--muted); }
@media (max-width: 760px) { .spec-row { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin-inline: auto; }
.plan { position: relative; background: var(--tile); border-radius: var(--r-tile); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; border: 1px solid transparent; }
.plan.best { border-color: var(--accent); background: linear-gradient(180deg, rgba(20, 120, 255, 0.14), var(--tile) 55%); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 980px; white-space: nowrap; }
.plan-name { font: 600 24px/1.2 var(--font-display); letter-spacing: -0.02em; }
.plan-price { font: 600 44px/1.05 var(--font-display); letter-spacing: -0.03em; margin-top: 14px; }
.plan-price small { font-size: 17px; font-weight: 400; color: var(--muted); letter-spacing: -0.01em; }
.plan-sub { color: var(--muted); font-size: 15px; margin-top: 8px; min-height: 2.8em; }
.plan .check-list { margin: 24px 0 28px; font-size: 16px; }
.plan .cta-row { margin-top: auto; }
.plan .btn { width: 100%; }
.free-band { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--tile); border-radius: var(--r-tile); padding: clamp(28px, 3.6vw, 48px); margin-bottom: 36px; }
.free-band h2 { font-size: clamp(28px, 3.2vw, 40px); }
.free-band p { color: var(--muted); margin-top: 12px; font-size: 17px; }
@media (max-width: 900px) { .plans, .free-band { grid-template-columns: minmax(0, 1fr); } .plan-badge { top: -12px; } }

/* FAQ */
.faq { display: grid; max-width: 860px; border-top: 1px solid var(--line-strong); }
.faq.center { margin-inline: auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font: 600 clamp(18px, 1.8vw, 21px)/1.3 var(--font-display); letter-spacing: -0.015em; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--muted); }
.qa[open] summary::after { content: "−"; }
.qa > div { padding: 0 0 24px; color: var(--muted); font-size: 17px; max-width: 44em; }
.qa > div p + p { margin-top: 10px; }

/* CTA box */
.cta-box { text-align: center; background: var(--tile); border-radius: var(--r-tile); padding: clamp(44px, 6vw, 80px) clamp(20px, 4vw, 48px); }
.cta-box h2 { font-size: clamp(32px, 4.4vw, 56px); }
.cta-box p { color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); max-width: 34em; margin: 16px auto 0; }
.cta-box .cta-row { justify-content: center; margin-top: 30px; }

/* download page */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl { background: var(--tile); border-radius: var(--r-tile); padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid transparent; }
html[data-platform="ios"] .dl[data-for="ios"], html[data-platform="mac"] .dl[data-for="mac"] { border-color: var(--accent); }
.dl h2 { font-size: clamp(26px, 2.8vw, 34px); }
.dl .dl-media { height: 240px; display: grid; place-items: end center; margin: 28px 0; }
.dl .dl-media .phone { width: 110px; }
.dl .dl-media .macbook { width: 330px; }
.dl ul { list-style: none; color: var(--muted); display: grid; gap: 6px; margin: 20px 0 26px; font-size: 16px; }
.dl .cta-row { justify-content: center; margin-top: auto; }
.dl-here { visibility: hidden; font-size: 13px; font-weight: 600; color: var(--link); margin-bottom: 10px; }
html[data-platform="ios"] .dl[data-for="ios"] .dl-here, html[data-platform="mac"] .dl[data-for="mac"] .dl-here { visibility: visible; }
.qr { display: flex; align-items: center; gap: 18px; margin-top: 24px; text-align: left; color: var(--muted); font-size: 15px; }
.qr img { width: 112px; height: 112px; background: #fff; padding: 8px; border-radius: 14px; }
@media (max-width: 860px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } .dl .dl-media .macbook { width: min(300px, 80vw); } }

/* gallery, prose, misc */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 32px); align-items: end; }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 16px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose { max-width: 780px; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; letter-spacing: -0.02em; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; margin-top: 12px; }
.prose li::marker { color: var(--faint); }
.prose li b { color: var(--text); }
.prose .summary { color: var(--text); background: var(--tile); border-radius: var(--r-card); padding: 20px 22px; }
.prose-list { list-style: none; display: grid; gap: 8px; }
.press-icon { width: min(200px, 60%); margin: 0 auto; border-radius: 22%; }
.shot { width: 100%; border-radius: var(--r-card); }
.center-404 { text-align: center; padding-top: 110px; }
.center-404 .cta-row { justify-content: center; margin-top: 28px; }

/* footnotes, Apple's small print */
.footnotes { background: var(--bg-alt); color: var(--faint); font-size: 12px; line-height: 1.5; padding: 32px 0 8px; }
.footnotes ol { padding-left: 18px; display: grid; gap: 8px; max-width: 980px; }
.footnotes a { color: var(--muted); text-decoration: underline; }

/* footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 40px; }
.footer-brand p { color: var(--faint); margin-top: 12px; max-width: 26em; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-links h2 { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: 10px; }
.footer-links a { display: block; color: var(--faint); padding: 4px 0; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); }
.footer-bottom a { color: var(--muted); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Scroll reveal without JavaScript: content is in the DOM and visible when the
   browser lacks scroll-driven animations or the visitor prefers less motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(0.98); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Japanese and Chinese: CJK system fonts, no negative tracking, proper line breaking */
:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif; --font-display: var(--font); }
:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif; --font-display: var(--font); }
:lang(ja) body, :lang(zh-Hans) body { letter-spacing: 0; line-break: strict; word-break: normal; }
:lang(ja) :is(h1, h2, h3, .chapter-title, .stat-value, .plan-price), :lang(zh-Hans) :is(h1, h2, h3, .chapter-title, .stat-value, .plan-price) { letter-spacing: 0; line-height: 1.25; }
:lang(de) :is(h1, h2, h3, .chapter-title) { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 400px) { .nav-actions .btn-sm { display: none; } }
/* `ch` is a half-width digit, so CJK headlines need roughly twice the measure;
   auto-phrase keeps Japanese phrases whole where the browser supports it. */
:lang(ja) .hero h1, :lang(zh-Hans) .hero h1 { max-width: 20em; }
:lang(ja) .chapter-title, :lang(zh-Hans) .chapter-title { max-width: 14em; }
:lang(ja) :is(h1, h2, h3, .chapter-title) { word-break: auto-phrase; }
:lang(ja) .stat-value, :lang(zh-Hans) .stat-value { font-size: clamp(28px, 3.2vw, 42px); } :lang(ja) .stat-value { word-break: auto-phrase; }
