/* LociVoice / 声游 — marketing site stylesheet */
:root {
  --primary: #3C6939;
  --primary-dark: #2A4A28;
  --primary-light: #BCF0B4;
  --surface: #FFFFFF;
  --bg: #F7FBF1;
  --text: #111827;
  --subtle: #5B6B57;
  --border: #E1E8DC;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1100px;
  --shadow: 0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

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

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

/* ── Layout helpers ─────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: #0E1F0D; color: #fff; }
.section-title {
  font-size: 2rem; font-weight: 700; letter-spacing: -.02em;
  text-align: center; margin-bottom: 12px;
}
.section-sub {
  font-size: 1.1rem; color: var(--subtle); text-align: center;
  max-width: 560px; margin: 0 auto 48px;
}
.section-dark .section-sub { color: #a3b39e; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: none; transition: opacity .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(60,105,57,.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.25rem; font-weight: 800; color: var(--primary);
  letter-spacing: -.03em; text-decoration: none;
}
.nav-logo img { height: 28px; width: 28px; border-radius: 6px; }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text); }
.nav-links a:not(.btn):hover { color: var(--primary); text-decoration: none; }
.nav-cta { margin-left: 8px; }

/* Mobile nav toggle (CSS-only) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none; cursor: pointer; width: 28px; height: 20px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle-label span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: .25s;
}
@media (max-width: 700px) {
  .nav-toggle-label { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav-links a { padding: 12px 24px; width: 100%; }
  .nav-toggle:checked ~ .nav .nav-inner .nav-links { display: flex; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0E1F0D 0%, #234A21 50%, #1A2E19 100%);
  color: #fff; text-align: center; padding: 100px 24px 80px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15; margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem; color: #bfe8ba; max-width: 560px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.12);
  color: #bfe8ba; font-size: .8rem; font-weight: 600;
  padding: 4px 12px; border-radius: 99px; margin-bottom: 24px;
  letter-spacing: .05em; text-transform: uppercase;
}

/* ── Cards / Grids ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px 24px;
  box-shadow: var(--shadow); transition: transform .2s;
}
.card:hover { transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; font-size: 1.5rem;
}
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--subtle); font-size: .9rem; line-height: 1.6; }

/* ── Steps ──────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--subtle); font-size: .9rem; }

/* ── Pricing ────────────────────────────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; align-items: start;
}
.plan {
  border-radius: var(--radius); border: 1px solid var(--border);
  padding: 32px 28px; background: var(--surface); position: relative;
}
.plan-featured {
  border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 99px; white-space: nowrap;
  letter-spacing: .04em; text-transform: uppercase;
}
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.plan-price {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--primary); line-height: 1.1; margin-bottom: 4px;
}
.plan-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 6px; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--subtle); }
.plan-desc { color: var(--subtle); font-size: .85rem; margin-bottom: 20px; }
.plan-features { list-style: none; margin-bottom: 24px; }
.plan-features li {
  padding: 6px 0; font-size: .9rem; border-bottom: 1px solid var(--border);
  display: flex; gap: 8px; align-items: flex-start;
}
.plan-features li:last-child { border-bottom: none; }
.check { color: var(--primary); flex-shrink: 0; }
.plan-btn { display: block; text-align: center; width: 100%; padding: 12px; }

/* ── Features page ──────────────────────────────────────────── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; margin-bottom: 64px;
}
.feature-row:nth-child(even) .feature-text { order: 2; }
.feature-row:nth-child(even) .feature-visual { order: 1; }
@media (max-width: 700px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-text,
  .feature-row:nth-child(even) .feature-visual { order: unset; }
}
.feature-text h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.feature-text p { color: var(--subtle); margin-bottom: 16px; }
.feature-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: .75rem; font-weight: 700; padding: 3px 10px;
  border-radius: 99px; margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase;
}
.feature-visual {
  background: linear-gradient(135deg, var(--primary-light), #8fd686);
  border-radius: var(--radius); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

/* Real app screenshots, framed like a phone */
.phone-mock {
  max-width: 220px; max-height: 100%;
  background: #17162b; border-radius: 26px; padding: 8px;
  box-shadow: 0 20px 40px rgba(17,24,39,.25);
}
.phone-mock img {
  display: block; width: 100%; height: auto;
  border-radius: 18px;
}

/* ── About ──────────────────────────────────────────────────── */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.value { padding: 24px; border-left: 3px solid var(--primary); }
.value h3 { font-weight: 700; margin-bottom: 8px; }
.value p { color: var(--subtle); font-size: .9rem; }
.mission-block {
  max-width: 680px; margin: 0 auto; text-align: center;
}
.mission-block blockquote {
  font-size: 1.4rem; font-weight: 600; line-height: 1.5;
  color: var(--primary); margin-bottom: 20px; font-style: italic;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit;
  background: var(--surface); transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60,105,57,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.field-error { color: #DC2626; font-size: .82rem; margin-top: 4px; }
.form-group input.has-error, .form-group textarea.has-error {
  border-color: #DC2626;
}
.alert {
  padding: 16px 20px; border-radius: var(--radius-sm);
  margin-bottom: 20px; font-weight: 500;
}
.alert-success { background: #D1FAE5; color: #065F46; }
.contact-aside h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.contact-aside p { font-size: .9rem; color: var(--subtle); margin-bottom: 16px; }

/* ── Legal ──────────────────────────────────────────────────── */
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; }
.legal-wrap h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.legal-meta { color: var(--subtle); font-size: .88rem; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.legal-content h2 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 8px; }
.legal-content p { margin-bottom: 12px; color: var(--subtle); }
.legal-content ul { padding-left: 20px; margin-bottom: 12px; color: var(--subtle); }
.legal-content li { margin-bottom: 6px; }

/* ── Download strip ─────────────────────────────────────────── */
.download-strip {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 56px 24px; text-align: center;
}
.download-strip h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.download-strip p { color: rgba(255,255,255,.8); margin-bottom: 28px; }
.store-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #0E1F0D; color: #a3b39e;
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 40px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand .logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: .85rem; line-height: 1.6; }
.footer-col h4 { font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #a3b39e; font-size: .88rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .82rem; }
.icp-link { color: #a3b39e; font-size: .82rem; }
.icp-link:hover { color: #fff; }

/* ── Responsive tweaks ──────────────────────────────────────── */
@media (max-width: 700px) {
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; }
  .hero { padding: 64px 24px 56px; }
}
