/* ReStory landing — brand tokens per assets/brand/brand-tokens.css.
   Light, mobile-first, minimal JS (none). */

:root {
  --violet: #7C3AED;
  --electric-violet: #5B21FF;
  --blue: #2563EB;
  --lavender: #B8A8FF;
  --ink: #0B1220;
  --gradient: linear-gradient(135deg, var(--violet) 0%, var(--electric-violet) 25.3%, var(--blue) 100%);
  --bg: #F7F6FB;
  --card: #FFFFFF;
  --muted: #4B5165;
  --border: rgba(11, 18, 32, 0.08);
  --shadow: 0 8px 32px rgba(11, 18, 32, 0.08);
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand-logo { height: 26px; width: auto; }

.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 14px;
  font-family: var(--font-body);
}

.lang-switch a {
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}

.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background-image: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(91, 33, 255, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-block { width: 100%; }

/* ---- Hero ---- */
.hero {
  padding: 28px 0 56px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--electric-violet);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.gradient-text {
  background-image: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 18px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-ctas .btn-secondary { border: none; color: var(--muted); text-decoration: underline; }

/* ---- Flow diagram ---- */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 44px auto 0;
  max-width: 620px;
  flex-wrap: wrap;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 130px;
}

.flow-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.flow-icon svg { width: 32px; height: 32px; }
.flow-icon.mark svg { width: 36px; height: 36px; }

.flow-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.flow-arrow {
  color: var(--lavender);
  font-size: 22px;
  transform: translateY(-14px);
}

/* ---- Sections ---- */
section { padding: 56px 0; }
section.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 5vw, 34px);
  margin: 0 0 12px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: left;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-image: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
}

.step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* Value grid */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.value {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value-check {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.value-check svg { width: 14px; height: 14px; }

.value h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; font-family: var(--font-body); }
.value p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* Security list */
.security-list {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.security-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink);
}

.security-list .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-image: var(--gradient);
  margin-top: 8px;
}

.prose {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 20px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--muted);
  flex: none;
}

.faq details[open] summary::after { content: "\2212"; }

.faq p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* Final CTA */
.final-cta {
  text-align: center;
  background-image: var(--gradient);
  border-radius: 28px;
  padding: 56px 24px;
  color: #fff;
  margin: 0 20px;
}

.final-cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 6vw, 36px); margin: 0 0 12px; }
.final-cta p { margin: 0 0 28px; opacity: 0.92; font-size: 16px; }
.final-cta .btn-primary { background-image: none; background: #fff; color: var(--electric-violet); box-shadow: none; }

/* Footer */
footer { padding: 40px 0 32px; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo { height: 22px; opacity: 0.85; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 13px; color: var(--muted); opacity: 0.8; }

/* ---- Responsive ---- */
@media (min-width: 720px) {
  .hero-ctas { flex-direction: row; }
  .container.hero-container { padding: 0 40px; }
}

@media (max-width: 719px) {
  .steps { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .flow { gap: 4px; }
  .flow-node { width: 96px; }
  .flow-label { font-size: 12.5px; }
  .final-cta { margin: 0 12px; padding: 44px 18px; border-radius: 22px; }
}
