/* ─────────────────────────────────────────────────────────────────────────────
   COMPONENTS
   Reusable, atomic UI pieces that mirror Flutter widget patterns.
───────────────────────────────────────────────────────────────────────────── */

/* ── Container / Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* ── Section ── */
.section {
  padding: var(--space-4xl) 0;
}

.section--sm {
  padding: var(--space-3xl) 0;
}

/* ── Section label (CAPS, letterSpaced) — mirrors Flutter "WHAT'S INSIDE" row ── */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.section-label__text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--color-secondary);
  white-space: nowrap;
}

.section-label__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── Section headline ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.02;
  color: var(--color-primary);
}

.section-title em {
  font-style: normal;
  color: var(--color-accent);
}

.section-sub {
  font-size: 16px;
  color: var(--color-secondary);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 520px;
}

/* ── Badge / Pill — mirrors Flutter Container pill ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: 1px solid var(--color-accent-border);
  background: var(--color-accent-dim);
  color: var(--color-accent);
  width: fit-content;
}

.badge--green {
  background: rgba(62, 207, 142, 0.1);
  border-color: rgba(62, 207, 142, 0.25);
  color: #3ECF8E;
}

.badge--urgent {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #EF4444;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.4s ease-in-out infinite;
}

/* ── Tag chip — mirrors Flutter tag chips in VaultTab ── */
.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: rgba(234, 88, 12, 0.7);
  background: rgba(234, 88, 12, 0.06);
  border: 1px solid rgba(234, 88, 12, 0.15);
  letter-spacing: 0.1px;
}

/* ── Perk chip — mirrors Flutter icon chips on PaywallScreen ── */
.perk-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  transition: border-color var(--dur-base) var(--ease-out),
              background  var(--dur-base) var(--ease-out);
}

.perk-chip:hover {
  border-color: var(--color-accent-border);
  background: var(--color-accent-dim);
}

.perk-chip__icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ── Primary button — mirrors Flutter ElevatedButton ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0 28px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform  var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  text-decoration: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover::after {
  background: rgba(255,255,255,0.07);
}

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

.btn-primary--full {
  width: 100%;
}

/* ── Secondary / ghost button ── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0 24px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--dur-base), background var(--dur-base);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--color-accent-border);
  background: var(--color-accent-dim);
}

/* ── Trust strip — mirrors Flutter _TrustStrip ── */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-secondary);
  letter-spacing: 0.1px;
}

.trust-strip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 6px 1px rgba(62, 207, 142, 0.4);
  flex-shrink: 0;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--color-border);
  width: 100%;
}

/* ── Card ── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

/* ── Stat number — mirrors Flutter _StatBox ── */
.stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-box__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1;
  color: var(--color-primary);
}

.stat-box__label {
  font-size: 10.5px;
  color: var(--color-secondary);
  font-weight: 400;
}

/* ── Icon box — mirrors Flutter Container rounded icon ── */
.icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-accent-dim);
  border: 1px solid rgba(234, 88, 12, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.icon-box--lg {
  width: 54px;
  height: 54px;
  border-radius: 17px;
}

/* ── Animations ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Scroll-triggered reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }

/* ── Responsive helpers ── */
@media (max-width: 640px) {
  .section { padding: var(--space-3xl) 0; }
  .hide-mobile { display: none !important; }
}

@media (min-width: 641px) {
  .hide-desktop { display: none !important; }
}
