/* The Sync family pages: OneWaySync, Sync for iPhoto or Photos and Sync for iTunes. The class on <html> picks the app's colours. */

:root {
  --bg: #0f0b12;
  --bg-2: #141018;
  --surface: #19131e;
  --surface-2: #211a27;
  --line: #30263a;
  --line-2: #47394f;
  --text: #f7f1f8;
  --muted: #bcb0c6;
  --dim: #85798f;
  --ac: #7fd13b;
  --ac-2: #4fd2f2;
  --grad: linear-gradient(120deg, var(--ac), var(--ac-2));
  /* Slot states, coloured as in the apps */
  --run: #f5d90a;
  --ok: #45d65f;
  --err: #ff5b4f;
  --stop: #e052f0;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, .9, .3, 1.25);
  color-scheme: dark;
}
:root.photos { --ac: #4a86f0; --ac-2: #4fd2f2; }
:root.music { --ac: #a35ff5; --ac-2: #e3148e; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 8px; }
main { overflow-x: clip; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.nw { white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.top.scrolled { background: rgba(15, 11, 18, .78); border-bottom-color: rgba(255, 255, 255, .07);
                -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); }
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.crumbs { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.parent { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-decoration: none; transition: color .2s; }
.parent img { width: 22px; height: 22px; }
.parent:hover { color: var(--text); }
.crumb { color: var(--line-2); font-size: 1.3rem; font-weight: 300; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; transition: transform .7s var(--spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .62em 1.1em; border: 1px solid var(--line-2); border-radius: 999px;
       color: var(--text); font: inherit; font-size: .94rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
       background: transparent; transition: background-color .2s, border-color .2s, box-shadow .3s, transform .25s var(--ease); }
.btn:hover { background: rgba(255, 255, 255, .07); border-color: #6b5a78; }
.btn:active { transform: scale(.97); }
.btn.big { padding: .9em 1.5em; font-size: 1.02rem; }
.btn.small { padding: .5em .95em; font-size: .88rem; }
.btn.solid { background: #fff; border-color: #fff; color: #120d16; }
.btn.solid:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px color-mix(in srgb, var(--ac) 80%, transparent); }
.btn svg { width: 1.15em; height: 1.15em; }

/* Type */
.eyebrow { margin: 0 0 14px; color: var(--dim); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1; font-weight: 900; letter-spacing: -.035em; }
h2 { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.04; font-weight: 900; letter-spacing: -.03em; }
h3 { margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.lead { margin: 22px 0 0; max-width: 34em; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.2rem); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { position: relative; padding: 110px 0; }
.section-head { max-width: 42em; margin-bottom: 48px; }
.section-head .lead { margin-top: 16px; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 30px 0 90px; }
.hero::before { content: ""; position: absolute; inset: -70px 0 0; z-index: -2; pointer-events: none;
                background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px); background-size: 28px 28px;
                -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 35%, #000 20%, transparent 75%);
                        mask-image: radial-gradient(ellipse 70% 70% at 70% 35%, #000 20%, transparent 75%); }
.glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; animation: drift 18s ease-in-out infinite alternate;
        -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.glow.a { top: -300px; right: -240px; width: 900px; height: 900px; background: var(--ac); opacity: .16; }
.glow.b { bottom: -360px; left: -300px; width: 760px; height: 760px; background: var(--ac-2); opacity: .1; animation-duration: 24s; }
@keyframes drift { to { transform: translate(-50px, 40px) scale(1.1); } }
/* Headline beside the intro, and the live window full width below them */
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; align-items: end; gap: 0 56px; padding-top: 20px; }
.intro.pitch .lead { margin-top: 0; }
.hero-icon { width: 96px; height: 96px; margin-bottom: 24px; filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--ac) 40%, transparent)); }
.intro > * { animation: rise 1s var(--ease) backwards; }
.intro > :nth-child(2) { animation-delay: .08s; }
.intro > :nth-child(3) { animation-delay: .16s; }
.intro > :nth-child(4) { animation-delay: .24s; }
.intro > :nth-child(5) { animation-delay: .32s; }
.intro > :nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.cta-note { margin: 18px 0 0; color: var(--dim); font-size: .92rem; }

/* The live demo: the app's window syncing on its own. Sizes are in cqw so it scales like a screenshot. */
.demo { grid-column: 1 / -1; width: min(1000px, 100%); margin: 64px auto 0; container-type: inline-size; animation: rise 1.1s var(--ease) .3s backwards; }
.syncwin { position: relative; overflow: hidden; border-radius: 2.2cqw; background: #211d26; color: #ece6f0; font-size: 1.6cqw; line-height: 1.35;
           box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 5cqw 10cqw -4cqw rgba(0, 0, 0, .9), 0 4cqw 8cqw -5cqw color-mix(in srgb, var(--ac) 55%, transparent); }
.titlebar { position: relative; display: flex; align-items: center; justify-content: center; height: 5.4cqw; background: #2b2631; border-bottom: 1px solid rgba(0, 0, 0, .45); }
.titlebar .lights { position: absolute; left: 2cqw; top: 50%; display: flex; gap: .9cqw; transform: translateY(-50%); }
.titlebar .lights i { width: 1.35cqw; height: 1.35cqw; border-radius: 50%; background: #ff5f57; }
.titlebar .lights i:nth-child(2) { background: #febc2e; }
.titlebar .lights i:nth-child(3) { background: #28c840; }
.titlebar b { color: #a79fae; font-size: 1.55cqw; font-weight: 600; }
.tabs { display: flex; justify-content: center; margin: 2cqw auto 0; width: max-content; border: 1px solid rgba(255, 255, 255, .12); border-radius: .9cqw; overflow: hidden; }
.tabs span { width: 3.3cqw; padding: .4cqw 0; color: #c5bdcc; font-size: 1.3cqw; text-align: center; border-left: 1px solid rgba(255, 255, 255, .08); transition: background-color .4s, color .4s; }
.tabs span:first-child { border-left: 0; }
.tabs .on { background: var(--ac); color: #fff; font-weight: 700; }
.tabs .on.run { background: var(--run); color: #2a2400; }
.tabs .on.ok { background: var(--ok); color: #082a10; }
.pane { padding: 2cqw 3cqw 2.6cqw; }
.pane.with-side { display: grid; grid-template-columns: 26cqw 1fr; gap: 2.6cqw; padding-left: 2.2cqw; }
.syncwin .side { margin: 0; padding: 1cqw 0; list-style: none; border-radius: 1cqw; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.syncwin .side::before { content: "Slots"; display: block; padding: 0 1.4cqw .6cqw; color: #8f8697; font-size: 1.25cqw; font-weight: 600; }
.syncwin .side li { overflow: hidden; padding: .45cqw 1.4cqw; color: #ddd6e3; font-size: 1.35cqw; white-space: nowrap; text-overflow: ellipsis; transition: background-color .4s, color .4s; }
.syncwin .side li.ok { color: var(--ok); }
.syncwin .side li.on { background: color-mix(in srgb, var(--ac) 32%, transparent); color: #fff; }
.syncwin .side li.on.run { background: color-mix(in srgb, var(--run) 22%, transparent); color: var(--run); }
.syncwin .side li.on.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.slot-title { margin: 0 0 1.6cqw; color: #fff; font-size: 1.7cqw; font-weight: 700; text-align: center; }
.pair { position: relative; display: grid; grid-template-columns: 1fr 5.5cqw 1fr; align-items: center; gap: 1.2cqw; }
.well { position: relative; margin: 0; padding: 1.8cqw 1.2cqw 1.3cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); text-align: center; }
.well > small { display: block; color: #8f8697; font-size: 1.15cqw; text-transform: none; }
.well img { width: 58%; margin: .2cqw auto 1cqw; filter: drop-shadow(0 1cqw 1.2cqw rgba(0, 0, 0, .45)); }
.well figcaption { overflow: hidden; color: #a79fae; font-size: 1.2cqw; white-space: nowrap; text-overflow: ellipsis; }
.well .x { position: absolute; top: 1cqw; right: 1cqw; width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.well .x::before, .well .x::after { content: ""; position: absolute; left: 25%; right: 25%; top: 50%; height: 1.5px; margin-top: -.75px; background: #211d26; transform: rotate(45deg); }
.well .x::after { transform: rotate(-45deg); }
.well .tick { position: absolute; left: 50%; top: 42%; display: grid; place-items: center; width: 6cqw; height: 6cqw; margin: -3cqw 0 0 -3cqw; border-radius: 50%;
              background: var(--ok); box-shadow: 0 1cqw 2.4cqw -.6cqw rgba(0, 0, 0, .6); opacity: 0; transform: scale(.4); transition: opacity .35s, transform .5s var(--spring); }
.well .tick::after { content: ""; width: 2.4cqw; height: 1.2cqw; margin-top: -.6cqw; border: solid #fff; border-width: 0 0 .55cqw .55cqw; transform: rotate(-45deg); }
.syncwin.ok .well .tick { opacity: 1; transform: none; }
.arrow { display: grid; place-items: center; width: 5.5cqw; height: 5.5cqw; border-radius: 1.2cqw; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.arrow svg { width: 3.2cqw; height: 3.2cqw; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.syncwin.run .arrow { background: var(--ac); animation: nudge .9s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(.6cqw); } }
.syncwin.run .src img[src$="music.svg"] { animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fly { position: absolute; inset: 0; pointer-events: none; }
/* Files in flight; sync.js gives each one a --c */
.chip { position: absolute; left: 0; top: 0; width: 3.6cqw; height: 3.6cqw; margin: -1.8cqw 0 0 -1.8cqw; border-radius: .5cqw; will-change: transform, opacity; }
.chip.doc { width: 3cqw; height: 3.8cqw; margin: -1.9cqw 0 0 -1.5cqw; border-radius: .3cqw; background: linear-gradient(#fff, #e6e1ec); clip-path: polygon(0 0, 66% 0, 100% 24%, 100% 100%, 0 100%); }
.chip.doc::after { content: ""; position: absolute; left: 18%; right: 18%; top: 44%; height: 10%; border-radius: 1px; background: var(--c); box-shadow: 0 .7cqw 0 #cfc8d6; }
.chip.pic { border: .32cqw solid #fff; border-radius: .3cqw; background: var(--c); box-shadow: 0 .5cqw 1cqw rgba(0, 0, 0, .45); }
.chip.song { border-radius: 50%; background: radial-gradient(circle, #111 0 9%, var(--c) 10% 30%, #19151d 31%); box-shadow: 0 .5cqw 1cqw rgba(0, 0, 0, .45); }
.progress { height: .7cqw; margin: 2.2cqw 0 0; border-radius: 1cqw; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad); }
.syncwin.ok .progress i { background: var(--ok); }
.status { margin: .9cqw 0 0; overflow: hidden; color: #9d94a5; font-size: 1.2cqw; white-space: nowrap; text-overflow: ellipsis; }
.status b { color: #ddd6e3; font-weight: 600; }
.controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2cqw; margin-top: 1.8cqw; }
.checks { display: grid; gap: .6cqw; color: #c5bdcc; font-size: 1.25cqw; }
.checks.right { justify-items: end; }
.cb { display: inline-flex; align-items: center; gap: .8cqw; white-space: nowrap; }
.cb::before { content: ""; width: 1.5cqw; height: 1.5cqw; border-radius: .35cqw; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.cb.on::before { background: var(--ac) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 100%; box-shadow: none; }
.checks.right .cb { flex-direction: row-reverse; }
.start { min-width: 13cqw; padding: 1cqw 2.4cqw; border-radius: 1cqw; background: linear-gradient(#5b5662, #46414d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 .3cqw .6cqw rgba(0, 0, 0, .4);
         color: #fff; font-size: 1.7cqw; font-weight: 800; letter-spacing: .06em; text-align: center; transition: transform .15s; }
.start.press { transform: scale(.94); }
.demo-caption { min-height: 1.6em; margin: 22px 0 0; color: var(--muted); font-size: .98rem; text-align: center; transition: opacity .4s; }
.demo-caption.swap { opacity: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 30px 28px 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 14px;
                    background: var(--grad); color: #0f0b12; font-size: 1.25rem; font-weight: 900; }
.steps p { margin: 8px 0 0; color: var(--muted); }

/* Organize your way: build a folder layout from tags and watch the tree */
.builder { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; }
.builder-panel, .tree-panel { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.lib-switch { display: inline-flex; gap: 4px; margin-bottom: 22px; padding: 4px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.lib-switch button, .presets button { padding: .5em 1em; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.lib-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.label { display: block; margin: 0 0 10px; color: var(--dim); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.presets button { border: 1px solid var(--line-2); }
.presets button:hover { color: var(--text); }
.presets button[aria-pressed="true"] { border-color: transparent; background: var(--grad); color: #0f0b12; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; min-height: 58px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; }
.path .lvl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .04); animation: pop .35s var(--spring) backwards; }
.path .lvl.file { background: none; }
.path .sl { color: var(--dim); font-weight: 700; }
.path .txt { color: var(--muted); white-space: pre; }
.path .tag { padding: 3px 9px; border-radius: 7px; background: color-mix(in srgb, var(--ac) 30%, transparent); color: #fff; font-weight: 600; white-space: nowrap; }
.path .rm { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--muted); font: 700 .9rem/22px var(--font); cursor: pointer; }
.path .rm:hover { background: rgba(255, 255, 255, .16); color: var(--text); }
@keyframes pop { from { opacity: 0; transform: scale(.8); } }
.label.gap { margin-top: 24px; }
.palette { display: flex; flex-wrap: wrap; gap: 7px; }
.palette button { padding: .38em .8em; border: 1px dashed var(--line-2); border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.palette button:hover { border-style: solid; border-color: var(--ac); color: var(--text); background: color-mix(in srgb, var(--ac) 12%, transparent); }
.palette button:disabled { opacity: .35; cursor: default; }
.hint { margin: 16px 0 0; color: var(--dim); font-size: .88rem; }
.tree-panel { position: sticky; top: 96px; }
.tree, .tree ul { margin: 0; padding: 0; list-style: none; }
.tree ul { margin-left: 9px; padding-left: 16px; border-left: 1px solid var(--line); }
.tree li { padding: 3px 0; font-size: .92rem; animation: rise .45s var(--ease) backwards; }
.tree .dir > span, .tree .file > span { display: inline-flex; align-items: center; gap: 8px; }
.tree .dir > span { color: var(--text); font-weight: 600; }
.tree .dir > span::before { content: ""; width: 18px; height: 14px; background: url("/assets/sync/folder.svg") center / contain no-repeat; }
.tree .file > span { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.tree .file > span::before { content: ""; width: 10px; height: 12px; border-radius: 2px; background: var(--c, var(--ac)); }
.tree-root { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--dim); font-size: .86rem; }
.tree-root img { width: 26px; }

/* Mirror or keep: what Delete on Destination does */
.mirror { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 18px; }
.m-pane { padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.m-pane h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1rem; }
.m-pane h3 img { width: 30px; }
.m-pane ul { margin: 0; padding: 0; list-style: none; }
.m-pane li { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-family: var(--mono); font-size: .84rem;
             transition: height .5s var(--ease), opacity .5s, background-color .4s, color .4s; overflow: hidden; }
.m-pane li::before { content: ""; flex: none; width: 10px; height: 12px; border-radius: 2px; background: var(--c, var(--ac)); }
.m-pane li em { margin-left: auto; padding: 1px 8px; border-radius: 6px; font: 700 .7rem var(--font); font-style: normal; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.m-pane li.going { background: rgba(255, 91, 79, .12); color: var(--err); text-decoration: line-through; }
.m-pane li.going em { opacity: 1; background: rgba(255, 91, 79, .18); color: var(--err); }
.m-pane li.gone { height: 0; opacity: 0; }
.m-pane li.kept { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--text); }
.m-pane li.kept em { opacity: 1; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.m-mid { display: grid; place-items: center; align-content: center; gap: 14px; }
.m-mid .arrow { width: 56px; height: 56px; border-radius: 16px; }
.m-mid .arrow svg { width: 30px; height: 30px; }
.mirror.syncing .m-mid .arrow { background: var(--ac); animation: nudge .9s var(--ease) infinite; }
.m-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 22px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.switch { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .knob { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); transition: background-color .25s; }
.switch .knob::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); }
.switch input:checked + .knob { background: var(--ac); }
.switch input:checked + .knob::after { transform: translateX(18px); }
.switch input:focus-visible + .knob { outline: 3px solid #fff; outline-offset: 3px; }
.m-say { flex: 1 1 22em; margin: 0; color: var(--muted); }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.feature p { margin: 8px 0 0; color: var(--muted); }
.feature.wide { grid-column: span 2; }
.feature .ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 14px; background: color-mix(in srgb, var(--ac) 16%, transparent); color: var(--ac); }
.feature .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.days span { display: grid; place-items: center; min-width: 42px; height: 32px; padding: 0 8px; border-radius: 9px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--dim); font-size: .8rem; font-weight: 700; }
.days .on { background: var(--ac); box-shadow: none; color: #0f0b12; }
.days .at { margin-left: 6px; background: none; box-shadow: none; color: var(--muted); }
.legend { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
pre.code { margin: 18px 0 0; padding: 18px 20px; overflow-x: auto; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: #e8e1ee; font: .86rem/1.6 var(--mono); }
pre.code .k { color: var(--ac); font-weight: 700; }
pre.code .s { color: #ffcf7a; }

/* Plain text blocks */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.split p { margin: 0 0 16px; color: var(--muted); font-size: 1.05rem; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--line); color: var(--muted); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border: solid var(--ac); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.ticks b { color: var(--text); }
.ticks.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.ticks.cols li { border-top: 0; border-bottom: 1px solid var(--line); }
.ticks.cols li:nth-child(-n + 2) { border-top: 1px solid var(--line); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 1.1rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--ac); font-size: 1.6rem; font-weight: 400; line-height: 1; transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; max-width: 46em; color: var(--muted); }

/* The family */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sib { display: flex; flex-direction: column; gap: 6px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); text-decoration: none;
       transition: transform .35s var(--ease), border-color .3s, background-color .3s; }
.sib:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.sib img { width: 64px; height: 64px; margin-bottom: 12px; }
.sib b { font-size: 1.12rem; }
.sib span { color: var(--muted); font-size: .95rem; }
.sib small { margin-top: auto; padding-top: 14px; color: var(--sib); font-weight: 700; }
.sib[aria-current="page"] { border-color: color-mix(in srgb, var(--sib) 55%, transparent); background: color-mix(in srgb, var(--sib) 7%, var(--surface)); }

/* Closing call to action */
.closing { text-align: center; }
.closing img { width: 120px; height: 120px; margin: 0 auto 26px; filter: drop-shadow(0 22px 36px color-mix(in srgb, var(--ac) 45%, transparent)); }
.closing .lead { margin-left: auto; margin-right: auto; }
.closing .cta { justify-content: center; }

/* Footer */
.foot { padding: 54px 0 64px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px 48px; }
.foot-grid > p { grid-column: 1 / -1; margin: 0; }
.foot-about { margin: 12px 0 0; max-width: 30em; color: var(--dim); }
.foot-about a { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: 12px 24px; }
.foot-links a { color: var(--muted); font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.fine { color: var(--dim); font-size: .88rem; }

/* Scroll reveals; without JavaScript everything is simply visible */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .builder, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 10px; }
  .intro.pitch { margin-top: 24px; }
  .demo { margin-top: 48px; }
  .features { grid-template-columns: 1fr 1fr; }
  .tree-panel { position: static; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .steps, .features, .family { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav { gap: 14px; }
  .parent span { display: none; }
  .section { padding: 80px 0; }
  .mirror, .ticks.cols { grid-template-columns: 1fr; }
  .ticks.cols li:nth-child(2) { border-top: 0; }
  .m-mid .arrow { transform: rotate(90deg); }
  .mirror.syncing .m-mid .arrow { animation: none; }
  .builder-panel, .tree-panel { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
                           transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
