/* PinShot website */
:root {
  --bg: #f7f8fc;
  --bg-alt: #ffffff;
  --text: #161a2b;
  --muted: #5b6278;
  --line: #e3e6f0;
  --card: #ffffff;
  --brand: #5b4fe0;
  --brand-2: #6a2bc2;
  --brand-3: #5b7bff;
  --accent: #f0643f;
  --accent-soft: #fff0ea;
  --code-bg: #f0f2f8;
  --shadow: 0 1px 2px rgba(20, 30, 70, .06), 0 8px 28px rgba(20, 30, 70, .08);
  --radius: 18px;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1018;
    --bg-alt: #141724;
    --text: #eef0f8;
    --muted: #a0a7bd;
    --line: #262a3b;
    --card: #181c2b;
    --brand: #8b80ff;
    --accent-soft: #3a2019;
    --code-bg: #1d2133;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, kbd, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }
code { background: var(--code-bg); padding: .1em .4em; border-radius: 6px; overflow-wrap: anywhere; }
kbd {
  display: inline-block; min-width: 1.6em; padding: .05em .45em; text-align: center;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
  background: var(--card); font-size: .85em; line-height: 1.5;
}
pre {
  background: var(--code-bg); padding: 16px 18px; border-radius: 12px;
  overflow-x: auto; line-height: 1.5; margin: 12px 0;
}
pre code { background: none; padding: 0; overflow-wrap: normal; }

/* Language switching: <html data-lang="zh|en">, content tagged lang="zh-Hant" / lang="en" */
html[data-lang="zh"] [lang="en"]:not(html) { display: none !important; }
html[data-lang="en"] [lang="zh-Hant"]:not(html) { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.lang-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .nav { gap: 14px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 12px 22px; border-radius: 14px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .7; line-height: 1.2; }
.btn .stack { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }
.badge-soon {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); letter-spacing: .02em;
}

/* Hero */
.hero { padding: 64px 0 32px; text-align: center; }
.hero .app-icon { width: 96px; height: 96px; margin: 0 auto 20px; filter: drop-shadow(0 10px 24px rgba(91, 79, 224, .4)); }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.02em;
}
.grad {
  background: linear-gradient(100deg, var(--brand-2), var(--brand) 45%, var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .meta { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Mock desktop */
.stage { margin: 48px auto 0; max-width: 920px; }
.desk {
  position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, #8ea8ff 0%, transparent 55%),
    radial-gradient(100% 90% at 100% 100%, #7ee0ff 0%, transparent 50%),
    linear-gradient(135deg, #5d6cf0, #3b8dff);
  box-shadow: 0 30px 80px rgba(30, 50, 140, .28);
  text-align: left;
}
.menubar {
  height: 4.2%; min-height: 18px; background: rgba(255, 255, 255, .55); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 2%;
  font-size: clamp(9px, 1.3vw, 12px); color: #1b2140;
}
.menubar .pin-icon { width: 1.4em; height: 1.4em; }
.win {
  position: absolute; left: 8%; top: 13%; width: 62%; height: 74%;
  background: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); overflow: hidden;
  color: #1b2140;
}
.win .titlebar { height: 9%; background: #f2f3f7; display: flex; align-items: center; gap: 6px; padding: 0 3%; border-bottom: 1px solid #e3e5ee; }
.win .titlebar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; display: block; }
.win .titlebar i:nth-child(2) { background: #febc2e; }
.win .titlebar i:nth-child(3) { background: #28c840; }
.win .body { padding: 5% 6%; font-size: clamp(8px, 1.25vw, 13px); }
.win .body .h { height: 1.2em; width: 45%; background: #dfe4f4; border-radius: 4px; margin-bottom: 6%; }
.win .body .row { height: .7em; background: #eceff7; border-radius: 3px; margin: .9em 0; }
.win .body .err {
  margin-top: 7%; border: 1px solid #ffd0cc; background: #fff4f2; color: #c4321f;
  border-radius: 8px; padding: 4% 5%; font-weight: 600;
}
.win .body .err span { display: block; font-weight: 400; color: #8a5048; margin-top: .3em; }
.win .body .fake-btn { display: inline-block; margin-top: 6%; padding: .5em 1.4em; border-radius: 6px; background: #2f6bff; color: #fff; font-weight: 600; }

.frame {
  position: absolute; left: 13%; top: 46%; width: 50%; height: 33%;
  border: 2px solid #2f6bff; border-radius: 3px;
  box-shadow: 0 0 0 9999px rgba(10, 16, 40, .28);
}
.frame .handle { position: absolute; width: 9px; height: 9px; background: #fff; border: 2px solid #2f6bff; border-radius: 50%; }
.frame .h1 { left: -6px; top: -6px; } .frame .h2 { right: -6px; top: -6px; }
.frame .h3 { left: -6px; bottom: -6px; } .frame .h4 { right: -6px; bottom: -6px; }
.mark-num {
  position: absolute; width: 1.9em; height: 1.9em; border-radius: 50%; background: #ff3b30; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: clamp(9px, 1.4vw, 14px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.mark-box { position: absolute; border: 2.5px solid #ff3b30; border-radius: 4px; }
.mark-arrow { position: absolute; }
.toolbar {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 10px);
  display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-radius: 12px;
  background: rgba(28, 30, 42, .92); color: #fff; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); font-size: clamp(9px, 1.3vw, 13px);
}
.toolbar .t {
  width: 2.2em; height: 2.2em; display: grid; place-items: center; border-radius: 8px; color: #dfe3f2;
}
.toolbar .t.on { background: rgba(255, 255, 255, .16); color: #fff; }
.toolbar .sep { width: 1px; height: 1.6em; background: rgba(255, 255, 255, .18); margin: 0 3px; }
.toolbar .dot { width: 1em; height: 1em; border-radius: 50%; margin: 0 .25em; }
.toolbar .ok { background: #2f6bff; color: #fff; }

.thumb-toast {
  position: absolute; right: 3%; bottom: 5%; width: 22%; background: rgba(255, 255, 255, .92);
  border-radius: 10px; padding: 1.2%; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-size: clamp(8px, 1.1vw, 12px); color: #1b2140;
}
.thumb-toast .img { aspect-ratio: 16 / 9; border-radius: 6px; background: linear-gradient(135deg, #fff4f2, #eef2ff); border: 1px solid #e3e5ee; margin-bottom: 6px; }
.thumb-toast b { color: #2f6bff; }

/* Sections */
section.block { padding: 72px 0; }
section.block.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 20px; margin: 0 0 8px; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid.g2 { grid-template-columns: 1fr 1fr; } .grid.g3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: 14px;
}
.card .ic svg { width: 24px; height: 24px; }
.card .ic.orange { background: var(--accent-soft); color: var(--accent); }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 18px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 20px; left: 24px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px;
}

/* Split feature rows */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.1fr; gap: 56px; } .split.rev > :first-child { order: 2; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-left: 30px; position: relative; margin: 10px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 15%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%235b4fe0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Redaction samples */
.redact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.redact figure { margin: 0; }
.redact .sample {
  aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  position: relative; overflow: hidden; display: grid; place-items: center; padding: 10%;
  font-size: clamp(12px, 1.5vw, 15px); color: var(--text);
}
.redact .sample .lbl { display: block; font-size: .85em; color: var(--muted); margin-bottom: .4em; }
.redact .sample .secret { display: inline-block; font-family: ui-monospace, Menlo, monospace; position: relative; white-space: nowrap; }
.redact figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 8px; }
.pix {
  position: absolute; inset: -3px -4px; border-radius: 3px;
  background: conic-gradient(#8b93ad 25%, #b3b9cc 0 50%, #6e7795 0 75%, #a4abc2 0) 0 0 / 12px 12px;
}
.blur { position: absolute; inset: -4px -6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(150, 160, 190, .25); border-radius: 6px; }
.erase { position: absolute; inset: -6px -8px; width: calc(100% + 16px); height: calc(100% + 12px); }

/* Pin board mock */
.board {
  border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
  overflow: hidden; display: grid; grid-template-columns: 30% 1fr; min-height: 340px; font-size: 13px;
}
.board .side { background: color-mix(in srgb, var(--bg) 70%, var(--card)); border-right: 1px solid var(--line); padding: 14px 10px; }
.board .side div { padding: 6px 10px; border-radius: 8px; color: var(--muted); display: flex; justify-content: space-between; }
.board .side div.on { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--text); font-weight: 600; }
.board .side .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding-top: 14px; background: none; }
.board .main { padding: 14px; }
.board .search { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--muted); margin-bottom: 12px; }
.board .search b { color: var(--text); font-weight: 600; }
.board .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.board .pc { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--bg-alt); }
.board .pc .shot { aspect-ratio: 16 / 9; border-radius: 6px; background: #fff4f2; border: 1px solid #ffd0cc; color: #c4321f; font-weight: 700; font-size: 11px; display: grid; place-items: center; margin-bottom: 8px; }
.board .pc .shot mark { background: #ffe066; color: #7a1a10; border-radius: 3px; padding: 0 3px; }
.board .pc .t { font-weight: 600; margin-bottom: 4px; }
.board .pc .s { color: var(--muted); font-size: 12px; }
.board .pc .foot { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.chip { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-weight: 600; }
.chip.agent { background: rgba(140, 82, 255, .14); color: #8c52ff; }
@media (max-width: 560px) {
  .board { grid-template-columns: 1fr; }
  .board .side { display: none; }
}

/* Chat mock */
.chat { display: grid; gap: 10px; font-size: 15px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.bubble.me { justify-self: end; background: var(--brand); color: #fff; border-color: transparent; border-bottom-right-radius: 6px; }
.bubble.ai { border-bottom-left-radius: 6px; }
.bubble .tool { display: block; font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; margin-bottom: 4px; }

/* FAQ */
details {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 20px; margin: 10px 0;
}
details summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details > div { padding-bottom: 16px; color: var(--muted); }
details > div p:first-child { margin-top: 0; }

/* Prose pages */
.page { padding: 48px 0 72px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.01em; }
.prose h2 { font-size: 24px; margin: 44px 0 10px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose .sub { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.prose li { margin: 6px 0; }
.prose ol, .prose ul { padding-left: 1.3em; }
.note {
  border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 16px 0;
}
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.toc a { border: 1px solid var(--line); background: var(--card); padding: 6px 14px; border-radius: 999px; font-size: 14px; color: var(--text); }
.toc a:hover { text-decoration: none; border-color: var(--brand); }
table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.tablewrap { overflow-x: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--muted); }

/* Code block with copy button */
.code { position: relative; }
.code pre { padding-right: 84px; }
.copy-btn {
  position: absolute; top: 10px; right: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); border-radius: 8px; padding: 3px 10px; font: inherit; font-size: 13px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--brand); }
.prompts { list-style: none; padding: 0; display: grid; gap: 8px; }
.prompts li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; }
.contact-card { margin-top: 36px; }

/* Animated hero demo (generated by scripts/make-hero-svg.py) */
.hero-demo {
  display: block; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(30, 50, 140, .28);
  text-align: left;
}
.demo-controls { display: flex; justify-content: center; margin-top: 14px; }
.demo-toggle {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px;
  color: var(--muted); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.demo-toggle:hover { color: var(--text); }

/* Scroll-in animations for the feature demos (site.js adds .in-view) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .pix,
  .js [data-reveal] .blur,
  .js [data-reveal] .erase { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.45, 0, .25, 1); }
  .js [data-reveal] figure:nth-child(2) .blur { transition-delay: .35s; }
  .js [data-reveal] figure:nth-child(3) .erase { transition-delay: .7s; transition-duration: 1.1s; }
  .js [data-reveal].in-view .pix,
  .js [data-reveal].in-view .blur,
  .js [data-reveal].in-view .erase { clip-path: inset(0 0 0 0); }

  .js .board[data-reveal] .pc,
  .js .chat[data-reveal] .bubble { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
  .js .board[data-reveal].in-view .pc,
  .js .chat[data-reveal].in-view .bubble { opacity: 1; transform: none; }
  .js .board[data-reveal] .pc:nth-child(2) { transition-delay: .15s; }
  .js .board[data-reveal] .search b { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 0; transition: width .6s steps(3) .2s; }
  .js .board[data-reveal].in-view .search b { width: 1.9em; }
  .js .board[data-reveal] mark { transition: background-color .4s ease .9s; background-color: transparent !important; }
  .js .board[data-reveal].in-view mark { background-color: #ffe066 !important; }
  .js .chat[data-reveal] .bubble:nth-child(2) { transition-delay: .7s; }
  .js .chat[data-reveal] .bubble:nth-child(3) { transition-delay: 1.6s; }
  .js .chat[data-reveal] .bubble:nth-child(4) { transition-delay: 2.3s; }
}
