:root {
  --ink: #16113a;
  --muted: #5d5a7a;
  --tint: #f4f2ff;
  --line: #e4e0f6;
  --blue: #1b5cff;
  --violet: #6a2cf5;
  --magenta: #d326e3;
  --ok: #0e9f6e;
  --brand: linear-gradient(135deg, var(--blue), var(--violet) 55%, var(--magenta));
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box }

body { margin: 0; font: 17px/1.55 var(--body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased }
h1, h2, h3, h4, p, ul, ol, figure, fieldset, pre { margin: 0; padding: 0 }
ul, ol { list-style: none }
a { color: inherit; text-decoration: none }
button, input { font: inherit; color: inherit }
button { cursor: pointer }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px }
section[id] { scroll-margin-top: 84px }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto }

h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; line-height: 1.04; text-wrap: balance }
h1 { font-size: clamp(42px, 6.4vw, 88px); font-weight: 800; letter-spacing: -.04em; line-height: .98 }
h2 { font-size: clamp(31px, 4vw, 54px); font-weight: 700; max-width: 22ch }
h3 { font-size: clamp(23px, 2.2vw, 30px); font-weight: 700; line-height: 1.12 }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; white-space: nowrap }
.btn:hover { transform: translateY(-1px) }
.btn-lg { padding: 15px 26px; font-size: 16.5px }
.btn-ink { background: var(--ink); color: #fff }
.btn-ink:hover { background: #2a2163 }
.btn-ghost { border-color: var(--line); background: #fff }
.btn-ghost:hover { border-color: var(--ink) }
.btn-light { background: #fff; color: var(--ink) }
.btn-light:hover { box-shadow: 0 8px 24px #0003 }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: #ffffffd9; backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s }
.nav.stuck { border-color: var(--line) }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 25px/1 var(--display); letter-spacing: -.04em }
.brand img { border-radius: 10px }
.nav nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500 }
.nav nav a { color: var(--muted); transition: color .2s }
.nav nav a:hover { color: var(--ink) }

/* Hero copy: sits in the left column of the pinned stage until the tour takes over */
.hero-copy { display: grid; justify-items: start; gap: 22px }
.hero-copy h1 { font-size: clamp(40px, 4.7vw, 68px); max-width: 13ch }
.lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); max-width: 44ch }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px }
.proof { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; font-weight: 500; color: var(--muted) }
.rating { display: inline-flex; gap: 8px; align-items: center }
.rating:hover { color: var(--ink) }
.stars { color: #f5a60b; letter-spacing: 2px; font-size: 16px }

/* Screen-reader only */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }

/* The invoice: same blocks, labels and columns as the PDF Akito generates */
.inv { --accent: var(--violet); width: 42em; min-height: 50em; background: #fff; color: #333; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.4; padding: 3em 3em 2.2em; display: flex; flex-direction: column; gap: 1.5em; border-radius: .35em; box-shadow: 0 1.6em 4em #0e083340; text-align: left }
.inv b { font-weight: 700 }
.inv-memo { display: grid; grid-template-columns: 32% 1fr; gap: 1.5em; align-items: center; padding-bottom: 1.7em; border-bottom: 1px solid #d3dbe2 }
.inv-mark { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: .3em; background: var(--accent); color: #fff; font: 800 2.4em/1 var(--display); transition: background-color .4s }
.inv-storename { display: none; font-size: 1.5em; font-weight: 700 }
.inv.no-logo .inv-mark { display: none }
.inv.no-logo .inv-storename { display: block }
.inv-co { font-size: .9em }
.inv-co-name { font-weight: 700; font-size: 1.15em; margin-bottom: .2em }
.inv-title { display: flex; align-items: baseline; gap: .7em; flex-wrap: wrap }
.inv-t { font-size: 1.9em; font-weight: 700; color: var(--accent); transition: color .4s }
.inv-n { font-size: 1.45em; font-weight: 600; font-variant-numeric: tabular-nums }
.inv-date { margin-left: auto; font-size: .9em }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; font-size: .9em }
.inv-cust > span, .inv-info > span { display: block }
.inv-cust .inv-b2b { display: none }
.inv.b2b .inv-b2b { display: block; animation: b2b-in .5s var(--ease) both }
.inv.b2b .inv-b2b-id { margin-top: .5em }
@keyframes b2b-in { from { opacity: 0; transform: translateX(-.8em); background: #fff3c4 } to { opacity: 1; background: transparent } }
.inv-items { width: 100%; border-collapse: collapse; font-size: .84em; font-variant-numeric: tabular-nums }
.inv-items th { background: var(--accent); color: #fff; text-align: left; padding: .65em; border: 1px solid #0000001f; font-weight: 700; white-space: nowrap; transition: background-color .4s }
.inv-items td { padding: .65em; border: 1px solid #eee }
.inv-items tbody tr:nth-child(even) { background: #f9f9f9 }
.inv.hide-n [data-c="n"], .inv.hide-unit [data-c="unit"], .inv.hide-pct [data-c="pct"], .inv.hide-tva [data-c="tva"], .inv.hide-ttc [data-c="ttc"] { display: none }
.inv-sums { width: 52%; margin-left: auto; border-collapse: collapse; font-size: .86em; font-variant-numeric: tabular-nums }
.inv-sums th { text-align: left; padding: .6em .85em; background: #f1f1f1; color: #616a75; border: 1px solid #ddd; font-weight: 700 }
.inv-sums td { text-align: right; padding: .6em .85em; border: 1px solid #ddd }
.inv-tot th { background: var(--accent); color: #fff; transition: background-color .4s }
.inv-tot td { font-weight: 700; font-size: 1.25em }
.inv-legal { margin-top: auto; padding-top: 1.1em; border-top: 1px solid #eee; font-size: .76em; color: #666 }

/* Tour: the page pins, the camera moves across one real invoice */
.tour-track { position: relative }
.anchor { position: absolute; top: 45vh }
.pin { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: 12px 24px }
.pin-side { display: grid; gap: 40px; align-items: center; min-width: 0 }
.js .tour-track { height: 1020vh }
/* --ip runs 0 to 1 over the first stretch of scroll: the headline lifts away, the settings rise in */
.js .pin-side > * { grid-area: 1 / 1 }
.js .hero-copy { opacity: calc(1 - var(--ip, 0) * 1.9); transform: translateY(calc(var(--ip, 0) * -80px)) }
.js .tabs { opacity: calc(var(--ip, 0) * 2.4 - 1.4); transform: translateY(calc((1 - var(--ip, 0)) * 60px)) }
.js .pin:not(.intro) .hero-copy { visibility: hidden }
.js .pin { position: sticky; top: 68px; height: calc(100svh - 68px) }
html:not(.js) .cam { aspect-ratio: auto; max-height: none; padding: 70px 20px 24px }
html:not(.js) .cam-view, html:not(.js) .cam-inv { position: static }
html:not(.js) .cam-inv { font-size: min(11px, 1.7vw) }
html:not(.js) :is(.xml, .push) { display: none }

.tabs { display: grid; gap: 2px }
.tab { position: relative; padding-left: 24px }
.tab::before, .tab::after { content: ''; position: absolute; left: 0; top: 8px; width: 3px; border-radius: 3px }
.tab::before { bottom: 8px; background: var(--line) }
.tab::after { height: 0; background: var(--brand) }
.js .tab.on::after { height: calc((100% - 16px) * var(--tp, 0)) }
.tab-h { display: block; width: 100%; border: 0; background: none; text-align: left; padding: 11px 0; font: 700 clamp(20px, 1.95vw, 27px)/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); transition: color .3s }
.js .tab:not(.on) .tab-h { color: #a09dbb }
.js .tab:not(.on) .tab-h:hover { color: var(--ink) }
.tab-b { display: grid; grid-template-rows: 1fr }
.js .tab-b { grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease) }
.js .tab.on .tab-b { grid-template-rows: 1fr }
.tab-in { overflow: hidden; display: grid; gap: 14px; align-content: start; padding-inline: 5px; margin-inline: -5px }
.tab-in > :last-child { margin-bottom: 16px }
.tab-in p { color: var(--muted); max-width: 42ch }
.tab-in .note { font-size: 14.5px }

.spots { display: flex; flex-wrap: wrap; gap: 8px }
.spots li { display: flex; align-items: center; gap: 7px; background: var(--tint); border-radius: 99px; padding: 7px 14px 7px 11px; font-size: 14.5px; font-weight: 600; white-space: nowrap }
.spots svg { width: 17px; height: 17px; color: var(--violet) }
.controls { display: flex; flex-wrap: wrap; gap: 14px }
.controls label { font-size: 14px; font-weight: 600; display: grid; gap: 6px }
.controls input { width: 150px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 500; transition: border-color .2s }
.controls input:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 4px #6a2cf522 }
.swatches { border: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-block: 3px }
.swatches button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1.5px var(--line); transition: transform .2s var(--ease), box-shadow .2s }
.swatches button:hover { transform: scale(1.08) }
.swatches [aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink) }
.swatches .switch { margin-left: 10px }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; width: fit-content }
.switch input, .chips input { position: absolute; opacity: 0; width: 1px; height: 1px }
.switch i { width: 44px; height: 26px; border-radius: 99px; background: #cfcbe3; position: relative; transition: background-color .25s }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .25s var(--ease) }
.switch input:checked + i { background: var(--violet) }
.switch input:checked + i::after { transform: translateX(18px) }
.switch input:focus-visible + i, .chips input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 3px }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chips label { cursor: pointer }
.chips span { display: block; border: 1.5px solid var(--line); border-radius: 99px; padding: 7px 15px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s, border-color .2s }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff }

/* --s is the camera scale. Registered so it animates with the transform and overlays can stay a constant size. */
@property --s { syntax: '<number>'; inherits: true; initial-value: 1 }

.cam { position: relative; align-self: center; width: 100%; aspect-ratio: 5 / 6; max-height: 100%; min-height: 380px; border-radius: 32px; overflow: hidden; background:
  radial-gradient(55% 45% at 78% 22%, #6a2cf52b, transparent 70%),
  radial-gradient(50% 42% at 18% 84%, #d326e31f, transparent 70%),
  radial-gradient(42% 36% at 14% 12%, #1b5cff1f, transparent 70%),
  #f4f2ff }
.cam-bar { position: absolute; inset: 14px 14px auto; z-index: 4; height: 42px; display: flex; align-items: center; gap: 9px; padding-inline: 14px 16px; border-radius: 13px; background: #ffffffe6; backdrop-filter: blur(10px); box-shadow: 0 1px 2px #16113a14, 0 8px 20px -8px #16113a2e; color: var(--ink); font-size: 14px; font-weight: 600 }
.cam-bar svg { width: 18px; height: 18px; flex: none; color: var(--violet) }
.cam-zoom { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted) }
.cam-view { position: absolute; inset: 0; overflow: hidden }
.cam-inv { position: absolute; left: 0; top: 0; transform-origin: 0 0; font-size: 12px; transition: transform .9s var(--ease), --s .9s var(--ease) }
.cam.instant :is(.cam-inv, .ring) { transition: none }
.cam-inv .inv { position: relative; z-index: 1; box-shadow: 0 0 0 1px #16113a0f, 0 3em 5em -2em #3b1fa359, 0 1.2em 2.4em -1.2em #16113a33 }
/* A second sheet behind the page: there is always a previous invoice */
.cam-inv::before { content: ''; position: absolute; inset: 0; border-radius: .35em; background: #fff; box-shadow: 0 0 0 1px #16113a0f, 0 1.5em 3em -1.5em #3b1fa340; opacity: 0; transition: opacity .5s, transform .8s var(--ease) }
.cam:is([data-step="-1"], [data-step="0"]) .cam-inv::before { opacity: .7; transform: rotate(-3.5deg) translate(-1.2em, .6em) }
@keyframes sheet-in { from { opacity: 0; transform: translateY(5em) rotate(1.5deg) } }

/* The Shopify order notification: drops in from the top on its own, then leaves before the invoice lands */
.push { position: absolute; z-index: 5; left: 50%; top: -30%; display: flex; align-items: center; gap: 16px; min-width: min(360px, 86%); padding: 18px 26px 19px 18px; font: 18px/1.3 var(--body); color: var(--ink); white-space: nowrap; background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px #16113a0d, 0 30px 54px -18px #3b1fa370, 0 10px 20px -10px #16113a38; opacity: 0; transform: translate(-50%, -50%); pointer-events: none }
.push::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 200vh; margin-left: -.5px; background: #16113a2e }
.push::after { content: ''; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #16113a47 }
.push b, .push small { display: block }
.push b { font-weight: 600 }
.push small { font-size: .88em; color: var(--muted) }
.push-ico { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--ok); color: #fff }
.push-ico svg { width: 30px; height: 30px }
.push > div { flex: 1 }
.push-app { display: flex !important; justify-content: space-between; gap: 40px; margin-bottom: 2px }
.push-app b { color: var(--ink) }
.inv.leaving { opacity: 0; transform: translateY(-2em); transition: opacity .25s, transform .25s }


/* The scene, on load and on "simulate". --d delays the whole sequence: notification in and out, then the invoice. */
.cam.play .push { animation: lower 2.1s var(--d, 0s) both }
.cam.play .inv { animation: sheet-in .9s var(--ease) calc(var(--d, 0s) + 1.75s) both }
.cam.play .cam-bar { animation: bar-in .6s var(--ease) calc(var(--d, 0s) + 1.95s) both }
.cam.play .cam-inv::before { animation: appear .6s calc(var(--d, 0s) + 2.35s) both }
@keyframes lower {
  0% { top: -30%; opacity: 1; animation-timing-function: cubic-bezier(.3, 1.35, .5, 1) }
  34%, 78% { top: 50%; opacity: 1; animation-timing-function: cubic-bezier(.6, -.25, .85, .4) }
  100% { top: -30%; opacity: 1 }
}
@keyframes bar-in { from { opacity: 0; transform: translateY(-14px) } }
@keyframes appear { from { opacity: 0 } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) } }

.cue { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--violet) }
.cue i { position: relative; width: 22px; height: 34px; border: 2px solid; border-radius: 12px }
.cue i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor }
html:not(.js) .cue { display: none }
@media (prefers-reduced-motion: no-preference) {
  .cue i::after { animation: wheel 1.7s ease-out infinite }
  @keyframes wheel { 70%, 100% { transform: translateY(11px); opacity: 0 } }
}
.ring { position: absolute; z-index: 2; border-radius: 8px; outline: calc(2.5px / var(--s, 1)) solid var(--violet); box-shadow: 0 0 0 calc(7px / var(--s, 1)) #6a2cf526; pointer-events: none; opacity: 0; transition: left .8s var(--ease), top .8s var(--ease), width .8s var(--ease), height .8s var(--ease), opacity .4s }
.xml { position: absolute; z-index: 3; right: 4%; top: 9%; bottom: 9%; width: 47%; background: var(--ink); color: #cfc9ff; border-radius: 20px; padding: 22px 22px; overflow: hidden; box-shadow: 0 24px 60px #16113a59; transform: translateX(125%) rotate(2deg); transition: transform .9s var(--ease) }
.cam.fx .xml { transform: rotate(2deg) }
.xml b { display: block; color: #fff; font-weight: 600; font-size: 14.5px; margin-bottom: 14px }
.xml pre { font: clamp(10px, 1vw, 12.5px)/1.7 ui-monospace, "SF Mono", Menlo, monospace }
.xml i { font-style: normal; color: #7df0c2 }

/* After emission */
.after { background: var(--tint); margin-top: clamp(60px, 8vw, 120px); padding-block: clamp(64px, 8vw, 120px) }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: clamp(28px, 4vw, 52px) }
.card { grid-column: span 5; background: #fff; border-radius: 28px; padding: 14px 14px 30px; display: grid; gap: 10px; align-content: start }
.card.c-wide { grid-column: span 7 }
.card h3, .card p { padding-inline: 16px }
.card h3 { margin-top: 14px }
.card p { color: var(--muted); max-width: 50ch }
.mock { height: 230px; border-radius: 18px; background: #f7f6fd; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 14.5px; padding: 20px }

.mock-avoir { gap: 0 }
.doc { background: #fff; border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; width: 190px; box-shadow: 0 8px 22px #1a0f5c1a; position: relative; z-index: 1 }
.doc small { color: var(--muted); font-size: 12.5px }
.doc b { font-weight: 600 }
.doc span { font: 700 22px/1.2 var(--display); letter-spacing: -.02em; margin-top: 6px }
.doc-avoir span { color: #d1356b }
.link { width: 56px; border-top: 2px dashed #b9b2e0; flex: none }

.mock-tva { flex-direction: column; align-items: stretch; gap: 16px; padding-inline: 28px }
.bar { display: grid; grid-template-columns: 46px 1fr 64px; align-items: center; gap: 12px; font-weight: 500 }
.bar i { height: 22px; border-radius: 7px; background: var(--brand); width: var(--w) }
.bar b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600 }

.mock-lock { flex-direction: column; align-items: stretch; gap: 10px; padding-inline: 28px }
.ev { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 16px; font-weight: 500 }
.ev time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums }
.ev-edit span { color: var(--muted) }
.ev-keep { background: var(--ink); color: #fff }
.ev-keep svg { width: 18px; height: 18px }

.mock-bulk { flex-direction: column; align-items: stretch; gap: 8px; padding-inline: clamp(20px, 6vw, 80px) }
.line { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 500 }
.line b { margin-left: auto; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums }
.line i { width: 18px; height: 18px; border-radius: 5px; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat }
.pill-dl { align-self: center; margin-top: 6px; background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px; border-radius: 99px; padding: 8px 16px }

/* Each mock plays once when its card scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .js .doc-avoir { opacity: 0; transform: translateX(-70px) rotate(-4deg); transition: opacity .4s .5s, transform .7s var(--ease) .5s }
  .js .link { width: 0; transition: width .5s var(--ease) .3s }
  .js .bar i { width: 0; transition: width .9s var(--ease) }
  .js .bar:nth-child(2) i { transition-delay: .12s }
  .js .bar:nth-child(3) i { transition-delay: .24s }
  .js .ev { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease) }
  .js .ev-edit { transition-delay: .5s }
  .js .ev-keep { transition-delay: 1s }
  .js .line i { background-size: 0; background-color: #dcd8ee; transition: background-size .25s var(--ease), background-color .25s }
  .js .line:nth-child(1) i { transition-delay: .2s }
  .js .line:nth-child(2) i { transition-delay: .45s }
  .js .line:nth-child(3) i { transition-delay: .7s }
  .js .pill-dl { opacity: 0; transform: scale(.9); transition: opacity .3s 1s, transform .4s var(--ease) 1s }
  .js .seen .doc-avoir, .js .seen .ev, .js .seen .pill-dl { opacity: 1; transform: none }
  .js .seen .link { width: 56px }
  .js .seen .bar i { width: var(--w) }
  .js .seen .line i { background-size: 13px; background-color: var(--violet) }
}

/* Pricing */
.pricing { padding-top: clamp(72px, 9vw, 130px) }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(28px, 4vw, 52px) }
.plan { border: 1.5px solid var(--line); border-radius: 28px; padding: clamp(26px, 3.4vw, 44px); display: grid; gap: 18px; align-content: start }
.plan-pro { background: var(--ink); color: #fff; border-color: var(--ink) }
.price { font: 800 clamp(48px, 5vw, 68px)/1 var(--display); letter-spacing: -.04em }
.price small { font: 500 16px var(--body); letter-spacing: 0; margin-left: 8px; opacity: .65 }
.plan ul { display: grid; gap: 10px; margin-bottom: 8px }
.plan li { padding-left: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a2cf5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") 0 .22em / 19px no-repeat }
.plan-pro li { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237df0c2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") }
.plan .btn { justify-self: start }

/* FAQ */
.faq { padding-top: clamp(72px, 9vw, 130px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); align-items: start }
.faq-head { display: grid; gap: 18px; justify-items: start; position: sticky; top: 104px }
.faq-head p { color: var(--muted); max-width: 34ch }
.faq-list { display: grid; gap: 10px }
.faq details { background: var(--tint); border-radius: 20px; transition: background-color .25s }
.faq details[open] { background: #ebe6ff }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 19px 20px 19px 26px; font: 600 18.5px/1.3 var(--display); letter-spacing: -.01em; border-radius: 20px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: ''; flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(var(--ink) 0 0) center / 12px 2px no-repeat, linear-gradient(var(--ink) 0 0) center / 2px 12px no-repeat, #fff; transition: transform .3s var(--ease) }
.faq details[open] summary::after { transform: rotate(45deg) }
.faq details p { color: var(--muted); padding: 0 76px 24px 26px; max-width: 64ch }

/* Closing: the notification from the top of the page comes back, hanging on its thread */
.closing { position: relative; margin-top: clamp(72px, 9vw, 130px); border-radius: 36px; overflow: hidden; color: #fff; padding: clamp(44px, 6.5vw, 92px) clamp(26px, 5vw, 76px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; background:
  radial-gradient(55% 80% at 86% 8%, #6a2cf580, transparent 70%),
  radial-gradient(45% 70% at 100% 100%, #d326e347, transparent 70%),
  radial-gradient(40% 60% at 0% 100%, #1b5cff47, transparent 70%),
  var(--ink) }
.closing-copy { grid-column: 1; grid-row: 1; display: grid; gap: 22px; justify-items: start }
.closing h2 { max-width: 15ch }
.closing-copy p { color: #cfcbe6; font-size: 18px; max-width: 40ch }
.closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; font-size: 14.5px; font-weight: 500; color: #cfcbe6 }
.hang { position: absolute; top: 0; left: 76%; width: max-content; padding-top: clamp(84px, 11vw, 150px); transform: translateX(-50%); transform-origin: 50% 0 }
.hang::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #ffffff5c }
.hang-card { position: relative; display: flex; align-items: center; gap: 15px; padding: 17px 24px 18px 17px; background: #fff; color: var(--ink); border-radius: 22px; font-size: 17px; line-height: 1.3; white-space: nowrap; box-shadow: 0 30px 60px -20px #000000a6 }
.hang-card::before { content: ''; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #16113a47 }
.hang-card b, .hang-card small { display: block }
.hang-card b { font-weight: 600 }
.hang-card small { font-size: .88em; color: var(--muted) }
.hang-done { display: flex; align-items: center; gap: 6px; width: fit-content; margin-top: 9px; padding: 5px 13px 5px 9px; border-radius: 99px; background: #efe9ff; color: var(--violet); font-size: .88em; font-weight: 600 }
.hang-done svg { width: 16px; height: 16px; stroke-width: 3 }
@media (prefers-reduced-motion: no-preference) {
  .hang { animation: sway 5.5s ease-in-out infinite alternate }
  @keyframes sway { from { transform: translateX(-50%) rotate(-1.6deg) } to { transform: translateX(-50%) rotate(1.6deg) } }
}

/* Pricing and FAQ settle in once, when they scroll into view: a short rise, one element after the other */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] > h2, .js [data-reveal] :is(.plan, .faq-head, details) { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .7s var(--ease), background-color .25s; transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s }
  .js [data-reveal].seen > h2, .js [data-reveal].seen :is(.plan, .faq-head, details) { opacity: 1; transform: none }
  .js [data-reveal] :is(.plan, details):nth-child(1) { --i: 1 }
  .js [data-reveal] :is(.plan, details):nth-child(2) { --i: 2 }
  .js [data-reveal] details:nth-child(3) { --i: 3 }
  .js [data-reveal] details:nth-child(4) { --i: 4 }
  .js [data-reveal] details:nth-child(5) { --i: 5 }
  .js [data-reveal] details:nth-child(6) { --i: 6 }
  .js [data-reveal] details:nth-child(7) { --i: 7 }
  .js [data-reveal] details:nth-child(8) { --i: 8 }
  .js [data-reveal] details:nth-child(9) { --i: 9 }
  /* The plan's ticks follow their card */
  .js [data-reveal] .plan li { opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--ease); transition-delay: calc(.35s + var(--i, 0) * 80ms + var(--n, 0) * 70ms) }
  .js [data-reveal].seen .plan li { opacity: 1; transform: none }
  .js [data-reveal] .plan li:nth-child(2) { --n: 1 }
  .js [data-reveal] .plan li:nth-child(3) { --n: 2 }
}

/* Footer */
.foot { margin-top: clamp(56px, 7vw, 100px); border-top: 1.5px solid var(--line); padding-block: 52px 28px; font-size: 15px; color: var(--muted) }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr)); gap: 32px }
.foot-brand { display: grid; gap: 14px; justify-items: start; align-content: start }
.foot-brand p { max-width: 32ch }
.foot .brand { font-size: 23px; color: var(--ink) }
.foot nav { display: grid; gap: 11px; align-content: start; justify-items: start }
.foot nav a { transition: color .2s }
.foot nav a:hover { color: var(--ink) }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px }

@media (max-width: 920px) {
  .nav nav { display: none }

  .pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 18px; padding-block: 16px 12px; align-items: stretch }
  .cam { aspect-ratio: auto; height: 100%; max-height: none; min-height: 0; border-radius: 24px }
  .js .pin.intro .tabs, .js .pin:not(.intro) .hero-copy { display: none }
  .js .tabs { opacity: 1; transform: none }
  .tabs { height: 312px; align-content: start }
  .spots { gap: 6px }
  .spots li { font-size: 13px; padding: 5px 11px 5px 8px; gap: 5px }
  .spots svg { width: 15px; height: 15px }
  .hero-copy { gap: 16px }
  .hero-copy .btn-ghost, .cue { display: none }
  .js .tab:not(.on) { display: none }
  .js .tab-b { transition: none }
  .tab-h { font-size: 23px; padding-top: 4px }
  .tab:nth-child(1) { --n: "1 / 6" } .tab:nth-child(2) { --n: "2 / 6" } .tab:nth-child(3) { --n: "3 / 6" } .tab:nth-child(4) { --n: "4 / 6" } .tab:nth-child(5) { --n: "5 / 6" } .tab:nth-child(6) { --n: "6 / 6" }
  .cam-bar { inset: 10px 10px auto; height: 38px; font-size: 13px }
  .push { font-size: 15.5px; gap: 12px; padding: 13px 18px 14px 13px; border-radius: 18px }
  .push-ico { width: 44px; height: 44px; border-radius: 13px }
  .push-ico svg { width: 25px; height: 25px }
  .controls { flex-wrap: nowrap }
  .controls label { flex: 1; min-width: 0 }
  .controls input { width: 100% }
  .js .tab-h::before { content: var(--n); display: block; font: 600 13.5px/1.4 var(--body); letter-spacing: 0; color: var(--violet); margin-bottom: 4px }
  .xml { width: 62%; padding: 16px; border-radius: 16px }

  .card, .card.c-wide { grid-column: span 12 }
  .faq { grid-template-columns: 1fr }
  .faq-head { position: static }
  .closing { grid-template-columns: 1fr; padding-top: 0 }
  .closing-copy { grid-row: 2 }
  .hang { position: relative; left: 50%; grid-row: 1; padding-top: 64px; margin-bottom: 36px }
}

@media (min-width: 921px) and (max-height: 760px) {
  .tab-h { padding-block: 8px; font-size: 21px }
  .tab-in { gap: 10px }
  .tab-in p { font-size: 15.5px }
}

@media (max-width: 620px) {
  body { font-size: 16px }
  .nav .btn { padding: 9px 14px; font-size: 14px }
  .hero-actions, .hero-actions .btn { width: 100% }
  .plans { grid-template-columns: 1fr }
  .mock { height: 210px }
  .doc { width: 150px; padding: 13px 14px }
  .doc span { font-size: 19px }
  .link, .js .seen .link { width: 26px }
  .closing { border-radius: 26px }
  .hang-card { font-size: 15px; padding: 13px 18px 14px 13px; gap: 12px; border-radius: 18px }
  .hang-card .push-ico { width: 44px; height: 44px; border-radius: 13px }
  .faq summary { font-size: 17px; padding: 16px 16px 16px 20px }
  .faq details p { padding: 0 20px 20px }
  .closing-actions .btn { width: 100% }
  .foot-in { grid-template-columns: 1fr 1fr }
  .foot-brand { grid-column: 1 / -1 }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important }
}

/* ---------- Sub-pages: changelog, terms, privacy ---------- */
.nav nav a[aria-current] { color: var(--ink) }
.page { padding-block: clamp(40px, 6vw, 84px) clamp(24px, 4vw, 48px) }
.page-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 60px) }
.page-head h1 { font-size: clamp(38px, 5vw, 66px); max-width: 18ch }
.page-head p { color: var(--muted); font-size: 18px }

/* Legal pages: a sticky table of contents beside the text */
.page-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: start }
.page-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; display: grid; gap: 14px; font-size: 14.5px }
.page-toc b { font: 700 16px/1.2 var(--display) }
.page-toc nav { display: grid; border-left: 2px solid var(--line) }
.page-toc a { margin-left: -2px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; color: var(--muted); transition: color .2s, border-color .2s }
.page-toc a:hover { color: var(--ink); border-color: var(--violet) }

.prose { max-width: 76ch; font-size: 16.5px; line-height: 1.7; color: #3d3960 }
.prose section { scroll-margin-top: 96px }
.prose section + section { margin-top: 56px }
.prose h2 { max-width: none; font-size: clamp(23px, 2.3vw, 30px); line-height: 1.2; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1.5px solid var(--line) }
.prose h3 { font-size: 20px; line-height: 1.3; margin: 34px 0 12px }
.prose h4 { font: 700 17.5px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); margin: 26px 0 10px }
.prose h2, .prose h3 { color: var(--ink) }
.prose p { margin-bottom: 16px }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; display: grid; gap: 8px }
.prose ul.plain { list-style: none; padding-left: 0 }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px }
.prose strong, .prose b, .prose .strong { font-weight: 600; color: var(--ink) }
.prose .callout, .prose .boxed { background: var(--tint); border-radius: 16px; padding: 18px 22px; margin: 22px 0 }
.prose .callout { border-left: 3px solid var(--violet); border-radius: 0 16px 16px 0 }
.prose ul.callout, .prose ul.boxed { padding-left: 42px }
.prose .callout > :last-child, .prose .boxed > :last-child { margin-bottom: 0 }
.prose .table-scroll { overflow-x: auto; margin: 22px 0; border: 1.5px solid var(--line); border-radius: 16px }
.prose .table-title { margin: 28px 0 -8px }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5 }
.prose th { text-align: left; font-weight: 600; color: var(--ink); background: var(--tint); padding: 12px 16px; white-space: nowrap }
.prose td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top }

/* Changelog: the version on the left, its changes in a card on the right */
.changelog-container { display: grid; gap: 44px }
.changelog-entry { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px 28px; align-items: start }
.version-header { position: sticky; top: 96px; display: grid; gap: 4px; justify-items: start; padding-top: 10px }
.version-tag { font: 700 22px/1.2 var(--display); letter-spacing: -.02em }
.release-date { color: var(--muted); font-size: 14.5px }
.release-details { border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden }
.change-category + .change-category { border-top: 1.5px solid var(--line) }
.change-category h3 { font: 600 14px/1.4 var(--body); letter-spacing: 0; color: var(--muted); background: var(--tint); padding: 10px 22px }
.change-badges { padding-inline: 22px }
.change-badges > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; padding-block: 18px }
.change-badges > li + li { border-top: 1px solid var(--line) }
.change-badges h4 { grid-column: 1; margin: 0; font: 600 17px/1.3 var(--display); letter-spacing: -.01em }
.change-badge { grid-column: 2; grid-row: 1; font-size: 12.5px; font-weight: 600; white-space: nowrap; border-radius: 99px; padding: 3px 11px }
.change-badge-added { background: #e1f5ec; color: #0a7350 }
.change-badge-improved { background: #efe9ff; color: var(--violet) }
.change-badge-fixed { background: #fff0d9; color: #94590a }
.change-badges > li > p, .release-feature-points { grid-column: 1 / -1; max-width: 90ch; color: var(--muted); font-size: 16px }
.release-feature-points { list-style: disc; padding-left: 20px; display: grid; gap: 6px }
.change-badges strong { font-weight: 600; color: var(--ink) }
.change-badges a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px }
.change-badges code { font: .88em ui-monospace, "SF Mono", Menlo, monospace; background: var(--tint); border-radius: 6px; padding: 1px 6px }
.release-note { padding: 16px 22px; color: var(--muted) }

@media (max-width: 920px) {
  .page-grid { grid-template-columns: minmax(0, 1fr) }
  .page-toc { position: static; max-height: none; background: var(--tint); border-radius: 18px; padding: 18px 20px }
  .changelog-entry { grid-template-columns: minmax(0, 1fr) }
  .version-header { position: static; display: flex; align-items: baseline; gap: 12px; padding-top: 0 }
}

@media (max-width: 620px) {
  .change-category h3, .release-note { padding-inline: 16px }
  .change-badges { padding-inline: 16px }
  .change-badges > li { grid-template-columns: 1fr }
  .change-badge { grid-column: 1; grid-row: auto; justify-self: start }
  .prose { font-size: 16px }
}

.tab > h3 { font: inherit; letter-spacing: inherit }
.version-tag { max-width: none }

/* ---------- Guides: a list of articles, and the article page (reuses .page-grid and .prose) ---------- */
.guide-crumb { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--violet) }
.guide-crumb::before { content: "←"; transition: transform .2s var(--ease) }
.guide-crumb:hover::before { transform: translateX(-3px) }
.guide-head h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06; max-width: 28ch }
.guide-head .guide-lead { max-width: 64ch; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.55 }
.guide-head .guide-stamp { font-size: 14.5px }

.prose ol { list-style: decimal; padding-left: 24px; margin-bottom: 18px; display: grid; gap: 10px }
.prose ol > li::marker { font-weight: 600; color: var(--ink) }
.prose li > p { margin-bottom: 0 }
.prose .guide-note { font-size: 14.5px; color: var(--muted) }

.guide-cta { display: grid; gap: 12px; justify-items: start; margin-top: 56px; background: var(--tint); border-radius: 24px; padding: clamp(24px, 3vw, 36px) }
.guide-cta h2 { max-width: 24ch; font-size: clamp(23px, 2.3vw, 30px); line-height: 1.15; padding: 0; margin: 0; border: 0 }
.guide-cta p { margin: 0; color: var(--muted) }
.guide-cta .btn { margin-top: 6px; color: #fff; text-decoration: none }
.guide-more { margin-top: 44px }
.guide-more b { display: block; margin-bottom: 12px; font: 700 18px/1.2 var(--display); color: var(--ink) }

.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }
.guide-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; justify-items: start; border: 1.5px solid var(--line); border-radius: 24px; padding: 28px; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s }
.guide-card:hover { border-color: #c9bdf6; transform: translateY(-3px); box-shadow: 0 18px 40px -24px #6a2cf566 }
.guide-card span { font-size: 12.5px; font-weight: 600; color: var(--violet); background: #efe9ff; border-radius: 99px; padding: 3px 11px }
.guide-card h2 { max-width: none; font-size: clamp(21px, 1.9vw, 25px); line-height: 1.18; letter-spacing: -.02em }
.guide-card p { color: var(--muted); font-size: 15.5px }
.guide-card b { font-weight: 600; font-size: 15px; color: var(--ink) }
.guide-card b::after { content: " →"; display: inline-block; transition: transform .2s var(--ease) }
.guide-card:hover b::after { transform: translateX(3px) }
.guide-help { margin-top: 40px; color: var(--muted) }
.guide-help a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px }

@media (max-width: 920px) {
  .guide-list { grid-template-columns: minmax(0, 1fr) }
  .guide-card { grid-template-rows: none; padding: 24px }
}
@media (max-width: 620px) {
  .prose .table-scroll table { min-width: 540px }
}

/* ---------- Home page: the guides, as a section after the FAQ ---------- */
.guides { padding-top: clamp(72px, 9vw, 130px) }
.guides > h2 { max-width: 20ch; margin-bottom: clamp(28px, 4vw, 52px) }
.guide-card h3 { font-size: clamp(21px, 1.9vw, 25px); line-height: 1.18; letter-spacing: -.02em }

/* The cards rise one after the other. An animation, not a transition, so their hover lift stays free */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .guide-card { opacity: 0 }
  .js [data-reveal].seen .guide-card { opacity: 1; animation: guide-in .7s var(--ease) backwards; animation-delay: calc(var(--i, 1) * 90ms) }
  .js [data-reveal] .guide-card:nth-child(2) { --i: 2 }
  .js [data-reveal] .guide-card:nth-child(3) { --i: 3 }
  @keyframes guide-in { from { opacity: 0; transform: translateY(18px) } }
}

/* Table of contents: the section being read (set by toc.js) */
.page-toc a[aria-current] { color: var(--ink); font-weight: 600; border-color: var(--violet) }

.faq details a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px }

/* ---------- 404 page ---------- */
.lost { min-height: 46vh; display: grid; align-content: center; justify-items: start; gap: 18px }
.lost-code { font-size: 14.5px; font-weight: 600; color: var(--violet); background: #efe9ff; border-radius: 99px; padding: 4px 13px }
.lost h1 { font-size: clamp(38px, 5.4vw, 72px); max-width: 16ch }
.lost-text { color: var(--muted); font-size: clamp(17px, 1.5vw, 19.5px); max-width: 46ch }
.lost-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px }
@media (max-width: 620px) {
  .lost-actions, .lost-actions .btn { width: 100% }
}
