/* Typing Utils — shared site styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #08001a;
  --surface: rgba(18, 4, 44, 0.72);
  --border: rgba(180, 100, 255, 0.22);
  --txt: #f0e0ff;
  --muted: rgba(230, 200, 255, 0.88);
  --dim: rgba(210, 185, 255, 0.72);
  --accent: #c080ff;
  --accent2: #80c8ff;
  --good: #5dffb0;
  --bad: #ff7a9a;
  --focus: #51fff0;
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  line-height: 1.65;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 999;
  padding: 8px 14px;
  background: #000;
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus {
  left: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 40px);
  min-height: 64px;
  background: rgba(8, 0, 26, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.site-logo {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(17px, 4vw, 22px);
  color: var(--accent);
  text-decoration: none;
}

.site-logo small {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 20px);
  align-items: center;
}

.site-nav a {
  font-size: 13px;
  color: var(--dim);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover { color: var(--accent); text-decoration: none; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(180, 100, 255, 0.55);
  background: rgba(80, 20, 180, 0.45);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(140, 60, 255, 0.35);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}

.site-footer {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 24px) 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dim);
}

.site-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.site-footer-social a {
  color: var(--dim);
  font-size: 12px;
  text-decoration: none;
}

.site-footer-social a:hover { color: var(--accent); }

.site-footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 24px) 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--dim);
}

/* Homepage */
.home-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px) 80px;
}

.home-hero {
  text-align: center;
  padding: clamp(48px, 8vw, 90px) 0 clamp(40px, 6vw, 70px);
}

.home-hero-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

h1.home-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f0d0ff, #c080ff 50%, #80c8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero-desc {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
}

.home-hero-note {
  margin-top: 18px;
  font-size: 14px;
  opacity: 0.85;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}

.btn-ghost {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.home-section { margin-top: clamp(48px, 8vw, 72px); }

.home-section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
}

h2.home-section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 14px;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.home-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(18, 4, 44, 0.55);
}

.home-card h3 { font-size: 18px; margin-bottom: 8px; }

.home-card p { font-size: 14px; color: var(--muted); }

.home-card.featured {
  border-color: rgba(192, 128, 255, 0.45);
  background: rgba(30, 8, 60, 0.65);
}

.home-card-cta { margin-top: 14px; }

.home-card-cta .btn-primary { padding: 9px 18px; font-size: 13px; }

.home-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.home-benefit {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 2, 30, 0.5);
}

.home-benefit strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent2);
}

.home-benefit p { font-size: 14px; color: var(--muted); margin: 0; }

.home-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.home-how-item {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 2, 30, 0.5);
}

.home-how-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent2);
}

.home-how-item p { font-size: 14px; color: var(--muted); margin: 0; }

.home-faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: rgba(12, 2, 30, 0.45);
}

.home-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.home-faq summary::-webkit-details-marker { display: none; }

.home-faq p { margin-top: 10px; font-size: 14px; color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-seo-text p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }

.home-seo-text h3 {
  font-size: 18px;
  margin: 20px 0 10px;
  color: var(--txt);
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 48px) clamp(16px, 4vw, 24px) 80px;
}

.legal-page h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 5vw, 36px);
  margin-bottom: 12px;
}

.legal-page h2 {
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--txt);
}

.legal-page ul { padding-left: 20px; }

.legal-card {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 4, 44, 0.6);
}

.seo-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 24px) 80px;
}

.seo-main h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 16px;
}

.seo-main p, .seo-main li {
  color: var(--muted);
  margin-bottom: 12px;
}

.seo-main ul { padding-left: 20px; }

.seo-main h2 {
  font-size: 20px;
  margin: 24px 0 10px;
  color: var(--accent2);
}

.calc-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  max-width: 420px;
}

.calc-box label {
  display: block;
  font-size: 13px;
  color: var(--dim);
  margin: 12px 0 6px;
}

.calc-box input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--txt);
  font-size: 16px;
}

.calc-result {
  margin-top: 16px;
  font-size: 28px;
  color: var(--accent2);
  font-weight: 700;
}

.seo-main-spaced { margin-top: 24px; }

@media (max-width: 640px) {
  .site-nav .nav-extra { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
