:root {
  --bg: #f7f6f2;
  --paper: #ffffff;
  --sunken: #efede7;
  --line: #e6e2d9;
  --line-2: #d8d3c8;
  --ink: #1d1b18;
  --ink-2: #57534b;
  --ink-3: #8f8a81;
  --accent: #b5602a;
  --accent-2: #d9894f;
  --accent-soft: #f6e8da;
  --ok: #2f7a4f;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, Consolas, monospace;
  --r: 18px;
  --shadow: 0 1px 2px rgba(29, 27, 24, .05), 0 12px 32px -12px rgba(29, 27, 24, .14);
  --shadow-lg: 0 2px 4px rgba(29, 27, 24, .04), 0 30px 70px -20px rgba(60, 38, 18, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
kbd { font: 600 12px/1 var(--sans); display: inline-flex; align-items: center; height: 24px; padding: 0 7px; margin: 0 2px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--ink); vertical-align: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; margin: 0 0 16px; }
h3 { font-size: 17px; line-height: 1.35; margin: 0 0 8px; font-weight: 600; letter-spacing: -.005em; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sub { color: var(--ink-2); font-size: 18px; max-width: 54ch; text-wrap: pretty; margin: 0; }
.fine { color: var(--ink-3); font-size: 14px; margin: 14px 0 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 22px -10px rgba(29,27,24,.6); }
.btn-ink:hover { background: #000; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 14px 30px -12px rgba(29,27,24,.7); }
.btn-ghost { color: var(--ink); background: transparent; border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--paper); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); }
.btn .winlogo { width: 18px; height: 18px; fill: currentColor; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand.small { font-size: 15px; gap: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav-links a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.nav-links a:hover { color: var(--ink); }
.nav-links .gh svg { width: 16px; height: 16px; fill: currentColor; }

/* hero */
.hero { padding: 72px 0 40px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 760px; background: radial-gradient(60% 55% at 50% 30%, rgba(233, 178, 129, .28), transparent 70%); pointer-events: none; z-index: -1; }
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
.hero h1 { font-size: clamp(54px, 9vw, 104px); line-height: .95; margin: 0 0 24px; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 620px; margin: 0 auto 32px; text-wrap: pretty; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* animated demo */
.demo { position: relative; margin: 56px auto 0; height: 470px; max-width: 1000px; }
.win { position: absolute; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.win.chat { left: 0; top: 30px; width: 58%; height: 400px; display: flex; flex-direction: column; }
.bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfaf8; }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2ddd3; }
.bar span { margin-left: 10px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.chat-body { flex: 1; padding: 22px 22px 8px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.bubble { max-width: 78%; border-radius: 16px; padding: 10px 14px; font-size: 14.5px; line-height: 1.5; }
.bubble.ai { background: var(--sunken); color: var(--ink-2); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: #2a2724; color: #f3efe8; border-bottom-right-radius: 6px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.9,.25,1.2); }
.bubble.me p { margin: 8px 0 0; }
.sent-tiles { display: flex; gap: 6px; }
.demo.sent .bubble.me { opacity: 1; transform: none; }
.composer { margin: 0 16px 16px; height: 48px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; color: var(--ink-3); font-size: 14px; }
.send-dot { width: 32px; height: 32px; border-radius: 10px; background: var(--sunken); }

.win.panel { right: 0; top: 0; width: 40%; height: 440px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fdfcfa; transition: transform .5s ease; }
.p-head { display: flex; align-items: center; gap: 9px; font-size: 14.5px; }
.p-head img { border-radius: 5px; }
.p-head b { font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-saved { margin-left: auto; font-size: 11.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.p-saved::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.p-editor { min-height: 118px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.caret { display: inline-block; width: 1.5px; height: 17px; background: var(--accent); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.p-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.p-label span { font-size: 11px; background: var(--sunken); border: 1px solid var(--line); border-radius: 9px; padding: 0 7px; line-height: 17px; }
.p-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; opacity: 0; transform: scale(.6) translateY(-10px); transition: opacity .35s ease, transform .5s cubic-bezier(.2, 1.5, .4, 1); }
.tile small { display: block; padding: 5px 7px; font-size: 10.5px; color: var(--ink-3); border-top: 1px solid var(--line); white-space: nowrap; }
.tile.in { opacity: 1; transform: none; }
.demo.sent .tile { opacity: 0; transform: translate(-260px, 40px) scale(.4); transition: opacity .45s ease .05s, transform .6s cubic-bezier(.5, 0, .3, 1); }
.shot { height: 64px; position: relative; }
.shot.phone { background: linear-gradient(#f4f1ec, #f4f1ec); }
.shot.phone .pb { position: absolute; left: 26%; right: 26%; bottom: 14px; height: 12px; border-radius: 4px; background: var(--accent); }
.shot.phone .pf { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: #d9d3c7; }
.shot.devtools { background: #22201e; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.shot.devtools span { height: 5px; border-radius: 3px; background: #4a4640; width: 80%; }
.shot.devtools span:nth-child(2) { width: 55%; background: #b5602a; }
.shot.devtools span:nth-child(3) { width: 68%; }
.shot.devtools span:nth-child(4) { width: 40%; }
.shot.file { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 10px; gap: 4px; }
.shot.file b { font-size: 10px; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 5px; }
.shot.file span { font-size: 12px; font-weight: 600; }
.p-send { margin-top: auto; height: 50px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 14px; transition: transform .12s ease, background .2s; }
.p-send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.p-send b { font-weight: 700; }
.p-send kbd { margin-left: auto; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.75); font-size: 11px; height: 22px; }
.p-send.press { transform: scale(.97); background: #000; }
.mini { width: 38px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.mini.m1 { background: #f4f1ec; }
.mini.m1::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 6px; height: 5px; border-radius: 2px; background: var(--accent); }
.mini.m2 { background: #3a3632; }
.mini.m2::after { content: ""; position: absolute; left: 6px; right: 10px; top: 8px; height: 3px; border-radius: 2px; background: #b5602a; box-shadow: 0 6px 0 #5a554e, 0 12px 0 #5a554e; }
.mini.m3 { background: #fff; }
.mini.m3 b { font-size: 8.5px; color: var(--accent); }
.flash { position: absolute; inset: -10px; border-radius: 24px; background: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: flash .45s ease; }
@keyframes flash { 0% { opacity: .0; } 15% { opacity: .55; } 100% { opacity: 0; } }
.pointer { position: absolute; width: 22px; height: 22px; left: 80%; top: 105%; opacity: 0; transition: left .8s cubic-bezier(.4,0,.2,1), top .8s cubic-bezier(.4,0,.2,1), opacity .3s; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 9-7 2-3 7z' fill='%231d1b18' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.pointer.show { opacity: 1; }
.steps-ind { position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); display: flex; gap: 6px; margin: 0; padding: 4px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }
.steps-ind li { font-size: 13px; color: var(--ink-3); padding: 6px 14px; border-radius: 999px; transition: background .3s, color .3s; }
.steps-ind li.on { background: var(--ink); color: #fff; }

/* works with */
.works { padding: 100px 0 30px; text-align: center; }
.works p { margin: 0 0 16px; color: var(--ink-3); font-size: 14px; }
.works ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; font-size: 18px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; }
.works li:last-child { font-weight: 400; color: var(--ink-3); font-style: italic; font-family: var(--serif); font-size: 21px; }

/* sections */
section { scroll-margin-top: 70px; }
.loop, .how, .features, .chip, .keys, .install, .faq { padding: 110px 0 0; }
.loop-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.col { border-radius: var(--r); padding: 24px; }
.col h3 { margin-bottom: 14px; }
.col ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 15px; }
.before { background: var(--sunken); color: var(--ink-3); }
.before h3 { color: var(--ink-2); }
.before li { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 55%, transparent); }
.after { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.after li { color: var(--ink); }
.after .note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--accent); font-weight: 600; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 0; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.card .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 18px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card-art { margin: 24px -24px 0; height: 150px; background: linear-gradient(180deg, #fbfaf7, var(--sunken)); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; }
.keys-art kbd { height: 40px; min-width: 44px; justify-content: center; font-size: 15px; border-radius: 9px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.25); }
.keys-art span { color: var(--ink-3); }
.tiles-art .mini { width: 70px; height: 52px; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 8px 16px -10px rgba(0,0,0,.3); }
.tiles-art .mini.m1::after { height: 8px; bottom: 10px; }
.tiles-art .mini.m2::after { top: 13px; height: 5px; box-shadow: 0 10px 0 #5a554e, 0 20px 0 #5a554e; }
.tiles-art .mini b { font-size: 12px; }
.tiles-art .mini:nth-child(2) { transform: translateY(-8px) rotate(-3deg); }
.send-art { flex-direction: column; gap: 6px; padding: 0 24px; align-items: stretch; }
.send-art .app { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; }
.send-art .app:first-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.av { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.av.c1 { background: #d97757; }
.av.c2 { background: #2b2b2b; }
.av.c3 { background: #3d3a36; font-family: var(--mono); font-size: 10px; }

.shots { padding: 110px 0 0; }
.shots-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.shots figure { margin: 0; }
.shots img { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }
.shot-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 60px; }
.shots figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); text-align: center; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.grid article { background: var(--paper); padding: 28px 26px; }
.grid p { margin: 0; color: var(--ink-2); font-size: 15px; }
.ic { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.ic svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.chip-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.chip-stage { position: relative; height: 470px; }
.chip-img { position: absolute; right: 10px; bottom: 0; width: 170px; filter: drop-shadow(0 18px 24px rgba(60, 40, 20, .22)); animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.chip-say { position: absolute; right: 30px; bottom: 196px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 10px 15px 11px; border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow-lg); line-height: 1.35; }
.chip-say small { display: block; font-weight: 500; color: #f0af7d; font-size: 12.5px; }
.cmenu { position: absolute; left: 0; top: 0; width: 300px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; font-size: 13.5px; }
.cm-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 9px; }
.cm-card b { display: block; font-size: 14px; }
.cm-card small, .cm-row small { display: block; color: var(--ink-3); font-size: 11.5px; }
.cm-thumbs { position: relative; width: 52px; height: 36px; flex: none; }
.cm-thumbs i { position: absolute; width: 44px; height: 34px; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.cm-thumbs i:first-child { left: 0; top: 1px; background: #f4f1ec; z-index: 2; }
.cm-thumbs i:first-child::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 7px; height: 5px; border-radius: 2px; background: var(--accent); }
.cm-thumbs i:last-child { left: 9px; top: 0; background: #3a3632; transform: scale(.9); }
.cm-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); padding: 8px 10px 4px; text-transform: uppercase; }
.cm-row { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 9px; }
.cm-row b { font-size: 13.5px; }
.cm-row.hot { background: #f3f1ec; }
.cm-row kbd { margin-left: auto; height: 20px; font-size: 10.5px; color: var(--ink-3); background: #f7f6f2; }
.cm-row.plain { color: var(--ink-2); padding: 9px 10px; }
.cm-row svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin: 0 4px 0 3px; }
.cm-sep { height: 1px; background: var(--line); margin: 5px 6px; }

.key-table { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; box-shadow: var(--shadow); }
.key-table > div { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 20px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.key-table > div:first-child { border-top: none; }
.kc { display: flex; gap: 2px; }

.install-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.install-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.install-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 16.5px; color: var(--ink-2); align-items: baseline; }
.install-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.install-steps b { color: var(--ink); }
.smartscreen { margin-top: 26px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: #fff8ef; border: 1px solid #f1dcc3; }
.smartscreen svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; margin-top: 2px; }
.smartscreen p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.install-art { display: grid; place-items: center; }
.setup-card { width: 340px; background: #22201e; color: #f2eee7; border-radius: 16px; padding: 30px 26px 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: var(--shadow-lg); text-align: center; }
.setup-card img { width: 92px; margin-bottom: 8px; }
.setup-card b { font-size: 18px; }
.setup-card span { font-size: 13px; color: #9d978d; }
.setup-card .bar { display: block; width: 210px; height: 5px; border-radius: 3px; background: #3a3632; margin-top: 22px; overflow: hidden; }
.setup-card .bar i { display: block; height: 100%; width: 100%; background: var(--accent-2); border-radius: 3px; animation: fill 2.6s ease-in-out infinite; transform-origin: left; }
@keyframes fill { 0% { transform: scaleX(.05); } 70%, 100% { transform: scaleX(1); } }

.faq-in { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: start; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-size: 17px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.qa details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa p { margin: -6px 0 20px; color: var(--ink-2); max-width: 62ch; }

.final { margin-top: 120px; background: #1d1b18; color: #f3efe8; padding: 90px 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: -40% 10% auto; height: 520px; background: radial-gradient(closest-side, rgba(217, 137, 79, .28), transparent); }
.final-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.final img { width: 110px; margin-bottom: 18px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); }
.final h2 { color: #fff; margin-bottom: 28px; }
.final .fine { color: #9d978d; }

.foot { background: #1d1b18; color: #9d978d; font-size: 14px; border-top: 1px solid #2e2b27; }
.foot-in { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px 0; }
.foot .brand { color: #f3efe8; }
.foot a { color: #d8d2c8; }

.mac-note { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; padding: 12px 12px 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14px; width: max-content; max-width: calc(100% - 32px); }
.mac-note[hidden] { display: none; }
.mac-note p { margin: 0; }
.mac-note button { border: 0; border-radius: 9px; background: #fff; color: var(--ink); font: 600 13px var(--sans); padding: 8px 12px; cursor: pointer; flex: none; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.seen { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .loop-in, .chip-in, .install-in, .faq-in, .shots-in { grid-template-columns: 1fr; }
  .shot-side { margin-top: 0; }
  .cards3, .grid { grid-template-columns: 1fr 1fr; }
  .chip-stage { height: 460px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav-links a:not(.gh) { display: none; }
  .nav-links { gap: 16px; }
  .hero { padding-top: 44px; }
  .demo { height: auto; margin-top: 40px; }
  .win.chat { display: none; }
  .win.panel { position: relative; width: 100%; height: 430px; }
  .steps-ind { position: static; transform: none; margin: 18px auto 0; justify-content: center; }
  .steps-ind li { padding: 6px 10px; font-size: 12px; }
  .cards3, .grid, .compare { grid-template-columns: 1fr; }
  .key-table > div { grid-template-columns: 1fr; gap: 8px; }
  .shot-side { grid-template-columns: 1fr; }
  .chip-stage { height: 600px; }
  .cmenu { width: 100%; max-width: 300px; }
  .chip-say { right: 10px; bottom: 150px; }
  .cmenu { top: 0; }
  .chip-img { width: 130px; }
  .works { padding-top: 64px; }
  .loop, .how, .features, .chip, .keys, .install, .faq, .shots { padding-top: 80px; }
  .setup-card { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
