/* Finanzio landing — minimal, typography-focused */

.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;
}

/* Hero on-load animation — premium, hero only */
@keyframes hero-brand-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hero-reveal-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Easing: smooth, organic — no harsh stops */
@media (prefers-reduced-motion: no-preference) {
  .hero__brand {
    animation: hero-brand-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero h1 {
    animation: hero-reveal-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  }
  .hero .subheadline {
    animation: hero-reveal-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
  }
  .hero .cta-form {
    animation: hero-reveal-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
  }
  .hero .cta-note {
    animation: hero-reveal-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
  }
  .value .item:nth-child(2) {
    animation: hero-reveal-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
  }
  .value .item:nth-child(3) {
    animation: hero-reveal-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both;
  }
  .value .item:nth-child(4) {
    animation: hero-reveal-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.74s both;
  }
  .features h2 {
    animation: hero-reveal-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
  }
  .features li {
    animation: hero-reveal-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .features li:nth-child(1) { animation-delay: 0.82s; }
  .features li:nth-child(2) { animation-delay: 0.92s; }
  .features li:nth-child(3) { animation-delay: 1.02s; }
  .features li:nth-child(4) { animation-delay: 1.12s; }
  .features li:nth-child(5) { animation-delay: 1.22s; }
  .features li:nth-child(6) { animation-delay: 1.32s; }
  .footer {
    animation: hero-reveal-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.4s both;
  }
}

.hero {
  position: relative;
  text-align: center;
  padding: clamp(120px, 18vh, 220px) var(--screenHorizontal);
  background: var(--backgroundSubtle);
}

.hero__brand {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 700;
  color: var(--textPrimary);
  letter-spacing: -0.03em;
  margin-bottom: var(--spaceSm);
}

.hero h1 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: var(--spaceLg);
  color: var(--textSecondary);
}

.hero .subheadline {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--textTertiary);
  line-height: 1.6;
  margin-bottom: var(--spaceXl);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta-form {
  max-width: 520px;
  margin: 0 auto;
}

.hero .cta-form .cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--spaceSm);
}

.hero .cta-badge {
  font-size: var(--fontCaption1);
  color: var(--textTertiary);
  font-weight: 500;
}

.hero .cta-input {
  width: 100%;
  min-height: var(--touchTargetMin);
  padding: 0 var(--spaceMd);
  border-radius: var(--radiusButton);
  border: 1px solid var(--divider);
  font-size: var(--fontBody);
  line-height: 1.4;
  color: var(--textPrimary);
  background: var(--surface);
  outline: none;
  transition: border-color var(--durationFast) var(--easeSmooth), box-shadow var(--durationFast) var(--easeSmooth), background var(--durationFast) var(--easeSmooth);
}

.hero .cta-input::placeholder {
  color: var(--textTertiary);
}

.hero .cta-input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accentSubtle);
  background: var(--backgroundSubtle);
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touchTargetMin);
  padding: 0 var(--spaceXxl);
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radiusButton);
  border: none;
  font-weight: 600;
  font-size: var(--fontHeadline);
  letter-spacing: 0.02em;
  box-shadow: var(--elevationButton);
  transition: background var(--durationNormal) var(--easeSmooth), transform var(--durationFast) var(--easeSmooth), box-shadow var(--durationNormal) var(--easeSmooth);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.hero .cta:hover {
  background: var(--accentPressed);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27, 143, 90, 0.35);
}

.hero .cta-note {
  margin-top: var(--spaceMd);
  font-size: var(--fontSubheadline);
  color: var(--textSecondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spaceXs);
}

.hero .cta-note span:first-child {
  font-weight: 500;
}

.hero .cta-note .cta-badge {
  font-size: inherit;
}

/* Thank-you state when ?subscribed=1 */
.hero .waitlist-success {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.hero .waitlist-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--spaceLg);
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
}

.hero .waitlist-success__icon svg {
  display: block;
}

.hero .waitlist-success__title {
  font-size: var(--fontHeadline);
  font-weight: 600;
  color: var(--textPrimary);
  margin-bottom: var(--spaceSm);
}

.hero .waitlist-success__text {
  font-size: var(--fontSubheadline);
  color: var(--textSecondary);
  line-height: 1.5;
  margin-bottom: var(--spaceMd);
}

.hero .waitlist-success .cta-note {
  margin-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero .waitlist-success:not([hidden]) {
    animation: hero-reveal-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@media (min-width: 640px) {
  .hero .cta-form .cta-wrap {
    flex-direction: row;
    align-items: center;
  }

  .hero .cta-input {
    flex: 1;
  }
}

.value {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spaceXxl);
  padding: clamp(var(--spaceMassive), 10vh, 80px) var(--screenHorizontal);
  max-width: 960px;
  margin: 0 auto;
}

.value .item {
  padding: var(--spaceXxl);
  border-radius: var(--radiusCard);
  background: var(--surface);
  box-shadow: var(--elevation1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--durationNormal) var(--easeSmooth), transform var(--durationNormal) var(--easeSmooth), border-color var(--durationNormal) var(--easeSmooth);
}

.value .item:hover {
  box-shadow: var(--elevation2);
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.06);
}

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

.value .item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value .item .icon {
  color: var(--accent);
  margin-bottom: var(--spaceLg);
  font-size: 24px;
}

.value .item strong {
  display: block;
  font-size: var(--fontHeadline);
  font-weight: 600;
  margin-bottom: var(--spaceXs);
}

.value .item p {
  font-size: var(--fontSubheadline);
  color: var(--textSecondary);
  line-height: var(--lineHeightBody);
}

.features {
  padding: clamp(var(--spaceMassive), 10vh, 80px) var(--screenHorizontal);
  max-width: 800px;
  margin: 0 auto;
}

.features h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--spaceMassive);
  text-align: center;
  color: var(--textPrimary);
}

.features ul {
  list-style: none;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: var(--spaceXxl);
  padding: var(--spaceXxl) 0;
  border-bottom: 1px solid var(--divider);
}

.features .feature-icon {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--accentSubtle);
  border-radius: var(--radiusCardSmall);
  color: var(--accent);
  flex-shrink: 0;
}

.features .feature-icon i.fi {
  font-size: 20px;
  font-style: normal;
}

.features li:last-child {
  border-bottom: none;
}

.features li h3 {
  font-size: var(--fontHeadline);
  margin-bottom: var(--spaceXs);
}

.features li p {
  font-size: var(--fontSubheadline);
  color: var(--textSecondary);
  line-height: var(--lineHeightBody);
}

.footer__badge {
  font-size: 11px;
  color: var(--textTertiary);
  margin-bottom: var(--spaceMd);
  font-style: italic;
}

.footer {
  padding: clamp(var(--spaceMassive), 8vh, 80px) var(--screenHorizontal);
  text-align: center;
  font-size: var(--fontCaption1);
  color: var(--textTertiary);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--durationFast) var(--easeSmooth);
}

.footer a:hover {
  opacity: 0.85;
}

/* 404 page */
.hero__404-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spaceLg);
  background: var(--accentSubtle);
  border-radius: 50%;
  color: var(--accent);
}

.hero__404-icon i.fi {
  font-size: 36px;
  font-style: normal;
}

/* Legal pages (privacy, terms) */
.legal-header {
  padding: var(--spaceMassive) var(--screenHorizontal);
  max-width: 720px;
  margin: 0 auto;
}

.legal-header__back {
  display: inline-block;
  margin-bottom: var(--spaceLg);
  color: var(--accent);
  text-decoration: none;
  font-size: var(--fontSubheadline);
}

.legal-header__back:hover {
  text-decoration: underline;
}

.legal-header h1 {
  font-size: var(--fontTitle1);
  font-weight: 600;
  margin-bottom: var(--spaceXs);
}

.legal-header__updated {
  font-size: var(--fontCaption1);
  color: var(--textTertiary);
}

.legal-content {
  padding: 0 var(--screenHorizontal) var(--spaceMassive);
  max-width: 720px;
  margin: 0 auto;
}

.legal-content section {
  margin-bottom: var(--spaceXxl);
}

.legal-content h2 {
  font-size: var(--fontHeadline);
  font-weight: 600;
  margin-bottom: var(--spaceSm);
  color: var(--textPrimary);
}

.legal-content p {
  font-size: var(--fontBody);
  line-height: var(--lineHeightBody);
  color: var(--textSecondary);
}

