/* QuoteCraft landing */
:root {
  --ink: #1c2430;
  --paper: #f7f5f1;
  --sheet: #ffffff;
  --accent: #0f6b5c;
  --accent-hover: #0c564a;
  --accent-soft: #e6f2f0;
  --muted: #6b7280;
  --line: #d9d4cb;
  --warn: #b45309;
  --radius: 6px;
  --shadow-paper: 0 12px 40px rgba(28, 36, 48, 0.12), 0 2px 6px rgba(28, 36, 48, 0.06);
  --font-display: Georgia, 'Times New Roman', 'Songti SC', serif;
  --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'Cascadia Code', Consolas, 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.trust li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}

.trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Paper preview card */
.paper-frame {
  position: relative;
}

.paper {
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-paper);
  padding: 1.75rem 1.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink);
  transform: rotate(-1.2deg);
  animation: paperIn 0.55s ease;
}

@keyframes paperIn {
  from {
    transform: rotate(-1.2deg) translateY(12px);
  }
  to {
    transform: rotate(-1.2deg) translateY(0);
  }
}

.paper-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 0.85rem;
}

.paper-brand {
  font-weight: 700;
  font-size: 0.95rem;
}

.paper-meta {
  text-align: right;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 0.85rem;
}

.paper th,
.paper td {
  text-align: left;
  padding: 0.4rem 0.25rem;
  border-bottom: 1px solid var(--line);
}

.paper th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.paper td.num,
.paper th.num {
  text-align: right;
  font-family: var(--font-mono);
}

.paper-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-top: 0.5rem;
  font-size: 0.95rem;
}

.paper-total .amt {
  color: var(--accent);
  font-family: var(--font-mono);
}

/* Sections */
section {
  padding: 3.25rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
}

.features {
  border-top: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.35rem;
}

/* How */
.how {
  background: var(--sheet);
  border-block: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 1.1rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--paper);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card.pro {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.price-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.15rem;
  line-height: 1;
}

.price-once {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1.25rem;
}

.price-card ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}

.price-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  padding-left: 1.1rem;
  position: relative;
}

.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.price-note {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.1rem;
}

.faq details[open] summary::after {
  content: '−';
}

.faq p {
  margin: 0.5rem 0 0.25rem;
  color: var(--muted);
  max-width: 52em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .ver {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.8;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Responsive */
@media (max-width: 820px) {
  .hero-grid,
  .feature-grid,
  .steps,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.75rem 0 2rem;
  }

  .paper {
    transform: none;
    animation: paperInMobile 0.55s ease;
  }

  @keyframes paperInMobile {
    from {
      transform: translateY(10px);
    }
    to {
      transform: none;
    }
  }

  .nav a.nav-hide-sm {
    display: none;
  }
}
