:root {
  --bg: #ffffff; --bg-soft: #f5f5f7; --text: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7;
  --accent: #0a6cff; --accent-text: #ffffff; --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111113; --bg-soft: #1c1c1f; --text: #ececee; --muted: #9a9aa0; --line: #333338;
          --accent: #3d8bff; --card: #1c1c1f; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
header.site .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
header.site .brand img { width: 28px; height: 28px; }
header.site nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
header.site nav a { color: var(--muted); }
header.site nav a[aria-current] { color: var(--text); }

.hero { text-align: center; padding: 72px 0 56px; }
.hero img { width: 128px; height: 128px; }
.hero h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.1; margin: 20px 0 12px; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(18px, 3vw, 22px); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 12px 24px;
          border-radius: 999px; font-weight: 600; }
.button:hover { text-decoration: none; opacity: 0.9; }
.button.soon { background: var(--bg-soft); color: var(--muted); cursor: default; }
.note { color: var(--muted); font-size: 15px; margin-top: 12px; }

.protocols { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.protocols li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; color: var(--muted); }

.screens { position: relative; margin-top: 48px; padding-bottom: 4%; }
.screens .mac { display: block; width: 88%; height: auto; border-radius: 12px; border: 1px solid var(--line);
                box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18); }
.screens .phone { position: absolute; right: 16px; bottom: 0; width: 21%; height: auto; border-radius: 9% / 4%;
                  border: 6px solid #1d1d1f; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }

section.band { background: var(--bg-soft); padding: 56px 0; }
section.plain { padding: 56px 0; }
h2 { font-size: 30px; letter-spacing: -0.01em; margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.price { text-align: center; }
.price .amount { font-size: 44px; font-weight: 700; margin: 8px 0; }

article h1 { font-size: 34px; margin: 48px 0 4px; letter-spacing: -0.01em; }
article h2 { font-size: 21px; margin: 36px 0 8px; }
article .muted, .muted { color: var(--muted); }
details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; background: var(--card); }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 2px; color: var(--muted); }
.contact { background: var(--bg-soft); border-radius: 14px; padding: 20px 22px; margin: 24px 0; }
code { background: var(--bg-soft); padding: 1px 6px; border-radius: 5px; font-size: 0.92em; }

footer.site { border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site nav { display: flex; gap: 20px; }
footer.site nav a { color: var(--muted); }

/* Features page */
.page-head { padding: 56px 0 24px; text-align: center; }
.page-head h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; }
.page-head .lead { font-size: clamp(17px, 2.6vw, 20px); color: var(--muted); margin: 0 auto 24px; }
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.toc a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; color: var(--muted); }
.toc a:hover { color: var(--text); text-decoration: none; border-color: var(--muted); }
section.feature { padding: 56px 0; scroll-margin-top: 8px; }
section.feature h2 .tag, .card h3 .tag { font-size: 13px; font-weight: 600; vertical-align: middle; color: var(--accent-text);
                          background: var(--accent); border-radius: 999px; padding: 2px 10px; margin-left: 6px; }
.card h3 .tag { font-size: 11px; padding: 2px 8px; position: relative; top: -1px; }
section.feature .intro { color: var(--muted); margin: -12px 0 24px; max-width: 720px; }
section.feature ul { padding-left: 20px; margin: 0; }
section.feature li { margin: 0 0 8px; }
section.feature li, section.feature .text p { color: var(--muted); }
section.feature li strong { color: var(--text); }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.split.reverse .text { order: 2; }
.split.reverse { grid-template-columns: 1fr 1.15fr; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); background: var(--card); }
.shot figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 10px; }
.shot.wide { margin: 0 auto 28px; max-width: 760px; }
.shot.small { max-width: 290px; justify-self: center; width: 100%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 auto 28px; max-width: 820px; }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 auto 28px; max-width: 680px; }
.shot.phone img { border-radius: 9% / 4.2%; border: 5px solid #1d1d1f; }
h3.example { font-size: 21px; margin: 40px 0 16px; text-align: center; }
h3.example + .intro { text-align: center; margin-left: auto !important; margin-right: auto !important; }
.shot.zoom { max-width: 640px; margin: 0 auto 28px; }
.shot.zoom.small-zoom { max-width: 440px; }
section.feature h3.example + .intro { margin-top: 0; }
table.actions { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 16px; }
table.actions th, table.actions td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
table.actions th { white-space: nowrap; font-weight: 600; }
table.actions td { color: var(--muted); }

@media (max-width: 760px) {
  .split, .pair { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .text { order: 0; }
  .phones { grid-template-columns: repeat(2, 1fr); }
  table.actions th { white-space: normal; width: 38%; }
}

@media (max-width: 560px) {
  header.site nav { gap: 12px; font-size: 14px; }
  header.site .brand { font-size: 0; gap: 0; }
  .hero { padding: 48px 0 40px; }
  .hero img { width: 96px; height: 96px; }
}

/* Language menu in the header */
details.lang { position: relative; font-size: 14px; border: 0; padding: 0; margin: 0; background: none; border-radius: 0; }
details.lang summary { list-style: none; cursor: pointer; font-weight: 400; line-height: 1.5; color: var(--muted); border: 1px solid var(--line);
                       border-radius: 6px; padding: 1px 8px; }
details.lang summary::-webkit-details-marker { display: none; }
details.lang[open] summary { color: var(--text); }
details.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; margin: 0; padding: 6px 0;
                  list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
                  box-shadow: 0 8px 24px rgba(0, 0, 0, .12); min-width: 140px; }
details.lang li a { display: block; padding: 5px 14px; color: var(--text); }
details.lang li a[aria-current] { font-weight: 600; }
details.lang li a:hover { background: var(--bg-soft); text-decoration: none; }

/* "The S3 client for Mac, iPhone and iPad", above the main heading */
.kicker { display: inline-block; margin: 0 0 14px; padding: 6px 16px; border-radius: 999px; font-size: clamp(16px, 2.4vw, 20px);
          font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.hero .kicker { display: table; margin: 24px auto 0; }
.kicker + h1 { margin-top: 4px !important; }
