/* ============================================================
   Essevin — quiet premium
   ToC 舰队 main 站。字体自托管（大陆/HK 访问 Google Fonts 会被阻断）。
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/essevin/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --text: #0A0A0A;
  --text-2: #666666;
  --text-3: #999999;
  --border: #EAEAEA;
  --green: #00C853;
  --radius: 8px;
  --radius-pill: 100px;
  --max-w: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* shadow-as-border + soft elevation (Vercel technique) */
  --shadow-card: 0 0 0 1px var(--border);
  --shadow-float: 0 0 0 1px var(--border), 0 8px 30px rgba(0, 0, 0, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; }

h1 {
  font-size: clamp(44px, 6.5vw, 72px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.container-narrow { max-width: 760px; }

section { padding: 96px 0; }

.section-alt { background: var(--bg-alt); }

.caption-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.section-sub {
  color: var(--text-2);
  font-size: 17px;
  max-width: 560px;
  margin: 12px auto 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: #2a2a2a; }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: #c8c8c8; }

.btn-inverse {
  background: #fff;
  color: var(--text);
}
.btn-inverse:hover { background: #f0f0f0; }

.btn-sm { padding: 9px 14px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  white-space: nowrap;
}

.pill-xs { font-size: 12px; padding: 3px 9px; }

.pill-muted { color: var(--text-3); }

button.pill-more {
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

button.pill-more:hover {
  border-color: #c8c8c8;
  color: var(--text-2);
}

.pill-extra { display: contents; }

.pill-extra[hidden] { display: none; }

.pill-live { color: var(--text-2); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wordmark img { width: 22px; height: 22px; border-radius: 6px; }

.nav-links {
  display: flex;
  gap: 28px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s ease;
}
.nav-signin:hover { color: var(--text); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease;
}

.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mobile-drawer.is-open { display: flex; }

.mobile-drawer a:not(.btn) {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
}

.mobile-drawer hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

.mobile-drawer .btn { margin-top: 8px; }

/* ---------- Hero ---------- */

.hero {
  padding: 140px 0 100px;
  text-align: center;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 640px;
  margin: 24px auto 0;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-caption {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 20px;
}

/* hero load stagger */
[data-stagger] {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.55s ease forwards;
}
[data-stagger]:nth-child(1) { animation-delay: 0ms; }
[data-stagger]:nth-child(2) { animation-delay: 80ms; }
[data-stagger]:nth-child(3) { animation-delay: 160ms; }
[data-stagger]:nth-child(4) { animation-delay: 240ms; }
[data-stagger]:nth-child(5) { animation-delay: 320ms; }
[data-stagger]:nth-child(6) { animation-delay: 400ms; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Models marquee ---------- */

.models { text-align: center; }

.marquee {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  padding: 2px 0;
  animation: marquee-scroll 60s linear infinite;
}

.marquee-right .marquee-track { animation-direction: reverse; }

.marquee-row:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

.m-set-dup { display: contents; }

.m-card {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: 16px;
  padding: 8px 20px 8px 9px;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.m-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.m-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.m-icon-full { box-shadow: none; }

.m-icon-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Value props ---------- */

.value { text-align: center; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
  text-align: left;
}

.value-icon { color: var(--text); display: block; }

.value-item h3 { margin-top: 16px; }

.value-item p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- Pricing ---------- */

.pricing { text-align: center; }

.billing-toggle {
  display: inline-flex;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  background: var(--bg);
}

.billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-2);
  background: none;
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.billing-btn.is-active {
  background: var(--text);
  color: #fff;
}

.save-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--green);
  background: rgba(0, 200, 83, 0.08);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
}

.billing-btn.is-active .save-tag { background: rgba(255, 255, 255, 0.14); }

/* 四卡等高：grid 拉伸 + 卡片纵向 flex，功能列表 flex:1 撑开，底部对齐 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
  align-items: stretch;
  text-align: left;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 28px 24px 26px;
}

.price-card-popular {
  box-shadow: 0 0 0 1.5px var(--text), 0 12px 32px rgba(0, 0, 0, 0.08);
}

.popular-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--text);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  white-space: nowrap;
}

.price-head { min-height: 44px; }

.price-tagline {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 6px;
}

/* 价格区固定高度：月/年切换与 note 两行文案不引起卡片跳动 */
.price-block {
  margin-top: 18px;
  min-height: 76px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}

.price-cur {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  align-self: flex-start;
  margin-top: 6px;
}

.price-num {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price-per {
  font-size: 14px;
  color: var(--text-3);
  margin-left: 3px;
}

.price-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
  min-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-note-annual { display: none; }
.pricing.is-annual .price-note-annual { display: inline; }
.pricing.is-annual .price-note-monthly { display: none; }

.price-card .btn-block { margin-top: 20px; }

.card-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0 18px;
}

.credits-row {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.credits-row strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-right: 4px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feat-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--green);
  background: rgba(0, 200, 83, 0.1);
  margin-top: 1px;
}

.feat-icon.no {
  color: var(--text-3);
  background: #F0F0F0;
}

.feat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.feat-cat {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.feat-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
}

.feat-off .feat-text { color: var(--text-3); }

/* 模型清单从卡片抽出：四卡内容整齐，模型 pill 单独一栏 */
.plan-models {
  margin: 28px auto 0;
  max-width: 880px;
  padding: 20px 22px;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.plan-models-lead {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.plan-models-lead strong { color: var(--text); font-weight: 600; }

.feat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-plans {
  margin: 20px auto 0;
  max-width: 880px;
  text-align: left;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.compare-plans summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compare-plans summary::-webkit-details-marker { display: none; }

.compare-plans summary::after {
  content: "+";
  font-size: 18px;
  color: var(--text-3);
  transition: transform 0.25s ease;
}

.compare-plans[open] summary::after { transform: rotate(45deg); }

.table-scroll {
  overflow-x: auto;
  padding: 0 22px 20px;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}

.plan-table th, .plan-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.plan-table thead th {
  border-top: none;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding-top: 4px;
}

.plan-table tbody th {
  font-weight: 500;
  color: var(--text-2);
}

.plan-table td { color: var(--text); }

.plan-table td:nth-child(3) { font-weight: 500; }

.pricing-caption {
  font-size: 13px;
  color: var(--text-3);
  margin: 28px auto 0;
  max-width: 720px;
  line-height: 1.6;
}

/* ---------- Comparison ---------- */

.comparison { text-align: center; }

.compare-stack {
  max-width: 420px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 14px 20px;
}

.compare-price { color: var(--text-3); font-variant-numeric: tabular-nums; }

.compare-sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 20px 0;
  color: var(--text-3);
}

.compare-strike { text-decoration: line-through; }

.compare-arrow {
  font-size: 18px;
  color: var(--text-3);
  padding: 2px 0;
}

.compare-winner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.compare-winner-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.compare-winner-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.compare-winner-approx {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Testimonials ---------- */

.testimonials { text-align: center; }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  text-align: left;
}

.quote-card {
  margin: 0;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-card blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}

.quote-card figcaption {
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- FAQ ---------- */

.faq h2 { text-align: center; }

.accordion {
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.acc-item { border-bottom: 1px solid var(--border); }

.acc-item h3 { margin: 0; font-size: inherit; letter-spacing: normal; }

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--text);
  background: none;
  border: none;
  padding: 20px 4px;
  cursor: pointer;
}

.acc-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-3);
  line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.acc-item.is-open .acc-icon { transform: rotate(45deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }

.acc-content { overflow: hidden; }

.acc-content p {
  padding: 0 4px 22px;
  font-size: 15px;
  color: var(--text-2);
  max-width: 65ch;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--text);
  color: #fff;
  text-align: center;
  padding: 120px 0;
}

.final-cta h2 { margin-bottom: 32px; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-stagger] { animation: none; opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .acc-panel, .acc-icon, .btn, .nav-burger span { transition: none; }
  .btn:active { transform: none; }
  .marquee-track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-row { overflow-x: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .models-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 72px 0; }
  .hero { padding: 96px 0 72px; }
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .price-head { min-height: 0; }
  .price-block { min-height: 0; }
  .plan-models, .compare-plans { border-radius: 10px; }
  .table-scroll { padding: 0 14px 16px; }
  .quote-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 64px; }
  .hero-ctas .btn { width: 100%; }
  .final-cta { padding: 88px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Shared community-entry widget: match quiet monochrome palette ---------- */
/* 只覆写变量，不改 /shared/community-entry.css（改共享文件要全舰队 bump ?v=）。 */

.community-entry {
  --community-accent: #0A0A0A;
  --community-accent-hover: #2a2a2a;
  --community-accent-text: #fff;
  --community-panel: #fff;
  --community-panel-text: #0A0A0A;
  --community-panel-muted: #666666;
  --community-panel-border: #EAEAEA;
  font-family: var(--font);
}
