/* ACECONN support site — shared styles for all pages.
   Palette follows the existing TV onair + support page (dark purple + tri-color accents). */

:root {
  --bg: #04010c;
  --bg-elevated: #0d0a17;
  --panel: #131d33;
  --text: #f3f1f8;
  --text-dim: #a9a6bd;
  --rule: #26233a;
  --accent: #7a10b8;
  --accent-bright: #a64be0;
  --blue: #466fd7;
  --yellow: #ffce00;
  --font-display: 'Plus Jakarta Sans', ui-sans-serif, -apple-system, 'Segoe UI',
    'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-body: 'Inter', ui-sans-serif, -apple-system, 'Segoe UI',
    'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf9fd;
    --bg-elevated: #ffffff;
    --panel: #eceaf6;
    --text: #171423;
    --text-dim: #5c5872;
    --rule: #ddd9ea;
    --accent: #7a10b8;
    --accent-bright: #5c0c8f;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-bright); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
p { margin: 0 0 14px; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 1, 12, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
@media (prefers-color-scheme: light) {
  .site-header { background: rgba(250, 249, 253, 0.88); }
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 20px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  letter-spacing: 0.04em; color: var(--text); text-decoration: none;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
}
.brand-mark svg { width: 20px; height: 20px; }
.site-nav {
  display: flex; gap: 4px 18px; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
}
.site-nav a { color: var(--text-dim); text-decoration: none; padding: 4px 2px; }
.site-nav a:hover { color: var(--accent-bright); }
.site-nav a[aria-current="page"] { color: var(--accent-bright); }

/* Language switcher (KO / EN / ES / FR) */
.lang-nav {
  display: flex; align-items: center; gap: 2px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.lang-nav::before {
  content: ""; width: 1px; height: 16px; background: var(--rule); margin-right: 10px;
}
.lang-nav a { color: var(--text-dim); text-decoration: none; padding: 4px 5px; }
.lang-nav a:hover { color: var(--accent-bright); }
.lang-nav a[aria-current="true"] { color: var(--accent-bright); }

/* ---------- Page hero ---------- */
.page-hero {
  background: radial-gradient(circle at 85% 10%, rgba(122, 16, 184, 0.35), transparent 55%),
              linear-gradient(135deg, var(--bg) 0%, var(--panel) 100%);
  border-bottom: 1px solid var(--rule);
  padding: 52px 0 44px;
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.01em; margin: 0 0 10px;
}
.page-hero .lead { color: var(--text-dim); font-size: 1.03rem; max-width: 640px; margin: 0; }

/* ---------- Home hero ---------- */
.hero-home {
  background:
    radial-gradient(circle at 80% 15%, rgba(122, 16, 184, 0.4), transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(70, 111, 215, 0.25), transparent 50%),
    linear-gradient(135deg, var(--bg) 0%, var(--panel) 100%);
  border-bottom: 1px solid var(--rule);
  padding: 88px 0 72px;
}
.hero-home h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 18px;
  max-width: 720px;
}
.hero-home .hero-sub { color: var(--text-dim); font-size: 1.08rem; max-width: 620px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-chips {
  list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin: 0; padding: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
}
.hero-chips li {
  border: 1px solid var(--rule); background: var(--bg-elevated); color: var(--text-dim);
  border-radius: 999px; padding: 6px 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { border-color: var(--rule); color: var(--text); background: var(--bg-elevated); }
.btn-ghost:hover { border-color: var(--accent-bright); }
.text-link { font-weight: 600; }

/* ---------- Sections ---------- */
main { padding: 0 0 80px; }
.section { padding: 52px 0 0; }
.section-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.01em; margin: 0 0 8px;
}
.section-lead { color: var(--text-dim); max-width: 640px; margin-bottom: 28px; }
.section-anchor { scroll-margin-top: 84px; }

h2.section-title { border-bottom: 1px solid var(--rule); padding-bottom: 14px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--bg-elevated); border: 1px solid var(--rule);
  border-radius: 16px; padding: 24px;
}
.card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  margin: 0 0 8px;
}
.card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 0; }
.card .card-links { margin-top: 14px; display: flex; gap: 16px; flex-wrap: wrap; }

.product-card { display: flex; flex-direction: column; gap: 12px; }
.product-card--highlight {
  border-color: rgba(122, 16, 184, 0.55);
  box-shadow: 0 0 24px rgba(122, 16, 184, 0.18);
}
.product-card p { margin-bottom: 0; }
.product-card .text-link { margin-top: auto; }

.product-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
}
.product-icon svg { width: 30px; height: 30px; }
.product-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-card-head h3 { margin: 0; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; border-radius: 999px; padding: 3px 11px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.02em; border: 1px solid var(--rule); color: var(--text-dim);
  background: var(--bg-elevated); white-space: nowrap;
}
.badge--warn { color: var(--yellow); border-color: rgba(255, 206, 0, 0.4); }
.badge--soon { color: var(--accent-bright); border-color: rgba(166, 75, 224, 0.45); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 20px 0 8px;
}
.feature {
  background: var(--bg-elevated); border: 1px solid var(--rule);
  border-radius: 12px; padding: 16px 18px;
}
.feature h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  margin: 0 0 6px;
}
.feature p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

.check-list { list-style: none; margin: 0 0 14px; padding: 0; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent-bright); font-weight: 700;
}

/* ---------- Callouts ---------- */
.callout {
  background: rgba(122, 16, 184, 0.1); border: 1px solid rgba(122, 16, 184, 0.35);
  border-radius: 14px; padding: 18px 20px; margin: 20px 0;
  font-size: 0.95rem;
}
.callout strong { color: var(--accent-bright); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 20px 0; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
  min-width: 520px;
}
table.data th, table.data td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.data th {
  font-family: var(--font-display); font-weight: 600; color: var(--text-dim);
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap;
}
table.data td:first-child { color: var(--text-dim); white-space: nowrap; }

/* ---------- Store buttons & QR ---------- */
.download-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin: 24px 0; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--bg-elevated); border: 1px solid var(--rule);
  border-radius: 14px; padding: 10px 18px 10px 14px; text-decoration: none;
  color: var(--text);
}
.store-btn:hover { border-color: var(--accent-bright); }
.store-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn small {
  display: block; font-size: 0.68rem; color: var(--text-dim); line-height: 1.2;
}
.store-btn strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.98rem; line-height: 1.25;
}

.qr-group { display: flex; gap: 22px; flex-wrap: wrap; margin: 24px 0; }
.qr-item { text-align: center; }
.qr-code {
  background: #fff; border-radius: 12px; padding: 12px;
  display: inline-flex; width: 148px; height: 148px;
  align-items: center; justify-content: center;
}
.qr-code svg { width: 100%; height: 100%; display: block; }
.qr-item .qr-caption {
  margin-top: 8px; font-family: var(--font-display); font-weight: 600;
  font-size: 0.82rem; color: var(--text-dim);
}
.qr-code--fallback { background: #fff; }
.qr-code--fallback a {
  color: #171423; font-size: 0.62rem; word-break: break-all; padding: 4px;
}
.qr-note { color: var(--text-dim); font-size: 0.86rem; }

/* Small QR variant (home page product card). */
.qr-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0; }
.qr-row .qr-code { width: 92px; height: 92px; padding: 8px; }
.qr-row .qr-item .qr-caption { font-size: 0.74rem; }

/* ---------- FAQ / help accordions ---------- */
details.faq {
  background: var(--bg-elevated); border: 1px solid var(--rule);
  border-radius: 12px; margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer; padding: 16px 18px; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  border-radius: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; color: var(--accent-bright); font-size: 1.25rem; line-height: 1;
  flex-shrink: 0;
}
details.faq[open] summary::after { content: "–"; }
details.faq[open] summary { border-bottom: 1px solid var(--rule); border-radius: 12px 12px 0 0; }
details.faq .faq-body { padding: 16px 18px; font-size: 0.95rem; }
details.faq .faq-body p:last-child,
details.faq .faq-body ul:last-child,
details.faq .faq-body ol:last-child { margin-bottom: 0; }
details.faq .faq-body ul, details.faq .faq-body ol { padding-left: 20px; }
details.faq .faq-body li { margin-bottom: 6px; }

.faq-group { margin: 0 0 36px; }
.faq-group h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  margin: 0 0 14px;
}

/* ---------- Privacy / prose ---------- */
.prose { max-width: 760px; }
.prose h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  margin: 28px 0 10px;
}
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table.data { min-width: 420px; }
.meta-line { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 32px; }
p.dim, li.dim { color: var(--text-dim); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule); padding: 40px 0 48px;
  color: var(--text-dim); font-size: 0.88rem;
}
.footer-grid {
  display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em;
  color: var(--text); font-size: 1rem;
}
.footer-nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-dim); }
.footer-nav a:hover { color: var(--accent-bright); }
.site-footer .footer-note { margin: 0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero-home { padding: 60px 0 52px; }
  .section { padding: 40px 0 0; }
  .qr-code { width: 128px; height: 128px; }
  table.data { min-width: 440px; }
}
