/* CopyShot site. Same palette as the extension (src/ui/tokens.css), light and dark.
   Type: Geist, self-hosted (fonts/, SIL OFL), so the site makes no font requests to anyone.
   Spacing: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96. Motion: one curve, --ease. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f5fb;
  --raised: #ffffff;
  --border: #e6e4f0;
  --text: #16161e;
  --muted: #5f5e70;
  --faint: #9998a8;
  --accent: #6355f6;
  --accent-hover: #5446ea;
  --accent-soft: rgba(99, 85, 246, 0.1);
  --glow: rgba(99, 85, 246, 0.16);
  --shadow: rgba(40, 30, 120, 0.3);
  --on-accent: #fff;
  --radius: 16px;
  --font: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cs-demo-border: var(--border);
}
/* Dark: follows the system, unless the nav toggle forces a theme (data-theme on <html>) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111116;
    --surface: #18181f;
    --raised: #1e1e26;
    --border: #2a2a34;
    --text: #ececf1;
    --muted: #a3a2b2;
    --faint: #6f6e7d;
    --accent: #7d70ff;
    --accent-hover: #9085ff;
    --accent-soft: rgba(125, 112, 255, 0.15);
    --glow: rgba(125, 112, 255, 0.2);
    --shadow: rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111116;
  --surface: #18181f;
  --raised: #1e1e26;
  --border: #2a2a34;
  --text: #ececf1;
  --muted: #a3a2b2;
  --faint: #6f6e7d;
  --accent: #7d70ff;
  --accent-hover: #9085ff;
  --accent-soft: rgba(125, 112, 255, 0.15);
  --glow: rgba(125, 112, 255, 0.2);
  --shadow: rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
kbd { display: inline-block; min-width: 24px; padding: 0 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--raised); color: var(--muted); font: 500 12px/20px var(--font); text-align: center; }
code { padding: 2px 6px; border-radius: 6px; background: var(--surface); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 30; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* --- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 12px; font: 600 16px/24px var(--font); text-decoration: none; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.5s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); transition-duration: 0.2s; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 24px -10px var(--accent); }
.btn.primary:hover { background: var(--accent-hover); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 16px 32px -12px var(--accent); }
.btn.ghost { color: var(--text); border-color: var(--border); background: var(--raised); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; line-height: 20px; }
.btn.large { height: 56px; padding: 0 32px; font-size: 18px; line-height: 28px; }

/* --- header: a compact bar floating off the top edge */
.nav { position: sticky; top: 12px; z-index: 10; display: flex; align-items: center; gap: 24px; width: min(1180px, calc(100% - 32px)); margin: 12px auto 0; padding: 8px 8px 8px 16px; border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { color: var(--muted); font-weight: 500; font-size: 14px; text-decoration: none; transition: color 0.3s var(--ease); }
.nav nav a:hover { color: var(--text); }
.nav .btn.small { height: 36px; border-radius: 8px; }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -16px; border: 1px solid var(--border); border-radius: 8px; background: var(--raised); color: var(--muted); cursor: pointer; transition: color 0.3s var(--ease); }
.theme-toggle:hover { color: var(--text); }
.theme-toggle .moon, :root[data-dark] .theme-toggle .sun { display: none; }
:root[data-dark] .theme-toggle .moon { display: block; }

/* --- hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 64px 24px 48px; }
/* ambient light behind the demo, so the window sits in the page instead of on it */
.hero::before { content: ""; position: absolute; z-index: -1; right: -8%; top: 0; width: 70%; height: 110%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-weight: 500; font-size: 16px; line-height: 24px; }
.kicker { margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: 14px; line-height: 20px; }
h1 { margin: 0 0 24px; font: 600 clamp(48px, 6.2vw, 72px)/1 var(--font); letter-spacing: -0.045em; }
.grad { background: linear-gradient(100deg, #8b7bff, #5642e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grad { background-image: linear-gradient(100deg, #c2b9ff, #7d70ff); } }
:root[data-theme="dark"] .grad { background-image: linear-gradient(100deg, #c2b9ff, #7d70ff); }
.lede { margin: 0 0 32px; max-width: 32em; color: var(--muted); font-size: 18px; line-height: 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.promises { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 20px; }
.promises li { display: inline-flex; align-items: center; gap: 8px; }
.tick { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); }
.tick::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hero-demo { display: grid; justify-items: center; gap: 16px; }
.demo-host { width: 100%; display: grid; justify-items: center; }
.demo-host .cs-demo { box-shadow: 0 40px 80px -32px var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--raised); }
.chips button { padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px/20px var(--font); cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.chips button:hover { color: var(--text); }
.chips button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }

/* --- sections */
.section { max-width: 1180px; margin: 0 auto; padding: 96px 24px; }
.section h2 { margin: 0 0 48px; max-width: 18em; font: 600 clamp(36px, 4vw, 48px)/1.08 var(--font); letter-spacing: -0.035em; }
.section h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; line-height: 28px; letter-spacing: -0.01em; }
.section p { color: var(--muted); }
.sub { max-width: 30em; margin: -32px 0 0; font-size: 18px; line-height: 28px; }

/* --- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 12px 12px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--raised); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.steps li:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px var(--shadow); }
.steps img { display: block; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 24px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.steps .n { display: block; padding: 0 12px; margin-bottom: 4px; color: var(--accent); font-weight: 600; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.steps h3, .steps p { padding: 0 12px; }
.steps p { margin: 0; font-size: 16px; line-height: 24px; }

/* --- features: an editorial list, heading held on the left */
.features { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.features-head { position: sticky; top: 112px; }
.features-head h2 { margin-bottom: 48px; }
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.rows li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--border); }
.rows p { margin: 0; color: color-mix(in srgb, var(--muted) 55%, var(--text)); }
/* shortcuts: a quiet detail under the description, not keycaps competing with the name */
.rows .keys { grid-column: 2; display: flex; align-items: center; color: var(--muted); font-size: 13px; line-height: 20px; }
.rows .keys kbd { min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.rows .keys kbd + kbd::before { content: "+"; margin: 0 6px; color: var(--faint); }
.ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); transition: transform 0.5s var(--ease); }
.rows li:hover .ico { transform: scale(1.08) rotate(-4deg); }

/* --- splits */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
.split h2 { margin-bottom: 24px; }
.split .shot { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 40px 80px -36px var(--shadow); }
.popup-shot { position: relative; justify-self: center; }
.popup-shot::before { content: ""; position: absolute; z-index: -1; inset: -20%; background: radial-gradient(closest-side, var(--glow), transparent); }
.popup-shot img { display: block; width: 340px; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 40px 80px -36px var(--shadow); }
.ticks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--text); }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* --- private */
.private { border-radius: 24px; background: var(--surface); padding: 64px; max-width: 1132px; }
.private .sub { max-width: 36em; margin-bottom: 48px; }
.promise-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.promise-row .ico { margin-bottom: 16px; background: var(--raised); }
.promise-row p { margin: 0; }
.more { margin: 48px 0 0; }

/* --- FAQ */
.faq-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; line-height: 28px; transition: color 0.3s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; color: var(--faint); transition: transform 0.5s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: -8px 0 24px; max-width: 36em; }

/* --- final CTA (also the install section) */
.final-card { position: relative; overflow: hidden; display: grid; justify-items: center; padding: 96px 32px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); text-align: center; isolation: isolate; }
.final-card::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--glow), transparent); }
.final h2 { margin: 0 auto 16px; max-width: 13em; font-size: clamp(40px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.045em; }
.final-card > p { margin: 0 0 32px; font-size: 20px; line-height: 28px; }
.final .fine { margin: 16px 0 0; color: var(--faint); font-size: 14px; line-height: 20px; }
.github-install { max-width: 560px; margin-top: 48px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--raised); text-align: left; }
.github-install[hidden] { display: none; }
.store-note { margin: 0 0 12px; }
.howto { margin: 0; padding-left: 24px; display: grid; gap: 8px; color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; max-width: 1180px; margin: 0 auto; padding: 32px 24px 48px; border-top: 1px solid var(--border); }
.foot nav { display: flex; gap: 24px; margin-left: auto; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.3s var(--ease); }
.foot nav a:hover { color: var(--text); }
.foot .legal { flex-basis: 100%; margin: 8px 0 0; text-align: center; color: var(--faint); font-size: 14px; }
main + .foot { margin-top: 48px; }
@media (max-width: 920px) { .foot nav { flex-wrap: wrap; margin-left: 0; } }

/* --- policy and support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); }
.doc h2 { margin: 48px 0 12px; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--muted); }
.doc .updated { color: var(--faint); font-size: 14px; }

@media (max-width: 920px) {
  .hero, .split, .split.reverse, .features, .faq-section { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 48px; }
  .hero::before { right: -30%; top: 30%; width: 130%; height: 80%; }
  .features-head { position: static; }
  .steps, .promise-row { grid-template-columns: 1fr; }
  .promise-row { gap: 32px; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .section { padding: 64px 16px; }
  .private .sub { margin-bottom: 32px; }
  .private { margin: 0 16px; padding: 48px 24px; }
  .final-card { padding: 64px 24px; }
  .sub { margin-top: -24px; }
  .section h2 { margin-bottom: 32px; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; }
  .theme-toggle { margin-left: -4px; }
}

/* ------------------------------------------------------------------ load-in + scroll reveals
   The hero arrives once on load (about 0.9 s). Below the fold, things reveal once as they scroll in.
   Every hidden starting state is scoped to html.motion, which an inline <head> script sets before
   first paint unless the visitor prefers reduced motion, so without it the page is simply static. */
.mask-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.06em 0.16em; margin: 0 -0.06em -0.16em; }
.mask-word > span { display: inline-block; transform-origin: 0 100%; }

.motion .nav { animation: intro-drop 0.5s var(--ease) both; }
.motion .eyebrow { animation: intro-up 0.5s var(--ease) 0.05s both; }
.motion .hero .mask-word > span { animation: intro-rise 0.7s var(--ease) 0.1s both; }
.motion .hero h1 .grad { display: inline-block; padding-bottom: 0.16em; margin-bottom: -0.16em; animation: intro-wipe 0.6s var(--ease) 0.25s both; }
.motion .hero .lede { animation: intro-up 0.5s var(--ease) 0.35s both; }
.motion .hero .ctas > * { animation: intro-up 0.5s var(--ease) 0.42s both; }
.motion .hero .ctas > :nth-child(2) { animation-delay: 0.48s; }
.motion .promises li { animation: intro-up 0.45s var(--ease) both; }
.motion .promises li:nth-child(1) { animation-delay: 0.55s; }
.motion .promises li:nth-child(2) { animation-delay: 0.6s; }
.motion .promises li:nth-child(3) { animation-delay: 0.65s; }
.motion .promises .tick::after { animation: intro-check 0.3s var(--ease) both; }
.motion .promises li:nth-child(1) .tick::after { animation-delay: 0.7s; }
.motion .promises li:nth-child(2) .tick::after { animation-delay: 0.75s; }
.motion .promises li:nth-child(3) .tick::after { animation-delay: 0.8s; }
.motion .hero-demo { animation: intro-demo 0.9s var(--ease) 0.2s both; }
.motion .hero::before { animation: intro-fade 1.2s var(--ease) 0.2s both; }

@keyframes intro-drop { from { opacity: 0; transform: translateY(-12px); } }
@keyframes intro-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes intro-fade { from { opacity: 0; } }
@keyframes intro-rise { from { transform: translateY(110%) rotate(4deg); } }
@keyframes intro-wipe { from { clip-path: inset(-10% 100% -25% 0); } to { clip-path: inset(-10% -2% -25% 0); } }
@keyframes intro-check { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes intro-demo { from { opacity: 0; transform: translateY(32px) scale(0.97); } }

/* below the fold: rise 32px and fade, once */
.motion .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.motion .reveal.is-in { opacity: 1; transform: none; }
/* h2s reveal through their words, the hero's motif */
.motion .section h2.reveal { opacity: 1; transform: none; }
.motion .section h2:not(.is-in) .mask-word > span { transform: translateY(110%); }
.motion .section h2.is-in .mask-word > span { animation: intro-rise 0.6s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }