:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef2ff;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --soon: #b45309;
  --soon-soft: #fff7ed;
  --dark: #0b1220;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 3px; }
img, svg, canvas { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
main { max-width: 1120px; margin: 0 auto; padding: 0 24px 56px; }
h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: 24px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -0.02em; font-weight: 750; }
h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
.lead { color: var(--ink-2); margin: 0 0 22px; max-width: 680px; font-size: 18px; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 20px; color: var(--ink); text-decoration: none; }
.logo-text b { font-weight: 800; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 4px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.logo-mark i { background: #fff; border-radius: 1px; }
.logo-mark i:nth-child(5) { background: transparent; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu > a, .dd > summary {
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px; cursor: pointer; list-style: none;
}
.menu > a:hover, .dd > summary:hover { background: var(--bg); color: var(--ink); }
.dd { position: relative; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: "▾"; font-size: 11px; margin-left: 6px; color: var(--muted); }
.dd[open] > summary { background: var(--bg); color: var(--ink); }
.dd-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 260px; max-height: 70vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14); display: grid; gap: 2px;
}
.dd-panel a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 9px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.dd-panel a:hover { background: var(--brand-soft); color: var(--brand); }
.soon-tag { color: var(--soon); background: var(--soon-soft); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  background: var(--ink); color: #fff; font-weight: 650; font-size: 14px; padding: 10px 16px; border-radius: 10px; margin-left: 8px;
}
.btn-cta:hover { background: #1e293b; }
.menu > .btn-cta, .menu > .btn-cta:hover { color: #fff; background: var(--ink); }
.menu > .btn-cta:hover { background: #1e293b; }
.site-footer .logo-text { color: #fff; }
.site-footer .logo-text b { background: linear-gradient(90deg, #818cf8, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) {
  .nav { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .menu { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .dd-panel { position: static; width: 100%; box-shadow: none; margin-top: 6px; }
  .btn-cta { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 28px; text-align: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--brand);
  background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.trust { display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; font-weight: 550; }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }

/* ---------- Sections ---------- */
.section { padding: 44px 0 0; }
.section-head { margin-bottom: 18px; }
.section-head p { color: var(--muted); margin: 0; max-width: 640px; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Tool ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.tab {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  padding: 8px 15px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.tab:hover { border-color: #c7d2fe; color: var(--brand); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; display: grid; grid-template-columns: 1fr 320px; gap: 36px; margin-top: 20px; box-shadow: var(--shadow);
}
@media (max-width: 800px) { .card { grid-template-columns: 1fr; padding: 20px; } }
form label { display: block; font-size: 13px; font-weight: 650; margin: 16px 0 6px; color: var(--ink-2); }
form label:first-child { margin-top: 0; }
input[type="text"], input[type="url"], input[type="tel"], input[type="email"], input[type="file"], select, textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.colors { display: flex; gap: 16px; margin-top: 20px; font-size: 13px; font-weight: 650; flex-wrap: wrap; color: var(--ink-2); }
.colors label { margin: 0; display: flex; align-items: center; gap: 8px; }
.colors input { width: 44px; height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; background: #fff; cursor: pointer; }
.error { color: #b42318; font-size: 14px; margin-top: 12px; min-height: 20px; }
.preview { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.canvas-wrap {
  width: 100%; max-width: 280px; aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 16px; background:
    repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 50% / 16px 16px;
  padding: 12px;
}
#qr { width: 100%; height: auto; image-rendering: pixelated; background: #fff; border-radius: 6px; }
.buttons { display: flex; gap: 10px; width: 100%; }
.btn {
  flex: 1; font: inherit; font-size: 15px; font-weight: 650; padding: 12px 16px;
  border-radius: 11px; border: 1px solid var(--brand); cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .25);
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: #fff; color: var(--brand); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.tiny { font-size: 12px; color: var(--muted); text-align: center; }
.badge-ok { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 650; color: var(--ok); background: var(--ok-soft); padding: 5px 10px; border-radius: 999px; }

.hero-actions .btn { flex: none; width: auto; display: inline-block; text-decoration: none; padding: 13px 22px; }
.hero-actions .btn.ghost { box-shadow: none; }

/* ---------- Content blocks ---------- */
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tips li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 46px; position: relative; color: var(--ink-2); }
.tips li::before {
  content: ""; position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step-num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.step p { color: var(--muted); margin: 0; font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 18px; margin-bottom: 12px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fbfcfe; }
.compare tr:last-child td { border-bottom: 0; }
.compare td.yes { color: var(--ok); font-weight: 650; }
.compare td.no { color: #b42318; font-weight: 600; }
.compare td:first-child { color: var(--ink-2); font-weight: 550; }
@media (max-width: 640px) { .compare th, .compare td { padding: 11px 12px; font-size: 14px; } }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gcard {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.gcard:hover { transform: translateY(-2px); border-color: #c7d2fe; box-shadow: var(--shadow); }
.gcard h3 { margin-bottom: 4px; }
.gcard p { margin: 0; font-size: 14px; color: var(--muted); }

.notice {
  background: var(--soon-soft); border: 1px solid #fed7aa; color: #7c2d12;
  border-radius: 14px; padding: 16px 18px; margin: 18px 0;
}
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }

.cta-band {
  margin-top: 52px; border-radius: 22px; padding: 40px 32px; text-align: center; color: #fff;
  background: radial-gradient(900px 300px at 10% 0%, rgba(124, 58, 237, .55), transparent 60%), linear-gradient(135deg, #1e1b4b, #312e81);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #c7d2fe; margin-bottom: 18px; }
.cta-band .btn { flex: none; display: inline-block; width: auto; padding: 12px 22px; background: #fff; color: var(--brand); box-shadow: none; }

/* ---------- Legal / contact pages ---------- */
.page-head { padding: 40px 0 8px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 640px; margin-top: 18px; box-shadow: var(--shadow); }
.contact-form label { margin-top: 16px; }
.contact-form label:first-child { margin-top: 0; }
.contact-form .btn { margin-top: 20px; flex: none; padding: 12px 22px; }

/* ---------- Footer (dark) ---------- */
.site-footer { background: var(--dark); color: #cbd5e1; margin-top: 64px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-top: 48px; padding-bottom: 32px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin: 0 0 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: #e2e8f0; text-decoration: none; font-size: 14px; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { color: #fff; }
.foot-brand p { color: #94a3b8; font-size: 14px; max-width: 320px; margin-top: 12px; }
.foot-bottom { border-top: 1px solid #1e293b; padding: 18px 0 28px; color: #94a3b8; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
