/* ============================================
   AMAZON CHEAPEST FINDER — STYLESHEET
============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #FF6B00; 
  --orange-light: #fff3e8;
  --orange-mid: #ff9040;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --charcoal: #1a1a1a;
  --muted: #6b6b6b;
  --border: #ebebeb;
}

.orange-text {
  color: var(--orange);
  font-weight: 800;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── NAV — Apple-style floating glass pill ── */
nav {
  position: fixed;
  top: 16px;
  /* Safe area for notched iPhones */
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 20px;
  height: 52px;
  width: calc(100% - 48px);
  max-width: 860px;
  border-radius: 100px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: top 0.35s cubic-bezier(0.4,0,0.2,1),
              height 0.35s cubic-bezier(0.4,0,0.2,1),
              background 0.35s,
              box-shadow 0.35s,
              width 0.35s;
}
/* Browsers that support backdrop-filter get the translucent version */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  nav { background: #ffffff; }
  nav.scrolled { background: #ffffff; }
}
nav.scrolled {
  top: 10px;
  height: 48px;
  background: #ffffff;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.09),
    0 12px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.nav-logo { flex: 1; text-decoration: none; display: flex; align-items: center; }
.nav-logo-img { height: 36px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--charcoal); background: rgba(0,0,0,0.05); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; cursor: pointer; border: none; transition: all 0.22s;
  white-space: nowrap;
}
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 4px 20px rgba(255,107,0,0.25); }
.btn-orange:hover { background: #e05e00; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255,107,0,0.35); }
.btn-large { padding: 18px 38px; font-size: 1.05rem; }
.btn-outline { background: transparent; color: var(--charcoal); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--charcoal); }

/* ── HERO ── */
.hero {
  min-height: 85vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 90px 24px 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,107,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, #d8d8d8 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 80%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-light); border: 1px solid rgba(255,107,0,0.2);
  color: var(--orange); border-radius: 100px;
  padding: 6px 16px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.6s ease 0.1s forwards;
}
.badge-dot {
  width: 7px; height: 7px; background: var(--orange); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted); max-width: 540px;
  margin: 0 auto 20px; line-height: 1.7; font-weight: 400;
  opacity: 0; animation: fadeUp 0.65s ease 0.3s forwards;
}
.hero h1 span { color: var(--orange); }
.hero-cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: fadeUp 0.65s ease 0.4s forwards;
}
.hero-note {
  font-size: 0.8rem; color: var(--muted); margin-top: 24px;
  opacity: 0; animation: fadeUp 0.65s ease 0.5s forwards;
}
.hero-note span { color: var(--orange); font-weight: 600; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0; padding: 18px 24px;
}
.trust-item { display: flex; align-items: center; gap: 8px; padding: 6px 28px; font-size: 0.84rem; font-weight: 500; color: var(--muted); }
.trust-item svg { color: var(--orange); }
.trust-divider { width: 1px; height: 18px; background: var(--border); }

/* ── SHARED SECTION STYLES ── */
section { padding: 100px 24px; }
.container { max-width: 1080px; margin: 0 auto; }

/* FIXED: 0.72rem matches fp-label used in feature panels */
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 14px;
}
.section-desc { display: none; }

/* ── HOW IT WORKS ── */
.hiw-section { background: var(--white); }
.hiw-header { text-align: center; margin-bottom: 62px; }
.hiw-header .section-desc { margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 32px; position: relative; }
.step-num {
  width: 60px; height: 60px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.4rem; color: #fff;
  box-shadow: 0 8px 24px rgba(255,107,0,0.3); margin-bottom: 28px;
  position: relative; z-index: 1;
}
.step h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.step p { font-size: 0.92rem; color: var(--muted); line-height: 1.7; max-width: 240px; }

/* ── FEATURES ── */
.features-section { background: var(--off-white); }
.features-header { margin-bottom: 56px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--white); border-radius: 20px; padding: 36px 32px;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.07); }
.feature-icon {
  width: 48px; height: 48px; background: var(--orange-light); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-icon svg { color: var(--orange); }
.feature-card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ── CTA ── */
.cta-section { background: var(--charcoal); text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 14px; }
.cta-section p { font-size: 1.05rem; color: rgba(255,255,255,0.55); max-width: 400px; margin: 0 auto 40px; }

/* ── FOOTER ── */
footer {
  background: #111; padding: 36px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { text-decoration: none; display: flex; align-items: center; }
.footer-logo-img { height: 28px; width: auto; display: block; filter: brightness(10); opacity: 0.6; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 0.83rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.55); text-align: right; margin-left: auto; line-height: 1.7; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.19s; }
.reveal-d4 { transition-delay: 0.26s; }
.reveal-d5 { transition-delay: 0.33s; }

/* ── MOBILE MENU ── */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: all 0.3s; }
.mobile-nav {
  display: none;
  position: fixed;
  /* Sits right below the pill (16px offset + 52px height + 8px gap) */
  top: 76px;
  top: calc(76px + env(safe-area-inset-top, 0px));
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(200%) blur(20px);
  backdrop-filter: saturate(200%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.95);
  padding: 8px;
  z-index: 99;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  border-radius: 14px;
  min-height: 48px; /* Meets Apple's minimum 44pt touch target */
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:active { background: rgba(0,0,0,0.05); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Tablet: iPad portrait / small laptops (681px–860px) */
@media (max-width: 860px) and (min-width: 681px) {
  .nav-links a { padding: 6px 10px; font-size: 0.8rem; }
  section { padding: 72px 24px; }
  .step { padding: 32px 20px; }
}
@media (max-width: 680px) {
  nav { padding: 0 16px; width: calc(100% - 32px); }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: 80px 20px 48px; min-height: 100svh; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem) !important; }

  /* Sections */
  section { padding: 56px 20px; }

  /* Steps */
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step { padding: 28px 16px; }
  .step p { max-width: 100%; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 28px 24px; }

  /* Trust bar — stack into a 2×2 grid on narrow screens */
  .trust-bar { justify-content: flex-start; padding: 14px 16px; gap: 4px; }
  .trust-divider { display: none; }
  .trust-item { padding: 8px 16px; font-size: 0.8rem; width: 50%; }

  /* CTA */
  .cta-section h2 { font-size: clamp(1.6rem, 7vw, 2.4rem); white-space: normal !important; padding: 0 8px; }
  .cta-section p { font-size: 0.95rem; }

  /* Footer */
  footer { flex-direction: column; align-items: flex-start; padding: 28px 20px; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }
  .footer-copy { text-align: left; margin-left: 0; }
}