/* =========================================================
   ShareThings — Minimal design system (Light / Dark)
   Contrast target: WCAG AA (>= 4.5:1 body text) on both themes,
   tuned for low-quality / low-brightness screens.
   ========================================================= */

:root,
[data-theme="dark"] {
  --bg: #0b1120;
  --bg-alt: #0f1729;
  --surface: #131d33;
  --surface-2: #1a2640;
  --border: #2c3b58;
  --border-strong: #46597d;

  --text: #f1f5f9;
  --text-muted: #c0cad8;
  --text-dim: #93a3ba;

  --accent: #5cc8ff;
  --accent-soft: rgba(92, 200, 255, 0.12);
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;

  --btn-primary-bg: #f1f5f9;
  --btn-primary-fg: #0b1120;
  --btn-primary-hover: #dbe3ee;

  --header-bg: rgba(11, 17, 32, 0.94);
  --footer-bg: #080d19;
  --input-bg: #0b1120;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --border: #c9d3e0;
  --border-strong: #8d9bb0;

  --text: #0b1220;
  --text-muted: #334155;
  --text-dim: #4b5a70;

  --accent: #0a5cad;
  --accent-soft: rgba(10, 92, 173, 0.08);
  --success: #047857;
  --warning: #a14a00;
  --danger: #b91c1c;

  --btn-primary-bg: #0b1220;
  --btn-primary-fg: #ffffff;
  --btn-primary-hover: #26324a;

  --header-bg: rgba(255, 255, 255, 0.96);
  --footer-bg: #f3f6fa;
  --input-bg: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  color-scheme: light;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .2s ease, color .2s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, .stat-item .label { text-wrap: balance; }
p, li, summary, .plan-note, .form-hint, .checkout-note { text-wrap: pretty; }

/* ---------- Top bar ---------- */
.top-banner {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  padding: 7px 0;
}
.top-banner .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-banner-links { display: flex; gap: 20px; flex-wrap: wrap; }
.top-banner-links a { color: var(--text-muted); }
.top-banner-links a:hover { color: var(--text); }
.status-indicator { display: inline-flex; align-items: center; gap: 8px; }
.status-indicator .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--text); }
.brand-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
}
nav.site-nav { display: flex; align-items: center; gap: 24px; }
nav.site-nav a { color: var(--text-muted); font-size: 14.5px; font-weight: 500; }
nav.site-nav a:hover { color: var(--text); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons ---------- */
.btn, .btn-primary, .btn-secondary, .btn-outline, .btn-nav {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; font-size: 14.5px; font-weight: 600; line-height: 1.3;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .15s ease, border-color .15s ease;
  font-family: inherit;
}
.btn-primary, .btn-nav { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-primary:hover, .btn-nav:hover { background: var(--btn-primary-hover); text-decoration: none; }
.btn-nav { padding: 8px 16px; font-size: 14px; }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); text-decoration: none; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); text-decoration: none; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 44px; line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; max-width: 860px; margin: 0 auto 18px; }
.text-highlight { color: var(--accent); }
.hero .lead { font-size: 17.5px; color: var(--text-muted); max-width: 700px; margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }

.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  max-width: 960px; margin: 0 auto;
}
.stat-item { padding: 22px 16px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 26px; font-weight: 800; color: var(--text); }
.stat-item .label { font-size: 13.5px; color: var(--text-muted); }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.eyebrow-sm { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-title { font-size: 32px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-sub { font-size: 16.5px; color: var(--text-muted); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px 24px;
  display: flex; flex-direction: column;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.card .card-foot { margin-top: auto; padding-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.icon-box {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.tag-pill {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted); background: var(--surface-2);
}
.tag-pill.ok { color: var(--success); }
.tag-pill.soon { color: var(--warning); }

.feature-list { list-style: none; margin-top: 16px; }
.feature-list li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 700; }
.feature-list li.muted { opacity: .75; }
.feature-list li.muted::before { content: "–"; color: var(--text-dim); }
.nw { white-space: nowrap; }

.danger-left { border-left: 3px solid var(--danger); }

/* ---------- Testimonials ---------- */
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; }
.testimonial-stars { color: var(--warning); letter-spacing: 2px; font-size: 14px; margin-bottom: 12px; }
.testimonial-quote { font-size: 15px; color: var(--text); margin-bottom: 20px; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.author-meta strong { display: block; font-size: 14.5px; color: var(--text); }
.author-meta span { font-size: 13px; color: var(--text-dim); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px 28px 28px; display: flex; flex-direction: column;
}
.plan-card.highlight { border: 2px solid var(--accent); }
.plan-badge {
  position: absolute; top: -12px; left: 24px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 12px; border-radius: 999px;
  background: var(--accent); color: var(--bg);
}
.plan-badge.soon { background: var(--surface-2); color: var(--warning); border: 1px solid var(--border); }
.plan-name { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.plan-card h3 { font-size: 22px; font-weight: 800; margin: 4px 0 0; }
.plan-price { font-size: 34px; font-weight: 800; margin: 16px 0 2px; letter-spacing: -0.02em; line-height: 1.15; }
.plan-price span { font-size: 14.5px; font-weight: 500; color: var(--text-muted); }
.plan-note { font-size: 13.5px; color: var(--text-muted); min-height: 44px; margin-bottom: 8px; }
.plan-card .feature-list { flex: 1; }
.plan-card .btn-block { margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 12px; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--text-dim); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 20px 18px; color: var(--text-muted); }

/* ---------- Checkout ---------- */
.checkout-box { max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.checkout-box h3 { text-align: center; font-size: 21px; margin-bottom: 6px; }
.checkout-box .sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-hint { display: block; font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; font-size: 15px; font-family: inherit;
  background: var(--input-bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.qr-preview-area {
  display: flex; gap: 24px; align-items: center; justify-content: center;
  padding: 20px; margin: 20px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt);
}
.qr-code-img { width: 180px; height: 180px; background: #fff; border-radius: 8px; padding: 4px; border: 1px solid var(--border); }
.qr-details { font-size: 14.5px; line-height: 1.9; }
.qr-details strong { color: var(--text); }
.qr-amount { color: var(--accent); font-size: 17px; }
.qr-memo { color: var(--warning); font-size: 16px; }
.btn-copy {
  margin-left: 6px; padding: 2px 8px; font-size: 12px; cursor: pointer; border-radius: 5px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.btn-copy:hover { border-color: var(--border-strong); }
.alert-status { padding: 11px 14px; border-radius: 8px; font-size: 14px; text-align: center; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.alert-status.active { color: var(--success); border-color: var(--success); }
.checkout-note { font-size: 13.5px; color: var(--text-dim); margin-top: 14px; text-align: center; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); color: var(--text); padding: 1px 6px; border-radius: 4px; font-size: .92em; }

/* ---------- Timeline / platforms (VidFlow) ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tl-step .n {
  width: 34px; height: 34px; border-radius: 8px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.tl-step h3 { font-size: 16px; margin-bottom: 6px; }
.tl-step p { font-size: 14px; color: var(--text-muted); }
.platform-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.platform-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.platform-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.contact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; text-align: center; }
.contact-row .label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.contact-row strong { font-size: 16px; }

/* ---------- Legal ---------- */
.legal-head { padding: 56px 0 8px; }
.legal-head .section-title { font-size: 30px; }
.legal-meta { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; }
.legal-box, .legal-content {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 36px 40px; margin: 28px 0 64px; line-height: 1.8;
}
.legal-box h2, .legal-content h2 { font-size: 19px; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.legal-box h2:first-child, .legal-content h2:first-child { margin-top: 0; }
.legal-box h3, .legal-content h3 { font-size: 16px; color: var(--accent); margin: 18px 0 6px; }
.legal-box p, .legal-box li, .legal-content p, .legal-content li { color: var(--text-muted); font-size: 15px; }
.legal-box strong, .legal-content strong { color: var(--text); }
.legal-box ul, .legal-box ol, .legal-content ul, .legal-content ol { padding-left: 22px; margin: 8px 0 12px; }
.legal-box p + p { margin-top: 10px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--footer-bg); border-top: 1px solid var(--border); padding: 56px 0 28px; color: var(--text-muted); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; align-items: start; }
.footer-col .brand { margin-bottom: 14px; }
.footer-col p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.footer-col h4 {
  font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text); margin: 6px 0 16px; white-space: nowrap; line-height: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; line-height: 1.5; }
.footer-col li a { color: var(--text-muted); }
.footer-col li a:hover { color: var(--text); }
.footer-col li .k { color: var(--text-dim); display: inline-block; min-width: 72px; }
.trust-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.badge-pill { font-size: 12px; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); white-space: nowrap; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px;
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-muted); }

/* ---------- Chat widget ---------- */
.chatbot-trigger {
  position: fixed; right: 24px; bottom: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg); box-shadow: var(--shadow);
}
.chatbot-trigger .online-dot { position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--bg); }
.chat-window {
  position: fixed; right: 24px; bottom: 92px; z-index: 999;
  width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px);
  display: none; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow);
}
.chat-window.open { display: flex; }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); }
.chat-header-info strong { display: block; font-size: 14.5px; }
.chat-header-info span { font-size: 12px; color: var(--success); }
.chat-close-btn { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.55; white-space: pre-line; }
.chat-msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.chat-msg.user { align-self: flex-end; background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.chat-quick-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-pill-btn { font-family: inherit; font-size: 13px; padding: 6px 11px; border-radius: 999px; cursor: pointer; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.chat-pill-btn:hover { background: var(--surface-2); }
.chat-footer { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
.chat-input { flex: 1; padding: 9px 12px; font-size: 14.5px; font-family: inherit; border-radius: 8px; background: var(--input-bg); color: var(--text); border: 1px solid var(--border-strong); }
.chat-input:focus { outline: none; border-color: var(--accent); }
.chat-send-btn { padding: 8px 14px; font-weight: 600; font-family: inherit; border-radius: 8px; border: none; cursor: pointer; background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.chat-disclaimer { font-size: 11.5px; color: var(--text-dim); text-align: center; padding: 0 12px 8px; background: var(--surface-2); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  nav.site-nav { display: none; }
  .grid-3, .pricing-grid, .timeline { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 30px; }
  .section-title { font-size: 25px; }
  .grid-2, .grid-3, .grid-4, .pricing-grid, .timeline, .contact-row { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .qr-preview-area { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal-box, .legal-content { padding: 24px 20px; }
  .header-actions .btn-nav { display: none; }
  .top-banner .status-indicator { display: none; }
  .chat-window { right: 16px; bottom: 86px; }
  .chatbot-trigger { right: 16px; bottom: 16px; }
}
