/* copyboxx.com: one stylesheet for every page (docs/specs/website-design.md). Built to assets/site.<hash>.css.
   The feel follows the owner's reference site: slate ink instead of black, quiet 600-weight headings, a borderless
   blurred header, 36px pills with a soft inset highlight, cards that only lift on hover, 150ms ease-out motion. */
:root {
  /* Surfaces: page, big grey panels, cards. */
  --page: #f8fafc; --panel: #f1f3f6; --card: #ffffff;
  /* Text: slate ink (not black), secondary, muted. */
  --ink: #1f2733; --ink-2: #4b5563; --muted: #6b7280;
  /* Lines: hairlines (about 92% lightness) between rows, borders around cards and inputs. */
  --hairline: #eceef2; --border: #e3e6eb;
  /* Accent from the app icon's lock: links, eyebrow dot, focus ring, glyphs. */
  --accent: #6f67c9; --accent-tint: #e9e6fb;
  /* The primary pill: dark slate with a thin inset highlight. */
  --primary: #1f2733; --primary-ink: #ffffff; --primary-hover: #2f3a48;
  --pill-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(31,39,51,.14);
  /* Cards on hover; floating things (hero cards, the screenshot window). */
  --shadow-card: 0 1px 2px rgba(31,39,51,.06), 0 2px 8px -2px rgba(31,39,51,.06);
  --shadow-float: 0 2px 6px rgba(31,39,51,.05), 0 14px 32px -10px rgba(31,39,51,.18);
  --glow: rgba(255,255,255,.95);
  --r-panel: 24px; --r-card: 16px; --r-small: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #14171c; --panel: #1b1f26; --card: #1f242b;
    --ink: #eef0f3; --ink-2: #c5c9d1; --muted: #9aa0ab;
    --hairline: #262b33; --border: #2c323b;
    --accent: #a39cf0; --accent-tint: #2a2750;
    --primary: #f5f6f8; --primary-ink: #1f2733; --primary-hover: #e2e4ea;
    --pill-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(0,0,0,.4);
    --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px -2px rgba(0,0,0,.4);
    --shadow-float: 0 2px 6px rgba(0,0,0,.25), 0 14px 32px -10px rgba(0,0,0,.6);
    --glow: rgba(163,156,240,.16);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #14171c; --panel: #1b1f26; --card: #1f242b;
  --ink: #eef0f3; --ink-2: #c5c9d1; --muted: #9aa0ab;
  --hairline: #262b33; --border: #2c323b;
  --accent: #a39cf0; --accent-tint: #2a2750;
  --primary: #f5f6f8; --primary-ink: #1f2733; --primary-hover: #e2e4ea;
  --pill-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(0,0,0,.4);
  --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px -2px rgba(0,0,0,.4);
  --shadow-float: 0 2px 6px rgba(0,0,0,.25), 0 14px 32px -10px rgba(0,0,0,.6);
  --glow: rgba(163,156,240,.16);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; }
h2 { font-size: 24px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.45; }
p { text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease), opacity .15s var(--ease); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; display: block; }
svg { flex: none; }
code { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.num, time { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.lead { font-size: 17px; color: var(--muted); max-width: 36em; }
.small { font-size: 13px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: no border at the top of the page; a hairline shows once the page scrolls (class set in head.html). */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 transparent; transition: box-shadow .15s var(--ease);
}
:root.scrolled .site-header { box-shadow: 0 1px 0 var(--hairline); }
.header-row { display: flex; align-items: center; gap: 8px 28px; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.brand b { font-size: 17px; font-weight: 600; }
.brand span { color: var(--muted); font-size: 14px; }
.nav { display: flex; gap: 4px 24px; font-size: 14px; font-weight: 500; }
.nav a { color: var(--ink-2); padding: 4px 0; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 14px; font-weight: 500; }
.header-actions .try { color: var(--ink-2); }
.header-actions .try:hover { color: var(--ink); text-decoration: none; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9999px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.icon-btn:hover { background: var(--panel); color: var(--ink); }
.icon-btn:active { transform: scale(.97); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun, .theme-toggle .i-moon, :root[data-theme] .theme-toggle .i-auto { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun, :root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* Buttons and links: 36px pills; the hero and download buttons are 44px. */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 16px;
  border-radius: 9999px; background: var(--primary); color: var(--primary-ink); font-size: 14px; font-weight: 500;
  white-space: nowrap; box-shadow: var(--pill-shadow);
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.pill:hover { background: var(--primary-hover); text-decoration: none; }
.pill:active { transform: scale(.97); }
.hero .pill, .download-card .pill { min-height: 44px; padding: 0 22px; font-size: 15px; }
.more { font-size: 14px; font-weight: 500; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.actions .more { font-size: 15px; }

/* Sections */
.section { padding-block: 80px; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head p { margin-top: 8px; color: var(--muted); }
.page-head { padding-block: 72px 40px; }
.page-head h1 { font-size: 40px; }
.page-head p { margin-top: 14px; }
.page-head + .section { padding-top: 0; }

/* Hero */
.hero { padding-block: 72px 48px; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 span { display: inline-block; }
.hero .lead { margin-top: 20px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -14% -10%; z-index: 0;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.fan {
  position: relative; z-index: 1; width: min(100%, 480px); margin: 0 auto; aspect-ratio: 1 / 1;
  container-type: inline-size; animation: rise .4s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.fcard {
  position: absolute; width: 56%; padding: 5cqi; border-radius: 4cqi; background: var(--card);
  border: 1px solid var(--border); box-shadow: var(--shadow-float); font-size: 3.4cqi; line-height: 1.55; color: var(--ink-2);
}
.fcard-1 { left: 0; top: 40%; z-index: 3; transform: rotate(-8deg); }
.fcard-2 { left: 28%; top: 0; z-index: 1; }
.fcard-3 { right: 0; top: 46%; z-index: 2; transform: rotate(6deg); }
.fcard-label { display: flex; align-items: center; gap: 1.6cqi; font-size: 2.9cqi; color: var(--muted); margin-bottom: 2.4cqi; }
.fcard-label i { width: 1.8cqi; height: 1.8cqi; border-radius: 50%; background: var(--accent); }
.fcard strong { display: block; color: var(--ink); font-size: 4cqi; font-weight: 600; margin-bottom: 1.2cqi; }
.fcard .chip {
  display: inline-block; margin-top: 3cqi; padding: .6cqi 2.8cqi; border-radius: 9999px; font-size: 2.9cqi; font-weight: 500;
  background: var(--primary); color: var(--primary-ink); box-shadow: var(--pill-shadow);
}
.fcard .dots { letter-spacing: .25em; color: var(--ink); font-size: 4cqi; }
.fcard .row { display: flex; justify-content: space-between; align-items: center; gap: 2cqi; }
.fcard .tile {
  height: 26cqi; border-radius: 2.6cqi; margin-bottom: 2.4cqi;
  background: linear-gradient(135deg, #cfc9f6 0%, #a39cf0 55%, #8a82e0 100%);
}
.fcard .caption { font-size: 2.9cqi; color: var(--muted); }

/* Cards: a border at rest, a soft shadow on hover. */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px;
  transition: box-shadow .15s var(--ease);
}
.card:hover { box-shadow: var(--shadow-card); }
.card h3 { margin-top: 20px; }
.card p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.glyph {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-small);
  background: var(--accent-tint); color: var(--accent);
}
.glyph svg { width: 24px; height: 24px; }
.req { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; }
.req h3 { margin: 0; font-size: 16px; }
.req p { margin-top: 2px; font-size: 14px; }
.req .line-icon { color: var(--ink-2); margin-top: 2px; }
.req-wide { grid-column: 1 / -1; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.feature .glyph { margin-bottom: 16px; }
.feature p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* Steps beside the product panel */
.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; border-top: 1px solid var(--hairline); }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.steps .n { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.75; }
.steps h3 { font-size: 16px; line-height: 1.6; }
.steps p { grid-column: 2; color: var(--muted); font-size: 15px; }
.steps p a { font-weight: 500; white-space: nowrap; }
.panel { background: var(--panel); border-radius: var(--r-panel); padding: 40px; }
.window { border-radius: var(--r-small); overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-float); }
.window-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.window img { width: 100%; height: auto; }
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot-dark { display: block; }
}
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }
.panel figcaption { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--hairline); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
  font-weight: 600; font-size: 16px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg); transition: transform .15s var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details > div { padding: 0 32px 20px 0; color: var(--muted); }
.faq details > div p + p { margin-top: 8px; }

/* Download */
.download-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 36px 40px; }
.download-card h2 { font-size: 28px; }
.download-card .meta { margin-top: 6px; color: var(--muted); }
.hash { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }
.hash code { display: block; margin-top: 4px; overflow-wrap: anywhere; word-break: break-all; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Long text (help, privacy, download notes) */
.doc { max-width: 760px; }
.doc section { padding: 40px 0; border-top: 1px solid var(--hairline); }
.doc section:first-child { border-top: 0; padding-top: 0; }
.doc h2 { margin-bottom: 12px; }
.doc h3 { margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--muted); }
.doc .steps { padding-left: 0; }
.doc .steps li + li { margin-top: 0; }
.doc .steps h3 { margin: 0; }
.doc .steps li:last-child { border-bottom: 0; padding-bottom: 0; }
/* In-page list: secondary pills (white, bordered). */
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-bottom: 48px; }
.toc a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 9999px;
  border: 1px solid var(--border); background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(31,39,51,.04);
  transition: border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.toc a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.toc a:active { transform: scale(.97); }
.note { margin-top: 20px; padding: 16px 20px; border-radius: var(--r-small); background: var(--panel); color: var(--ink-2); font-size: 15px; }

/* Single-card pages: 404 and the preview passphrase */
.solo { display: grid; place-items: center; padding: 96px var(--gutter); min-height: calc(100vh - 56px - 220px); }
.solo-card { width: 100%; max-width: 440px; padding: 40px 32px; text-align: center; }
.solo-card h1 { font-size: 28px; }
.solo-card p { margin-top: 10px; color: var(--muted); }
.solo-card .pill { margin-top: 28px; }
.gate-form { display: flex; gap: 8px; margin-top: 28px; }
.gate-form input {
  flex: 1 1 0; width: 0; min-width: 0; min-height: 44px; padding: 0 18px; border-radius: 9999px;
  border: 1px solid var(--border); background: var(--page); color: var(--ink); font: inherit;
}
.gate-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate-form .pill { margin: 0; min-height: 44px; padding: 0 22px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.solo-card p.msg { margin-top: 14px; color: var(--accent); font-size: 14px; font-weight: 500; }
.solo-card p.msg:empty { display: none; }
.solo-card .back { display: inline-block; margin-top: 20px; font-size: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 56px 0 40px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid p { margin-top: 10px; color: var(--muted); max-width: 22em; }
.footer-grid h2 { font-size: 13px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid li a { color: var(--muted); }
.footer-grid li a:hover { color: var(--ink); }
.footer-line { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Desktop extras */
@media (min-width: 900px) {
  h2 { font-size: 26px; }
}

/* Tablets */
@media (max-width: 899px) {
  .hero .wrap, .pair { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .grid-3, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Phones */
@media (max-width: 639px) {
  body { font-size: 15px; }
  html { scroll-padding-top: 120px; }
  .header-row { gap: 0 12px; padding-top: 8px; }
  .nav { order: 3; width: 100%; gap: 20px; padding: 2px 0 8px; overflow-x: auto; }
  .header-actions { gap: 6px; }
  .header-actions .try { display: none; }
  .section { padding-block: 48px; }
  .hero { padding-block: 40px 32px; }
  .hero .wrap { gap: 32px; }
  .hero h1 { font-size: 32px; }
  .page-head { padding-block: 44px 28px; }
  .page-head h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .actions { gap: 14px 22px; margin-top: 28px; }
  .grid-3, .grid-2, .features { grid-template-columns: minmax(0, 1fr); }
  .features { gap: 28px; }
  .card { padding: 22px; }
  .panel { padding: 20px; border-radius: 20px; }
  .pair { gap: 32px; }
  .download-card { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
  .download-card h2 { font-size: 24px; }
  .download-card .pill { width: 100%; }
  .doc section { padding: 32px 0; }
  .toc { margin-bottom: 36px; }
  .solo { padding: 56px var(--gutter); }
  .solo-card { padding: 32px 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { margin-bottom: 20px; }
}
@media (max-width: 370px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
