:root {
  --bg: #f6f4ef;
  --bg-alt: #efede6;
  --ink: #1b2235;
  --ink-2: #5b6274;
  --ink-3: #a2a6b2;
  --line: rgba(27, 34, 53, 0.11);
  --card: #fdfcf9;
  --accent: #ff5a1f;
  --accent-ink: #c43d0a;
  --mark: rgba(60, 100, 220, 0.28);
  --mark-solid: #c2ccea;
  --mark-ink: #1f3d9e;
  --red: #ff3b30;
  --radius-xl: 28px;
  --shadow-lg: 0 40px 80px -30px rgba(27, 34, 53, 0.30), 0 12px 30px -12px rgba(27, 34, 53, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 124px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
}
/* The frosted bar only appears once the page has scrolled. */
.nav.scrolled {
  background: rgba(246, 244, 239, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 25px 50px -12px rgba(27, 34, 53, 0.15);
}
/* Full-width bar with generous side margins, like a native Mac app's toolbar. */
.nav-inner {
  padding: 28px clamp(16px, 2.2vw, 32px);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 26px; letter-spacing: normal; }
.brand-wrap { display: flex; align-items: center; gap: 12px; }
a.badge:hover { color: var(--ink); }

.badge {
  font-size: 11px; font-weight: 800; color: var(--ink-2);
  border: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 7px; padding: 0 6px; transform: translateY(-10px);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  transition: color .45s ease, border-color .45s ease, background-color .45s ease;
}
.nav-links { display: flex; gap: 36px; margin-left: auto; margin-right: 12px; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: normal; }
.nav-links a { display: inline-flex; align-items: center; gap: 9px; transition: opacity .15s; }
.nav-links a:hover { opacity: .65; transition-duration: .15s; }
.nav-ic { width: 21px; height: 21px; fill: currentColor; stroke: none; }
.nav-ic-hole { fill: var(--bg); transition: fill .45s ease; }
.nav-ic-line { fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 14px; font-weight: 600; letter-spacing: normal; white-space: nowrap;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s;
  cursor: pointer; border: 0;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { height: 60px; padding: 0 22px; font-size: 18px; border-radius: 17px; }
.btn-block { width: 100%; }
.btn-dark {
  background: #1b2235; color: #f6f4ef;
  box-shadow: 0 22px 40px -14px rgba(27, 34, 53, .7), 0 6px 12px -4px rgba(27, 34, 53, .25);
}
.btn-dark:hover { background: #232b42; box-shadow: 0 28px 48px -16px rgba(27, 34, 53, .75), 0 8px 14px -4px rgba(27, 34, 53, .28); }
.btn-light { background: rgba(27, 34, 53, .07); color: var(--ink); }
.btn-light:hover { background: rgba(27, 34, 53, .1); }
.price-chip {
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 700;
  padding: 4px 10px; border-radius: 8px; margin-left: 4px;
}
.i { width: 18px; height: 18px; stroke-width: 2.2; }
.i-sm { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* Download: on hover the logo fades out, the label slides into its place and an arrow fades in
   on the right. Only transforms and opacity animate, so the button never changes width. */
.btn-swap { --sw-icon: 20px; --sw-gap: 10px; --sw-pad: 22px; position: relative; gap: 0; }
.btn-lg.btn-swap { --sw-icon: 24px; --sw-gap: 11px; --sw-pad: 22px; }
.btn-swap .swap-lead, .btn-swap .swap-trail { display: inline-flex; align-items: center; justify-content: center; width: var(--sw-icon); flex: none; }
.btn-swap .swap-lead { margin-right: var(--sw-gap); }
.btn-swap .swap-trail { position: absolute; right: var(--sw-pad); top: 50%; margin-top: calc(var(--sw-icon) / -2); height: var(--sw-icon); }
.btn-swap svg { width: var(--sw-icon); height: var(--sw-icon); stroke-width: 2.2; flex: none; }
.btn-swap .swap-lead, .btn-swap .swap-label, .btn-swap .swap-trail {
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .28s ease, filter .28s ease;
}
.btn-swap .swap-trail { opacity: 0; filter: blur(4px); transform: translateX(-10px); }
.btn-swap:hover .swap-lead { opacity: 0; filter: blur(4px); transform: translateX(-12px); }
.btn-swap:hover .swap-label { transform: translateX(calc(-1 * (var(--sw-icon) + var(--sw-gap)))); }
.btn-swap:hover .swap-trail { opacity: 1; filter: blur(0); transform: none; }

/* Apple logo comes from Apple's system font, so it's only shown on Apple devices. */
.apple-glyph { display: none; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; font-size: 23px; line-height: 1; font-weight: 400; }
html.apple .apple-glyph { display: inline-block; }
html.apple .glyph-fallback { display: none; }
.btn-swap .swap-lead .apple-glyph { width: var(--sw-icon); text-align: center; transform: translateY(-1px); }
.btn-lg.btn-swap .swap-lead .apple-glyph { font-size: 27px; }
.btn-lg.btn-seal .seal svg { width: 28px; height: 28px; }
.btn-lg.btn-seal { gap: 11px; }

/* Purchase: the seal is muted at rest and fills with Opaline orange on hover. */
.btn-seal .seal { display: inline-flex; flex: none; }
.btn-seal .seal svg { width: 20px; height: 20px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.btn-seal .seal-shape {
  fill: #b9bbc6; stroke: none; transition: fill .25s ease;
  transform-box: fill-box; transform-origin: center;
  /* Spins only while hovered; pausing (not removing) it means it stops where it is instead of snapping back. */
  animation: seal-spin 4s linear infinite paused;
}
@keyframes seal-spin { to { transform: rotate(360deg); } }
.btn-seal .seal-check { fill: none; stroke: #fff; stroke-width: 2.2; transition: stroke .25s ease; }
.btn-dark.btn-seal .seal-shape { fill: #5a5a5f; }
.btn-seal:hover .seal-shape { fill: var(--mark-solid); animation-play-state: running; }
.btn-seal:hover .seal-check { stroke: var(--mark-ink); }
.btn-seal:hover .seal svg { transform: scale(1.08); }

/* ───────── Hero ───────── */
.hero { text-align: center; padding: 104px 20px 40px; max-width: 1240px; margin: 0 auto; }
.hero-icon { margin: 0 auto 28px; width: 112px; height: 112px; }
.display {
  font-size: clamp(44px, 8.4vw, 96px); line-height: 1.02; font-weight: 800;
  letter-spacing: -0.025em; margin: 0 0 40px;
}
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after {
  content: ""; position: absolute; z-index: -1; left: -0.08em; right: -0.08em; bottom: 0.06em; height: 0.42em;
  background: var(--mark); border-radius: 0.12em; transform: skew(-6deg) rotate(-1deg);
}
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: var(--ink-2); max-width: 680px; margin: 0 auto 34px; font-weight: 500; letter-spacing: -0.015em; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--ink-3); margin: 18px 0 0; }
.hint { font-size: 14px; color: var(--ink-2); margin: 18px 0 0; }
.hint-arrow { display: inline-block; animation: bob 1.6s ease-in-out infinite; margin-right: 4px; }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* ───────── Scaled stages (pixel-perfect mockups) ───────── */
.stage-wrap {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  background: #111; transform: translateZ(0);
}
.stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; overflow: hidden; }
.hero-stage { margin-top: 56px; }

/* Hero desktop */
.desk { cursor: crosshair; user-select: none; -webkit-user-select: none; touch-action: none; }
.wallpaper { position: absolute; inset: 0; background: #5f6a86; }
.menubar {
  position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
  background: rgba(255,255,255,.28); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  color: #fff; font-size: 13.5px; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.mb-left { display: flex; gap: 20px; }
.mb-right { display: flex; align-items: center; gap: 16px; }
.mb-fs { display: inline-flex; padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.28); }
.mb-fs svg, .mb-ic { width: 17px; height: 17px; stroke-width: 2; }

.win {
  position: absolute; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.5), 0 0 0 .5px rgba(0,0,0,.2);
}
.doc-win { left: 150px; top: 78px; width: 900px; height: 570px; }
.win-bar {
  height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  background: #f6f6f8; border-bottom: 1px solid #e6e6ea; font-size: 13px; font-weight: 600; color: #4a4a50;
}
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: auto; margin-right: auto; transform: translateX(-30px); }
.win-bar.light { background: #fafafa; }
.doc { display: flex; height: calc(100% - 40px); }
.doc-side { width: 210px; background: #f4f4f7; border-right: 1px solid #e8e8ec; padding: 18px 12px; font-size: 13.5px; }
.side-h { font-size: 11px; font-weight: 700; color: #9a9aa2; text-transform: uppercase; letter-spacing: .06em; margin: 14px 10px 6px; }
.side-h:first-child { margin-top: 0; }
.side-i { padding: 6px 10px; border-radius: 7px; color: #3a3a40; display: flex; align-items: center; gap: 8px; }
.side-i.on { background: #e8e8ed; color: #1d1d1f; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.doc-main { flex: 1; padding: 26px 32px; }
.doc-main h3 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.muted { margin: 2px 0 18px; color: #8a8a90; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.card { background: #fff; border: 1px solid #ececf0; border-radius: 12px; padding: 14px 16px; }
.kpi span { display: block; font-size: 12.5px; color: #8a8a90; }
.kpi b { font-size: 26px; letter-spacing: -0.03em; }
.kpi em { font-style: normal; font-size: 12.5px; color: #1aa34a; font-weight: 600; margin-left: 6px; }
.chart-h { font-size: 13px; font-weight: 600; color: #4a4a50; margin-bottom: 10px; }
.bars { height: 130px; display: flex; align-items: flex-end; gap: 12px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: #2c3652; }
.bars i:last-child { background: var(--accent); }
.todo { list-style: none; margin: 16px 0 0; padding: 0; font-size: 14.5px; }
.todo li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px solid #f0f0f3; }
.todo li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c4c4cc; }
.todo li.done { color: #9a9aa2; text-decoration: line-through; }
.todo li.done::before { background: #34c759; border-color: #34c759; }

.sel-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.sel {
  position: absolute; display: none; border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 9999px rgba(0,0,0,.38);
}
.sel.show { display: block; }
.sel-dim {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%);
  background: rgba(0,0,0,.75); color: #fff; font: 600 12.5px var(--mono); padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 6; }
.flash.go { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .75; } 100% { opacity: 0; } }

.qa {
  position: absolute; left: 26px; bottom: 26px; width: 250px; height: 160px; z-index: 7;
  border-radius: 14px; overflow: hidden; background: #1c1c1e; cursor: default;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.18);
  opacity: 0; transform: translateX(-40px); transition: opacity .35s, transform .45s cubic-bezier(.2,.9,.25,1.05);
}
.qa.show { opacity: 1; transform: none; }
.qa-thumb { position: absolute; inset: 0; overflow: hidden; }
.qa-hover {
  position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.qa:hover .qa-hover { opacity: 1; }
.qa-pill {
  width: 100px; height: 30px; border: 0; border-radius: 15px; background: rgba(255,255,255,.94);
  font-size: 13px; font-weight: 600; color: #000; cursor: pointer;
}
.qa-c {
  position: absolute; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.94);
  display: grid; place-items: center; color: #000; font-size: 11px; font-weight: 800;
}
.qa-c svg { width: 12px; height: 12px; stroke-width: 2.6; }
.qa-c.tl { left: 8px; top: 8px; } .qa-c.tr { right: 8px; top: 8px; }
.qa-c.bl { left: 8px; bottom: 8px; } .qa-c.br { right: 8px; bottom: 8px; }
.toast {
  position: absolute; left: 50%; bottom: 60px; transform: translate(-50%, 20px); z-index: 8;
  background: rgba(30,30,32,.82); backdrop-filter: blur(20px); color: #fff; font-size: 15px; font-weight: 600;
  padding: 11px 20px; border-radius: 99px; opacity: 0; transition: all .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────── Sections ───────── */
.section { max-width: 1120px; margin: 0 auto; padding: 110px 20px; }
.eyebrow { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--accent-ink); letter-spacing: 0; }
.eyebrow.light { color: var(--accent); }
.h2 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 20px; }
.body { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--ink-2); margin: 0; font-weight: 500; letter-spacing: normal; }
.center-copy { text-align: center; max-width: 760px; margin: 0 auto 56px; }

.grid-8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 24px; padding-top: 10px; }
.feat { text-align: center; }
.feat svg { width: 52px; height: 52px; margin: 0 auto 16px; display: block; stroke-width: 2.6; color: var(--ink); }
.feat h3 { font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: normal; margin: 0; }
.fill-accent { fill: var(--accent); stroke: none; }
.fill-red { fill: var(--red); stroke: none; }
.fill-white { fill: #fff; stroke: none; }
.fill-grad { fill: var(--ink); stroke: none; }

.features-cta { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-top: 88px; }
.req { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-3); }
/* Same laptop outline as the footer's requirement line, scaled to this text size. */
.req svg { width: 17px; height: 17px; flex: none; }

.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.split.rev .copy { order: 2; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; font-size: 16px; font-weight: 500; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  /* One mask draws the circle with the check cut out, so the check is always dead centre. */
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cmask id='m'%3E%3Crect width='18' height='18' fill='white'/%3E%3Cpath d='M5.2 9.3l2.6 2.6 5-5.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='9' cy='9' r='9' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cmask id='m'%3E%3Crect width='18' height='18' fill='white'/%3E%3Cpath d='M5.2 9.3l2.6 2.6 5-5.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='9' cy='9' r='9' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Editor mock */
.editor { background: #fff; }
.ed-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 58px; display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background: #f9f8f4; border-bottom: 1px solid #e3e0d6;
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.tools { display: flex; align-items: center; gap: 2px; margin-left: 30px; }
.tool { width: 36px; height: 32px; border: 0; background: none; border-radius: 8px; color: #3a3a40; display: grid; place-items: center; cursor: pointer; }
.tool svg { width: 19px; height: 19px; }
.tool:hover { background: rgba(0,0,0,.06); }
.tool.on { background: rgba(255,90,31,.14); color: var(--accent-ink); }
.sep { width: 1px; height: 22px; background: #d8d8de; margin: 0 7px; }
.swatches { display: flex; gap: 7px; margin-left: auto; }
.swatches i { width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); cursor: pointer; }
.swatches i.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.ed-canvas { position: absolute; top: 58px; left: 0; right: 0; bottom: 50px; background: #e9e6de; }
.shot {
  position: absolute; left: 70px; top: 40px; width: 960px; height: 500px; background: #fff; border-radius: 10px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.25); overflow: hidden;
}
.shot-top { height: 56px; display: flex; align-items: center; gap: 26px; padding: 0 30px; border-bottom: 1px solid #eee; font-size: 15px; color: #6a6a72; }
.shot-top b { color: #111; font-size: 17px; margin-right: 12px; }
.avatar { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: #d9d6cc; }
.shot-body { padding: 30px 50px; }
.shot-body h4 { margin: 0 0 18px; font-size: 28px; line-height: 34px; letter-spacing: -0.03em; }
.row { height: 62px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f0f2; font-size: 16px; color: #4a4a52; }
.row span:last-child { color: #111; font-weight: 600; }
.row.actions { justify-content: flex-end; gap: 12px; border: 0; }
.ghost, .primary { height: 40px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 10px; font-weight: 600; }
.ghost { background: #f0f0f3; color: #333 !important; }
.primary { background: #111; color: #fff !important; width: 140px; justify-content: center; padding: 0; }
.blurme { filter: blur(6px); }
.pixme {
  color: transparent !important; border-radius: 2px; width: 230px; height: 22px;
  background:
    linear-gradient(90deg, #444 0 12%, #888 12% 25%, #222 25% 37%, #999 37% 50%, #555 50% 62%, #aaa 62% 75%, #333 75% 87%, #777 87%),
    #666;
  background-size: 100% 50%; background-repeat: no-repeat;
  box-shadow: inset 0 -11px 0 0 #8b8b8b;
}
.ann { position: absolute; pointer-events: none; }
.ann.box { left: 828px; top: 363px; width: 164px; height: 64px; border: 4px solid var(--red); border-radius: 10px; }
.ann.arrow { left: 552px; top: 366px; width: 300px; height: 160px; overflow: visible; }
.ann.arrow path { stroke: var(--red); stroke-width: 7; }
.ann.arrow marker path { stroke: none; }
.ann.label {
  left: 330px; top: 488px; background: var(--red); color: #fff; font-weight: 700; font-size: 19px;
  padding: 8px 16px; border-radius: 10px; box-shadow: 0 6px 14px -4px rgba(255,59,48,.5);
}
.ann.num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; box-shadow: 0 0 0 3px #fff inset, 0 3px 8px rgba(0,0,0,.25); border: 2px solid var(--red);
}
.ann.n1 { left: 74px; top: 192px; } .ann.n2 { left: 74px; top: 254px; }
.ann.hl { left: 842px; top: 320px; width: 148px; height: 28px; background: rgba(255, 214, 10, .55); mix-blend-mode: multiply; border-radius: 3px; }
.ed-foot {
  position: absolute; bottom: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: #f9f8f4; border-top: 1px solid #e3e0d6; font-size: 13px; color: #7d8396;
}
.ed-foot .sp { flex: 1; }
.chip { height: 30px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 8px; background: #fff; border: 1px solid #dcdce2; color: #222; font-weight: 600; }
.chip.accent { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Background tool */
.bgstage { transition: background .5s; }
.bg-shot {
  position: absolute; inset: calc(var(--pad, 56) * 1.5px); background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 70px -25px rgba(0,0,0,.45), 0 0 0 .5px rgba(0,0,0,.1); transition: inset .25s;
}
.notes { padding: 34px 44px; }
.notes h4 { margin: 0 0 18px; font-size: 32px; letter-spacing: -0.035em; }
.notes p { margin: 0 0 14px; font-size: 19px; color: #4a4a52; line-height: 1.45; }
.notes b { color: #111; }
.pill-row { display: flex; gap: 8px; margin-top: 22px; }
.pill-row span { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: #efede6; color: #3a4258; }
.bg-controls { margin-top: 30px; }
.bg-swatches { display: flex; flex-wrap: wrap; gap: 10px; max-width: 360px; }
.bg-swatches button {
  width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: transform .15s;
}
.bg-swatches button:hover { transform: scale(1.08); }
.bg-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.slider { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.slider input { flex: 1; max-width: 220px; accent-color: var(--ink); }

/* Recording band */
.dark-band {
  max-width: none; background: #161c2c; color: #f6f4ef; padding: 120px 20px;
}
.dark-band .body { color: #a1a1a6; }
.dark-band .stage-wrap { max-width: 1120px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.recstage { background: #1b2235; }
.rec-wall { position: absolute; inset: 0; background: #232b42; }
.rec-area { position: absolute; left: 200px; top: 50px; width: 800px; height: 480px; border: 2px solid rgba(255,69,58,.9); border-radius: 4px; }
.rec-app { position: absolute; inset: 22px; background: #fff; border-radius: 12px; overflow: hidden; }
.rec-content { padding: 36px 48px; }
.step { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-size: 20px; color: #9a9aa2; font-weight: 600; border-bottom: 1px solid #f0f0f2; }
.step span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #eee; font-size: 15px; color: #777; }
.step.active { color: #111; }
.step.active span { background: var(--ink); color: #fff; }
.rec-btn {
  margin-top: 30px; width: 170px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 17px; transition: transform .15s;
}
.rec-btn.press { transform: scale(.95); }
.cursor { position: absolute; left: 520px; top: 120px; width: 26px; height: 26px; z-index: 3; animation: cursor-path 5s ease-in-out infinite; }
.cursor svg { width: 26px; height: 26px; fill: #111; stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.ripple { position: absolute; left: -16px; top: -16px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #ffd60a; opacity: 0; animation: ripple 5s ease-out infinite; }
@keyframes cursor-path {
  0%, 8% { transform: translate(0, 0); }
  40%, 62% { transform: translate(-370px, 248px); }
  92%, 100% { transform: translate(0, 0); }
}
@keyframes ripple {
  0%, 44% { opacity: 0; transform: scale(.4); }
  46% { opacity: 1; transform: scale(.5); }
  58% { opacity: 0; transform: scale(1.8); }
  100% { opacity: 0; }
}
.keys {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 3;
  background: rgba(20,20,22,.85); color: #fff; font: 700 28px var(--font); padding: 10px 22px; border-radius: 14px;
  letter-spacing: 0.04em; transition: opacity .3s;
}
.cam {
  position: absolute; right: 40px; bottom: 40px; width: 150px; height: 150px; border-radius: 50%; z-index: 3;
  border: 4px solid #fff; overflow: hidden; background: #e9c4a6;
  box-shadow: 0 16px 30px -8px rgba(0,0,0,.6);
}
.cam-face {
  position: absolute; left: 50%; bottom: -18px; width: 104px; height: 120px; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 30%, #6a4335 0 28%, transparent 29%), radial-gradient(ellipse at 50% 100%, #2c3e63 0 55%, transparent 56%);
}
.rec-bar {
  position: absolute; left: 50%; top: 556px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  background: rgba(40,40,44,.85); color: #fff; padding: 10px 18px; border-radius: 14px; font: 600 16px var(--mono);
  box-shadow: 0 0 0 .5px rgba(255,255,255,.2);
}
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: pulse 1.2s ease-in-out infinite; }
.rec-sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); }
.rec-stop { width: 14px; height: 14px; border-radius: 3px; background: #fff; }
@keyframes pulse { 50% { opacity: .35; } }
.rec-specs { max-width: 1120px; margin: 56px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.rec-specs b { display: block; font-size: 28px; letter-spacing: -0.03em; }
.rec-specs span { color: #86868b; font-size: 15px; }

/* OCR */
.ocrstage { background: #ebe8e0; }
.slide {
  position: absolute; left: 90px; top: 60px; width: 820px; height: 500px; border-radius: 18px; padding: 50px 60px;
  background: #1b2235; color: #f6f4ef; box-shadow: 0 30px 60px -20px rgba(15,20,35,.45);
}
.slide-k { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.slide-t { font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; margin: 14px 0 34px; }
.slide ol { margin: 0; padding-left: 26px; font-size: 21px; line-height: 1.95; color: #d6d6db; font-weight: 500; }
.qr {
  position: absolute; right: 50px; top: 50px; width: 92px; height: 92px; border-radius: 8px; background-color: #fff;
  background-image:
    linear-gradient(#000 0 0), linear-gradient(#000 0 0), linear-gradient(#000 0 0),
    repeating-conic-gradient(#000 0 25%, #fff 0 50%);
  background-size: 26px 26px, 26px 26px, 26px 26px, 13px 13px;
  background-position: 8px 8px, 58px 8px, 8px 58px, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  box-shadow: inset 0 0 0 6px #fff;
}
.ocr-sel {
  position: absolute; left: 140px; top: 300px; width: 660px; height: 190px;
  border: 2px dashed rgba(255,255,255,.95); box-shadow: 0 0 0 9999px rgba(10,10,30,.28); border-radius: 4px; overflow: hidden;
}
.scan {
  position: absolute; left: 0; right: 0; height: 60px; top: -60px;
  background: rgba(255,90,31,.28);  height: 6px;
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0% { top: -60px; } 70%, 100% { top: 190px; } }
.ocr-toast {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  background: rgba(28,28,30,.9); color: #fff; font-weight: 600; font-size: 17px; padding: 12px 22px; border-radius: 99px;
  animation: toast-loop 2.6s ease-in-out infinite;
}
.ocr-toast svg { width: 20px; height: 20px; color: #30d158; stroke-width: 3; }
@keyframes toast-loop { 0%, 55% { opacity: 0; transform: translate(-50%, 12px); } 70%, 95% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  background: var(--card); border-radius: var(--radius-xl); padding: 30px; position: relative; overflow: hidden; min-height: 300px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -30px rgba(0,0,0,.25);
}
.tile h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: normal; }
.tile p { margin: 0; color: var(--ink-2); font-size: 16px; font-weight: 500; max-width: 360px; }
.t-quick { grid-column: span 4; }
.t-pin { grid-column: span 2; }
.t-scroll { grid-column: span 2; }
.t-aio { grid-column: span 4; }
.t-timer { grid-column: span 2; }
.t-hist { grid-column: span 2; }
.t-desk { grid-column: span 2; }
.mini-qa {
  position: absolute; right: 36px; bottom: 30px; width: 250px; height: 160px; border-radius: 14px; overflow: hidden;
  background: #1c1c1e; box-shadow: 0 20px 40px -12px rgba(0,0,0,.45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.mini-shot { position: absolute; inset: 0; background: #2c3652; }
.mini-qa span { position: relative; width: 100px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.94); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.pin-demo { position: absolute; left: 30px; right: 30px; bottom: 26px; height: 110px; }
.pinned { position: absolute; left: 10px; bottom: 0; width: 150px; height: 96px; border-radius: 10px; background: #efede6; border: 1px solid #e3e0d6; box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); animation: float 4s ease-in-out infinite; }
.pinned.p2 { left: auto; right: 10px; bottom: 16px; background: var(--ink); border-color: var(--ink); opacity: .9; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.scroll-demo { position: absolute; left: 50%; bottom: -10px; width: 150px; height: 150px; transform: translateX(-50%); border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.scroll-page {
  position: absolute; left: 12px; right: 12px; top: 12px; height: 420px;
  background: repeating-linear-gradient(180deg, #d9d6cc 0 10px, transparent 10px 22px, #ebe8e0 22px 32px, transparent 32px 44px);
  animation: scrolly 6s ease-in-out infinite;
}
@keyframes scrolly { 50% { transform: translateY(-260px); } }
.aio-bar {
  position: absolute; left: 30px; bottom: 34px; display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 14px;
  background: #1f1f22; box-shadow: 0 18px 34px -12px rgba(0,0,0,.5);
}
.aio-bar span { font: 600 13px var(--mono); color: #d1d1d6; padding: 0 12px; }
.aio-bar b { font-size: 13px; color: #fff; background: rgba(255,255,255,.1); padding: 8px 14px; border-radius: 9px; }
.aio-bar b:first-of-type { background: var(--accent); }
.big-num { position: absolute; right: 26px; bottom: -30px; font-size: 200px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--accent); }
.hist-grid { position: absolute; left: 30px; right: 30px; bottom: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hist-grid i { height: 44px; border-radius: 8px; background: #ebe8e0; }
.hist-grid i:nth-child(3n+2) { background: var(--ink); }
.toggle { position: absolute; left: 30px; bottom: 34px; width: 74px; height: 42px; border-radius: 21px; background: var(--accent); }
.toggle i { position: absolute; top: 3px; left: 35px; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.2); }

/* Shortcuts */
.shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sc {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px; border-radius: 22px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 600; color: var(--ink-2);
}
.keys-row { display: flex; gap: 6px; }
kbd {
  min-width: 44px; height: 44px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(180deg, #fdfcf9, #eeece5); color: var(--ink); font: 600 19px var(--font);
  box-shadow: 0 0 0 1px rgba(27,34,53,.14), 0 3px 0 rgba(27,34,53,.12);
}


/* Pricing */
.price-card {
  max-width: 620px; margin: 0 auto; text-align: center; background: var(--card); border-radius: 32px; padding: 48px 44px 40px;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
}
.price-card img { margin: 0 auto 16px; }
.price-card h3 { margin: 0; font-size: 24px; letter-spacing: -0.025em; }
.price { font-size: 96px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; margin: 18px 0 8px; }
.price .cur { font-size: 44px; vertical-align: 38px; margin-right: 4px; letter-spacing: 0; }
.price .cents { font-size: 44px; letter-spacing: -0.03em; }
.once { color: var(--ink-2); font-weight: 500; margin: 0 0 28px; }
.two-col { grid-template-columns: 1fr 1fr; text-align: left; gap: 12px 24px; margin: 0 0 32px; font-size: 15px; }
.price-card .btn + .btn { margin-top: 10px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 20px; font-weight: 700; letter-spacing: normal; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; color: var(--ink-2);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: -6px 0 24px; color: var(--ink-2); font-size: 17px; font-weight: 500; }

/* Final */
.final { text-align: center; }
.final img { margin: 0 auto 26px; }
.final .h2 { margin-bottom: 32px; }

/* Footer */
.footer { overflow: hidden; padding-top: 24px; }
.foot-row { max-width: 1120px; margin: 0 auto; padding: 28px 20px; display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--ink-2); }
.foot-row nav { display: flex; gap: 22px; margin-left: auto; }
.foot-row a:hover { color: var(--ink); }
.foot-row .brand { color: var(--ink); font-size: 16px; }
.copy-r { color: var(--ink-3); }
.wordmark {
  text-align: center; font-size: clamp(90px, 19vw, 260px); font-weight: 900; letter-spacing: -0.06em; line-height: .8;
  margin-bottom: -0.12em; background: linear-gradient(180deg, rgba(27,34,53,.09), rgba(27,34,53,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}

.page-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 100; opacity: 0; pointer-events: none;
  background: rgba(27,34,53,.92); color: #f6f4ef; padding: 12px 20px; border-radius: 99px; font-size: 15px; font-weight: 600; transition: all .3s;
}
.page-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ───────── Responsive ───────── */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .copy { order: 0; }
  .grid-8 { grid-template-columns: repeat(2, 1fr); gap: 44px 16px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-quick, .t-aio { grid-column: span 2; }
  .t-pin, .t-scroll, .t-timer, .t-hist, .t-desk { grid-column: span 1; }
  .shortcuts { grid-template-columns: repeat(2, 1fr); }
  .rec-specs { grid-template-columns: repeat(2, 1fr); }
}
/* Menu button and dropdown for narrow screens (built by transitions.js from the nav links). */
.nav-menu-btn {
  display: none; position: relative; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 17px;
  background: rgba(27, 34, 53, .07); color: var(--ink); cursor: pointer; transition: background-color .2s ease;
}
.nav-menu-btn:hover { background: rgba(27, 34, 53, .1); }
.nav-menu-btn i { position: absolute; left: 50%; top: 50%; width: 20px; height: 2.2px; margin: -1.1px 0 0 -10px; border-radius: 2px; background: currentColor; transition: transform .4s cubic-bezier(.2, .9, .25, 1.05); }
.nav-menu-btn i:first-child { transform: translateY(-4px); }
.nav-menu-btn i:last-child { transform: translateY(4px); }
.nav-menu-btn[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }
.nav-drop {
  position: absolute; top: calc(100% - 14px); right: clamp(16px, 2.2vw, 32px); min-width: 230px; padding: 8px; border-radius: 20px;
  background: var(--card); box-shadow: 0 25px 50px -12px rgba(27, 34, 53, .28), 0 0 0 1px var(--line);
  display: grid; gap: 2px; transform-origin: top right;
  opacity: 0; transform: translateY(-6px) scale(.96); visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .3s cubic-bezier(.2, .9, .25, 1.05), visibility 0s .3s;
}
.nav-drop.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .18s ease, transform .35s cubic-bezier(.2, .9, .25, 1.05), visibility 0s; }
.nav-drop a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 17px; font-weight: 700; color: var(--ink); transition: background-color .15s; }
.nav-drop a:hover { background: rgba(27, 34, 53, .06); }
.nav-drop a[aria-current="page"] { opacity: .55; }
.nav-drop .nav-ic-hole { fill: var(--card); }
.nav-drop .nav-ic-line { stroke: var(--card); }
html.theme-ink .nav-menu-btn { background: rgba(246, 244, 239, .08); }
html.theme-ink .nav-menu-btn:hover { background: rgba(246, 244, 239, .13); }
html.theme-ink .nav-drop { background: #2a2724; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
html.theme-ink .nav-drop a:hover { background: rgba(246, 244, 239, .07); }
html.theme-ink .nav-drop .nav-ic-hole { fill: #2a2724; }
html.theme-ink .nav-drop .nav-ic-line { stroke: #2a2724; }
@media (max-width: 640px) {
  .nav-menu-btn { width: 40px; height: 40px; border-radius: 12px; }
  .nav-inner .nav-menu-btn + .btn-nav { margin-left: -18px; }
}

/* The header holds the name, three links and the Download button; make room before it runs out of width. */
@media (max-width: 1000px) {
  .nav-links { gap: 24px; }
  .nav-links .nav-ic { display: none; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  /* The links move into a dropdown; the menu button and Download sit together at the right edge. */
  .nav-inner .nav-menu-btn { display: grid; margin-left: auto; }
  .nav-inner .nav-menu-btn + .btn-nav { margin-left: -16px; }
}
@media (max-width: 480px) {
  .btn-nav .nav-more { display: none; }
  .nav-inner { gap: 14px; }
  .nav-inner .nav-menu-btn + .btn-nav { margin-left: -6px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .nav-inner { padding-top: 12px; padding-bottom: 12px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand img { width: 34px; height: 34px; }
  .btn-nav { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
  .btn-nav.btn-lg.btn-swap { --sw-icon: 18px; --sw-gap: 8px; --sw-pad: 14px; }
  .btn-nav.btn-lg.btn-swap .swap-lead .apple-glyph { font-size: 19px; }
  .section { padding: 76px 16px; }
  .hero { padding: 40px 16px 24px; }
  .hero-icon { width: 88px; height: 88px; }
  .cta-row .btn { width: 100%; }
  .stage-wrap { border-radius: 16px; }
  .grid-8 { gap: 36px 12px; }
  .feat h3 { font-size: 17px; }
  .bento { grid-template-columns: 1fr; }
  .t-quick, .t-aio, .t-pin, .t-scroll, .t-timer, .t-hist, .t-desk { grid-column: span 1; }
  .tile { min-height: 280px; padding: 24px; }
  .mini-qa { right: 50%; transform: translateX(50%); width: 220px; height: 130px; }
  .aio-bar { left: 16px; right: 16px; overflow: hidden; }
  .aio-bar b:nth-of-type(n+3) { display: none; }
  .shortcuts { grid-template-columns: 1fr; }
  .price-card { padding: 36px 22px 28px; border-radius: 26px; }
  .two-col { grid-template-columns: 1fr; }
  .price { font-size: 80px; }
  .dark-band { padding: 80px 16px; }
  .rec-specs b { font-size: 22px; }
  .foot-row { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .foot-row nav { margin: 0; }
  .faq summary { font-size: 18px; }
}

/* ───────── Ink theme (FAQ page) ───────── */
html.theme-ink {
  --bg: #1f1d1b; --bg-alt: #292624; --card: #292624;
  --ink: #e9eefc; --ink-2: #a7b2d0; --ink-3: #6c7695;
  --line: rgba(200, 212, 245, 0.11);
}
html.theme-ink, html.theme-ink body { background: var(--bg); }
html.theme-ink .nav.scrolled { background: rgba(31, 29, 27, 0.8); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45); }
html.theme-ink .btn-nav { background: rgba(246, 244, 239, .08); color: var(--ink); }
html.theme-ink .btn-nav:hover { background: rgba(246, 244, 239, .13); }
html.theme-ink .badge { color: var(--ink-3); }
html.theme-ink .nav-ic-hole, html.theme-ink .nav-ic-line { fill: var(--bg); stroke: var(--bg); }

.faq-page { max-width: 820px; margin: 0 auto; padding: 72px 24px 140px; }
.faq-page h1 { font-size: clamp(56px, 9vw, 104px); line-height: 1; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 18px; }
.faq-updated { display: flex; align-items: center; gap: 9px; margin: 0 0 64px; color: var(--ink-2); font-size: 17px; font-weight: 500; }
.faq-updated svg { width: 18px; height: 18px; fill: var(--ink-2); stroke: none; }
.faq-updated .faq-fold { fill: none; stroke: var(--bg); stroke-width: 1.6; }
.faq-updated .cal-ring { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; }
.faq-page .faq { max-width: none; }
.faq-page .faq details { border-bottom: 1px solid var(--line); }
.faq-page .faq summary { display: flex; align-items: flex-start; gap: 18px; padding: 26px 0; font-size: 23px; color: var(--ink-2); transition: color .2s; }
.faq-page .faq summary:hover, .faq-page .faq details[open] summary { color: var(--ink); }
.faq-page .faq summary::after { content: none; }
.faq-toggle { position: relative; flex: none; width: 18px; height: 18px; margin-top: 6px; }
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.faq-toggle::after { transform: rotate(90deg); }
.faq-page details[open] .faq-toggle::before { transform: rotate(180deg); }
.faq-page details[open] .faq-toggle::after { transform: rotate(170deg) scale(0); }
.faq-page .faq details p { margin: -8px 0 26px 36px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* Answers glide open: the row grows from 0fr to 1fr, then the text fades in a beat later.
   Closing fades the text first and folds the row away. (faq.js keeps <details> open and drives .is-open.) */
.faq-anim details[open] .faq-toggle::before { transform: none; }
.faq-anim details[open] .faq-toggle::after { transform: rotate(90deg); }
.faq-anim details.is-open .faq-toggle::before { transform: rotate(180deg); }
.faq-anim details.is-open .faq-toggle::after { transform: rotate(170deg) scale(0); }
.faq-anim details[open] summary { color: var(--ink-2); }
.faq-anim details.is-open summary, .faq-anim summary:hover { color: var(--ink); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s cubic-bezier(.4,0,.2,1); }
.faq-a { margin-top: -8px; }
.faq-page .faq-anim details p { margin-top: 0; }
.faq-a > div { overflow: hidden; min-height: 0; opacity: 0; visibility: hidden; transition: opacity .2s cubic-bezier(.4,0,.2,1), visibility 0s .3s; }
.is-open > .faq-a { grid-template-rows: 1fr; }
.is-open > .faq-a > div { opacity: 1; visibility: visible; transition: opacity .3s cubic-bezier(.4,0,.2,1) .15s, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .faq-a, .faq-a > div, .faq-toggle::before, .faq-toggle::after { transition: none !important; } }
.faq-page .faq a, .faq-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.faq-more { margin-top: 48px; color: var(--ink-2); font-size: 17px; font-weight: 500; }

/* ───────── Page transitions ───────── */
/* The header stays put; only the page content fades while the background and header colours glide. */
body { transition: background-color .45s ease; }
main, footer { transition: opacity .28s ease, transform .28s ease; }
.nav { transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, -webkit-backdrop-filter .3s ease; }
.brand, .badge, .nav-links a, .btn-nav, .nav-ic { transition: color .45s ease, background-color .45s ease, border-color .45s ease, opacity .45s ease; }
.nav-links a[aria-current="page"] { opacity: .55; }
html.pt-leave, html.pt-leave body { background-color: var(--pt-bg) !important; }
html.pt-leave body { transition: background-color .45s ease .12s; }
html.pt-leave .nav { background: transparent; box-shadow: none; }
html.pt-leave main, html.pt-leave footer { opacity: 0; transform: translateY(-6px); }
html.pt-enter main, html.pt-enter footer { opacity: 0; transform: translateY(10px); transition: none; }
@media (max-width: 640px) {
  .faq-page { padding: 44px 18px 100px; }
  .faq-page .faq summary { font-size: 19px; gap: 14px; }
  .faq-page .faq details p { margin-left: 32px; font-size: 16px; }
}

/* FAQ page: on hover the logo's face swings away to the left, leaving its outline as a frame,
   and a back arrow slides in. */
.btn-nav { margin-left: auto; }
.nav-links ~ .btn-nav { margin-left: 0; } /* even with the (hidden) menu button between them */
.brand-mark {
  position: relative; display: inline-block; width: 44px; height: 44px; padding: 5px; border-radius: 15px;
  box-shadow: inset 0 0 0 3px var(--ink); perspective: 160px; transition: box-shadow .45s ease;
}
.brand-mark img {
  display: block; width: 34px; height: 34px; border-radius: 10px; transform-origin: 0% 50%;
  transition: transform .5s ease, opacity .35s ease;
}
.brand-arrow {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: translateX(9px); transition: opacity .3s ease .08s, transform .5s ease .08s;
}
.brand-arrow svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2.4; }
.brand-back:hover .brand-mark img { transform: translateX(-4px) rotateY(-75deg) scale(.92); opacity: 0; }
.brand-back:hover .brand-arrow { opacity: 1; transform: none; }

/* Headings settle in: they rise and straighten from a slight clockwise tilt. */
@keyframes heading-settle {
  from { opacity: 0; transform: translateY(18px) scale(.94) rotate(4deg); }
  to { opacity: 1; transform: none; }
}
.display, .h2, .faq-page h1 { transform-origin: 0% 50%; }
.display.reveal { transform: translateY(18px) scale(.94) rotate(4deg); transition: opacity .9s ease, transform .9s ease; }
.display.reveal.in { transform: none; }
.reveal .h2 { opacity: 0; transform: translateY(18px) scale(.94) rotate(4deg); transition: opacity .9s ease .08s, transform .9s ease .08s; }
.reveal.in .h2 { opacity: 1; transform: none; }
.faq-page h1 { animation: heading-settle .9s ease .12s both; }
@media (prefers-reduced-motion: reduce) {
  .display.reveal, .reveal .h2 { opacity: 1; transform: none; transition: none; }
  .faq-page h1 { animation: none; }
}

/* ───────── Changelog ───────── */
/* Each major version has a heading and a one-line summary; every release is a row (toggle, version,
   date) that folds open to its notes, grouped by kind. */
.cl-page h1 { font-size: 96px; line-height: 1; margin-bottom: 12px; }
.cl-major { margin-top: 48px; }
.cl-major + .cl-major { margin-top: 72px; }
.cl-major > h2 { margin: 0; font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; }
.cl-summary { margin: 24px 0 0; font-size: 20px; line-height: 28px; color: var(--ink); }
.cl-list { margin-top: 32px; }
.cl-rel { position: relative; }
.cl-rel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 99px; background: var(--line); }
.cl-rel:last-child::after { display: none; }
.cl-rel summary { display: flex; align-items: center; gap: 16px; padding: 16px 0 20px; cursor: pointer; list-style: none; user-select: none; }
.cl-rel summary::-webkit-details-marker { display: none; }
.cl-rel .faq-toggle { width: 22px; height: 22px; margin: 0; color: var(--ink-3); }
.cl-rel .faq-toggle::before, .cl-rel .faq-toggle::after { top: 10px; width: 22px; }
.cl-v { font-size: 24px; line-height: 32px; font-weight: 700; opacity: .75; transition: opacity .2s; }
.cl-rel summary:hover .cl-v, .cl-rel.is-open .cl-v { opacity: 1; }
.cl-rel time { margin-left: auto; font-size: 18px; line-height: 28px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cl-notes { padding: 0 0 28px 38px; }
.cl-intro { margin: 12px 0 0; font-size: 20px; line-height: 28px; color: var(--ink); }
.cl-group { margin-top: 24px; }
.cl-group h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.cl-group h3 .cl-mark { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cl-group h3 .cl-dot { fill: #e9e6f0; stroke: none; }
.cl-group ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 20px; line-height: 28px; color: color-mix(in srgb, var(--ink) 70%, transparent); }
@media (max-width: 640px) {
  .cl-page h1 { font-size: 60px; }
  .cl-major > h2 { font-size: 30px; line-height: 36px; }
  .cl-summary, .cl-intro, .cl-group h3, .cl-group ul { font-size: 17px; line-height: 25px; }
  .cl-rel summary { gap: 12px; }
  .cl-v { font-size: 20px; }
  .cl-rel time { font-size: 15px; }
  .cl-notes { padding-left: 34px; }
}

/* FAQ page: after the title, each piece slides up and fades in, one after another. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.faq-cascade { animation: rise-in .9s ease both; animation-delay: calc(.45s + var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) { .faq-cascade { animation: none; } }

/* Fresh page load: the brand lifts and straightens from a slight tilt; links and button fade in. */
@keyframes brand-rise { from { opacity: 0; transform: translateY(16px) scale(.75) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes nav-fade-in { from { opacity: 0; } to { opacity: 1; } }
html:not(.via-transition) .nav .brand-wrap { transform-origin: 50% 50%; animation: brand-rise .5s ease 75ms both; }
html:not(.via-transition) .nav .nav-links, html:not(.via-transition) .nav .btn-nav { animation: nav-fade-in .7s ease-in 75ms both; }
@media (prefers-reduced-motion: reduce) { html .nav .brand-wrap, html .nav .nav-links, html .nav .btn-nav { animation: none; } }

/* Load sequence: the header rises first (75 ms), then the headline, the buttons and the demo follow. */
.hero .display.reveal { transition-delay: .25s, .25s; }
.hero .cta-row.reveal { transition-delay: .4s; }
.hero .hero-stage.reveal { transition-delay: .55s; }
.hero .hint.reveal { transition-delay: .75s; }
html.via-transition .hero .reveal { transition-delay: 0s; }
