/* SellSnap marketing site — colors mirror app theme */
:root {
  --coral: #FF6B6B;
  --coral-dark: #E85555;
  --coral-light: #FF8A8A;
  --navy: #1A1F36;
  --navy-light: #2D3348;
  --bg-soft: #FEF7F5;
  --surface: #FFFFFF;
  --surface-container: #F5F0EE;
  --surface-container-high: #E0D8D6;
  --text-main: #1A1F36;
  --text-muted: #5F6580;
  --text-on-coral: #FFFFFF;
  --purple: #7C5CFC;
  --green: #00C853;
  --border: #E0D8D6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(255,107,107,0.15);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --max-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
    "Noto Sans Thai", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ─── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header / Nav ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
/* Use sticky instead of fixed on legal pages (stays in document flow) */
.site-header.sticky { position: sticky; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 32px; }
.logo-text-nav { height: 28px; }
.logo-text-footer { height: 24px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--coral); text-decoration: none; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  font-size: 13px;
}
.lang-toggle a {
  padding: 5px 12px;
  color: var(--text-muted);
  background: var(--surface);
  font-weight: 600;
}
.lang-toggle a.active {
  background: var(--coral);
  color: white;
}
.lang-toggle a:hover { text-decoration: none; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(255,107,107,0.08), transparent 60%),
    var(--bg-soft);
}
.hero-badge {
  display: inline-block;
  background: rgba(124,92,252,0.1);
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--navy);
}
.hero h1 em {
  font-style: normal;
  color: var(--coral);
}
.hero .lead {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 4px 16px rgba(255,107,107,0.3);
}
.btn-primary:hover {
  background: var(--coral-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text-main);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* ─── Sections ──────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--coral);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 56px;
}

/* ─── Features grid ─────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-sm);
}
.feature .icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.feature .icon.coral { background: rgba(255,107,107,0.12); }
.feature .icon.purple { background: rgba(124,92,252,0.12); }
.feature .icon.green { background: rgba(0,200,83,0.12); }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* ─── Pricing ───────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.plan {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1.5px solid var(--border);
  position: relative;
}
.plan.featured {
  border-color: var(--coral);
  box-shadow: 0 8px 32px rgba(255,107,107,0.12);
}
.plan .badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--coral);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}
.plan h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.plan .price {
  font-size: 36px;
  font-weight: 800;
  color: var(--coral);
}
.plan .price small {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}
.plan .price-note {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}
.plan ul { list-style: none; margin: 20px 0 0; }
.plan li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
  padding-left: 24px;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ─── CTA ───────────────────────────────────────────────────── */
.cta { padding: 80px 0; text-align: center; }
.cta-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 24px;
  padding: 56px 40px;
  color: white;
}
.cta-box h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}
.cta-box p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 40px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-grid .brand { margin-bottom: 12px; }
.footer-grid p { color: var(--text-muted); font-size: 14px; max-width: 360px; }
.footer-grid h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-grid ul { list-style: none; }
.footer-grid li { padding: 4px 0; }
.footer-grid a { color: var(--text-main); font-size: 14px; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.footer-meta--no-border { border-top: none; padding-top: 0; }
.footer-legal-links a { color: var(--coral); font-size: 13px; }
.footer-legal-links a + a::before { content: " · "; color: var(--text-muted); }
.parent-brand { color: var(--text-muted); }
.parent-brand strong { color: var(--text-main); }

/* ─── Legal pages ───────────────────────────────────────────── */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0 12px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal p { color: var(--text-muted); font-size: 15px; margin-bottom: 10px; line-height: 1.7; }
.legal ul, .legal ol { color: var(--text-muted); font-size: 15px; margin: 0 0 10px 24px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--coral); }
.legal hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.legal .toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.legal .toc h3 {
  margin-top: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.legal .toc ul { margin: 8px 0 0 0; list-style: none; }
.legal .toc li { margin-bottom: 4px; padding-left: 0; }
.legal .toc li::before { content: none; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { gap: 12px; }
  .nav-links a:not(.lang-toggle *) { display: none; }
  .hero { padding: 120px 0 60px; }
  .section { padding: 60px 0; }
  .cta { padding: 60px 0; }
  .cta-box { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
