/* CoreA Essentia · Nomadful App Landing (Figma Community reference) */

:root {
  --bg: #faf8f5;
  --bg-alt: #f3efe8;
  --surface: #ffffff;
  --sage: #51634e;
  --sage-soft: #7c8b74;
  --sage-muted: rgba(81, 99, 78, 0.12);
  --ink: #2e342b;
  --muted: #5a6356;
  --line: rgba(46, 52, 43, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 4px 20px rgba(46, 52, 43, 0.06);
  --shadow-md: 0 12px 40px rgba(46, 52, 43, 0.1);
  --max: 1040px;

  --card: var(--surface);
  --accent: var(--sage);
}

* { box-sizing: border-box; }
html { font-size: 16px; overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header--hero,
.site-header--solid { background: rgba(250, 248, 245, 0.92); }
.site-logo {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; opacity: 0.85; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 4px 14px rgba(81, 99, 78, 0.28);
}
.btn-primary:hover { color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { color: var(--ink); }
.btn-disabled {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: default;
  user-select: none;
}
.btn-disabled:hover { transform: none; }

/* Hero — Nomadful: headline + device preview */
.hero {
  padding: 56px 0 72px;
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sage-muted);
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  color: var(--ink);
}
.hero-lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 26em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Device preview — app UI mock, no photo cramming */
.device {
  width: min(300px, 100%);
  margin: 0 auto;
  padding: 10px;
  background: #1a1f18;
  border-radius: 36px;
  box-shadow: var(--shadow-md);
}
.device-screen {
  background: var(--bg-alt);
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.device-status {
  height: 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.device-body {
  flex: 1;
  padding: 20px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.device-app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.device-app-row .app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.device-app-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.device-app-sub {
  font-size: 0.75rem;
  color: var(--muted);
}
.ui-stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.ui-stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.ui-stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sage);
}
.ui-stat-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-hd {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 40px;
}
.section-hd h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.section-hd p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Core Features — Nomadful modules (text + icon, no photos) */
.feature-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sage-muted);
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-row h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.feature-row p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.step {
  text-align: center;
  padding: 28px 18px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin: 0 0 8px; font-size: 0.95rem; }
.step p { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.55; }

/* Trust */
.trust-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 28px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.trust-card h2 { margin: 0 0 12px; font-size: 1.15rem; }
.trust-card p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.trust-note { font-size: 0.82rem !important; margin-bottom: 20px !important; }
.trust-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* FAQ */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.faq-item summary {
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--muted);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}
.faq-more {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Download CTA */
.download {
  padding: 64px 0;
  background: linear-gradient(165deg, var(--sage) 0%, #3f4e3c 100%);
  text-align: center;
  color: #fff;
}
.download .app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  margin-bottom: 16px;
}
.download h2 { margin: 0 0 6px; font-size: 1.4rem; color: #fff; }
.download-lead { margin: 0 0 6px; font-size: 0.9rem; opacity: 0.9; }
.download-note { margin: 0 0 22px; font-size: 0.8rem; opacity: 0.75; }

/* Footer */
.site-footer {
  padding: 28px 20px 40px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  margin-bottom: 16px;
}
.site-footer-nav a {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
}
.site-footer-nav a:hover { color: var(--ink); text-decoration: none; }
.site-footer p { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Legal pages */
.page-legal { background: var(--bg); }
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 22px; }
.card h2 { margin: 22px 0 8px; font-size: 1.05rem; color: var(--ink); }
.card p { margin: 0 0 12px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
ul, ol { margin: 0 0 12px; padding-left: 1.2em; color: var(--muted); }
li { margin-bottom: 8px; }
code {
  font-size: 0.86em;
  background: var(--sage-muted);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.callout {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--sage-muted);
  color: var(--ink);
  font-size: 0.92rem;
  border: 1px solid var(--line);
}
.contact-block {
  margin: 0 0 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.contact-block .mail {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--sage);
}
.contact-block .hint { margin: 8px 0 0; font-size: 0.88rem; color: var(--muted); }
table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--muted);
}
table.data th,
table.data td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
table.data th {
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 600;
}
ul.faq li { margin-bottom: 14px; }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-text { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 52px; }
  table.data { display: block; overflow-x: auto; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lang-select {
  appearance: none;
  background-color: transparent;
  border: 1px solid rgba(81,99,78,0.25);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #5a6356;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6356' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}
.site-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
