/* Lovislot — lovislot.xyz */
:root {
  --violet: #7c3aed;
  --indigo: #4f46e5;
  --blue: #3b82f6;
  --green: #16a34a;
  --green-soft: #e8f7ee;
  --ink: #0f172a;
  --muted: #55617a;
  --faint: #8a94ab;
  --bg: #ffffff;
  --soft: #f6f7fb;
  --card: #ffffff;
  --line: #e6e9f2;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 55%, #3b82f6 100%);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(79, 70, 229, .07);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.topbar-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.topbar-nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, .28);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(79, 70, 229, .36); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: #c9d0e2; background: var(--soft); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 54ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-art { text-align: center; }
.hero-art img {
  width: min(300px, 70vw);
  filter: drop-shadow(0 18px 40px rgba(79, 70, 229, .18));
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.chip .flag { font-size: 17px; line-height: 1; }
.chip-muted { color: var(--muted); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  letter-spacing: -.015em;
  line-height: 1.2;
  margin: 0 0 8px;
}
.section .section-sub {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 62ch;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card .card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(59, 130, 246, .12));
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 17.5px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.step-num {
  counter-increment: step;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-num::before { content: counter(step); }
.step h3 { margin: 2px 0 4px; font-size: 16.5px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Notice / disclaimers ---------- */
.notice {
  background: #fffdf5;
  border: 1px solid #f3e4bb;
  border-radius: var(--radius);
  padding: 22px 24px;
}
.notice h3 { margin: 0 0 10px; font-size: 17px; }
.notice ul { margin: 0; padding-left: 20px; color: #574f34; }
.notice li { margin: 6px 0; font-size: 15px; }

/* ---------- Doc cards ---------- */
.doc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.doc-card .doc-kind {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--indigo);
  margin-bottom: 10px;
}
.doc-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.doc-card p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; flex: 1; }
.doc-card .doc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.contact-box h3 { margin: 0 0 6px; font-size: 18px; }
.contact-box p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
main { flex: 1 0 auto; }

.footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 34px 0 40px;
  margin-top: 44px;
  font-size: 14px;
  color: var(--muted);
}
.footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 12px;
}
.footer .footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer .legal { margin: 4px 0; }

/* ---------- Document pages ---------- */
.doc-page { padding: 40px 0 20px; }
.doc-header h1 {
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -.015em;
  margin: 0 0 6px;
}
.doc-header .doc-subtitle {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 14px;
}
.doc-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-soft);
  color: #14713b;
  border: 1px solid #cdebd9;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.doc-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }

.info-table {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 22px 0;
  font-size: 15px;
}
.info-table > div {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.info-table > div:nth-child(-n+2) { border-top: 0; }
.info-table .k {
  background: var(--soft);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.doc-body { padding-bottom: 20px; }
.doc-body h2 {
  font-size: 21px;
  letter-spacing: -.01em;
  margin: 34px 0 12px;
  padding-top: 10px;
}
.doc-body h3 { font-size: 17px; margin: 22px 0 8px; }
.doc-body p { margin: 10px 0; }
.doc-body ul { margin: 10px 0; padding-left: 4px; list-style: none; }
.doc-body ul li {
  position: relative;
  padding-left: 22px;
  margin: 6px 0;
}
.doc-body ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--indigo);
}

.accept-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, .07), rgba(59, 130, 246, .07));
  border: 1px solid #ded9f6;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 18px 0;
}
.accept-box .accept-label {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--indigo);
  margin: 0 0 10px;
}
.accept-box blockquote {
  margin: 0 0 14px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
}
.copy-btn { position: relative; }
.copy-btn.copied { background: var(--green); border-color: var(--green); color: #fff; }

.doc-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.doc-footer-nav .btn { white-space: normal; text-align: center; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 90px 20px; }
.error-page .code {
  font-size: 72px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .topbar-nav .hide-mobile { display: none; }
  .doc-footer-nav { flex-direction: column; align-items: stretch; }
  .doc-footer-nav .btn { display: block; white-space: normal; }
}

@media (max-width: 860px) {
  .hero { padding: 36px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(180px, 45vw); }
  .cards, .doc-cards { grid-template-columns: 1fr; }
  .section { padding: 34px 0; }
  .topbar-nav { gap: 14px; }
  .info-table { grid-template-columns: 1fr; }
  .info-table .k { border-top: 1px solid var(--line); padding-bottom: 2px; }
  .info-table > div { border-top: 0; padding-top: 6px; }
  .info-table > div:first-child { border-top: 0; }
  .info-table .v { padding-top: 2px; }
}

@media print {
  .topbar, .doc-toolbar, .doc-footer-nav, .footer, .accept-box .copy-btn { display: none !important; }
  body { font-size: 12.5px; }
  .doc-page { padding: 0; }
}
