/* =========================================================================
   Faktur landing — standalone static styles (no framework, no build step).
   Reproduces the "Faktur Landing" design: cream canvas, blue + orange accents,
   Space Grotesk headings / Manrope body.
   ========================================================================= */

:root {
  color-scheme: light;

  --cream: #f6f4ed;
  --ink: #16202e;
  --blue: #2947d4;
  --blue-soft: #edf0ff;
  --blue-light: #6e86ff;
  --orange: #ff6a45;
  --orange-soft: #ffeee8;
  --green: #22b573;
  --green-soft: #e6f7ef;

  --muted: #566072;
  --muted-2: #7a8290;
  --border: #e7e3d8;
  --border-2: #ebe7dc;
  --surface: #ffffff;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1180px;
}

/* -------------------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

/* Kill any horizontal overflow at the scroll container so centered content
   (sections, cards, footer) stays centered on narrow screens instead of
   being pushed left. body alone isn't enough — html is the scroller. */
html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

@keyframes fkFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fkPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.accent-blue {
  color: var(--blue);
}
.accent-indigo {
  color: var(--blue-light);
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   Buttons (links styled as buttons)
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease,
    background-color 120ms ease;
}

.btn-lg {
  font-size: 17px;
  padding: 16px 30px;
  border-radius: 13px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(41, 71, 212, 0.28);
}
.btn-primary.btn-lg {
  box-shadow: 0 12px 28px rgba(41, 71, 212, 0.32);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(41, 71, 212, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: #d6d2c6;
  padding: 16px 24px;
}
.btn-outline:hover {
  border-color: var(--ink);
}

.btn-white {
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  font-size: 18px;
  padding: 18px 40px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}
.btn-white:hover {
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(246, 244, 237, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-login {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 10px;
}
.nav-login:hover {
  background: rgba(22, 32, 46, 0.05);
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 28px 60px;
  /* Contain the decorative glows + the phone→factura visual so they never
     spill past the hero and create page-wide horizontal overflow. */
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.hero-glow--blue {
  top: -60px;
  right: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(41, 71, 212, 0.1), transparent 68%);
}
.hero-glow--orange {
  top: 220px;
  left: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 106, 69, 0.1), transparent 68%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  flex: 1 1 440px;
  min-width: 320px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 26px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: fkPulse 2s infinite;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-trust {
  font-size: 14.5px;
  color: var(--muted-2);
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.check {
  color: var(--green);
  font-weight: 800;
}

/* Hero visual: phone → arrow → invoice */
.hero-visual {
  flex: 1 1 420px;
  min-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone {
  width: 210px;
  height: 420px;
  border-radius: 34px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 30px 60px rgba(22, 32, 46, 0.28);
  position: relative;
  z-index: 2;
  animation: fkFloat 6s ease-in-out infinite;
}
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 6px;
  border-radius: 3px;
  background: #2a3547;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: #edebe4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CSS mock ticket inside the phone */
.mock-ticket {
  width: 130px;
  background: #fff;
  border-radius: 6px;
  padding: 14px 12px;
  transform: rotate(-3deg);
  box-shadow: 0 8px 18px rgba(22, 32, 46, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-ticket-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.mock-ticket-store {
  width: 70%;
  height: 10px;
  border-radius: 3px;
  background: var(--ink);
}
.mock-ticket-sub {
  width: 45%;
  height: 6px;
  border-radius: 3px;
  background: #c9c6bb;
}
.mt-line {
  height: 6px;
  border-radius: 3px;
  background: #e4e1d6;
}
.mock-ticket-barcode {
  height: 26px;
  margin-top: 6px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0,
    var(--ink) 2px,
    #fff 2px,
    #fff 4px
  );
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(255, 106, 69, 0.4);
  z-index: 3;
  margin: 0 -14px;
  flex: 0 0 auto;
}

.invoice {
  width: 230px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(22, 32, 46, 0.16);
  padding: 20px;
  z-index: 1;
  animation: fkFloat 6s ease-in-out infinite;
  animation-delay: -3s;
}
.invoice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.invoice-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
}
.invoice-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.inv-line {
  display: block;
  height: 8px;
  background: #eeece4;
  border-radius: 4px;
  margin-bottom: 9px;
}
.invoice-files {
  border-top: 1px dashed #ddd9cd;
  padding-top: 14px;
  margin-top: 9px;
  display: flex;
  gap: 8px;
}
.chip {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 12px;
  border-radius: 8px;
}

.w90 {
  width: 90%;
}
.w80 {
  width: 80%;
}
.w78 {
  width: 78%;
}
.w75 {
  width: 75%;
}
.w70 {
  width: 70%;
}
.w65 {
  width: 65%;
}
.w55 {
  width: 55%;
}

/* -------------------------------------------------------------------------
   Problem / Solution (dark band)
   ------------------------------------------------------------------------- */
.ps {
  background: var(--ink);
  color: #efeee9;
}
.ps-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 68px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.ps-pain,
.ps-solution {
  flex: 1 1 380px;
  min-width: 300px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow--orange {
  color: #ff8464;
}
.eyebrow--indigo {
  color: var(--blue-light);
}
.ps-quote {
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.strike {
  color: #8994a6;
  text-decoration: line-through;
  text-decoration-color: var(--orange);
}
.ps-pain-note {
  font-size: 16px;
  color: #a6aebc;
  margin-top: 20px;
  line-height: 1.6;
}
.ps-solution {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 34px;
}
.ps-solution-text {
  font-size: 19px;
  line-height: 1.6;
  color: #efeee9;
}

/* -------------------------------------------------------------------------
   Sections + cards
   ------------------------------------------------------------------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px 28px 70px;
}
.section--benefits {
  padding: 10px 28px 90px;
}

.section-head {
  text-align: center;
  margin-bottom: 52px;
}
.section-head .eyebrow {
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  flex: 1 1 300px;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 34px 30px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
}
.card-text--light {
  color: #d9e1ff;
}

/* Steps */
.step-num {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
}
.step-num--light {
  color: #aec0ff;
}
.step-emoji {
  font-size: 40px;
  margin-bottom: 16px;
}
.step--highlight {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 20px 44px rgba(41, 71, 212, 0.28);
}
.step--highlight .card-title {
  color: #fff;
}

/* Benefits */
.benefit-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.benefit-icon--blue {
  background: var(--blue-soft);
}
.benefit-icon--orange {
  background: var(--orange-soft);
}
.benefit-icon--green {
  background: var(--green-soft);
}
.benefit .card-title {
  font-size: 21px;
  margin-bottom: 10px;
}

/* -------------------------------------------------------------------------
   Final CTA
   ------------------------------------------------------------------------- */
.final-cta-wrap {
  padding: 0 28px 80px;
}
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  border-radius: 28px;
  padding: 72px 40px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(41, 71, 212, 0.3);
}
.final-cta-glow {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 106, 69, 0.35), transparent 65%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
}
.final-cta-title {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 18px;
  text-wrap: balance;
}
.final-cta-sub {
  font-size: 18px;
  color: #c9d4ff;
  margin-bottom: 34px;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  height: 36px;
  width: auto;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}
.footer-social {
  font-size: 14px;
  color: var(--muted-2);
}
.footer-social-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.footer-social-link:hover {
  text-decoration: underline;
}
.footer-copy {
  font-size: 14px;
  color: #8a9099;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 720px) {
  /* Nav: compact so logo + login + CTA fit on one aligned row */
  .nav-inner {
    padding: 12px 16px;
    gap: 10px;
  }
  .brand-logo {
    height: 36px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-login {
    padding: 8px 8px;
    font-size: 14px;
  }
  .nav-actions .btn {
    padding: 9px 14px;
    font-size: 14px;
  }

  .hero {
    padding: 40px 20px 40px;
  }
  .hero-inner {
    gap: 36px;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-lead {
    font-size: 17px;
  }
  /* Hero CTAs stack full-width so they don't crowd */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
  }
  /* Scale the phone → factura visual so it never overflows the viewport */
  .hero-visual {
    transform: scale(0.82);
    transform-origin: center top;
  }
  .section {
    padding: 60px 20px 50px;
  }
  .section-title,
  .final-cta-title {
    font-size: 30px;
  }
  .ps-quote {
    font-size: 24px;
  }
  .final-cta {
    padding: 56px 26px;
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .brand-logo {
    height: 30px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-login {
    font-size: 13px;
    padding: 6px 6px;
  }
  .nav-actions .btn {
    font-size: 13px;
    padding: 8px 12px;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-visual {
    transform: scale(0.7);
  }
}
