/* AIDisclosure landing — dark, credible, urgent. */
:root {
  --bg: #0a0f1e;
  --bg-soft: #101830;
  --panel: #141d38;
  --line: #24304f;
  --text: #e7ecf6;
  --muted: #9aa7c0;
  --accent: #14b8a6;
  --accent-soft: #5eead4;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --red: #f87171;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 5vw;
  background: rgba(10, 15, 30, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 1.06rem; font-weight: 500; color: var(--text); text-decoration: none;
  letter-spacing: -.01em;
}
.brand b { font-weight: 800; color: var(--accent-soft); }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background:
    radial-gradient(circle at 34% 55%, #fff 2.4px, transparent 3px),
    radial-gradient(circle at 66% 55%, #fff 2.4px, transparent 3px),
    linear-gradient(135deg, var(--accent), #0e7490);
}
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* language selector — dropdown + flags, standard */
.lang-select select {
  appearance: none;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa7c0' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--text);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 28px 7px 10px;
  font: 500 .88rem var(--font);
  cursor: pointer;
}
.lang-select select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 11px; text-decoration: none; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  color: #fff;
  box-shadow: 0 6px 22px rgba(20, 184, 166, .32);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(20, 184, 166, .48); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 72px 5vw 84px;
  background:
    radial-gradient(ellipse 60% 42% at 50% -6%, rgba(20, 184, 166, .18), transparent),
    radial-gradient(ellipse 34% 26% at 82% 12%, rgba(245, 158, 11, .1), transparent);
}
.deadline-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(245, 158, 11, .45);
  background: rgba(245, 158, 11, .08);
  color: var(--amber-soft);
  border-radius: 999px; padding: 7px 16px;
  font-size: .86rem; font-weight: 600; letter-spacing: .01em;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.hero h1 {
  margin: 26px auto 0; max-width: 880px;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.025em;
}
.hero-sub {
  margin: 20px auto 0; max-width: 660px;
  color: var(--muted); font-size: 1.08rem;
}

.countdown {
  display: flex; justify-content: center; align-items: baseline; gap: 10px;
  margin-top: 38px;
}
.cd-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cd-num {
  font-family: var(--mono); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600;
  color: var(--amber-soft);
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 18px; min-width: 2.4ch; text-align: center;
  font-variant-numeric: tabular-nums;
}
.cd-sep { font-family: var(--mono); font-size: 2rem; color: var(--line); }
.cd-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cd-caption { margin-top: 12px; color: var(--muted); font-size: .92rem; }

.hero-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-trust { margin-top: 22px; color: var(--muted); font-size: .82rem; }

/* ---------- sections ---------- */
.section { max-width: 1060px; margin: 0 auto; padding: 76px 5vw 0; }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em;
  text-align: center;
}
.section-sub {
  margin: 12px auto 0; max-width: 640px; text-align: center; color: var(--muted);
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 38px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card-icon { font-size: 1.6rem; }
.card h3 { margin: 12px 0 8px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .93rem; }

.fine-strip {
  margin-top: 22px; padding: 15px 22px;
  border: 1px solid rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .07);
  border-radius: var(--radius);
  font-size: .93rem;
}
.fine-strip strong { color: var(--red); margin-right: 6px; }
.fine-strip span { color: var(--muted); }

/* ---------- widget demo ---------- */
.widget-demo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 38px;
}
@media (max-width: 760px) { .widget-demo-grid { grid-template-columns: 1fr; } }
.code-block {
  background: #0c1226; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.code-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
}
.copy-btn {
  background: var(--bg-soft); color: var(--text); border: 1px solid var(--line);
  border-radius: 7px; padding: 4px 12px; font: 600 .78rem var(--font); cursor: pointer;
}
.copy-btn:hover { border-color: var(--accent); }
.code-block pre { padding: 18px; overflow-x: auto; }
.code-block code { font-family: var(--mono); font-size: .84rem; color: #c8d3f5; line-height: 1.7; }
.demo-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.demo-panel > p { color: var(--muted); font-size: .93rem; }
.demo-fig { margin: 0; max-width: 320px; }
.demo-img {
  width: 300px; max-width: 100%; height: 130px; border-radius: 10px;
  background:
    radial-gradient(circle at 70% 30%, rgba(139, 92, 246, .8), transparent 55%),
    radial-gradient(circle at 25% 70%, rgba(99, 102, 241, .7), transparent 50%),
    linear-gradient(160deg, #1e2a52, #131b36);
}
.demo-fig figcaption { color: var(--muted); font-size: .8rem; margin-top: 8px; }

/* ---------- kit ---------- */
.kit-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; margin-top: 38px; align-items: start; }
@media (max-width: 820px) { .kit-grid { grid-template-columns: 1fr; } }
.kit-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.kit-list li {
  padding: 16px 20px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .95rem;
}
.kit-list b { color: var(--text); }
.kit-list span { color: var(--muted); }
.price-card {
  position: sticky; top: 90px;
  background: linear-gradient(170deg, var(--panel), #182348);
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 28px; text-align: center;
  box-shadow: 0 12px 40px rgba(20, 184, 166, .18);
}
.price-badge {
  display: inline-block; background: rgba(245, 158, 11, .12); color: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, .4); border-radius: 999px;
  padding: 4px 14px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.price-row { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin-top: 16px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 1.2rem; }
.price-now { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; }
.price-note { color: var(--muted); font-size: .88rem; margin: 6px 0 20px; }
.price-fine { color: var(--muted); font-size: .78rem; margin-top: 12px; }
.agency-line { text-align: center; margin-top: 26px; color: var(--muted); font-size: .9rem; }
.agency-line a { color: var(--accent-soft); }

/* ---------- faq ---------- */
#faq { padding-bottom: 20px; }
#faq details {
  max-width: 760px; margin: 0 auto 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px;
}
#faq details:first-of-type { margin-top: 34px; }
#faq summary { cursor: pointer; font-weight: 600; font-size: .98rem; }
#faq summary::marker { color: var(--accent-soft); }
#faq details p { margin-top: 10px; color: var(--muted); font-size: .93rem; }

/* ---------- footer ---------- */
.footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 44px 5vw 30px; }
.footer-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-inner p { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.footer-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal {
  max-width: 1060px; margin: 26px auto 0;
  color: #5b6884; font-size: .78rem;
}

/* ---------- providers section ---------- */
.tag {
  display: inline-block; background: rgba(20, 184, 166, .14); color: var(--accent-soft);
  border: 1px solid rgba(20, 184, 166, .4); border-radius: 999px;
  padding: 4px 14px; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
}
.tag-amber { background: rgba(245, 158, 11, .12); color: var(--amber-soft); border-color: rgba(245, 158, 11, .4); }
.prov-head { text-align: center; }
.prov-head h2 { margin-top: 14px; }
.prov-head h2 em { color: var(--accent-soft); font-style: italic; }
.prov-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; margin-top: 36px; align-items: start; }
@media (max-width: 860px) { .prov-grid { grid-template-columns: 1fr; } }
.tested {
  color: #34d399; font-family: var(--font); font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.prov-copy { display: flex; flex-direction: column; gap: 22px; }
.tick-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.tick-list li { position: relative; padding-left: 28px; color: var(--muted); font-size: .95rem; }
.tick-list li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  color: #34d399; font-weight: 700;
}
.tier-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .tier-row { grid-template-columns: 1fr; } }
.tier {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.tier-hi { border-color: var(--accent); background: linear-gradient(170deg, var(--panel), #182348); }
.tier-name { font-weight: 700; font-size: .95rem; }
.tier-price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.tier p { color: var(--muted); font-size: .85rem; flex: 1; }
.tier .btn { margin-top: 6px; padding: 10px 16px; font-size: .9rem; }

/* ---------- sister strip ---------- */
.sister { max-width: 1060px; margin: 76px auto 0; padding: 0 5vw; }
.sister-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  border: 1px solid rgba(245, 158, 11, .3); background: rgba(245, 158, 11, .05);
  border-radius: var(--radius); padding: 26px 28px;
}
.sister-inner h3 { margin: 12px 0 6px; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.sister-inner p { color: var(--muted); font-size: .92rem; max-width: 620px; }

/* ---------- legal / content pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 60px 5vw 40px; }
.doc h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.doc .updated { color: var(--muted); font-size: .86rem; margin-top: 8px; }
.doc h2 { font-size: 1.15rem; font-weight: 700; margin-top: 34px; }
.doc h3 { font-size: 1rem; font-weight: 600; margin-top: 22px; }
.doc p, .doc li { color: var(--muted); margin-top: 10px; }
.doc ul, .doc ol { margin-top: 8px; padding-left: 22px; }
.doc a { color: var(--accent-soft); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .92rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.doc th { background: var(--panel); color: var(--text); font-weight: 600; }
.doc td { color: var(--muted); }
.doc .callout {
  margin-top: 20px; padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
}
.doc .callout p:first-child { margin-top: 0; }

/* ---------- accessibility ---------- */
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip:focus { left: 0; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .price-card { position: static; }
  .countdown { gap: 6px; }
  .cd-num { padding: 6px 12px; }
}
/* small-screen refinements + overflow guard for long translated labels (de/zh) */
html, body { overflow-x: hidden; }
.hero h1, .section h2 { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .hero-sub { font-size: .98rem; }
  .cd-num { font-size: clamp(1.7rem, 8vw, 2.4rem); padding: 5px 10px; min-width: 2ch; }
  .cd-sep { font-size: 1.4rem; }
  .hero-ctas .btn { width: 100%; }
  .nav-right { gap: 8px; }
}

/* ---------- CRA identity override ---------- */
.brand-mark {
  border-radius: 5px;
  background: linear-gradient(150deg, var(--accent), #0e7490);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
}
.brand b { color: var(--accent-soft); }
.section-sub em, .hero h1 em { color: var(--accent-soft); font-style: normal; }
.section-sub code, .gen-note code {
  font-family: var(--mono); font-size: .86em;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px; color: var(--text);
}

/* ---------- generator ---------- */
.gen-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; margin-top: 38px; align-items: start; }
@media (max-width: 900px) { .gen-grid { grid-template-columns: 1fr; } }

.gen-form {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; font: 400 .92rem var(--font); width: 100%;
}
.field textarea { font-family: var(--mono); font-size: .84rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5b6884; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.field .hint { color: var(--muted); font-size: .78rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 460px) { .row2 { grid-template-columns: 1fr; } }
.check {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .86rem; color: var(--muted); cursor: pointer; line-height: 1.45;
}
.check input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

.gen-out { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 88px; }
@media (max-width: 900px) { .gen-out { position: static; } }
.tabs { display: flex; gap: 8px; }
.tab {
  background: var(--panel); color: var(--muted);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 16px; font: 600 .86rem var(--font); cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.is-on { background: var(--bg-soft); color: var(--text); border-color: var(--accent); }
.out-block pre { padding: 18px; overflow: auto; max-height: 460px; }
.out-code { white-space: pre-wrap; word-break: break-word; }
.out-actions { display: flex; gap: 8px; }
.gen-note { color: var(--muted); font-size: .82rem; }
