/* ============================================================
   public.css — noban marketing landing page styles
   independent of share.css / admin.css (color tokens duplicated
   intentionally so this file stands alone for cache busting)
   ============================================================ */

:root {
  --paper:  #fbf7ee;
  --paper-2:#f4ecd8;
  --ink:    #2a2418;
  --ink-2:  #4a4131;
  --muted:  #7a6f5e;
  --accent: #c5453f;
  --accent-2:#a23532;
  --ok:     #5a7d3e;
  --rule:   #d8cfb8;
  --container-w: 1200px;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', 'Source Han Serif SC', 'Songti SC', ui-serif, Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

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

code {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 4px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,247,238,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 16px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.nav__brand:hover { text-decoration: none; }
.nav__logo { width: 32px; height: 32px; border-radius: 4px; }
.nav__brand-name {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav__brand-tagline {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .nav__brand-tagline { display: none; }
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}
.nav__links a {
  color: var(--ink-2);
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 500;
}
.nav__links a:hover { color: var(--accent); text-decoration: none; }
.nav__card-entry { color: var(--muted) !important; font-size: 14px !important; }
.nav__cta {
  background: var(--accent);
  color: var(--paper) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav__cta:hover { background: var(--accent-2); text-decoration: none; color: var(--paper) !important; }
@media (max-width: 640px) {
  .nav__links { gap: 12px; }
  .nav__card-entry { display: none; }
}

/* ===== HERO ===== */
.hero {
  padding: 64px 0 96px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.hero--page { padding: 48px 0 32px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
}
.hero__title {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.hero__proof {
  font-size: 14px;
  color: var(--muted);
}
.hero__proof strong {
  color: var(--accent);
  font-weight: 600;
}
.hero__terminal {
  background: #1a1a2e;
  color: #f4ecd8;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(42,36,24,0.15);
  white-space: pre-wrap;
  overflow: auto;
}
.hero__terminal .t-muted { color: #7a6f5e; }
.hero__terminal .t-prompt { color: #5a9d3e; }
.hero__terminal .t-claude { color: #c5853f; }
.hero__terminal .t-stream { color: #d4d4d4; font-style: italic; }

/* ===== SECTIONS ===== */
.section {
  padding: 96px 0;
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
}
.section__title {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-align: center;
  margin-bottom: 16px;
}
.section__sub {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ===== PAIN ===== */
.section--pain { background: var(--paper-2); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr; }
}
.pain-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px;
  border-radius: var(--radius);
}
.pain-card__icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.pain-card__title {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
}
.pain-card__body {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

/* ===== SOLUTION ===== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .solution-grid { grid-template-columns: 1fr; }
}
.solution-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 32px;
  border-radius: var(--radius);
  transition: transform 0.15s ease;
}
.solution-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.solution-card__icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.solution-card__title {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--ink);
}
.solution-card__body {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

/* ===== PRICING ===== */
.section--pricing { background: var(--paper-2); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  /* 让两张卡的"加微信开通"按钮永远对齐：卡片纵向 flex,
     列表 flex-grow:1 撑开剩余空间，把按钮挤到底部 */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pricing-card__list {
  flex-grow: 1;
}
.pricing-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 8px 24px rgba(197,69,63,0.1);
}
.pricing-card__badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: var(--paper);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.pricing-card__label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.pricing-card__name {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 16px;
  color: var(--ink);
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}
.pricing-card__price .currency {
  font-size: 24px;
  color: var(--muted);
}
.pricing-card__price .amount {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.pricing-card__price .period {
  font-size: 18px;
  color: var(--muted);
}
.pricing-card__pitch {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 24px;
  font-style: italic;
}
.pricing-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.pricing-card__list li {
  font-size: 15px;
  color: var(--ink-2);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}
.pricing-card__list li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 700;
  position: absolute;
  left: 0;
}
.pricing-card__alt {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted) !important;
}
.pricing__note {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== COMPARE TABLE ===== */
.compare-table { overflow-x: auto; }
.compare-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 15px;
  min-width: 600px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.compare-table th {
  background: var(--paper-2);
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 600;
}
.compare-table th.featured, .compare-table td.featured {
  background: rgba(197,69,63,0.05);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
.testimonial {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 28px;
  border-radius: var(--radius);
}
.testimonial blockquote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 20px;
  font-style: italic;
}
.testimonial figcaption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.testimonial figcaption strong {
  color: var(--ink);
  font-weight: 600;
}
.testimonial__metric {
  margin-top: 16px;
  padding: 6px 12px;
  background: var(--paper-2);
  border-radius: 4px;
  font-size: 12px;
  color: var(--ok);
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ===== FAQ ===== */
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  padding-right: 30px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 24px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.faq__group {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  margin: 48px 0 8px;
  color: var(--accent);
}
.faq__group:first-child { margin-top: 0; }
.faq--full { max-width: 800px; margin: 0 auto; }
.faq__more {
  text-align: center;
  margin-top: 32px;
}

/* ===== CTA ===== */
.section--cta {
  background: var(--ink);
  color: var(--paper);
}
.section--cta .cta-wrap {
  text-align: center;
  max-width: 700px;
}
.cta__title {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--paper);
  margin-bottom: 16px;
}
.cta__sub {
  color: rgba(251,247,238,0.7);
  font-size: 16px;
  margin-bottom: 32px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.cta-button--primary {
  background: var(--accent);
  color: var(--paper) !important;
}
.cta-button--primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  text-decoration: none;
}
.cta-button--ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--rule);
}
.cta-button--ghost:hover {
  border-color: var(--ink);
  text-decoration: none;
}
.section--cta .cta-button--ghost {
  color: var(--paper) !important;
  border-color: rgba(251,247,238,0.3);
}
.section--cta .cta-button--ghost:hover {
  border-color: var(--paper);
}
.cta-button--block { display: block; text-align: center; width: 100%; }
.cta-button--large { padding: 18px 36px; font-size: 18px; }

/* ===== QR MODAL ===== */
.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(42,36,24,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
/* [hidden] 默认 display:none 的优先级低于 .qr-modal 的 display:flex,
   显式覆盖一下，否则 modal 在页面打开时一直显示。 */
.qr-modal[hidden] { display: none; }
.qr-modal__box {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 720px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.qr-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
  width: 44px;
  height: 44px;
  line-height: 1;
  border-radius: 50%;
}
.qr-modal__close:hover { background: var(--paper-2); color: var(--ink); }
.qr-modal__title {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  margin-bottom: 24px;
}
.qr-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 600px) {
  .qr-modal__grid { grid-template-columns: 1fr; }
}
.qr-card {
  text-align: center;
  padding: 20px;
  background: var(--paper-2);
  border-radius: var(--radius);
}
.qr-card img {
  margin: 0 auto;
  max-width: 200px;
  border-radius: 4px;
}
.qr-placeholder {
  background: var(--rule);
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.qr-card__title {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  margin-top: 12px;
  color: var(--ink);
}
.qr-card__desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.qr-modal__hint {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(251,247,238,0.7);
  padding: 48px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__col--brand .footer__brand {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 12px;
}
.footer__desc {
  font-size: 14px;
  line-height: 1.6;
}
.footer__heading {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--paper);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__col ul li {
  font-size: 14px;
  padding: 4px 0;
}
.footer__col ul li a {
  color: rgba(251,247,238,0.7);
}
.footer__col ul li a:hover {
  color: var(--paper);
  text-decoration: none;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(251,247,238,0.1);
  font-size: 13px;
}
@media (max-width: 600px) {
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
