:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #d9774f;
  --accent-ink: #b85a34;
  --shadow: 0 30px 60px -20px rgba(40, 30, 20, 0.28);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141312;
    --surface: #1e1d1b;
    --text: #f2f1ef;
    --muted: #a19f9b;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #e98a62;
    --accent-ink: #f0a07e;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
/* Light and dark artwork swap through <picture>, which mustn't change the layout. */
.brand picture, .hero picture, .device picture { display: contents; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; font-size: 15px; white-space: nowrap; }
.nav ul a { color: var(--muted); }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--text); text-decoration: none; }

/* Mobile menu button, shown only on small screens */
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-right: -8px; padding: 0;
  border: 0; background: none; color: var(--text); cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor;
  transition: transform .2s, background-color .2s;
}
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-btn { display: flex; }
  .nav ul {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 6px 16px 14px; font-size: 17px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -16px rgba(0, 0, 0, 0.2);
  }
  .nav.open ul { display: flex; }
  .nav ul li + li { border-top: 1px solid var(--line); }
  .nav ul a { display: block; padding: 12px 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* Hero */
.hero { text-align: center; padding: 72px 0 40px; }
.hero .icon { width: 112px; height: 112px; margin: 0 auto 20px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18)); }
.hero h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 750; }
.hero p.lede { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Hero MacBook with the real Klip panel */
.stage { padding: 8px 16px 72px; }
.stage.wrap { max-width: 1134px; }
.macbook { width: 100%; height: auto; max-width: 1100px; margin: 0 auto; }
.duo { position: relative; max-width: 1155px; margin: 0 auto; }
.duo .macbook { display: block; width: 88%; margin: 0; }
.duo .phone { position: absolute; right: 0; bottom: -2%; width: 21%; }
.caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Hero slides: stacked in one grid cell so the stage keeps the tallest slide's height and
   switching never shifts the page. Inactive slides fade out and are made inert in slides.js. */
.slides { display: grid; touch-action: pan-y; }
.slide {
  grid-area: 1 / 1; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s .45s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease; }
.slide-visual { flex: 1; display: flex; align-items: center; justify-content: center; }
.slide-visual > * { width: 100%; }
.slides img { -webkit-user-drag: none; user-select: none; }
.slide-title { text-align: center; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 28px; }
/* iPhone Duo hero, composed like the Mac one: the open Duo centered, the folded Duo overlapping its lower right */
.duo-pair { position: relative; max-width: 1155px; margin: 0 auto; }
.duo-pair img { height: auto; filter: drop-shadow(0 24px 30px rgba(30, 20, 10, 0.22)); }
.duo-pair-open { display: block; width: 76%; margin: 0 auto; }
.duo-pair-folded { position: absolute; right: 0; bottom: -3%; width: 25%; }

/* iPhone hero: every iPhone screenshot in a staggered row */
.hero-phones { display: flex; justify-content: center; align-items: flex-start; gap: 24px; padding-bottom: 40px; }
.hero-phones .phone { flex: 1 1 0; min-width: 0; max-width: 221px; }
.hero-phones .phone:nth-child(even) { margin-top: 40px; }
@media (max-width: 560px) {
  .hero-phones { gap: 12px; }
  .hero-phones .phone:nth-child(4) { display: none; }
}
.slide-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; }
.slide-dots { display: flex; justify-content: center; gap: 8px; }
.slide-pause { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--muted); }
.slide-pause:hover { background: color-mix(in srgb, var(--text) 14%, transparent); color: var(--text); }
.slide-pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.slide-pause svg { width: 12px; height: 12px; fill: currentColor; }
.slide-pause .i-play, .slide-pause[aria-pressed="true"] .i-pause { display: none; }
.slide-pause[aria-pressed="true"] .i-play { display: block; }
@media (prefers-reduced-motion: reduce) { .slide-pause { display: none; } }
.slide-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--text) 22%, transparent);
  transition: width .3s ease, background-color .3s ease;
}
.slide-dots button:hover { background: color-mix(in srgb, var(--text) 40%, transparent); }
.slide-dots button[aria-pressed="true"] { width: 24px; background: var(--text); }
.slide-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active, .slide-dots button { transition: none; transform: none; }
}

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 12px; }
.section-lede { color: var(--muted); font-size: 19px; max-width: 640px; margin: 0 0 40px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(240px, calc((100% - 36px) / 3)), 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .glyph { font-size: 24px; margin-bottom: 10px; }
.feature.wide { grid-column: 1 / -1; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feature p + p { margin-top: 8px; }
a.feature { display: block; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.feature:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(40, 30, 20, 0.3); }
.feature .rel-ver { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
a.feature .rel-ver::after { content: "→"; display: inline-block; margin-left: 6px; transition: transform .2s; }
a.feature:hover .rel-ver::after { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { a.feature, a.feature .rel-ver::after { transition: none; } a.feature:hover { transform: none; } }
.whats-new-more { margin: 24px 0 0; font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: 12px; box-shadow: var(--shadow); margin: 0 auto; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.keys { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.keys td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.keys td:first-child { white-space: nowrap; padding-right: 20px; width: 1%; }
kbd {
  font: 600 13px -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 2px 8px; border-radius: 6px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--line);
}

/* Docs pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 16px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.1; }
.doc .meta { color: var(--muted); margin: 0 0 36px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: .01em; }

details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { color: var(--muted); padding-top: 8px; }
details.faq > div p { color: var(--muted); margin: 8px 0; }

.contact {
  margin: 32px 0; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.contact p { margin: 0; }

/* Footer (Wise-style: brand + social, link columns, legal) */
.footer { padding: 0 0 56px; color: var(--text); font-size: 13px; }
/* divider sits inside the content width, not edge to edge */
.footer-stack { border-top: 1px solid var(--line); padding-top: 36px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--text);
}
.footer-brand:hover { text-decoration: none; }
.footer-brand img { width: 36px; height: 36px; }
.footer-social { display: flex; align-items: center; gap: 22px; }
.footer-social a { display: flex; color: var(--text); transition: color .15s; }
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; margin-top: 44px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: var(--text); font-size: 14px; }
.footer-nav a:hover { color: var(--accent-ink); }
.footer-legal { margin-top: 48px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.footer-legal p { margin: 0 0 14px; max-width: 900px; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 720px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 48px; }
  section { padding: 56px 0; }
}

/* iPhone and iPad screenshots, inside device frames drawn to match the screenshots */
.phones { display: flex; gap: 18px; justify-content: center; align-items: flex-start; min-width: 0; }
.phones .phone { flex: 1 1 0; min-width: 0; }

/* iPhone / iPad section on the home page: intro + two alternating rows */
.ios-heading { text-align: center; margin-bottom: 12px; }
.ios-intro { text-align: center; margin: 0 auto 52px; max-width: 560px; }
.ios-showcase { display: flex; flex-direction: column; gap: 64px; }
.ios-row.split { align-items: center; gap: 40px 56px; }
.ios-row .ios-visual { display: flex; justify-content: center; min-width: 0; }
.ios-row .phone { max-width: 240px; width: 100%; margin: 0 auto; }
.ios-copy h3 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.15; }
.ios-points { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.ios-points li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.ios-points li:last-child { border-bottom: 0; padding-bottom: 0; }
.ios-points li:first-child { padding-top: 0; }
.ios-cta { text-align: center; margin: 52px 0 0; }
@media (min-width: 761px) {
  .ios-row--flip .ios-visual { order: -1; }
}
@media (max-width: 760px) {
  .ios-showcase { gap: 48px; }
  .ios-row .phone { max-width: 220px; }
  .ios-row--flip .ios-visual { order: -1; }
}
.device { position: relative; width: 100%; filter: drop-shadow(0 24px 30px rgba(30, 20, 10, 0.22)); }
.device .frame { position: relative; width: 100%; height: auto; pointer-events: none; }
.device .screen { position: absolute; height: auto; object-fit: cover; }
.phone { max-width: 260px; aspect-ratio: 1324 / 2740; }
.phone .screen { left: 4.456%; top: 2.153%; width: 91.088%; height: 95.693%; border-radius: 13.93% / 6.41%; }
.phones .phone:nth-child(2) { margin-top: 48px; }
.tablet { max-width: 760px; margin: 0 auto; aspect-ratio: 2300 / 2988; }
.tablet .screen { left: 5.130%; top: 3.949%; width: 89.739%; height: 92.102%; border-radius: 2.907% / 2.180%; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; justify-items: center; }
.gallery figure { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gallery figcaption { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 280px; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery figcaption { max-width: 220px; }
}

/* iPhone & iPad page: one screenshot per row with a big headline, alternating sides.
   The phone comes first in the markup so it sits above the text when the rows stack. */
.zigzag { display: flex; flex-direction: column; gap: 112px; padding-top: 40px; padding-bottom: 112px; }
.zig {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 80px;
  align-items: center; width: 100%; max-width: 900px; margin: 0 auto;
}
.zig--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.zig--flip .zig-visual { order: 2; }
.zig .phone { max-width: 300px; margin: 0 auto; }
.zig-eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.zig-copy h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 20px; }
.zig-copy p:last-child { margin: 0; color: var(--muted); font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5; max-width: 440px; }
/* Slide-in (zigzag.js adds .reveal, then .is-in per row): the phone comes from the side it sits on,
   the text from the other side. clip stops the off-screen start positions from adding a sideways scroll. */
.zigzag { --zig-shift: 96px; overflow-x: clip; }
.zigzag.reveal .zig-visual, .zigzag.reveal .zig-copy {
  opacity: 0; transition: opacity .8s ease, transform 1s cubic-bezier(.2, .75, .2, 1);
}
.zigzag.reveal .zig:not(.zig--flip) .zig-visual, .zigzag.reveal .zig--flip .zig-copy { transform: translateX(calc(-1 * var(--zig-shift))); }
.zigzag.reveal .zig:not(.zig--flip) .zig-copy, .zigzag.reveal .zig--flip .zig-visual { transform: translateX(var(--zig-shift)); }
.zigzag.reveal .zig-copy { transition-delay: .12s; }
.zigzag.reveal .zig.is-in .zig-visual, .zigzag.reveal .zig.is-in .zig-copy { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .zigzag { --zig-shift: 48px; }
  .zigzag { gap: 80px; padding-bottom: 80px; }
  .zig, .zig--flip { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .zig--flip .zig-visual { order: 0; }
  .zig .phone { max-width: 240px; }
  .zig-copy p:last-child { margin: 0 auto; }
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 16px;
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .phone { max-width: 200px; }
}
@media (max-width: 420px) {
  .phones .phone:nth-child(2) { margin-top: 28px; }
}

/* iPhone Duo: folded and open shots side by side. Column widths follow the bezel widths
   (509 and 1000 at the same scale), so both devices render at their true relative size. */
.duo-row { display: grid; grid-template-columns: 509fr 1000fr; gap: 40px; align-items: end; max-width: 760px; margin: 0 auto 40px; }
.duo-row figure { margin: 0; text-align: center; }
.duo-row img { width: 100%; height: auto; filter: drop-shadow(0 20px 26px rgba(30, 20, 10, 0.2)); }
.duo-row figcaption { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 12px; }
.duo-caption { text-align: center; color: var(--muted); font-size: 15px; margin: -8px auto 0; max-width: 520px; }
@media (max-width: 560px) {
  .duo-row { gap: 16px; }
}


.btn .ico { width: 19px; height: 19px; flex: none; margin-left: -3px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn .ico .fill { fill: currentColor; stroke: none; }
.btn.dark { background: #1d1d1f; color: #fff; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.dark { background: #f5f5f7; color: #1d1d1f; }
}

/* "See what Klip does" chip under the hero buttons */
.more-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.more-chip:hover { text-decoration: none; background: color-mix(in srgb, var(--text) 13%, transparent); }
.more-chip span { color: var(--muted); }

/* Buy Me a Coffee (hero / doc chips; footer uses footer-social icons) */
.coffee-btn {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .55em 1.1em; border-radius: 999px;
  background: #FFDD00; color: #000; font-size: 14px;
  font-weight: 600; text-decoration: none;
  transition: transform .15s;
}
.coffee-btn:hover { transform: translateY(-1px); text-decoration: none; }
.doc .coffee-btn { font-size: 15.5px; }
.coffee-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.support-row { margin-top: 26px; }

/* "Say thanks" chip beside the coffee button, linking to the LinkedIn post */
.linkedin-btn {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .55em 1.1em; border-radius: 999px;
  background: #0A66C2; color: #fff; font-size: 14px;
  font-weight: 600; text-decoration: none;
  transition: transform .15s;
}
.linkedin-btn svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
.linkedin-btn:hover { transform: translateY(-1px); text-decoration: none; }
.doc .linkedin-btn { font-size: 15.5px; }

/* YouTube chip (hero) */
.youtube-btn {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .55em 1.1em; border-radius: 999px;
  background: #FF0000; color: #fff; font-size: 14px;
  font-weight: 600; text-decoration: none;
  transition: transform .15s;
}
.youtube-btn svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
.youtube-btn:hover { transform: translateY(-1px); text-decoration: none; }
.doc .youtube-btn { font-size: 15.5px; }

/* Help guide */
.doc.guide { max-width: 900px; }
.guide section { padding: 0; border-top: none; scroll-margin-top: 72px; }
.guide h2 { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.toc a {
  padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.toc a:hover { text-decoration: none; background: color-mix(in srgb, var(--text) 12%, transparent); }
.shot { margin: 24px 0; }
.shot img { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow); }
.shot.narrow img { max-width: 520px; margin: 0 auto; border-radius: 12px; }
.shot figcaption { color: var(--muted); font-size: 14.5px; text-align: center; margin-top: 12px; }
.tip {
  margin: 20px 0; padding: 4px 20px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.split-shot { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 32px; align-items: start; margin: 24px 0; }
.split-shot img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.split-shot dl { margin: 0; }
.split-shot dt { font-weight: 600; margin-top: 14px; }
.split-shot dt:first-child { margin-top: 0; }
.split-shot dd { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }
.help-phones { margin: 28px 0; }

/* Help: Mac / iPhone & iPad toggle. help.js shows it and hides the other platform's panel. */
/* Mac / iPhone & iPad platform chips, set apart from the topic chips by a divider */
.platform-toggle {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 8px 0 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.platform-toggle[hidden] { display: none; }
.platform-toggle button {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; border-radius: 999px;
  padding: 12px 24px 12px 18px; font-family: inherit; font-size: 17px; font-weight: 600; color: var(--muted);
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.platform-toggle button svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.platform-toggle button:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
/* selected chip: accent tint so it reads as the active platform */
.platform-toggle button[aria-selected="true"] {
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}
@media (max-width: 420px) {
  .platform-toggle button { flex: 1; justify-content: center; padding: 11px 14px; font-size: 16px; }
}
.platform-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot.device-shot img { max-width: 640px; margin: 0 auto; border-radius: 0; box-shadow: none; filter: drop-shadow(0 20px 26px rgba(30, 20, 10, 0.2)); }
.settings-list dt { font-weight: 600; margin-top: 14px; }
.settings-list dd { margin: 2px 0 0; color: var(--muted); }
.help-phones .phone { max-width: 220px; }
@media (max-width: 680px) { .split-shot { grid-template-columns: 1fr; } .split-shot img { max-width: 360px; } }
