/* Clipwell — shared styles. Self-contained, no external CDN. */
:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #fff7ed;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --line: #e7e5e4;
  --bg: #ffffff;
  --bg-alt: #fafaf9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28,25,23,.06), 0 8px 24px rgba(28,25,23,.06);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.2; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }

p { margin: 0 0 1em; }

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

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.25rem; color: var(--ink);
  letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: inline-block;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--ink-soft); font-size: .96rem; font-weight: 500; }
.nav-links a:hover { color: var(--brand-dark); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 12px 24px;
  border-radius: 10px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .05s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,.35); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }

/* ---- Sections ---- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  font-weight: 700; color: var(--brand-dark); margin-bottom: .6em;
}
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- Hero ---- */
.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(1000px 400px at 50% -10%, var(--brand-soft), transparent 70%);
  text-align: center;
}
.hero .lead { margin: 0 auto 1.8em; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1em; font-size: .9rem; color: var(--ink-soft); }
.pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: .82rem; font-weight: 600; margin-bottom: 1.4em;
  border: 1px solid #fed7aa;
}

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.step-num {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px;
}

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
}
.feature .ico {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 14px;
  background: var(--brand-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.feature p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 10px 30px rgba(249,115,22,.15); position: relative; }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.25rem; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; margin: .2em 0 .1em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.price-sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1em; }
.save-tag {
  display: inline-block; background: #dcfce7; color: #15803d;
  font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 6px;
}
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan ul li { padding: 8px 0 8px 26px; position: relative; font-size: .96rem; color: var(--ink-soft); }
.plan ul li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--brand); font-weight: 700;
}
.plan .btn { width: 100%; text-align: center; }
.boosters {
  margin-top: 28px; background: #fff; border: 1px dashed var(--brand);
  border-radius: var(--radius); padding: 24px 26px;
}
.boosters h3 { margin-bottom: .3em; }
.booster-grid { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 12px; }
.booster-grid .b { font-size: 1rem; }
.booster-grid .b strong { font-size: 1.3rem; color: var(--ink); display: block; }
.pricing-note { margin-top: 20px; font-size: .9rem; color: var(--ink-soft); text-align: center; }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 0 0 16px; }

/* ---- Compliance / callout block ---- */
.callout {
  background: var(--brand-soft); border: 1px solid #fed7aa;
  border-radius: var(--radius); padding: 28px 30px; max-width: 860px; margin: 0 auto;
}
.callout h3 { color: var(--brand-dark); }
.callout p { margin: 0; color: #7c2d12; font-size: .98rem; }

/* ---- Legal / doc pages ---- */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 0 40px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.doc .updated { color: var(--ink-soft); font-size: .92rem; margin-bottom: 2em; }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .5em; color: var(--ink-soft); }
.doc p { color: var(--ink-soft); }
.doc strong { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
.doc td { color: var(--ink-soft); }
.divider-zh { border: 0; border-top: 2px dashed var(--line); margin: 3em 0 2.5em; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-alt);
  padding: 40px 0; margin-top: 20px;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: .92rem; }
.footer-copy { color: var(--ink-soft); font-size: .9rem; }
.footer-contact { flex-basis: 100%; color: var(--ink-soft); font-size: .9rem; }
.footer-contact a { color: var(--ink-soft); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .steps, .features, .pricing { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  section { padding: 52px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-links a.nav-hide { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
