/* Loufybooks Landing Page — Design Tokens & Styles */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --brand:      #037ffb;
  --brand-soft: #e6f1ff;
  --brand-dark: #0263c5;
  --bg:         #ffffff;
  --bg-soft:    #f6f8fb;
  --bg-soft-2:  #eef2f7;
  --ink:        #0b1422;
  --ink-2:      #2c3849;
  --muted:      #6b7689;
  --muted-2:    #9aa3b2;
  --line:       #e6e9ef;
  --line-2:     #eef0f4;
  --success:    #11a76b;
  --warn:       #f5a524;
  --danger:     #e5484d;
  --radius-card: 18px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── Utilities ───────────────────────────────────────── */
.lf-num {
  font-feature-settings: 'tnum' 1, 'cv11' 1;
  font-variant-numeric: tabular-nums;
}

/* ── Nav ─────────────────────────────────────────────── */
.lf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 64px;
  border-bottom: 1px solid var(--line-2);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
}

.lf-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lf-nav-logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
}

.lf-nav-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lf-nav-logo-icon svg { color: #fff; }

.lf-nav-wordmark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.4px;
}

.lf-nav-wordmark span { color: var(--brand); }

.lf-nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  list-style: none;
}

.lf-nav-links a:hover { color: var(--ink); }

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

.lf-nav-signin {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.lf-nav-signin:hover { color: var(--ink); }

.lf-btn-primary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  border: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  box-shadow: 0 6px 14px rgba(3,127,251,0.25);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  white-space: nowrap;
}

.lf-btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(3,127,251,0.32);
  transform: translateY(-1px);
}

.lf-btn-secondary {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.15s;
}

.lf-btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

/* hamburger (mobile nav toggle) */
.lf-nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 4px;
}
.lf-nav-ham span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; display: block; }
.lf-nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lf-nav-ham.open span:nth-child(2) { opacity: 0; }
.lf-nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav drawer */
.lf-nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 20px;
  z-index: 99;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.lf-nav-drawer.open { display: flex; }
.lf-nav-drawer a { padding: 12px 24px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.lf-nav-drawer a:hover { color: var(--ink); background: var(--bg-soft); }
.lf-nav-drawer .lf-drawer-cta { padding: 14px 24px 0; }
.lf-nav-drawer .lf-btn-primary { width: 100%; }

/* ── Hero ────────────────────────────────────────────── */
.lf-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  padding: 72px 56px 0;
  align-items: center;
  min-height: calc(100vh - 64px);
  max-height: 880px;
  overflow: hidden;
  position: relative;
}

.lf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
}

.lf-hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 99px;
  flex-shrink: 0;
}

.lf-hero-headline {
  font-size: 62px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -2px;
  margin-top: 18px;
  color: var(--ink);
}

.lf-hero-headline span { color: var(--brand); }

.lf-hero-sub {
  font-size: 17px;
  color: var(--ink-2);
  margin-top: 18px;
  line-height: 1.55;
  max-width: 480px;
}

.lf-hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.lf-hero-cta-main {
  height: 52px;
  padding: 0 24px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  border: 0;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 12px 24px rgba(3,127,251,0.32);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.lf-hero-cta-main:hover {
  background: var(--brand-dark);
  box-shadow: 0 16px 28px rgba(3,127,251,0.38);
  transform: translateY(-2px);
}

.lf-hero-cta-secondary {
  height: 52px;
  padding: 0 24px;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s;
}

.lf-hero-cta-secondary:hover { border-color: var(--brand); color: var(--brand); }

.lf-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.lf-hero-stat-val {
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}

.lf-hero-stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Phone mockup area ───────────────────────────────── */
.lf-hero-visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lf-hero-blob {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lf-phone-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CSS phone frame */
.lf-phone {
  width: 240px;
  height: 490px;
  background: var(--ink);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 40px 70px rgba(20,40,80,0.25), 0 0 0 1px rgba(255,255,255,0.06) inset;
  position: relative;
  filter: drop-shadow(0 30px 50px rgba(20,40,80,0.2));
}

.lf-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(180deg, #037ffb 0%, #0263c5 35%, var(--bg-soft) 35%);
  overflow: hidden;
  position: relative;
}

.lf-phone-screen-inner {
  padding: 20px 14px 14px;
}

.lf-phone-notch {
  width: 80px;
  height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  margin: 0 auto 14px;
}

/* floating phone (secondary) */
.lf-phone-secondary {
  position: absolute;
  left: -30px;
  top: 30px;
  transform: rotate(-8deg) scale(0.78);
  transform-origin: center;
  z-index: 0;
  opacity: 0.9;
}

/* floating cards */
.lf-float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 16px 30px rgba(20,40,80,0.10);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: lf-float 4s ease-in-out infinite;
}

.lf-float-card:nth-child(2) { animation-delay: -2s; }

@keyframes lf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.lf-float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lf-float-label { font-size: 11px; color: var(--muted); }
.lf-float-value { font-weight: 700; font-size: 14px; color: var(--ink); margin-top: 1px; }

/* ── Features strip ──────────────────────────────────── */
.lf-strip {
  background: var(--bg-soft);
  padding: 24px 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin-top: auto;
}

.lf-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
}

.lf-strip-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.lf-strip-title { font-weight: 700; font-size: 13.5px; }
.lf-strip-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ── Section shared ──────────────────────────────────── */
.lf-section {
  padding: 80px 56px;
}

.lf-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
}

.lf-section-heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin-top: 14px;
  color: var(--ink);
}

.lf-section-sub {
  font-size: 16px;
  color: var(--ink-2);
  margin-top: 14px;
  line-height: 1.55;
  max-width: 580px;
}

/* ── Features grid ───────────────────────────────────── */
.lf-features-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 40px;
}

.lf-features-stats {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
  flex-shrink: 0;
}

.lf-features-stat-val {
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.6px;
}

.lf-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lf-feature-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.lf-feature-card:hover {
  box-shadow: 0 8px 24px rgba(20,40,80,0.08);
  transform: translateY(-2px);
}

.lf-feature-card.featured {
  background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
}

.lf-feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lf-feature-card-title {
  font-weight: 700;
  font-size: 17px;
  margin-top: 14px;
  letter-spacing: -0.3px;
}

.lf-feature-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.55;
}

.lf-feature-card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: #fff;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--brand-soft);
}

/* ── Pricing ─────────────────────────────────────────── */
.lf-pricing-section {
  padding: 80px 56px 0;
  background: var(--bg-soft);
  min-height: 100vh;
}

.lf-pricing-header { text-align: center; margin-bottom: 40px; }

.lf-pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--brand);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--line);
}

.lf-pricing-heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin-top: 14px;
  color: var(--ink);
}

.lf-pricing-heading span { color: var(--brand); }

.lf-pricing-sub {
  font-size: 16px;
  color: var(--ink-2);
  margin-top: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* billing toggle */
.lf-billing-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  gap: 0;
}

.lf-billing-toggle button {
  padding: 7px 18px;
  border-radius: 99px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.lf-billing-toggle button.active {
  background: var(--ink);
  color: #fff;
}

/* pricing grid */
.lf-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.lf-pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: box-shadow 0.2s;
}

.lf-pricing-card:hover { box-shadow: 0 8px 24px rgba(20,40,80,0.07); }

.lf-pricing-card.featured {
  background: linear-gradient(180deg, #0263c5 0%, #037ffb 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 24px 50px rgba(3,127,251,0.30);
  transform: translateY(-12px);
}

.lf-pricing-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.lf-pricing-tier { font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.lf-pricing-desc { font-size: 13px; margin-top: 4px; line-height: 1.4; }
.lf-pricing-card:not(.featured) .lf-pricing-desc { color: var(--muted); }
.lf-pricing-card.featured .lf-pricing-desc { color: rgba(255,255,255,0.8); }

.lf-pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 20px;
}

.lf-pricing-amount-val {
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -1.4px;
}

.lf-pricing-amount-per { font-size: 13px; }
.lf-pricing-card:not(.featured) .lf-pricing-amount-per { color: var(--muted); }
.lf-pricing-card.featured .lf-pricing-amount-per { color: rgba(255,255,255,0.85); }

.lf-pricing-cta {
  width: 100%;
  height: 46px;
  margin-top: 20px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
}
.lf-pricing-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.lf-pricing-card:not(.featured) .lf-pricing-cta {
  background: var(--ink);
  color: #fff;
}

.lf-pricing-card.featured .lf-pricing-cta {
  background: #fff;
  color: var(--brand);
}

.lf-pricing-divider {
  height: 1px;
  margin: 22px 0 18px;
}
.lf-pricing-card:not(.featured) .lf-pricing-divider { background: var(--line-2); }
.lf-pricing-card.featured .lf-pricing-divider { background: rgba(255,255,255,0.2); }

.lf-pricing-features { display: flex; flex-direction: column; gap: 10px; }

.lf-pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
}

.lf-pricing-check {
  width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.lf-pricing-card:not(.featured) .lf-pricing-check {
  background: var(--brand-soft);
  color: var(--brand);
}

.lf-pricing-card.featured .lf-pricing-check {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.lf-pricing-card:not(.featured) .lf-pricing-feature span { color: var(--ink-2); }
.lf-pricing-card.featured .lf-pricing-feature span { color: #fff; }

.lf-pricing-footer {
  text-align: center;
  margin-top: 36px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 56px;
}

/* ── Footer ──────────────────────────────────────────── */
.lf-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.lf-footer-brand .lf-nav-wordmark { font-size: 17px; color: #fff; }
.lf-footer-tagline { font-size: 13.5px; margin-top: 10px; line-height: 1.55; max-width: 240px; }

.lf-footer-col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 14px; letter-spacing: 0.2px; }
.lf-footer-col a { display: block; font-size: 13.5px; color: rgba(255,255,255,0.55); margin-bottom: 10px; transition: color 0.15s; }
.lf-footer-col a:hover { color: rgba(255,255,255,0.9); }

.lf-footer-bottom {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .lf-nav { padding: 0 28px; }
  .lf-nav-links { display: none; }
  .lf-nav-signin { display: none; }
  .lf-nav-ham { display: flex; }
  .lf-btn-primary { font-size: 13px; padding: 10px 14px; }

  .lf-hero { grid-template-columns: 1fr; padding: 48px 28px 0; max-height: none; min-height: auto; }
  .lf-hero-visual { display: none; }
  .lf-hero-headline { font-size: 44px; }
  .lf-hero-sub { font-size: 16px; }
  .lf-hero-cta-main, .lf-hero-cta-secondary { height: 46px; font-size: 14px; }

  .lf-strip { grid-template-columns: repeat(2, 1fr); padding: 20px 28px; }

  .lf-section, .lf-pricing-section { padding: 56px 28px; }
  .lf-section-heading, .lf-pricing-heading { font-size: 36px; }
  .lf-features-header { flex-direction: column; align-items: flex-start; }
  .lf-features-grid { grid-template-columns: repeat(2, 1fr); }
  .lf-pricing-grid { grid-template-columns: 1fr; }
  .lf-pricing-card.featured { transform: none; }

  .lf-footer { grid-template-columns: 1fr 1fr; padding: 40px 28px; }
  .lf-footer-bottom { padding: 14px 28px; flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 640px) {
  .lf-hero-headline { font-size: 34px; letter-spacing: -1px; }
  .lf-hero-ctas { flex-direction: column; }
  .lf-hero-cta-main, .lf-hero-cta-secondary { width: 100%; justify-content: center; }
  .lf-hero-stats { flex-wrap: wrap; gap: 18px; }
  .lf-strip { grid-template-columns: 1fr; }
  .lf-features-grid { grid-template-columns: 1fr; }
  .lf-footer { grid-template-columns: 1fr; }
  .lf-pricing-section { padding: 40px 20px; min-height: auto; }
  .lf-section { padding: 48px 20px; }
  .lf-section-heading, .lf-pricing-heading { font-size: 30px; letter-spacing: -0.8px; }
  .lf-section-sub, .lf-pricing-sub { font-size: 14px; }
  .lf-features-stats { flex-wrap: wrap; gap: 16px; }
}

/* ── Small phones (≤ 390px) ─────────────────────────────── */
@media (max-width: 390px) {
  .lf-nav { padding: 0 16px; }
  .lf-hero { padding: 36px 16px 0; }
  .lf-hero-headline { font-size: 28px; letter-spacing: -0.8px; }
  .lf-hero-sub { font-size: 14px; }
  .lf-hero-cta-main, .lf-hero-cta-secondary { height: 44px; font-size: 13.5px; padding: 0 18px; }
  .lf-hero-stats { flex-direction: column; gap: 10px; }
  .lf-hero-stat-val { font-size: 19px; }
  .lf-strip { padding: 16px; }
  .lf-section, .lf-pricing-section { padding: 36px 16px; }
  .lf-section-heading, .lf-pricing-heading { font-size: 26px; }
  .lf-footer { padding: 32px 16px; }
  .lf-footer-bottom { padding: 14px 16px; }
  .lf-billing-toggle { font-size: 12px; }
  .lf-billing-toggle button { padding: 6px 14px; font-size: 12px; }
  .lf-pricing-amount-val { font-size: 30px; }
  .lf-feature-card { padding: 16px; }
  .lf-pricing-card { padding: 20px; }
}
