/* =============================================================
   PicPocket website · document pages (pricing, privacy, terms)
   Surfaces are separated by tone steps and space, not by lines,
   shadows or outlines. Five sizes: 64+ display, 28 heading,
   18 lead, 16 body, 13 small.
   ============================================================= */

/* ---------- Doc hero ---------- */
.doc-hero { padding: 56px 0 24px; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 40px;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.doc-hero h1 {
  font-size: clamp(56px, 8.4vw, 120px);
  line-height: 1;
}
html[lang="zh"] .doc-hero h1 { font-size: clamp(52px, 7.6vw, 104px); line-height: 1.08; }
.doc-hero .lede { max-width: 60ch; margin-top: 28px; }
.doc-hero .lede strong { color: var(--ink); font-weight: 600; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 32px;
  list-style: none;
  font-size: 13px;
  color: var(--ink-3);
}
.meta li strong { color: var(--ink); font-weight: 600; }
.meta .dot { display: none; }

/* three guarantees: one set of large statements, no cards */
.guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 72px;
  padding: 40px 0 8px;
}
.g-card h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 12px; }
html[lang="zh"] .g-card h3 { letter-spacing: -0.01em; }
.g-card p { font-size: 16px; color: var(--ink-2); line-height: 1.7; max-width: 40ch; }

/* ---------- Doc layout ---------- */
.doc {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 96px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 72px;
}
.toc { position: sticky; top: 96px; }
.toc-title { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a {
  display: block;
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); background: var(--bg-sunken); font-weight: 600; }

.toc-actions { margin-top: 24px; display: grid; gap: 8px; }
.toc-actions .btn { justify-content: flex-start; width: 100%; }

/* ---------- Article ---------- */
.article section { margin-bottom: 88px; }
.article section:last-child { margin-bottom: 0; }
.article h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 20px;
}
.article p, .article li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}
.article p { max-width: 68ch; }
.article p + p { margin-top: 12px; }
.table-wrap + p { margin-top: 16px; }
.article strong { color: var(--ink); font-weight: 600; }

.article ul, .article ol.steps {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.article ul li {
  position: relative;
  padding: 16px 20px 16px 52px;
  border-radius: var(--r-md);
  background: var(--bg-sunken);
}
.article ul li::before {
  content: "";
  position: absolute;
  left: 20px; top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.article ul.never li::before {
  background: rgba(239, 68, 68, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.article ul.net li::before {
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.article ol.steps { counter-reset: s; }
.article ol.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  padding-left: 20px;
}
.article ol.steps li::before {
  content: counter(s);
  position: static;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-ink);
  background: var(--gold-soft);
  margin-top: 1px;
}

.article h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 4px;
  color: var(--ink);
}
.article a { color: var(--ink); }
.callout {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--gold-soft);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}
.callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.callout-title svg { color: var(--gold-ink); }

/* tables are real tables: row separators stay */
.table-wrap {
  margin-top: 24px;
  border-radius: var(--r-md);
  overflow-x: auto;
  background: var(--bg-sunken);
}
table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-strong);
  vertical-align: top;
  color: var(--ink-2);
  line-height: 1.55;
}
td strong { color: var(--ink); }
tr:last-child td { border-bottom: 0; }
td .code { color: var(--gold-ink); display: inline-block; margin: 0 2px 4px 0; background: var(--bg); }

.pill-ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ok-text);
  white-space: nowrap;
}
.pill-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* FAQ: each question is its own filled row */
.qa { display: grid; gap: 8px; margin-top: 8px; }
.qa details { border-radius: var(--r-md); background: var(--bg-sunken); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa .plus {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg);
  display: grid; place-items: center;
  transition: transform 0.25s ease;
}
.qa details[open] .plus { transform: rotate(45deg); }
.qa .answer { padding: 0 56px 20px 20px; font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }

.contact-card {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: #0b0f1a;
  color: #f3f1ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-card b { display: block; font-size: 16px; font-weight: 600; }
.contact-card small { font-size: 14px; color: #9ca1b2; }
.contact-card .row { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-card .btn:not(.btn-gold) { background: #1c2336; color: #f3f1ea; }
.contact-card .btn:not(.btn-gold):hover { background: #2a3349; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 48px; }
  .toc { display: none; }
  .guarantees { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
}
@media (max-width: 640px) {
  .table-wrap { background: transparent; overflow: visible; }
  table, tbody, tr, td { display: block; min-width: 0; width: 100%; }
  thead { display: none; }
  tr {
    border-radius: var(--r-md);
    background: var(--bg-sunken);
    padding: 6px 16px;
    margin-bottom: 8px;
  }
  td { padding: 10px 0; border-bottom: 0; }
  td::before {
    content: attr(data-label-en);
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-3);
    margin-bottom: 2px;
  }
  html[lang="zh"] td::before { content: attr(data-label-zh); }
}
@media (max-width: 560px) {
  .doc-hero { padding: 32px 0 16px; }
  .doc-hero h1 { font-size: 52px; }
  html[lang="zh"] .doc-hero h1 { font-size: 46px; }
  .article h2 { font-size: 24px; }
  .g-card h3 { font-size: 24px; }
  .article ul li { padding: 14px 14px 14px 46px; }
  .article ul li::before { left: 16px; top: 20px; }
  .qa .answer { padding-right: 20px; }
}

@media print {
  .toc { display: none !important; }
  .doc { display: block; }
  .qa details .answer { display: block; }
  .contact-card { display: none; }
}
