/* OldPadDeck website: same light as the iPad app (deep navy, indigo and clay glows, SF type, glossy tiles). */
:root {
  --bg: #06070c;
  --text: #f5f5f7;
  --dim: #a1a1a8;
  --dim-2: #6e6e76;
  --line: rgba(255, 255, 255, .08);
  --card: rgba(255, 255, 255, .045);
  --card-edge: rgba(255, 255, 255, .1);
  --indigo: #5e5ce6;
  --clay: #d97757;
  --blue: #0a84ff;
  --cyan: #64d2ff;
  --green: #30d158;
  --purple: #bf5af2;
  --orange: #ff9f0a;
  --red: #ff453a;
  --radius: 22px;
  --wrap: 1160px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --round: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p a, li a, td a, .prose a { color: var(--cyan); text-decoration: none; }
p a:hover, li a:hover, td a:hover, .prose a:hover { text-decoration: underline; }
::selection { background: rgba(94, 92, 230, .5); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
code { font-family: var(--mono); font-size: .88em; background: rgba(118, 118, 128, .2); padding: 1px 6px; border-radius: 5px; color: #e5e5ea; }
kbd { font-family: var(--sans); font-size: .85em; padding: 1px 7px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .18); border-bottom-width: 2px; background: rgba(255, 255, 255, .05); }
svg.i { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------- glows ---------- */
.glows { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.closing .glows { -webkit-mask-image: none; mask-image: none; }
.glow { position: absolute; border-radius: 50%; }
.glow.indigo { width: 900px; height: 700px; left: -300px; top: -260px; background: radial-gradient(closest-side, rgba(94, 92, 230, .34), rgba(94, 92, 230, 0)); }
.glow.clay { width: 900px; height: 700px; right: -320px; top: 260px; background: radial-gradient(closest-side, rgba(217, 119, 87, .22), rgba(217, 119, 87, 0)); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); background: rgba(6, 7, 12, .86); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled, .nav.open { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 62px; }
.brand { display: flex; align-items: center; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 8px; margin-right: 10px; }
.nav-links { display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dim); font-size: 15px; font-weight: 500; margin-left: 24px; transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; border-radius: 1px; background: var(--text); }
.nav-links .demo-link { color: var(--green); }
.nav-links .demo-link::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 2px; box-shadow: 0 0 0 3px rgba(48, 209, 88, .18); }
.nav-gh { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(118, 118, 128, .24); text-decoration: none; font-size: 15px; font-weight: 600; margin-left: 24px; }
.nav-gh svg { margin-right: 7px; }
.nav-gh:hover { background: rgba(118, 118, 128, .4); }
.nav-gh.dl { background: var(--blue); color: #fff; }
.nav-gh.dl:hover { background: #2a93ff; }
.dl-chip { display: inline-flex; align-items: center; margin-top: 12px; height: 38px; padding: 0 16px; border-radius: 19px; background: var(--blue); color: #fff !important; font-size: 14.5px; font-weight: 600; text-decoration: none !important; font-family: var(--mono); }
.dl-chip svg { margin-right: 8px; }
.dl-chip:hover { background: #2a93ff; }
.numbered .dl-chip { font-family: var(--sans); }
.burger { display: none; appearance: none; border: 0; background: rgba(118, 118, 128, .24); color: var(--text); width: 38px; height: 34px; border-radius: 17px; margin-left: 10px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav.open { background: #06070c; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px 16px 18px; background: #06070c; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { margin: 0; padding: 13px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-gh { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; border-radius: 25px; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap; border: 0; font-family: inherit; cursor: pointer; }
.btn:active { transform: scale(.97); }
.btn svg { margin-right: 9px; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 8px 30px rgba(10, 132, 255, .35); }
.btn.primary:hover { background: #2a93ff; box-shadow: 0 10px 36px rgba(10, 132, 255, .5); }
.btn.green { background: var(--green); color: #04130a; box-shadow: 0 8px 30px rgba(48, 209, 88, .3); }
.btn.green:hover { background: #4be37a; }
.btn.ghost { background: rgba(118, 118, 128, .22); color: var(--text); }
.btn.ghost:hover { background: rgba(118, 118, 128, .36); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 19px; }
.btn.small svg { margin-right: 7px; }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta.left { justify-content: flex-start; }

/* ---------- type ---------- */
.kicker { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); padding: 7px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 9px; box-shadow: 0 0 0 4px rgba(48, 209, 88, .15); }
h1 { font-family: var(--round); font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 22px 0 0; }
.grad { background: linear-gradient(100deg, #8e8cff 0%, #c792ff 45%, #ff9f7a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-family: var(--round); font-size: clamp(32px, 4.6vw, 50px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; margin: 12px 0 0; }
h3 { letter-spacing: -.01em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--dim); max-width: 660px; margin: 22px auto 0; line-height: 1.5; }
.lede b { color: var(--text); font-weight: 600; }
.sec-lede { color: var(--dim); font-size: 19px; max-width: 660px; margin: 16px 0 0; }
.center { text-align: center; }
.center .sec-lede { margin-left: auto; margin-right: auto; }
.fine { margin-top: 16px; font-size: 14px; color: var(--dim-2); }

/* ---------- page hero (inner pages) ---------- */
.hero, .page-hero { position: relative; }
.hero { padding: 72px 0 40px; }
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
.hero-head { text-align: center; max-width: 820px; margin: 0 auto; }
.page-hero { padding: 70px 0 10px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); }
.page-hero .lede { margin-left: 0; }
.page-hero.center .lede { margin-left: auto; }

/* ---------- iPad Air (1st gen) frame: landscape, home button on the right ---------- */
.ipad { position: relative; border-radius: 4.2% / 5.6%; padding: 3.1% 6.2%; background: linear-gradient(160deg, #3a3b40 0%, #1c1d21 35%, #121316 100%); box-shadow: 0 0 0 1.5px #4a4b51 inset, 0 0 0 1px #000, 0 50px 120px -20px rgba(0, 0, 0, .8), 0 30px 80px -30px rgba(94, 92, 230, .35); }
.ipad::before { content: ""; position: absolute; left: 2.6%; top: 50%; width: .8%; padding-top: .8%; margin-top: -.4%; border-radius: 50%; background: #0b0c0e; box-shadow: 0 0 0 1px #2b2c30; }
.ipad::after { content: ""; position: absolute; right: 1.75%; top: 50%; width: 3.1%; padding-top: 3.1%; transform: translateY(-50%); border-radius: 50%; background: #17181b; box-shadow: 0 0 0 1.5px #2d2e33 inset; }
.screen { position: relative; border-radius: 4px; overflow: hidden; background: #050507; padding-top: 75%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .9); }
.screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.screen > img.on { opacity: 1; }
.stage { margin: 56px auto 0; max-width: 1000px; }

/* segmented control, like the app's */
.modes { display: flex; justify-content: center; margin-top: 30px; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(118, 118, 128, .22); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; flex-shrink: 0; appearance: none; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: #c7c7cc; height: 36px; padding: 0 17px; border-radius: 9px; cursor: pointer; transition: color .25s; }
.seg button[aria-selected="true"] { color: #fff; }
.seg-ind { position: absolute; top: 3px; left: 0; height: 36px; border-radius: 9px; background: #636366; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: transform .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1); }
.mode-caption { text-align: center; color: var(--dim); font-size: 17px; margin: 18px auto 0; max-width: 640px; min-height: 54px; }
.mode-caption b { color: var(--text); }

/* ---------- facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; background: rgba(255, 255, 255, .015); position: relative; z-index: 1; }
.facts ul { list-style: none; margin: 0 auto; padding: 22px 24px; max-width: var(--wrap); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; }
.facts li { display: flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--dim); }
.facts svg { margin-right: 9px; color: var(--text); opacity: .85; }

/* ---------- sections, cards ---------- */
section { position: relative; }
.sec { padding: 110px 0 0; }
.sec.tight { padding-top: 70px; }
.card { position: relative; background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius); padding: 28px; overflow: hidden; }
.card h3 { font-size: 21px; margin: 18px 0 8px; }
.card p { margin: 0; color: var(--dim); font-size: 16px; }
a.card { text-decoration: none; display: block; transition: border-color .2s, transform .2s, background .2s; }
a.card:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
.card .more { display: inline-flex; align-items: center; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--cyan); }
.card .more svg { margin-left: 6px; transition: transform .2s; }
a.card:hover .more svg { transform: translateX(3px); }
.tile { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tile.blue { background: linear-gradient(160deg, #3d9bff, #0a6ee0); }
.tile.purple { background: linear-gradient(160deg, #c97bff, #8a3fd6); }
.tile.green { background: linear-gradient(160deg, #4be37a, #1fa94a); }
.tile.clay { background: linear-gradient(160deg, #ec9575, #c25f3f); }
.tile.orange { background: linear-gradient(160deg, #ffb340, #e08600); }
.tile.indigo { background: linear-gradient(160deg, #8583ff, #4a48c9); }
.tile.gray { background: linear-gradient(160deg, #7c7c84, #48484e); }
.tile.sm { width: 40px; height: 40px; border-radius: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* split rows */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.split.rev { grid-template-columns: 1fr 1.15fr; }
.split.rev > .shot { order: 2; }
.split > * { min-width: 0; }
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--card-edge); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 20px 60px -30px rgba(217, 119, 87, .3); }
.checks { list-style: none; padding: 0; margin: 26px 0 0; }
.checks li { position: relative; padding-left: 34px; margin-top: 14px; color: var(--dim); }
.checks li b { color: var(--text); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: rgba(48, 209, 88, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2330d158' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center no-repeat; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; gap: 36px; } .split.rev > .shot { order: 0; } }

/* chips */
.cat-head { display: flex; align-items: center; }
.cat-head .tile { margin-right: 14px; }
.cat-head h3 { margin: 0; font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { font-size: 14px; color: #d1d1d6; padding: 5px 11px; border-radius: 9px; background: rgba(118, 118, 128, .18); }

/* widget reference list (features page) */
.wlist { list-style: none; margin: 18px 0 0; padding: 0; }
.wlist li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--dim); }
.wlist li:first-child { border-top: 0; }
.wlist b { display: block; color: var(--text); font-size: 15.5px; font-weight: 600; margin-bottom: 1px; }
.wlist .size { float: right; font-family: var(--mono); font-size: 12px; color: var(--dim-2); margin-left: 10px; }

/* how it works */
.flow { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 18px; margin-top: 48px; }
.flow > * { min-width: 0; }
.node { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius); padding: 26px; }
.node .label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim-2); }
.node h3 { margin: 6px 0 14px; font-size: 22px; }
.node ul { margin: 0; padding: 0 0 0 18px; color: var(--dim); font-size: 15px; }
.node li { margin-top: 6px; }
.wires { display: flex; flex-direction: column; gap: 14px; }
.wire { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .14); font-size: 14px; color: var(--dim); }
.wire b { display: flex; align-items: center; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--text); margin-bottom: 3px; }
.wire b svg { margin-left: auto; }
.wire.ws b { color: #8e8cff; }
.wire.http b { color: var(--cyan); }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.note { margin-top: 18px; display: flex; align-items: flex-start; }
.note .tile { width: 44px; height: 44px; border-radius: 13px; margin-right: 18px; }
.note p { margin: 0; color: var(--dim); font-size: 16px; }
.note p b { color: var(--text); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .wire b svg { transform: rotate(90deg); } }

/* steps + code */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.step { position: relative; min-width: 0; }
.num, .step::before { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 800; font-family: var(--round); font-size: 17px; flex-shrink: 0; }
.step::before { counter-increment: step; content: counter(step); }
.step h3 { margin: 16px 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }
.code { position: relative; margin-top: 18px; border-radius: 14px; background: #0d0e14; border: 1px solid var(--card-edge); padding: 16px 52px 16px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #e5e5ea; overflow-x: auto; white-space: pre; }
.code .p { color: var(--dim-2); user-select: none; }
.code .c { color: var(--dim-2); }
.copy { position: absolute; top: 9px; right: 9px; width: 34px; height: 34px; border-radius: 9px; border: 0; background: rgba(118, 118, 128, .24); color: #d1d1d6; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.copy:hover { background: rgba(118, 118, 128, .42); }
.copy.done { color: var(--green); }
.reqs { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.req { font-size: 15px; color: var(--dim); padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line); }
.req b { display: block; color: var(--text); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 900px) { .steps, .reqs { grid-template-columns: 1fr; } }

/* limitations */
.limits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
.limit { display: flex; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: rgba(255, 159, 10, .045); border: 1px solid rgba(255, 159, 10, .16); }
.limit > svg { color: var(--orange); margin: 2px 14px 0 0; }
.limit h3 { margin: 0 0 4px; font-size: 16.5px; }
.limit p { margin: 0; color: var(--dim); font-size: 15px; }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }

/* ---------- docs layout (install, how it works) ---------- */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 56px; margin-top: 56px; align-items: start; }
.toc { position: sticky; top: 90px; font-size: 14.5px; }
.toc b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim-2); margin-bottom: 10px; }
.toc a { display: block; text-decoration: none; color: var(--dim); padding: 6px 0 6px 14px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-left-color: var(--blue); }
.prose { min-width: 0; }
.prose > section { padding-top: 10px; margin-bottom: 64px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 36px); margin: 0 0 6px; }
.prose h3 { font-size: 19px; margin: 32px 0 6px; }
.prose p, .prose li { color: var(--dim); }
.prose p b, .prose li b, .prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 6px; }
.callout { display: flex; align-items: flex-start; margin: 22px 0; padding: 16px 18px; border-radius: 14px; background: rgba(10, 132, 255, .07); border: 1px solid rgba(10, 132, 255, .22); color: var(--dim); font-size: 15.5px; }
.callout svg { color: var(--blue); margin: 2px 12px 0 0; }
.callout.warn { background: rgba(255, 159, 10, .06); border-color: rgba(255, 159, 10, .2); }
.callout.warn svg { color: var(--orange); }
.callout b { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--card-edge); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim-2); font-weight: 700; background: rgba(255, 255, 255, .025); }
td { color: var(--dim); }
td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.numbered { list-style: none; counter-reset: n; padding: 0 !important; }
.numbered > li { counter-increment: n; position: relative; padding-left: 46px; margin-top: 18px; }
.numbered > li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: rgba(118, 118, 128, .28); color: var(--text); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.figure { margin: 26px 0; }
.figure .shot { border-radius: 14px; }
.figure figcaption { margin-top: 10px; font-size: 14px; color: var(--dim-2); text-align: center; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.figs figure { margin: 0; }
@media (max-width: 960px) { .docs { grid-template-columns: 1fr; gap: 0; margin-top: 36px; } .toc { display: none; } }
@media (max-width: 620px) { .figs { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-group { margin-top: 56px; }
.faq-group > h2 { font-size: clamp(26px, 3vw, 32px); }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 22px; }
summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-size: 18px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform .25s; }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
summary:hover { color: #fff; }
details .ans { padding: 0 0 22px; color: var(--dim); }
details .ans p { margin: 0 0 10px; }
details .ans b { color: var(--text); }

/* ---------- live demo ---------- */
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; margin-top: 44px; align-items: start; }
.demo-frame .screen { padding-top: 0; height: auto; }
.demo-frame .viewport { position: relative; width: 100%; padding-top: 75%; overflow: hidden; border-radius: 4px; background: #050507; }
.demo-frame iframe { position: absolute; top: 0; left: 0; width: 1024px; height: 768px; border: 0; transform-origin: 0 0; background: #050507; }
.demo-frame .viewport:fullscreen { padding-top: 0; width: 100vw; height: 100vh; border-radius: 0; background: #000; }
.demo-frame .viewport:-webkit-full-screen { padding-top: 0; width: 100vw; height: 100vh; border-radius: 0; background: #000; }
.demo-off { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6%; background: rgba(6, 7, 12, .86); }
.demo-off.show { display: flex; }
.demo-off h3 { margin: 0 0 8px; font-size: 22px; }
.demo-off p { margin: 0; color: var(--dim); font-size: 15px; max-width: 460px; }
.demo-off .code { text-align: left; margin-top: 16px; }
.demo-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.status { display: inline-flex; align-items: center; font-size: 14px; color: var(--dim); margin-right: auto; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #636366; margin-right: 9px; }
.status.ok i { background: var(--green); box-shadow: 0 0 0 4px rgba(48, 209, 88, .16); }
.status.ko i { background: var(--red); }
.tries { position: sticky; top: 90px; }
.tries h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim-2); margin: 0 0 12px; }
.try { display: flex; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--dim); }
.try:first-of-type { border-top: 0; padding-top: 0; }
.try .tile { width: 34px; height: 34px; border-radius: 10px; margin-right: 14px; }
.try b { color: var(--text); }
.try div > b:first-child { display: block; font-size: 15.5px; }
@media (max-width: 1000px) { .demo-layout { grid-template-columns: 1fr; } .tries { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; } .tries h3 { grid-column: 1 / -1; } .try:nth-of-type(2) { border-top: 0; padding-top: 0; } }
@media (max-width: 620px) { .tries { grid-template-columns: 1fr; } .try:nth-of-type(2) { border-top: 1px solid var(--line); padding-top: 14px; } }

/* ---------- closing + footer ---------- */
.closing { margin-top: 120px; padding: 90px 0 100px; text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.closing .glow.indigo { left: 50%; top: -200px; margin-left: -700px; }
.closing .glow.clay { right: 50%; top: 0; margin-right: -700px; }
.closing .wrap { position: relative; z-index: 1; }
.closing img.icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 90px; }
.pager a { display: block; text-decoration: none; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--card-edge); transition: border-color .2s, background .2s; }
.pager a:hover { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .03); }
.pager span { display: block; font-size: 13px; color: var(--dim-2); }
.pager b { font-size: 18px; }
.pager .next { text-align: right; grid-column: 2; }
footer { border-top: 1px solid var(--line); padding: 44px 0 40px; font-size: 14px; color: var(--dim-2); }
main > :last-child:not(.closing) { padding-bottom: 110px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot .brand { margin-bottom: 12px; }
.foot p { margin: 0; max-width: 320px; }
.foot h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.foot a { display: block; color: var(--dim-2); text-decoration: none; padding: 3px 0; }
.foot a:hover { color: var(--text); }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-bottom a { color: var(--dim); text-decoration: none; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .screen > img, .seg-ind { transition: none; }
  .pulse { animation: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 48px; }
  .page-hero { padding-top: 48px; }
  .sec { padding-top: 84px; }
  .ipad { border-radius: 18px; }
  .seg button { font-size: 14px; padding: 0 12px; }
  .card { padding: 22px; }
  .cta .btn { width: 100%; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
