/* Shared landing-page styles for SEO/programmatic pages.
   Kept separate from the inline app CSS so all landing pages reuse
   one cached stylesheet. Visual tokens mirror /index.html. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #08090f;
  --bg-elev: #11131c;
  --bg-elev-2: #1a1d2c;
  --bg-elev-3: #232842;
  --border: #2a2f4a;
  --border-bright: #3a426b;
  --fg: #f2f4fb;
  --fg-dim: #8d97b5;
  --fg-faint: #5b6588;
  --accent: #8b6bff;
  --accent-2: #6b9bff;
  --success: #3acf86;
  --warn: #ffb547;
  --pro: linear-gradient(135deg, #a085ff 0%, #6b9bff 100%);
}
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(ellipse at 80% -10%, rgba(107,155,255,.18) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 30%, rgba(139,107,255,.15) 0%, transparent 50%),
    var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", "Sarabun", system-ui, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--bg-elev-2); padding: 2px 6px; border-radius: 4px; font-size: .92em; }

header.site {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(8,9,15,.55);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--pro);
  display: grid; place-items: center; font-size: 18px;
}
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-name span {
  background: var(--pro);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lang-toggle {
  background: var(--bg-elev-2); color: var(--fg);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 12px; font-size: 12px; font-weight: 600;
}

main.landing { flex: 1; max-width: 820px; width: 100%; margin: 0 auto; padding: 48px 24px 80px; }

.crumbs { font-size: 12px; color: var(--fg-faint); margin-bottom: 18px; }
.crumbs a { color: var(--fg-dim); }
.crumbs span { margin: 0 6px; }

.hero { text-align: center; margin-bottom: 36px; }
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}
.hero h1 span {
  background: var(--pro);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero .lede { color: var(--fg-dim); font-size: 17px; margin: 0 auto 22px; max-width: 640px; }
.hero-badges { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.hero-badge {
  background: var(--bg-elev); border: 1px solid var(--border);
  padding: 4px 12px; font-size: 11px; border-radius: 999px; color: var(--fg-dim);
}
.hero-badge strong { color: var(--accent); font-weight: 600; }

.cta-block {
  background: linear-gradient(135deg, rgba(160,133,255,.12) 0%, rgba(107,155,255,.12) 100%);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin: 28px 0 40px;
}
.cta-block .cta-title { font-weight: 700; font-size: 19px; margin: 0 0 12px; }
.cta-block .cta-sub { color: var(--fg-dim); font-size: 13px; margin: 14px 0 0; }
.btn-primary {
  display: inline-block;
  background: var(--pro);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(139,107,255,.35);
  transition: transform .08s;
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }

section { margin: 40px 0; }
section h2 {
  font-size: 24px;
  margin: 0 0 16px;
  letter-spacing: -.01em;
  font-weight: 700;
}
section h3 { font-size: 17px; margin: 22px 0 8px; }
section p { color: var(--fg-dim); margin: 0 0 14px; }
section ul, section ol { color: var(--fg-dim); padding-left: 22px; }
section li { margin-bottom: 8px; }
section strong { color: var(--fg); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 15px; color: var(--fg); }
.feature-card p { margin: 0; font-size: 13px; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
table.compare th, table.compare td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--fg-dim);
}
table.compare th { background: var(--bg-elev-2); color: var(--fg); font-weight: 600; font-size: 13px; }
table.compare tr:last-child td { border-bottom: none; }
table.compare .ours { color: var(--accent); font-weight: 600; }

.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: var(--accent);
  transition: transform .15s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--fg-dim); font-size: 14px; }

.related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}
@media (max-width: 600px) { .related { grid-template-columns: 1fr; } }
.related a {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--fg);
  font-size: 14px;
  text-decoration: none;
}
.related a:hover { border-color: var(--accent); text-decoration: none; }
.related a strong { display: block; margin-bottom: 4px; }
.related a span { color: var(--fg-dim); font-size: 12px; }

/* Free-tool uploader (BPM / key detector) */
.tool-drop {
  display: block;
  border: 2px dashed var(--border-bright);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  margin: 8px 0 18px;
}
.tool-drop:hover, .tool-drop.drag { border-color: var(--accent); transform: translateY(-2px); }
.tool-drop .tool-ico { font-size: 46px; margin-bottom: 12px; }
.tool-drop h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.tool-drop p { margin: 0; color: var(--fg-dim); font-size: 13px; }
.tool-drop input[type="file"] { display: none; }
.tool-status {
  text-align: center; color: var(--accent-2); font-size: 14px; margin: 10px 0;
}
.tool-result {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin: 8px 0 18px;
}
.tool-stat {
  background: var(--bg-elev); border: 1px solid var(--border-bright);
  border-radius: 14px; padding: 20px 28px; min-width: 140px; text-align: center;
}
.tool-stat .v {
  font-size: 38px; font-weight: 700; line-height: 1.1;
  background: var(--pro); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tool-stat .l {
  font-size: 11px; color: var(--fg-faint); text-transform: uppercase;
  letter-spacing: .05em; margin-top: 6px;
}
.tool-fname { text-align: center; color: var(--fg-faint); font-size: 12px; margin-bottom: 18px; word-break: break-all; }

footer.site {
  text-align: center;
  color: var(--fg-faint);
  font-size: 12px;
  padding: 24px;
  border-top: 1px solid var(--border);
}
footer.site a { color: inherit; margin: 0 8px; }
