/* IntactClip marketing site — no build step, no framework, no CDN. */

:root {
  --bg: #0e1013;
  --bg-alt: #15181d;
  --card: #191d23;
  --line: #2a3038;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --accent: #4cc38a;
  --accent-dark: #2f9e6b;
  --warn: #e0b341;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 16, 19, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 17px;
}
.brand span { color: var(--muted); font-weight: 400; }

nav.top { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
nav.top a { color: var(--muted); font-size: 14px; }
nav.top a:hover { color: var(--text); text-decoration: none; }

/* ---------- narrow-screen nav drawer (no JS: <details>/<summary>) ----------
   Hidden on wide screens, where nav.top is enough. Below 720px nav.top is
   replaced by the drawer so Features / Compare / FAQ stay reachable. The panel
   expands inside the sticky header (pushing content down) instead of floating
   over it, so nothing is ever covered. */

.nav-drawer { display: none; }

.nav-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-drawer > summary::-webkit-details-marker { display: none; }
.nav-drawer > summary::marker { content: ""; }
.nav-drawer > summary:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-drawer > summary:focus-visible {
  color: var(--text);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-drawer[open] > summary { color: var(--text); }

/* hamburger: one bar plus two pseudo bars, drawn in currentColor */
.nav-drawer .bars,
.nav-drawer .bars::before,
.nav-drawer .bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-drawer .bars { position: relative; }
.nav-drawer .bars::before,
.nav-drawer .bars::after { content: ""; position: absolute; left: 0; }
.nav-drawer .bars::before { top: -6px; }
.nav-drawer .bars::after { top: 6px; }

/* The panel is a sibling of <details>, not a child: that is what lets it span
   the whole header row (content inside <details> is clipped to its slot box). */
.nav-panel { display: none; }
.nav-drawer[open] ~ .nav-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* safety net: a very short viewport scrolls the list instead of hiding links */
  max-height: calc(100vh - 58px);
  max-height: calc(100dvh - 58px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-panel a {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-panel a:first-child { border-top: 0; }
/* language switch sits in its own group */
.nav-panel a[hreflang] { margin-top: 8px; padding-top: 16px; border-top-color: var(--line); }
.nav-panel a:hover {
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
}
.nav-panel a:focus-visible {
  color: var(--text);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .nav-drawer[open] ~ .nav-panel { animation: nav-panel-in 140ms ease-out; }
}

@keyframes nav-panel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #08130d; }
.btn-primary:hover { background: #59d698; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: #4a535e; background: var(--bg-alt); }

/* ---------- hero ---------- */

.hero { padding: 64px 0 48px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 680;
}

.lede { color: var(--muted); font-size: 17px; margin: 0 0 26px; max-width: 34em; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.price-note { color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.price-note strong { color: var(--text); }

/* Secondary hero link: points at the pricing section, reads like a link not a button. */
.cta-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-link:hover { color: var(--text); }

/* ---------- screenshots ---------- */

.shot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #171b21;
}

/* ---------- sections ---------- */

section { padding: 56px 0; }
section[id] { scroll-margin-top: 76px; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 {
  font-size: clamp(23px, 2.6vw, 30px);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  font-weight: 650;
}
.section-lede { color: var(--muted); margin: 0 0 34px; max-width: 46em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Two-up variant (e.g. the two checkout regions on pricing.html).
   Kept in CSS, not inline, so the narrow-screen rule below can still apply. */
.cards.two { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 620; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .kbd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  background: #10141a;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: #c7d0da;
}

.note {
  margin-top: 26px;
  border-left: 3px solid var(--warn);
  background: rgba(224, 179, 65, 0.07);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  color: #d5dae0;
  font-size: 14.5px;
}
.note strong { color: var(--warn); }

/* ---------- comparison table ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

/* Four even columns; the capability column gets a third of the width.
   Each cell is two levels: a short verdict line, then a muted explanation. */
table.cmp {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}
table.cmp col.c-cap { width: 34%; }
table.cmp col.c-a,
table.cmp col.c-b,
table.cmp col.c-c { width: 22%; }

table.cmp th,
table.cmp td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: break-word;
}

table.cmp thead th {
  padding: 12px 18px;
  background: #12161b;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
table.cmp thead th:nth-child(2) { color: var(--accent); }

table.cmp tbody th { font-weight: 600; color: var(--text); }
table.cmp tbody tr + tr > * { border-top: 1px solid var(--line); }
table.cmp tbody tr:hover > * { background: rgba(255, 255, 255, 0.02); }

table.cmp .verdict {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
table.cmp td.yes .verdict { color: var(--accent); }
table.cmp td.maybe .verdict { color: var(--warn); }
table.cmp td.no .verdict { color: #f38ba8; }

table.cmp .why {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- pricing ---------- */

/* Banner that says which card is for which payment region. */
.region-split {
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 22px;
  padding: 11px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(76, 195, 138, 0.07);
  border-radius: 0 8px 8px 0;
}

/* Two paid cards side by side (one per payment region); the free card spans the row below. */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--accent-dark); box-shadow: 0 0 0 1px rgba(76, 195, 138, 0.25) inset; }
.price-card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 620; }
.price-card .tag {
  align-self: flex-start;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #08130d;
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 12px;
  font-weight: 700;
}
.amount { font-size: 38px; font-weight: 680; letter-spacing: -0.02em; line-height: 1.1; }
.amount .strike { color: var(--muted); font-size: 18px; font-weight: 400; text-decoration: line-through; margin-left: 8px; }
.amount .per { font-size: 15px; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price-card li { padding: 5px 0 5px 22px; position: relative; color: #cbd2d9; font-size: 14.5px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.price-card .btn { margin-top: auto; text-align: center; }
.fineprint { color: var(--muted); font-size: 13px; margin-top: 20px; }

/* Free card: full width under the two paid cards. Header/price/button on the left,
   feature list on the right so it does not become a tall empty box. */
.price-card.free-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  grid-template-areas:
    "head list"
    "price list"
    "btn list"
    "note note";
  column-gap: 44px;
  align-items: start;
}
.price-card.free-wide h3 { grid-area: head; }
.price-card.free-wide .amount { grid-area: price; }
.price-card.free-wide .btn { grid-area: btn; justify-self: start; margin-top: 4px; }
.price-card.free-wide ul { grid-area: list; columns: 2; column-gap: 32px; margin: 0; }
.price-card.free-wide ul li { break-inside: avoid; }
.price-card.free-wide .fineprint { grid-area: note; margin-top: 22px; }

/* ---------- faq ---------- */

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
details.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 550;
  font-size: 16px;
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; color: var(--accent); font-weight: 600; width: 14px; flex: none; }
details.faq[open] summary::before { content: "−"; }
details.faq p, details.faq div.body { color: var(--muted); font-size: 14.8px; margin: 0 0 18px 24px; max-width: 60em; }
details.faq code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  background: #10141a;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  color: var(--muted);
  font-size: 13.5px;
}
footer.site .cols {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site .legal { margin-top: 24px; max-width: 62em; line-height: 1.6; font-size: 12.8px; }

/* ---------- policy pages ---------- */

.policy { padding: 48px 0 24px; max-width: 760px; }
.policy h1 { font-size: clamp(26px, 3.2vw, 34px); }
.policy h2 { font-size: 20px; margin-top: 34px; }
.policy p, .policy li { color: #c3cad2; font-size: 15px; }
.policy ul { padding-left: 22px; }
.policy .meta { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.policy .back { font-size: 14px; }

/* ---------- responsive ---------- */

/* Narrow screens: the comparison table turns into one card per capability,
   with the three tools as labelled lines inside. A four-column table at 390px
   needs sideways scrolling and hides the row titles, so cards win here. */
@media (max-width: 840px) {
  .table-scroll {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  table.cmp { display: block; table-layout: auto; }
  table.cmp colgroup,
  table.cmp thead { display: none; }
  table.cmp tbody { display: block; }
  table.cmp tbody tr {
    display: block;
    margin-bottom: 12px;
    padding: 15px 16px 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  table.cmp tbody tr:hover > * { background: transparent; }
  table.cmp tbody tr + tr > * { border-top: 0; }
  table.cmp tbody th,
  table.cmp tbody td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  table.cmp tbody th {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.4;
  }
  table.cmp tbody tr > td {
    position: relative;
    padding: 9px 0 9px 92px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
  }
  table.cmp tbody tr > td:first-of-type { border-top: 0; }
  table.cmp tbody td::before {
    content: attr(data-col);
    position: absolute;
    left: 0;
    top: 11px;
    width: 84px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
  table.cmp .verdict { display: inline; }
  table.cmp .why { margin-top: 2px; }
}

/* Narrow screens: the inline nav is replaced by the <details> drawer.
   Above 720px nothing here applies, so the desktop header is untouched. */
@media (max-width: 720px) {
  header.site .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(56px, auto) auto;   /* bar keeps its height when open */
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
  }
  header.site .brand {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  nav.top { display: none; }

  .nav-drawer { display: block; grid-column: 2; grid-row: 1; justify-self: end; }
  .nav-drawer[open] ~ .nav-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 2px -20px 0;      /* bleed to the viewport edges */
    padding: 2px 20px 10px;   /* keep text on the same 20px gutter as .wrap */
  }
}

/* Comparison table becomes a stacked list on narrow screens. */
@media (max-width: 640px) {
  .price-card.free-wide { display: flex; flex-direction: column; }
  .price-card.free-wide ul { columns: 1; margin: 18px 0 24px; }
  .price-card.free-wide .btn { align-self: flex-start; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 0 32px; }
  .cards { grid-template-columns: 1fr; }
  .cards.two { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  header.site .wrap { min-height: 56px; }
  nav.top { gap: 14px; }
  section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .nav-drawer[open] ~ .nav-panel { margin-inline: -16px; padding-inline: 16px; }
  .brand span { display: none; }
  nav.top a { font-size: 13px; }
  nav.top a.nav-opt { display: none; }
  .amount { font-size: 32px; }
  .btn { width: 100%; text-align: center; }
  .cta-row .btn { width: 100%; }
}

/* thanks.html: license key box + form fields */
#key-box {
  margin: 14px 0;
  padding: 14px;
  background: #0b0d12;
  border: 1px solid var(--line, #2a2a3c);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text, #e6e6ef);
  /* 授权码是无空格长串：必须强制断行，否则整页横向溢出 */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
  max-width: 100%;
}

#recover-form { display: block; }
#recover-form label { display: block; margin-bottom: 6px; }
#recover-form input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: #0b0d12;
  border: 1px solid var(--line, #2a2a3c);
  border-radius: 8px;
  color: var(--text, #e6e6ef);
  font: inherit;
  font-size: 14px;
}
#recover-form input:focus {
  outline: none;
  border-color: var(--accent, #4cc38a);
}

/* 主 CTA：免费下载与购买并列、等大；下载用实心绿（第一动作是试用） */
.btn-lg { padding: 14px 22px; font-size: 16px; font-weight: 600; line-height: 1.2; }
.cta-main { gap: 14px; align-items: stretch; flex-wrap: wrap; }
.cta-main .btn { display: inline-flex; align-items: center; justify-content: center; }
.cta-meta { margin: 14px 0 0; font-size: 13px; color: var(--muted, #8b93ad); line-height: 1.7; }
.cta-meta a { color: var(--muted, #8b93ad); text-decoration: underline; }
@media (max-width: 560px) { .cta-main .btn { width: 100%; } }
