/* Glimbench marketing, pricing and legal page styles. */
.hero { position: relative; padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -260px; z-index: -1;
  background: radial-gradient(circle, rgba(232,163,23,.28), rgba(232,163,23,0) 65%);
}
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero .lead { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent-deep); margin-bottom: 14px; }

.section { padding: clamp(32px, 6vw, 64px) 0; }
.section-head { max-width: 60ch; margin-bottom: 28px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tool-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease; }
a.tool-card:hover { transform: translateY(-3px); border-color: var(--accent); color: inherit; }
.tool-card h3 { margin: 0; }
.tool-card p { color: var(--muted); margin: 0; flex: 1; }
.tool-card .tool-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.4rem; }
.tool-card.is-soon { background: transparent; border-style: dashed; box-shadow: none; }
.tool-card.is-soon .tool-icon { background: #eeebe2; filter: grayscale(1); }
.badge { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.badge-soon { background: #eeebe2; color: var(--muted); }
.card-link { font-weight: 600; color: var(--accent-deep); }

.points { counter-reset: pt; }
.point { position: relative; padding-top: 52px; }
.point::before {
  counter-increment: pt; content: counter(pt); position: absolute; top: 20px; left: 24px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--fg); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.point h3 { margin-bottom: .4em; }
.point p { color: var(--muted); margin: 0; }
code, kbd { font-family: var(--font-mono); font-size: .9em; background: #f1eee4; padding: 1px 6px; border-radius: 6px; }

.cta-band { background: var(--fg); color: #fff; border-radius: calc(var(--radius) * 1.5); padding: clamp(28px, 5vw, 56px); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { color: #d8d4c8; margin: 0; }
.cta-band .btn-primary { box-shadow: none; }

/* Pricing */
.page-head { padding: clamp(36px, 6vw, 72px) 0 12px; }
.page-head p { color: var(--muted); max-width: 60ch; font-size: 1.1rem; }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 8px; position: relative; }
.plan h3 { margin: 0; }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; margin: 6px 0 0; }
.plan .price small { font-size: 1rem; font-weight: 400; color: var(--muted); font-family: var(--font); }
.plan .sub { color: var(--muted); margin: 0; min-height: 3em; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.featured { border: 2px solid var(--fg); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 55%); }
.plan .flag { position: absolute; top: -13px; left: 20px; background: var(--fg); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.counter { font-weight: 600; color: var(--accent-deep); margin: 0; min-height: 1.6em; }
.fine { font-size: .9rem; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare caption { text-align: left; padding: 16px 18px 0; font-weight: 700; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: #f4f1e8; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 600; width: 38%; }
.compare .pro { background: rgba(232,163,23,.08); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.faq details p { color: var(--muted); }

/* Legal / prose */
.prose { max-width: 72ch; padding-bottom: 24px; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose li { margin-bottom: .4em; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.draft-note { background: var(--accent-soft); border: 1px solid #f0d28a; border-radius: var(--radius); padding: 14px 18px; font-size: .95rem; margin-bottom: 1.5em; }
.ph { background: #fff3bf; padding: 0 4px; border-radius: 4px; font-family: var(--font-mono); font-size: .9em; }
/* "Legal documents are English only" notice: hidden by default, shown only in the Chinese interface. */
.legal-lang-note { display: none; }
html[lang="zh-Hans"] .legal-lang-note {
  display: block; max-width: 72ch; margin: 0 0 1.5em; padding: 12px 18px;
  background: #f4f1e8; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--muted); font-size: .95rem;
}

.notfound { text-align: center; padding: clamp(60px, 14vw, 160px) 0; }
.notfound .big { font-family: var(--font-display); font-size: clamp(5rem, 22vw, 10rem); line-height: 1; color: var(--accent); margin: 0; }

/* Chinese interface. The "ch" unit (width of "0") is about half a CJK glyph, so the ch-based
   measures above are retuned in em, and CJK text is never set in (synthetic) italics. */
html[lang="zh-Hans"] .hero h1 { max-width: 13em; text-wrap: balance; }
html[lang="zh-Hans"] .hero h1 em { font-style: normal; }
html[lang="zh-Hans"] .hero .lead { max-width: 32em; }
html[lang="zh-Hans"] .page-head p { max-width: 40em; }
html[lang="zh-Hans"] .eyebrow { font-size: .85rem; letter-spacing: .1em; }

@media (max-width: 480px) {
  .card { padding: 18px; }
  .point::before { left: 18px; }
}
