/* DeKAA PicStudio — shared stylesheet (landing + legal pages).
   Brand: blue accent on light theme.
   Pattern adapted from AIVoiceSeparator (proven SEO landing structure). */

:root {
  --brand: #1A73E8;          /* DeKAA blue */
  --brand-dark: #1559C0;
  --brand-soft: #EAF2FE;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --radius: 12px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Sukhumvit Set",
               "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700; font-size: 18px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.brand-mark {
  display: inline-block; width: 28px; height: 28px;
  background: var(--brand); border-radius: 8px;
  color: white; text-align: center; line-height: 28px;
  font-weight: 800; font-size: 14px;
}
.lang-switch {
  font-size: 14px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: white; color: var(--ink); cursor: pointer;
}
.lang-switch:hover { border-color: var(--brand); }

/* Hero */
.hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 100%);
}
.hero h1 {
  font-size: 44px; line-height: 1.15; margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 19px; color: var(--ink-soft); max-width: 720px;
  margin: 0 0 28px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 0; transition: transform 0.1s, box-shadow 0.1s;
}
.btn-primary {
  background: var(--brand); color: white;
}
.btn-primary:hover {
  background: var(--brand-dark); text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,138,0,0.3);
}
.btn-secondary {
  background: white; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--brand); text-decoration: none; }

/* Sections */
section { padding: 56px 0; }
section h2 {
  font-size: 30px; margin: 0 0 12px; letter-spacing: -0.01em;
}
section .section-lead {
  color: var(--ink-soft); max-width: 720px; margin: 0 0 36px; font-size: 16px;
}

/* Feature cards */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .ico {
  display: inline-block; width: 40px; height: 40px;
  background: var(--brand-soft); border-radius: 10px;
  text-align: center; line-height: 40px; font-size: 20px;
  margin-bottom: 12px;
}

/* Pricing teaser */
.pricing {
  background: var(--bg-soft);
}
.price-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.price-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-align: left;
}
.price-card.featured { border-color: var(--brand); border-width: 2px; position: relative; }
.price-card.featured::before {
  content: "Popular"; position: absolute; top: -10px; right: 16px;
  background: var(--brand); color: white; padding: 2px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
}
.price-card .price {
  font-size: 28px; font-weight: 700; margin: 8px 0;
}
.price-card .price small { font-size: 14px; color: var(--ink-soft); font-weight: 400; }
.price-card ul { padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft); }
.price-card ul li { padding: 4px 0; }
.price-card ul li::before { content: "✓ "; color: var(--brand); font-weight: 700; }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; padding: 0;
  background: white;
}
.faq summary {
  padding: 18px 20px; cursor: pointer; font-weight: 600;
  list-style: none; user-select: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; margin: 0; color: var(--ink-soft); }
.faq details code {
  background: var(--brand-soft); padding: 2px 6px; border-radius: 4px;
  font-size: 0.9em;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0; color: var(--ink-soft); font-size: 14px;
}
footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer a { color: var(--ink-soft); margin: 0 8px; }

/* Legal pages */
.legal-content {
  max-width: 760px; margin: 0 auto; padding: 32px 24px 64px;
  font-size: 16px;
}
.legal-content h1 { font-size: 32px; margin-bottom: 8px; }
.legal-content .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; }
.legal-content h2 { font-size: 20px; margin-top: 32px; }
.legal-content p, .legal-content ul { color: var(--ink-soft); }
.legal-content ul li { margin: 6px 0; }

/* Mobile */
@media (max-width: 700px) {
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 16px; }
  section { padding: 40px 0; }
  section h2 { font-size: 24px; }
}
