/* SilphidFlow — mobile-first, fintech palette */
:root {
  --cream: #f7f5f0;
  --cream-dark: #ebe6db;
  --white: #fdfcfa;
  --emerald: #0d9488;
  --emerald-deep: #0f766e;
  --emerald-light: #5eead4;
  --sky: #38bdf8;
  --text: #0f172a;
  --text-muted: #475569;
  --border: rgba(15, 118, 110, 0.12);
  --shadow: 0 4px 24px rgba(15, 118, 110, 0.08);
  --radius: 14px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 64px;
  --progress-h: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  padding-top: calc(var(--header-h) + var(--progress-h));
  overflow-x: hidden;
}

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

a {
  color: var(--emerald-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--progress-h);
  background: var(--cream-dark);
  z-index: 1001;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--sky));
  transition: width 0.1s linear;
}

/* Header */
.site-header {
  position: fixed;
  top: var(--progress-h);
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo svg {
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-actions a.btn--ghost {
  display: none;
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .nav-actions a.btn--ghost {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--emerald-light);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.42);
}

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

.btn--lg {
  min-height: 56px;
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
  width: 100%;
  max-width: 360px;
}

.btn--ghost {
  background: transparent;
  color: var(--emerald-deep);
  border: 2px solid var(--emerald);
}

.btn--ghost:hover {
  background: rgba(13, 148, 136, 0.06);
}

/* Sections */
.section {
  padding: 3.5rem 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-deep);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
}

.section__intro {
  max-width: 640px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Hero — parallax layers */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: stretch;
}

.hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  display: grid;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    padding-top: 3rem;
  }
}

.hero__visual-wrap {
  position: relative;
}

.hero__parallax {
  will-change: transform;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 36ch;
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.hero__bullets svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--emerald);
}

.video-shell {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.video-shell__label {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-shell__label span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #0f172a;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-note {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero__cta-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .hero__cta-stack {
    align-items: stretch;
    max-width: 360px;
  }
}

/* Lifestyle strip */
.hero-lifestyle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.25rem;
  max-width: 100%;
}

.hero-lifestyle img {
  border-radius: 10px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--border);
}

@media (max-width: 599px) {
  .hero-lifestyle {
    grid-template-columns: 1fr;
  }
}

/* Why — crystal cards */
.why-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.crystal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.crystal-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.12);
}

.crystal-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.5), rgba(56, 189, 248, 0.35));
  border: 1px solid rgba(13, 148, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.crystal-card:hover .crystal-card__icon {
  transform: scale(1.08) rotate(4deg);
  filter: brightness(1.05);
}

.crystal-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.crystal-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Quiz */
.quiz-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.35rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.quiz-progress {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.quiz-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--sky));
  border-radius: 99px;
  transition: width 0.35s ease;
}

.quiz-question {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--cream);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95rem;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  min-height: 48px;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: var(--emerald);
  background: rgba(13, 148, 136, 0.06);
  outline: none;
}

.quiz-option--selected {
  border-color: var(--emerald-deep);
  background: rgba(13, 148, 136, 0.1);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.35rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.quiz-nav .btn {
  flex: 1;
  min-width: 120px;
}

/* Lead form */
.lead-panel {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-radius: var(--radius);
  padding: 2rem 1.35rem;
  border: 1px solid var(--border);
  max-width: 520px;
  margin: 0 auto;
}

.lead-panel.hidden {
  display: none;
}

.lead-panel label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.lead-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 1rem;
  background: var(--white);
}

.lead-panel input:focus {
  outline: none;
  border-color: var(--emerald);
}

.disclaimer-small {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.45;
}

/* Cards row */
.cards-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cards-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.result-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.result-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.result-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Comparison table — Wirecutter-ish */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1.25rem;
  padding: 0 1.25rem;
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  background: rgba(247, 245, 240, 0.8);
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.04);
}

.compare-table thead th {
  background: var(--white);
  font-weight: 700;
  border-bottom: 2px solid var(--emerald);
  padding-top: 1rem;
}

.compare-table .col-best {
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.18) 0%, rgba(56, 189, 248, 0.08) 100%);
  position: relative;
}

.compare-table thead .col-best {
  border-radius: 12px 12px 0 0;
}

.compare-table tbody tr:last-child .col-best {
  border-radius: 0 0 12px 12px;
}

.best-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--emerald-deep);
  color: #fff;
  border-radius: 6px;
}

.cell-icon {
  font-size: 1.15rem;
}

.cell-icon--yes {
  color: var(--emerald-deep);
}

.cell-icon--no {
  color: #94a3b8;
}

.cell-icon--partial {
  color: #ca8a04;
}

/* Testimonials */
.testimonial-carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.testimonial-track {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 200px;
  display: flex;
  align-items: center;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.45s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-slide blockquote {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}

.testimonial-slide cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--emerald-deep);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--emerald);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-deep);
  transition: background 0.2s;
}

.carousel-nav:hover {
  background: rgba(13, 148, 136, 0.08);
}

.carousel-nav--prev {
  left: 0.25rem;
}

.carousel-nav--next {
  right: 0.25rem;
}

@media (max-width: 640px) {
  .testimonial-track {
    padding: 1.5rem 2.75rem;
  }
}

/* FAQ — details/summary */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
}

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

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

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__body {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-item__body {
  border-top-color: var(--border);
  animation: expandQ 0.35s ease;
}

.hidden-quiz-msg {
  color: var(--emerald-deep);
  font-weight: 600;
}

@keyframes expandQ {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Footer */
.site-footer {
  background: var(--emerald-deep);
  color: #ecfdf5;
  padding: 3rem 1.25rem 2rem;
}

.site-footer a {
  color: #99f6e4;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer-brand svg path {
  stroke: #99f6e4;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.footer-legal a {
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 52ch;
  margin-top: 1rem;
}

.risk-box {
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 2px solid var(--emerald);
  padding: 1rem 1.25rem;
  z-index: 900;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
  display: none;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  max-width: 620px;
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  min-height: 44px;
}

/* Exit popup */
.exit-popup {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 950;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.exit-popup.visible {
  display: flex;
}

.exit-popup__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.exit-popup__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--cream);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text);
}

/* Live chat widget */
.chat-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 850;
  font-family: var(--font);
}

.chat-widget__toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(13, 148, 136, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.chat-widget__toggle:hover {
  transform: scale(1.05);
}

.chat-widget__panel {
  display: none;
  position: absolute;
  bottom: 72px;
  right: 0;
  width: min(100vw - 2.5rem, 340px);
  height: 420px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
  border: 1px solid var(--border);
  flex-direction: column;
  overflow: hidden;
}

.chat-widget.open .chat-widget__panel {
  display: flex;
}

.chat-widget__header {
  background: linear-gradient(90deg, var(--emerald-deep), var(--emerald));
  color: #fff;
  padding: 1rem 1.25rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-widget__close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

.chat-widget__messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: var(--cream);
}

.chat-bubble {
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 12px 12px 12px 4px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  max-width: 90%;
}

.chat-widget__input-row {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

.chat-widget__input-row input {
  flex: 1;
  min-height: 44px;
  border-radius: 10px;
  border: 2px solid var(--border);
  padding: 0 0.75rem;
  font-family: var(--font);
}

.chat-widget__input-row button {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 10px;
  border: none;
  background: var(--emerald);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}

body.cookie-visible .chat-widget {
  bottom: 7rem;
}

/* Legal pages shared */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 1.25rem 3rem;
  background: var(--cream);
  min-height: 100vh;
}

.legal-page h1 {
  font-size: 1.75rem;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.95rem;
}
