:root {
  --brand: #6b38d4;
  --brand-deep: #4f249f;
  --ink: #191c1d;
  --muted: #494454;
  --surface: #f4f0fb;
  --paper: #fffbff;
  --line: #cbc3d7;
  --green: #006c49;
  --green-soft: #6cf8bb;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(79, 36, 159, 0.12);
  --font-logo: "Quicksand", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(107, 56, 212, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(0, 108, 73, 0.12), transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, #efeaf8 100%);
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 40px;
}

.top {
  max-width: 720px;
  width: 100%;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 90%, white);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.15s ease;
}

.lang-btn:hover {
  color: var(--brand-deep);
}

.lang-btn.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(107, 56, 212, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: #6B38D4;
}

.brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.hero {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.kicker {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  max-width: 34rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.panel {
  background: color-mix(in srgb, var(--paper) 88%, white);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.app-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.app-icon-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(107, 56, 212, 0.16);
  background: #fff;
  flex-shrink: 0;
}

.app-badge-title {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.25;
}

.app-badge-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 2px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, white);
  color: var(--brand-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.chip.muted {
  background: color-mix(in srgb, var(--green) 10%, white);
  color: var(--green);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-secondary {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid var(--line);
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.note {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer {
  max-width: 720px;
  width: 100%;
  margin: 36px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
}

.footer-nav a {
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
}

/* Legal / document pages */
body[data-page="legal"] .shell {
  justify-content: flex-start;
}

.doc {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

.doc h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin-bottom: 8px;
}

.doc-meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-body h2 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.doc-body p,
.doc-body li {
  color: var(--ink);
  font-size: 1.02rem;
}

.doc-body p {
  margin: 0 0 12px;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

.doc-body li {
  margin-bottom: 6px;
}

.doc-body a {
  color: var(--brand-deep);
  font-weight: 600;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-size: 0.92rem;
}

.doc-nav a {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 520px) {
  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.contact-card {
  background: color-mix(in srgb, var(--paper) 90%, white);
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(79, 36, 159, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79, 36, 159, 0.09);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, white);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.contact-card-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.contact-card-link:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-feedback {
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 14px;
  font-size: 0.92rem;
  display: none;
}

.form-feedback.success {
  display: flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--green-soft) 35%, white);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}

.copy-badge-btn {
  background: color-mix(in srgb, var(--brand) 10%, white);
  color: var(--brand-deep);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.copy-badge-btn:hover {
  background: color-mix(in srgb, var(--brand) 20%, white);
}

.faq-card {
  margin-top: 32px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding-top: 24px;
}

.faq-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 16px;
}

.faq-details {
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 95%, white);
  margin-bottom: 10px;
  overflow: hidden;
  transition: background 0.15s ease;
}

.faq-details[open] {
  background: #fff;
}

.faq-summary {
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  font-size: 0.98rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--brand);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-details[open] .faq-summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 18px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq-content a {
  color: var(--brand-deep);
  font-weight: 600;
}

