/* ============================================================================
   overlaysmith.com - one stylesheet for every page.

   Same tokens as the extension's tokens.css (colour roles, AA-checked text
   tokens, the bundled faces). Fonts are served from this site, never from a
   font service: a product whose pitch is "nothing phones home" should not have
   a website that does. Licences: /assets/fonts/OFL-*.txt.
   ========================================================================== */

@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/Archivo-ExtraBold.woff") format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-Regular.woff") format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-Medium.woff") format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-SemiBold.woff") format("woff"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/IBMPlexMono-Regular.woff") format("woff"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/IBMPlexMono-Medium.woff") format("woff"); }

:root {
  color-scheme: light dark;
  --bg: #F7F8F9; --surface: #FFFFFF; --line: #E2E6EA; --line-soft: #EDF0F2;
  --text: #14181C; --text-dim: #5A646E; --text-faint: #68727D;
  --forge: #C2751A; --forge-bright: #E4922B; --forge-wash: rgba(194,117,26,.09);
  --rust-text: #B14A25; --moss: #2F6B4C;
  --ink: #0E1114;
  --display: Archivo, "Helvetica Neue", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1040px;
}
/* Dark palette, twice on purpose - keep the two blocks identical.
   1) the visitor chose dark with the switch (theme.js sets data-theme);
   2) no choice saved, and the system is dark.
   CSS cannot share one block between a selector and a media query. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1114; --surface: #141A20; --line: #232A32; --line-soft: #1E252C;
  --text: #E6E9EC; --text-dim: #A7B0BA; --text-faint: #8D97A1;
  --forge: #E4922B; --forge-wash: rgba(228,146,43,.12);
  --rust-text: #F0A184; --moss: #6FBF92;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1114; --surface: #141A20; --line: #232A32; --line-soft: #1E252C;
    --text: #E6E9EC; --text-dim: #A7B0BA; --text-faint: #8D97A1;
    --forge: #E4922B; --forge-wash: rgba(228,146,43,.12);
    --rust-text: #F0A184; --moss: #6FBF92;
  }
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--sans);          /* brand guide: body 15/1.6 on the site */
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
/* Amber type is for mono labels and display headlines only (brand guide) -
   so links in prose are text-coloured with an amber underline. */
p a, li a, dd a { color: var(--text); text-decoration-color: var(--forge); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
p a:hover, li a:hover, dd a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 2px solid var(--forge); outline-offset: 3px; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 720px; }   /* same left edge as wide sections, capped content */

/* ---- type ---------------------------------------------------------------- */
.eyebrow {
  font: 500 11px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow.amber { color: var(--forge); }     /* guide: amber type for mono eyebrows only */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.028em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(38px, 6.4vw, 66px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: 0; line-height: 1.35; }
.lede { font-size: 18px; line-height: 1.6; color: var(--text-dim); max-width: 600px; }
.dim { color: var(--text-dim); }
.mono { font-family: var(--mono); }

/* ---- wordmark: the amber "smith" split is for the site and store only ----- */
.wordmark { font: 800 20px/1 var(--display); letter-spacing: -.03em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark b { font-weight: 800; color: var(--forge); }
.mark { width: 26px; height: 26px; flex: none; }

/* ---- header / nav ---------------------------------------------------------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; font-size: 14px; color: var(--text-dim); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
/* The install button became a real link at launch (was a span): keep the
   nav-link colour off it, or it reads dim-on-dark. */
.site-nav a.btn, .site-nav a.btn:hover { color: var(--bg); }
@media (max-width: 640px) { .site-nav a:not(.btn) { display: none; } }
/* Phones: the header keeps only the wordmark and the theme switch - the same
   install button sits directly below in the hero, and all three won't fit. */
@media (max-width: 480px) { .site-nav .btn { display: none; } }

/* ---- light/dark switch (theme.js) ------------------------------------------ */
/* Hidden until theme.js runs, so no-JS visitors never see a dead control. */
.theme-switch { display: none; }
.js .theme-switch {
  display: inline-flex; align-items: center; flex: none;
  position: relative; width: 46px; height: 26px; padding: 0 3px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--line-soft); cursor: pointer;
}
.theme-switch .knob {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); box-shadow: 0 1px 2px rgba(14,17,20,.25);
  transition: transform .18s ease;
}
.theme-switch[aria-checked="true"] .knob { transform: translateX(20px); }
.theme-switch svg { width: 12px; height: 12px; }
.theme-switch .sun { fill: var(--forge); stroke: var(--forge); }
.theme-switch .moon { fill: var(--text); }
.theme-switch[aria-checked="true"] .sun,
.theme-switch[aria-checked="false"] .moon { display: none; }
@media (prefers-reduced-motion: reduce) { .theme-switch .knob { transition: none; } }

/* ---- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--sans); text-decoration: none;
  padding: 12px 18px; border-radius: 8px;
  background: var(--text); color: var(--bg); border: 1px solid var(--text);
}
.btn:hover { opacity: .88; }
.btn.small { padding: 9px 13px; font-size: 13px; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--line-soft); opacity: 1; }
/* Pre-listing state: the site must be live before the store listing exists
   (the store asks for the privacy URL at submission). Swap these for the real
   Chrome Web Store link once approved - search the pages for "cws-link". */
.btn.soon { cursor: default; background: transparent; color: var(--text-dim); border: 1px dashed var(--line); }
.btn.soon:hover { opacity: 1; }

/* ---- sections --------------------------------------------------------------- */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.section-head { margin-bottom: 32px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head p { margin: 12px 0 0; }

/* ---- hero ------------------------------------------------------------------- */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-figure { margin: 0; }
/* On a phone the picture belongs under the headline, not a scroll below the
   buttons. The text column steps aside (display: contents) so its pieces join
   the grid directly and can be ordered around the figure: eyebrow and
   headline first, then the picture, then everything else. Desktop is
   unaffected - the two columns stay as they are. */
@media (max-width: 860px) {
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > * { order: 3; }
  .hero-copy > .eyebrow, .hero-copy > h1 { order: 1; }
  .hero-figure { order: 2; margin: 4px 0 28px; }
}
.hero h1 { margin: 16px 0 18px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li {
  font: 500 12px/1 var(--mono); color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; background: var(--surface);
}
.fine { font-size: 13px; color: var(--text-faint); margin: 0; }

/* The demo frame: a drawn stand-in for a camera frame - no stock photo.
   Shows exactly what the product sends: your camera, one full-frame image
   whose transparency places it, and (free version) the small mark. */
.frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  /* a drawn head-and-shoulders at webcam framing. Since the photo pass the
     hero and every gallery tile cover it with an image; it stays as the
     fallback while an image loads, and for any frame without one. */
  background:
    radial-gradient(ellipse 9.3% 22% at 50% 41%, #7d6b60 0 97%, transparent 100%),
    radial-gradient(ellipse 5.5% 12% at 50% 62%, #6a5a50 0 97%, transparent 100%),
    radial-gradient(ellipse 34% 30% at 50% 100%, #3e5667 0 98%, transparent 100%),
    radial-gradient(ellipse 60% 70% at 50% 35%, #cfc8c1 0%, #aaa29b 100%);
  box-shadow: 0 1px 0 var(--line), 0 18px 50px -18px rgba(14,17,20,.45);
  container-type: inline-size;   /* sizes below are in cqw: fractions of this frame, like the product's */
}
.frame .wm {
  position: absolute; top: 2.4%; left: 50%; transform: translateX(-50%);
  font: 600 2.1cqw/1 var(--sans); color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.38); border-radius: 999px; padding: .5em 1em; white-space: nowrap;
}
/* The typed lower third, at the generator's real proportions: inside the
   inner safe zone, 7% off the bottom. Slanted bars, never pills - the pill is
   our mark's shape, and the user's content must not look related to it. */
.frame .lt { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.frame .lt span { display: table; margin: 0 auto; clip-path: polygon(.45em 0, 100% 0, calc(100% - .45em) 100%, 0 100%); }
.frame .lt .t { background: #1F4E8C; color: #fff; font: 800 2.55cqw/1 var(--display); letter-spacing: -.01em; padding: .24em .95em; }
.frame .lt .s { background: rgba(14,17,20,.75); color: #ECEEF0; font: 500 1.5cqw/1 var(--sans); padding: .3em 1.05em; margin-top: .35em; }
.frame .zone { position: absolute; top: 0; bottom: 0; border-left: 1px dashed; border-right: 1px dashed; pointer-events: none; }
.frame .zone.inner { left: 34.18%; right: 34.18%; border-color: rgba(228,146,43,.95); }
.frame-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font: 400 12px/1.4 var(--mono); color: var(--text-faint); }

/* ---- numbers ------------------------------------------------------------------ */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (max-width: 760px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
.numbers div { background: var(--surface); padding: 22px 20px; }
.numbers strong { display: block; font: 800 34px/1 var(--display); letter-spacing: -.03em; margin-bottom: 8px; }
.numbers span { font-size: 13.5px; color: var(--text-dim); line-height: 1.45; display: block; }

/* ---- cards / steps --------------------------------------------------------------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card .eyebrow { display: block; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 14.5px; }
.card li { margin: 4px 0; }

/* ---- "does not" list -------------------------------------------------------------- */
.nots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
@media (max-width: 720px) { .nots { grid-template-columns: 1fr; } }
.nots li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 12px; }
.nots li::before { content: "—"; color: var(--forge); font-family: var(--mono); flex: none; }
.nots strong { font-weight: 600; }

/* ---- platforms ------------------------------------------------------------------------ */
.plat { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.plat th, .plat td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.plat th { font: 500 11px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint); }
.plat td:first-child { font-weight: 600; white-space: nowrap; }
.plat .no td:first-child { color: var(--text-dim); }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }

/* ---- pricing ----------------------------------------------------------------------- */
.price { font: 800 44px/1 var(--display); letter-spacing: -.03em; margin: 6px 0 4px; }
.price small { font: 500 14px var(--sans); letter-spacing: 0; color: var(--text-dim); }
.card.feature { border-color: var(--forge); box-shadow: 0 0 0 .5px var(--forge); }

/* ---- document pages (privacy, terms, support) ---------------------------------------------- */
.doc { padding: 56px 0 24px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin: 14px 0 10px; }
.doc .meta { font: 400 12px/1.5 var(--mono); color: var(--text-faint); margin: 0 0 32px; }
.short {
  background: var(--forge-wash); border: 1px solid color-mix(in srgb, var(--forge) 35%, transparent);
  border-radius: 10px; padding: 18px 20px; margin: 0 0 40px; font-size: 15px;
}
.short strong { font-weight: 600; }
.doc h2 { font: 600 18px/1.3 var(--sans); letter-spacing: 0; margin: 40px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.doc h2 .n { font: 500 11px/1 var(--mono); letter-spacing: .13em; color: var(--forge); }
.doc p { margin: 0 0 12px; color: var(--text-dim); }
.doc p strong, .doc dt, .doc li strong { color: var(--text); font-weight: 600; }
.doc ul { margin: 0 0 12px; padding-left: 20px; color: var(--text-dim); }
.doc li { margin: 6px 0; }
.doc dl { margin: 0; }
.doc dt { margin-top: 14px; }
.doc dd { margin: 4px 0 0; color: var(--text-dim); }
.doc code { font: 13px var(--mono); color: var(--text); background: var(--line-soft); padding: 1px 5px; border-radius: 4px; }
.callout { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--text-dim); margin-top: 12px; background: var(--surface); }

/* ---- FAQ: native <details>, no script needed ------------------------------------------------- */
.faq-group { margin: 36px 0 0; }
.faq-group > .eyebrow { display: block; margin-bottom: 10px; }
details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin: 8px 0; }
summary { cursor: pointer; list-style: none; padding: 15px 44px 15px 18px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 20px/1 var(--mono); color: var(--text-faint); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 18px 16px; color: var(--text-dim); }
details > div p { margin: 0 0 10px; }
details > div p:last-child { margin-bottom: 0; }

/* ---- footer ----------------------------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13.5px; color: var(--text-dim); }
.site-foot .row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { color: var(--text); }
.site-foot .legal { margin: 18px 0 0; font-size: 12.5px; color: var(--text-faint); max-width: 760px; }

/* ---- examples gallery (added with the prompt templates) ----------------------------
   Each tile reuses the hero's drawn camera frame and lays the example image over
   the whole of it, stretched to 16:9 like the extension's own draw - so a tile is
   what participants would see. The images live in /assets/gallery/ and are
   placeholders to swap freely. */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.gallery figcaption { margin-top: 8px; font-size: 14px; color: var(--text); }
.gallery figcaption span { font: 500 10.5px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint); margin-right: 6px; }

/* ---- hero note: the guest line ------------------------------------------------------------
   Ink, not amber: the hero eyebrow already spends amber at the top of the page. */
.hero-note { margin: 14px 0 0; font-size: 16px; font-weight: 600; color: var(--text); max-width: 600px; }

/* ---- hero photo (photo pass) ------------------------------------------------------------
   The hero's photo sits under the live HTML overlay (zone, mark, lower third).
   Those are positioned too and come after it in the markup, so they paint on top. */
.frame > .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
