/* Capta site: the studio's shared system (hourslip.app, fetchretriever.app, snagfrog.com, karakabakov.com).
   Black, near-black panels on 1px hairlines, Inter 500 headings, white pill buttons.
   The accent is Capta's own (the icon's coral) and stays small: a glow, a label, a focus ring. Never the button. */
:root {
  --bg: #000;
  --panel: #0b0b0d;
  --panel-2: #111114;
  --line: #1d1d22;
  --line-2: #2a2a31;
  --ink: #f5f5f7;
  --ink-2: #a1a1aa;
  --ink-3: #8a8a94;
  --accent: #ff6b81;
  --accent-soft: rgba(255, 107, 129, 0.14);
  --green: #4ade80;
  --radius: 16px;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85em;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink);
  white-space: nowrap;
}
kbd { font-family: inherit; font-weight: 500; border-bottom-width: 2px; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.center { text-align: center; }
.sr { position: absolute; left: -9999px; }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; }
h1 { font-size: clamp(44px, 7.2vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; }
h3 { font-size: 17px; letter-spacing: -0.015em; font-weight: 500; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.grad {
  background: linear-gradient(100deg, #ffd1d8, var(--accent) 55%, #ff9a6b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
  padding: 5px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,0.02);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.pill.accent { color: var(--accent); border-color: rgba(255,107,129,.3); background: var(--accent-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 "Inter", system-ui, sans-serif; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: background .15s, transform .12s, opacity .12s;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; margin-top: -2px; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #e7e7ea; }
.btn-dark { background: var(--panel-2); color: var(--ink); border-color: var(--line-2); }
.btn-dark:hover { background: #18181c; }
.btn-sm { padding: 9px 15px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.links a:hover, .links a[aria-current] { color: var(--ink); }
.nav-cta { justify-self: end; }

/* Hero */
.hero { padding: 76px 0 0; text-align: center; position: relative; }
.hero h1 { margin: 26px auto 0; max-width: 860px; }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 620px; margin: 22px auto 0; letter-spacing: -0.01em; }
.hero .cta { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }
.fine a, .note a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.fine a:hover, .note a:hover { color: var(--ink); }
.stage { position: relative; margin: 52px auto 0; max-width: 1080px; }
.stage::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 18%; bottom: -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,107,129,.32), transparent 72%);
  filter: blur(40px);
}
.frame {
  border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; background: var(--panel);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.stage .hud-shot {
  position: absolute; left: 50%; bottom: -4%; width: 46%; transform: translateX(-50%); border: 1px solid var(--line-2);
  border-radius: 14px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.95);
}

/* Video in a frame */
.promo { position: relative; aspect-ratio: 16 / 9; }
.promo video { width: 100%; height: 100%; object-fit: cover; }
.promo-sound {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 9px 15px;
  font: 500 14px/1 "Inter", system-ui, sans-serif; color: #fff; cursor: pointer;
  background: rgba(0,0,0,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.promo-sound:hover { background: rgba(0,0,0,.75); }
.promo-sound svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .promo-sound { right: 10px; bottom: 10px; padding: 7px 12px; font-size: 13px; } }

/* Facts under the hero */
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 32px; margin-top: 88px; font-size: 14px; color: var(--ink-2); }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--accent); }

/* Sections */
.section { padding: 150px 0 0; }
.section-head { max-width: 600px; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin: 14px 0 0; color: var(--ink-2); font-size: 17px; }
.section-head.center { margin: 0 auto; }
.note { margin-top: 26px; color: var(--ink-3); font-size: 14px; }

/* Steps grid (animated minis) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.step .mini {
  height: 220px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  position: relative; overflow: hidden; padding: 18px;
}
.step h3 { margin: 20px 4px 6px; }
.step p { margin: 0 4px; color: var(--ink-2); font-size: 14.5px; }

/* mini 1: the capture panel */
.m-hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.m-hud span { display: grid; place-items: center; gap: 6px; padding: 12px 0 9px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); }
.m-hud span i { width: 22px; height: 15px; border: 1.5px solid var(--ink-2); border-radius: 3px; display: block; }
.m-hud span:nth-child(2) i { border-top-width: 4px; }
.m-hud span:nth-child(3) i { border-style: dashed; }
.m-hud span.on { color: var(--ink); border-color: rgba(255,107,129,.5); background: var(--accent-soft); animation: pick 6s ease-in-out infinite; }
.m-hud span.on i { border-color: var(--ink); }
.m-rec { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-rec .rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b52; box-shadow: 0 0 10px #ff3b52; animation: pulse 1.6s ease-in-out infinite; }
.m-rec kbd { font-size: 11px; }
.digits { display: inline-block; height: 1.2em; line-height: 1.2em; overflow: hidden; vertical-align: top; }
.digits span { display: block; animation: tick 10s steps(10) infinite; }
.digits span em { display: block; font-style: normal; height: 1.2em; }

/* mini 2: the camera follows the click */
.m-win { position: absolute; inset: 18px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.m-win .side { position: absolute; left: 0; top: 0; bottom: 0; width: 24%; border-right: 1px solid var(--line); }
.m-win .side i { display: block; height: 6px; border-radius: 3px; background: var(--line-2); margin: 14px 10px 0; }
.m-win .row { position: absolute; left: 30%; right: 8%; height: 8px; border-radius: 4px; background: var(--line); }
.m-win .save { position: absolute; right: 8%; top: 12px; background: #fff; color: #000; font-size: 10px; font-weight: 600; padding: 4px 9px; border-radius: 6px; }
.m-win .lens { position: absolute; border: 2px solid var(--accent); border-radius: 10px; box-shadow: 0 0 0 5px var(--accent-soft); animation: frame 9s cubic-bezier(.4,0,.2,1) infinite; }
.m-win .cursor { position: absolute; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 12px solid #fff; transform: rotate(-30deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); animation: cursor 9s cubic-bezier(.4,0,.2,1) infinite; }
.m-tag { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-2); background: rgba(0,0,0,.7); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* mini 3: captions */
.m-cap { height: 92px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); position: relative; }
.m-cap span { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap; background: rgba(255,255,255,.92); color: #000; font-weight: 500; font-size: 11.5px; padding: 5px 10px; border-radius: 999px; transition: opacity .35s, transform .35s; }
.m-cap span.out { opacity: 0; transform: translate(-50%, 5px); }
.m-lines { margin-top: 10px; display: grid; gap: 4px; }
.m-lines div { display: flex; gap: 10px; font-size: 11.5px; padding: 6px 9px; border-radius: 8px; color: var(--ink-3); white-space: nowrap; overflow: hidden; transition: background .4s, color .4s; }
.m-lines div b { font-weight: 500; font-variant-numeric: tabular-nums; }
.m-lines div.on { background: var(--panel-2); color: var(--ink); }

/* mini 4: export */
.m-out { display: grid; gap: 7px; }
.m-out div { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font-size: 12px; color: var(--ink-2); opacity: 0; animation: rise 6s ease-out infinite; }
.m-out div:nth-child(2) { animation-delay: .35s; }
.m-out div:nth-child(3) { animation-delay: .7s; }
.m-out em { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: #000; background: #fff; padding: 3px 7px; border-radius: 6px; min-width: 40px; text-align: center; }
.m-out kbd { margin-left: auto; font-size: 10.5px; color: var(--ink-3); }
.m-saved { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line-2); padding: 6px 11px; border-radius: 999px; white-space: nowrap; opacity: 0; animation: saved 6s ease-out infinite; }
.m-saved svg { width: 12px; height: 12px; color: var(--green); }

/* Bento */
.bento { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-top: 56px; }
.tile { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.tile .copy { padding: 28px 28px 0; }
.tile .copy h3 { font-size: 20px; }
.tile .copy p { color: var(--ink-2); margin: 8px 0 0; font-size: 15px; max-width: 460px; }
.tile .copy a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.tile .shot { margin: 26px 0 0 28px; border-top-left-radius: 12px; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; overflow: hidden; }
.tile .shot.full { margin: 26px 28px 28px; border: 1px solid var(--line-2); border-radius: 12px; }
.tile.wide { grid-column: 1 / -1; }
.tile .shot.crop { max-height: 520px; }
.tile .shot.crop img { width: 100%; }
.tile .shot video { width: 100%; height: auto; display: block; }
/* Copy beside the picture */
.tile.split { flex-direction: row; align-items: center; }
.tile.split .copy { flex: 0 0 40%; padding: 32px; }
.tile.split .fill { flex: 1; min-width: 0; margin: 0; padding: 32px 32px 32px 0; }
.tile .fill { margin-top: auto; padding: 26px 28px 28px; }

/* Guide mock inside a tile */
.g-doc { background: #fafafa; color: #111; border-radius: 12px; padding: 16px; display: grid; gap: 14px; }
.g-step { display: flex; gap: 12px; }
.g-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #111; color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.g-body { flex: 1; min-width: 0; }
.g-shot { height: 64px; border-radius: 8px; background: linear-gradient(180deg, #fff, #eef0f4); border: 1px solid #e3e4ea; position: relative; }
.g-shot b { position: absolute; left: 12px; height: 7px; border-radius: 4px; background: #dfe0e7; }
.g-shot .gb { position: absolute; right: 12px; top: 10px; font-size: 10px; font-weight: 600; background: #111; color: #fff; padding: 4px 9px; border-radius: 6px; }
.g-shot u { position: absolute; right: 6px; top: 4px; width: 52px; height: 30px; border: 2px solid var(--accent); border-radius: 9px; }
.g-cap { font-size: 12.5px; color: #444; margin-top: 7px; }
.g-cap b { color: #111; font-weight: 600; }
.g-fmt { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid #e6e6ea; padding-top: 12px; }
.g-fmt span { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #ececf0; color: #333; }

/* Device scenes */
.devices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.devices-grid figure { margin: 0; }
.devices-grid img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.devices-grid figcaption { margin-top: 9px; font-size: 13.5px; color: var(--ink-3); }

/* Detail grid */
.details { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.detail { padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.detail:nth-child(4n) { border-right: 0; }
.detail:nth-last-child(-n+4) { border-bottom: 0; }
.detail svg { width: 22px; height: 22px; color: var(--ink); opacity: .9; }
.detail h3 { margin: 18px 0 6px; }
.detail p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* Spec sheet */
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 56px; }
.spec-group { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 26px 28px 10px; }
.spec-group h3 { font-size: 13px; letter-spacing: .02em; color: var(--accent); margin-bottom: 8px; }
.spec-group dl { margin: 0; }
.spec-group dt { font-size: 15px; font-weight: 500; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.spec-group dt:first-child { border-top: 0; margin-top: 0; padding-top: 6px; }
.spec-group dd { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }

/* At-a-glance table */
.glance { margin-top: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden; }
.glance table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.glance caption { text-align: left; padding: 22px 26px 6px; font-size: 13px; color: var(--accent); }
.glance th, .glance td { text-align: left; vertical-align: top; padding: 14px 26px; border-top: 1px solid var(--line); }
.glance tr:first-child th, .glance tr:first-child td { border-top: 0; }
.glance th { width: 200px; font-weight: 500; color: var(--ink); }
.glance td { color: var(--ink-2); }
.glance a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 14px; margin-top: 56px; }
.plan { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--line-2); background: linear-gradient(180deg, #121217, var(--panel)); position: relative; }
.plan.featured::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 40% at 50% 0%, var(--accent-soft), transparent 70%); }
.plan .tag { align-self: flex-start; }
.plan h3 { margin-top: 20px; font-size: 18px; }
.plan .price { font-size: 48px; font-weight: 500; letter-spacing: -0.04em; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; color: var(--ink-3); letter-spacing: 0; font-weight: 400; }
.plan .note-line { color: var(--ink-2); font-size: 14px; margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; font-size: 14.5px; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23f5f5f7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; border: 1px solid var(--line-2); }
.plan .btn { margin-top: auto; width: 100%; position: relative; }
.plan .fine { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin: 56px auto 0; display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; max-width: 700px; }
.faq details a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* Maker and privacy */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 56px; }
.card { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 30px; }
.card h3 { font-size: 22px; letter-spacing: -0.025em; }
.card p { color: var(--ink-2); font-size: 15px; margin: 12px 0 0; }
.card p a, .rows a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.card.wide { grid-column: 1 / -1; }
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; font-size: 13px; color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.chips a:hover { color: var(--ink); }
.rows { display: grid; font-size: 14.5px; }
.rows div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows div:first-child { border-top: 0; padding-top: 0; }
.rows span:first-child { color: var(--ink-3); }
.rows span:last-child { text-align: right; }

/* Closer */
.closer { padding: 170px 0 150px; text-align: center; }
.closer img { width: 88px; height: 88px; margin: 0 auto 28px; }
.closer p { color: var(--ink-2); margin: 14px auto 30px; font-size: 17px; max-width: 560px; }
.closer .fine { margin: 16px auto 0; font-size: 13.5px; color: var(--ink-3); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--ink-3); font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.footer a:hover { color: var(--ink); }

/* Document pages (privacy, support, changelog, compare, use cases, guides, 404) */
.doc { max-width: 760px; padding: 90px 0 140px; }
.doc.wide { max-width: var(--wrap); }
.doc h1 { font-size: clamp(38px, 6vw, 52px); margin: 18px 0 10px; }
.doc .lede { font-size: 18px; color: var(--ink-2); margin: 0 0 8px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 48px 0 10px; }
.doc h3 { margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong, .doc b { color: var(--ink); font-weight: 500; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.doc a:hover { text-decoration-color: var(--ink-3); }
.doc a.btn { text-decoration: none; }
.doc a.btn-light { color: #000; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.doc img, .doc video { border-radius: 12px; border: 1px solid var(--line-2); }
.doc figure { margin: 28px 0; }
.doc figcaption { color: var(--ink-3); font-size: 13.5px; margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 20px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); font-weight: 500; }
.doc td { color: var(--ink-2); }
.doc .box { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 22px 24px; margin: 24px 0; }
.doc .box > :first-child { margin-top: 0; }
.doc .box > :last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc ul { padding-left: 22px; margin: 10px 0 16px; }
.doc li { margin-top: 7px; }
.doc li::marker { color: var(--ink-3); }
.doc code { white-space: normal; overflow-wrap: anywhere; }
.doc .updated, .doc .meta { color: var(--ink-3); font-size: 13.5px; margin: 0 0 34px; }

/* Guides (/guides/ and each guide): breadcrumb pill, numbered steps, tips, cards, closing CTA */
.doc .crumbs { flex-wrap: wrap; }
.doc .crumbs a { color: var(--ink-2); text-decoration: none; }
.doc .crumbs a:hover { color: var(--ink); }
.doc .lede + .meta { margin-top: 14px; }
.doc .step { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc .step .n { font: 600 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: var(--accent); }
.doc .step h2 { margin: 12px 0 10px; }
.doc .step p { margin: 1em 0; font-size: inherit; } /* undo the landing's .step p */
.doc .step h3 { margin: 28px 0 6px; }
.doc .tip, .doc .step .tip { margin: 16px 0 0; padding: 14px 18px; font-size: 14.5px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--panel); }
.doc .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.doc a.card { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 16px; text-decoration: none; transition: border-color .15s, background .15s; }
.doc a.card:hover { border-color: var(--line-2); background: var(--panel-2); }
.doc .card b { font-size: 17px; letter-spacing: -0.015em; line-height: 1.35; }
.doc .card span { color: var(--ink-2); font-size: 14.5px; }
.doc .more { margin-top: 48px; display: grid; gap: 8px; }
.doc .more b { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.doc .guide-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 56px; }
.doc .guide-cta p { margin-bottom: 0; font-size: 14.5px; }
@media (max-width: 640px) {
  .doc { padding: 56px 0 100px; }
  .doc .crumbs .here { display: none; }
  .doc .cards { grid-template-columns: 1fr; }
  .doc .guide-cta .btn { width: 100%; }
}

/* Beside the notch: a menu bar with the live piggy (the app's NotchPiggy, in SVG) */
.notch-demo { margin-top: 56px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--panel); }
.nd-bar { position: relative; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(255,255,255,.04); font-size: 17px; color: var(--ink-2); }
.nd-menus, .nd-status { display: flex; align-items: center; gap: 20px; }
.nd-menus b { width: 18px; height: 21px; border-radius: 4px 4px 6px 6px; background: var(--ink-2); }
.nd-menus i, .nd-status i { font-style: normal; }
.nd-menus i:first-of-type { color: var(--ink); font-weight: 600; }
.nd-ico { width: 21px; height: 21px; border-radius: 4px; background: var(--line-2); }
.nd-notch { position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); display: flex; }
.nd-gap { width: 240px; background: #000; border-radius: 0 0 22px 22px; }
.nd-wing { background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: width .45s cubic-bezier(.2,.7,.2,1); }
.nd-left { width: 0; border-radius: 0 0 0 14px; margin-right: -14px; padding-right: 14px; box-sizing: content-box; gap: 9px; color: #fff; font: 500 20px/1 "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.nd-right { width: 76px; border-radius: 0 0 14px 0; margin-left: -14px; padding-left: 14px; box-sizing: content-box; position: relative; }
.nd-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff3b52; flex: none; animation: pulse 1s steps(2) infinite; }
.nd-left { justify-content: center; }
.piggy { width: 52px; height: 48px; transition: opacity .3s, transform .3s; }
.nd-controls { position: absolute; inset: 0 0 0 14px; display: flex; align-items: center; justify-content: center; gap: 9px; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; }
.nd-pause, .nd-stop { width: 36px; height: 36px; border-radius: 50%; position: relative; }
.nd-pause { background: rgba(255,255,255,.18); }
.nd-pause::before, .nd-pause::after { content: ""; position: absolute; top: 11px; width: 4px; height: 14px; border-radius: 1px; background: #fff; left: 12px; }
.nd-pause::after { left: 20px; }
.nd-stop { background: #ff3b52; }
.nd-stop::before { content: ""; position: absolute; left: 12px; top: 12px; width: 12px; height: 12px; border-radius: 2px; background: #fff; }
.nd-rec, .nd-count { display: none; align-items: center; gap: 9px; }
.notch-demo.rec .nd-rec, .notch-demo.count .nd-count { display: inline-flex; }
.nd-ring { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #ff3b52; box-sizing: border-box; }
.nd-num { display: inline-block; min-width: 12px; animation: nd-tick 1s ease-out infinite; }
@keyframes nd-tick { 0% { transform: scale(1.35); opacity: .4; } 25%, 100% { transform: none; opacity: 1; } }
.nd-cancel { position: absolute; inset: 0 0 0 14px; margin: auto; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; }
.nd-cancel::before, .nd-cancel::after { content: ""; position: absolute; left: 15px; top: 9px; width: 2px; height: 14px; border-radius: 1px; background: #fff; transform: rotate(45deg); }
.nd-cancel::after { transform: rotate(-45deg); }
.notch-demo.count .nd-left { width: 76px; }
.notch-demo.count .piggy { opacity: 0; transform: scale(.6); }
.notch-demo.count .nd-cancel { opacity: 1; transform: none; }
.notch-demo.rec .nd-left { width: 104px; }
.notch-demo.rec .nd-right { width: 92px; }
.notch-demo.rec .piggy { opacity: 0; transform: scale(.6); }
.notch-demo.rec .nd-controls { opacity: 1; transform: none; }
.nd-screen { height: 160px; background:
  radial-gradient(60% 90% at 20% 0%, rgba(255,107,129,.20), transparent 60%),
  radial-gradient(50% 80% at 90% 100%, rgba(255,154,107,.14), transparent 60%),
  linear-gradient(180deg, #0f0f12, #08080a); }

/* The piggy's life: breathing, an ear twitch each side, a blink, a double sniff */
.pg-body { transform-box: view-box; transform-origin: 12px 19.5px; animation: pg-breathe 3.2s ease-in-out infinite; }
.pg-ear { transform-box: view-box; }
.pg-ear-l { transform: translate(6.3px, 8.2px) rotate(-8deg); animation: pg-ear-l 4s infinite; }
.pg-ear-r { transform: translate(17.7px, 8.2px) rotate(8deg); animation: pg-ear-r 4s 2s infinite; }
.pg-eye { transform-box: fill-box; transform-origin: center; animation: pg-blink 5s infinite; }
.pg-snout { transform-box: fill-box; transform-origin: center; animation: pg-sniff 7s 3s infinite; }
@keyframes pg-breathe { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-.6px) scale(1.015, 1.03); } }
@keyframes pg-ear-l { 0%, 9%, 100% { transform: translate(6.3px, 8.2px) rotate(-8deg); } 4.4% { transform: translate(6.3px, 8.2px) rotate(-24deg); } }
@keyframes pg-ear-r { 0%, 9%, 100% { transform: translate(17.7px, 8.2px) rotate(8deg); } 4.4% { transform: translate(17.7px, 8.2px) rotate(24deg); } }
@keyframes pg-blink { 0%, 96.8%, 100% { transform: scaleY(1); } 98.4% { transform: scaleY(.15); } }
@keyframes pg-sniff { 0%, 2.6%, 3.6%, 6.2%, 100% { transform: scale(1, 1); } 1.3%, 4.9% { transform: scale(1.1, .94); } }
@media (max-width: 640px) {
  .nd-menus i:not(:first-of-type), .nd-status i:not(:last-child) { display: none; }
  .nd-gap { width: 110px; }
  .nd-bar { padding: 0 14px; height: 64px; font-size: 15px; }
  .piggy { width: 42px; height: 39px; }
  .nd-right { width: 60px; }
  .notch-demo.rec .nd-left { width: 84px; }
  .notch-demo.rec .nd-right { width: 84px; }
  .nd-left { font-size: 16px; }
  .nd-screen { height: 110px; }
}

/* "Used by piggies at": a parody of the logo strip under a hero */
.piggies { margin-top: 72px; text-align: center; }
.piggies-label { margin: 0 0 22px; font-size: 13px; color: var(--ink-3); }
.piggies-strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.piggies-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; gap: 56px; animation: piggies-scroll 48s linear infinite; }
.piggies-strip:hover .piggies-track { animation-play-state: paused; }
.pg-co { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; letter-spacing: -0.02em; color: #8f8f99; white-space: nowrap; transition: color .2s; }
.pg-co:hover { color: var(--ink); }
.pg-mark { display: inline-flex; width: 24px; height: 24px; }
.pg-mark svg { width: 100%; height: 100%; }
.pg-co.w500 { font-weight: 500; } .pg-co.w600 { font-weight: 600; } .pg-co.w700 { font-weight: 700; } .pg-co.w800 { font-weight: 800; }
.pg-co.serif { font-family: ui-serif, Georgia, serif; letter-spacing: 0; }
.pg-co.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 18px; letter-spacing: 0; }
.pg-co.italic { font-style: italic; }
.pg-co.caps { text-transform: uppercase; font-size: 17px; letter-spacing: .08em; }
.pg-co.lower { text-transform: lowercase; }
.pg-co.round { border-radius: 999px; }
.piggies-fine { margin: 18px 0 0; font-size: 11.5px; color: var(--ink-3); opacity: .7; }
@keyframes piggies-scroll { to { transform: translateX(calc(-50% - 28px)); } }
@media (max-width: 640px) { .piggies { margin-top: 56px; } .pg-co { font-size: 18px; } .piggies-track { gap: 40px; } }

/* Motion */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes tick { from { transform: translateY(0); } to { transform: translateY(-12em); } }
@keyframes pick { 0%, 15% { background: var(--panel-2); border-color: var(--line); } 25%, 100% { background: var(--accent-soft); border-color: rgba(255,107,129,.5); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(6px); } 12%, 88% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }
@keyframes saved { 0%, 40% { opacity: 0; transform: translate(-50%, 6px); } 52%, 90% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
@keyframes frame { 0%, 24% { left: 58%; top: 6%; width: 38%; height: 30%; } 34%, 58% { left: 28%; top: 38%; width: 50%; height: 28%; } 68%, 92% { left: 2%; top: 6%; width: 24%; height: 50%; } 100% { left: 58%; top: 6%; width: 38%; height: 30%; } }
@keyframes cursor { 0%, 26% { left: 80%; top: 18%; } 32%, 59% { left: 50%; top: 50%; } 66%, 93% { left: 12%; top: 30%; } 100% { left: 80%; top: 18%; } }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
  .reveal.on { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .m-out div, .m-saved { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .steps, .details { grid-template-columns: repeat(2, 1fr); }
  .detail:nth-child(4n) { border-right: 1px solid var(--line); }
  .detail:nth-child(2n) { border-right: 0; }
  .detail:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .detail:nth-last-child(-n+2) { border-bottom: 0; }
  .bento, .spec, .about { grid-template-columns: 1fr; }
  .tile.split { flex-direction: column; align-items: stretch; }
  .tile.split .copy { padding: 28px 28px 0; }
  .tile.split .fill { padding: 26px 28px 28px; }
  .devices-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .hero { padding-top: 70px; }
  .hero .lede { font-size: 17px; }
  .stage { margin-top: 56px; }
  .stage .hud-shot { display: none; }
  .section { padding-top: 110px; }
  .steps, .details, .plans { grid-template-columns: 1fr; }
  .detail { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .detail:last-child { border-bottom: 0 !important; }
  .glance th, .glance td { display: block; width: auto; padding: 4px 22px; border: 0; }
  .glance th { padding-top: 16px; border-top: 1px solid var(--line); }
  .glance tr:first-child th { border-top: 0; }
  .glance td { padding-bottom: 14px; }
  .rows div { flex-direction: column; gap: 2px; }
  .rows span:last-child { text-align: left; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
