/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: var(--tracking-logo);
  color: var(--color-primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--color-text-primary);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--color-surface);
  padding: 24px;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 0;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: #0B7F74;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary-bg);
}

.btn-outline-dark {
  border: 1.5px solid var(--color-text-primary);
  color: var(--color-text-primary);
  background: transparent;
}

.btn-outline-dark:hover {
  background-color: var(--color-text-primary);
  color: white;
}

.btn-white {
  background-color: white;
  color: var(--color-primary);
  font-weight: 600;
}

.btn-white:hover {
  box-shadow: var(--shadow-md);
}

.btn-lg {
  font-size: 16px;
  padding: 14px 32px;
}

/* ─── Badge / Pill ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background-color: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-divider);
}

.badge-primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-color: transparent;
}

.badge-green {
  background-color: var(--color-price-green-light);
  color: var(--color-price-green);
  border: 1px solid var(--color-price-green-border);
}

/* ─── Phone Mockup ─── */
.phone-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.phone-mockup {
  position: relative;
  width: 280px;
  z-index: 2;
}

.phone-frame {
  width: 100%;
  border-radius: 48px;
  border: 5px solid #1A1A1A;
  background: var(--color-surface);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 20px 60px rgba(0, 0, 0, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.08);
  aspect-ratio: 393 / 852;
  position: relative;
}

/* Dynamic Island is part of the screenshot — hide CSS notch */
.phone-notch {
  display: none;
}

/* Side button (power) */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 120px;
  right: -7px;
  width: 3px;
  height: 56px;
  background: #2D2D2D;
  border-radius: 0 2px 2px 0;
  z-index: 4;
}

/* Volume buttons */
.phone-frame::after {
  content: '';
  position: absolute;
  top: 100px;
  left: -7px;
  width: 3px;
  height: 32px;
  background: #2D2D2D;
  border-radius: 2px 0 0 2px;
  z-index: 4;
  box-shadow: 0 44px 0 #2D2D2D;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.phone-screen img.screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: none;
}

/* Placeholder screen */
.placeholder-screen {
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 12px 0;
  gap: 8px;
  position: relative;
}

.placeholder-screen .ps-logo {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 0;
}

.placeholder-screen .ps-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  align-self: flex-start;
  padding-left: 4px;
}

.placeholder-screen .ps-search {
  width: 100%;
  height: 26px;
  background: var(--color-input-bg);
  border-radius: var(--radius-input);
}

.placeholder-screen .ps-chips {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-bottom: 2px;
}

.placeholder-screen .ps-chip {
  font-size: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

.placeholder-screen .ps-chip-outline {
  font-size: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-divider);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.placeholder-screen .ps-product {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: white;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-divider);
}

.placeholder-screen .ps-product-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-surface-secondary);
  flex-shrink: 0;
}

.placeholder-screen .ps-product-info {
  flex: 1;
  min-width: 0;
}

.placeholder-screen .ps-product-name {
  font-size: 9px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.placeholder-screen .ps-product-meta {
  font-size: 7px;
  color: var(--color-text-tertiary);
}

.placeholder-screen .ps-product-price {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: right;
}

.placeholder-screen .ps-product-change {
  font-size: 7px;
  color: var(--color-price-green);
  text-align: right;
}

/* Tab bar */
.placeholder-screen .ps-tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 16px 16px;
  background: rgba(245, 245, 247, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-divider);
}

.placeholder-screen .ps-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 7px;
  color: var(--color-text-tertiary);
  font-weight: 500;
}

.placeholder-screen .ps-tab.active {
  color: var(--color-primary);
}

.placeholder-screen .ps-tab svg {
  width: 16px;
  height: 16px;
}

/* Add + button */
.placeholder-screen .ps-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 68px;
  right: 12px;
}

.placeholder-screen .ps-add-btn svg {
  width: 14px;
  height: 14px;
  color: white;
}

/* ─── Floating Cards ─── */
.floating-card {
  position: absolute;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.floating-card-price {
  top: 10%;
  right: calc(100% + 24px);
  animation: float 4s ease-in-out infinite;
}

.floating-card-alert {
  top: 6%;
  left: calc(100% + 24px);
  animation: float 4s ease-in-out infinite 1s;
}

.floating-card-chart {
  bottom: 28%;
  right: calc(100% + 24px);
  animation: float 4s ease-in-out infinite 0.5s;
}

.floating-card-stats {
  bottom: 24%;
  left: calc(100% + 24px);
  animation: float 4s ease-in-out infinite 1.5s;
}

/* Floating card inner styles */
.floating-card .fc-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-card .fc-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-card .fc-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.floating-card .fc-subtitle {
  font-size: 11px;
  color: var(--color-text-tertiary);
}

.floating-card .fc-detail {
  font-size: 11px;
  color: var(--color-text-secondary);
}

.floating-card .fc-detail strong {
  font-size: 14px;
  color: var(--color-text-primary);
}

.floating-card .fc-green {
  color: var(--color-price-green);
  font-weight: 600;
}

.floating-card .fc-teal {
  color: var(--color-primary);
}

.floating-card .fc-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  margin-bottom: 6px;
}

/* Stats card */
.floating-card .fc-stats-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.floating-card .fc-stat-label {
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-bottom: 2px;
}

.floating-card .fc-stat-value {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-primary);
}

.floating-card .fc-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--color-divider);
}

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

/* ─── Feature Card ─── */
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.12);
  transform: translateY(-4px);
}

.feature-card .feature-visual {
  height: 180px;
  background: var(--color-surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-card .feature-content {
  padding: 28px 28px 32px;
}

.feature-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card .icon-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* ─── Feature Visual Illustrations ─── */

/* Shared mini-card style */
.fv-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 12px 16px;
}

/* 1: Track — search bar + product row */
.fv-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80%;
  max-width: 260px;
}

.fv-track .fv-search {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.fv-track .fv-search svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.fv-track .fv-product-row {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fv-track .fv-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-primary-light);
  flex-shrink: 0;
}

.fv-track .fv-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fv-track .fv-line {
  height: 6px;
  background: var(--color-input-bg);
  border-radius: 3px;
}

.fv-track .fv-line:first-child { width: 90%; }
.fv-track .fv-line:last-child { width: 60%; }

.fv-track .fv-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* 2: Alerts — notification stack */
.fv-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80%;
  max-width: 260px;
}

.fv-alerts .fv-notif {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s, opacity 0.3s;
}

.fv-alerts .fv-notif:nth-child(2) { opacity: 0.7; transform: scale(0.97); }
.fv-alerts .fv-notif:nth-child(3) { opacity: 0.4; transform: scale(0.94); }

.fv-alerts .fv-bell {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fv-alerts .fv-bell svg {
  width: 13px;
  height: 13px;
  color: white;
}

.fv-alerts .fv-notif-text {
  flex: 1;
  min-width: 0;
}

.fv-alerts .fv-notif-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.fv-alerts .fv-notif-body {
  font-size: 10px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fv-alerts .fv-notif-time {
  font-size: 9px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 3: History — mini chart */
.fv-history {
  width: 80%;
  max-width: 260px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 16px;
}

.fv-history .fv-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.fv-history .fv-stat {
  flex: 1;
  text-align: center;
}

.fv-history .fv-stat-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 2px;
}

.fv-history .fv-stat-val {
  font-size: 15px;
  font-weight: 700;
}

.fv-history .fv-stat-val.green { color: var(--color-price-green); }
.fv-history .fv-stat-val.dark { color: var(--color-text-primary); }
.fv-history .fv-stat-val.red { color: var(--color-price-red); }

/* 4: Insights — stat pills */
.fv-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 80%;
  max-width: 260px;
}

.fv-insights .fv-pill {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.fv-insights .fv-pill .fv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fv-insights .fv-pill .fv-dot.green { background: var(--color-price-green); }
.fv-insights .fv-pill .fv-dot.teal { background: var(--color-primary); }
.fv-insights .fv-pill .fv-dot.red { background: var(--color-price-red); }
.fv-insights .fv-pill .fv-dot.orange { background: var(--color-orange); }

.fv-insights .fv-pill small {
  font-weight: 400;
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-left: 2px;
}

/* 5: Wishlist — imported items list */
.fv-wishlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 80%;
  max-width: 260px;
}

.fv-wishlist .fv-wl-header {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
}

.fv-wishlist .fv-wl-header svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.fv-wishlist .fv-wl-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fv-wishlist .fv-wl-item:nth-child(3) { opacity: 0.7; }
.fv-wishlist .fv-wl-item:nth-child(4) { opacity: 0.4; }

.fv-wishlist .fv-wl-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.fv-wishlist .fv-wl-item:nth-child(2) .fv-wl-dot { background: var(--color-primary-light); }
.fv-wishlist .fv-wl-item:nth-child(3) .fv-wl-dot { background: var(--color-price-green-light); }
.fv-wishlist .fv-wl-item:nth-child(4) .fv-wl-dot { background: #FEF3C7; }

.fv-wishlist .fv-wl-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fv-wishlist .fv-wl-line {
  height: 5px;
  background: var(--color-input-bg);
  border-radius: 3px;
}

.fv-wishlist .fv-wl-line:first-child { width: 85%; }
.fv-wishlist .fv-wl-line:last-child { width: 55%; }

.fv-wishlist .fv-wl-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fv-wishlist .fv-wl-check svg {
  width: 10px;
  height: 10px;
  color: white;
}

/* ─── Step Card ─── */
.step {
  text-align: center;
  position: relative;
  flex: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: white;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  max-width: 280px;
  margin: 0 auto;
}

/* ─── Pricing Card ─── */
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  flex: 1;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 2px solid var(--color-primary);
  position: relative;
  box-shadow: var(--shadow-lg);
}

.pricing-card .pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-card .plan-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.pricing-card .plan-price {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

.pricing-card .plan-price .period {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-tertiary);
}

.pricing-card .plan-sub {
  font-size: 14px;
  color: var(--color-text-tertiary);
  margin-top: 4px;
  margin-bottom: 28px;
}

.pricing-card .plan-sub .original-price {
  text-decoration: line-through;
  color: var(--color-text-tertiary);
}

.pricing-card .feature-list {
  flex: 1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-card .feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.pricing-card .feature-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.pricing-card .feature-item svg.check {
  color: var(--color-primary);
}

.pricing-card .feature-item svg.x-mark {
  color: var(--color-light-gray);
}

.pricing-card .feature-item.disabled {
  color: var(--color-text-tertiary);
}

.pricing-card .plan-cta {
  width: 100%;
}

.pricing-card .plan-note {
  font-size: 13px;
  color: var(--color-text-tertiary);
  text-align: center;
  margin-top: 12px;
}

/* ─── Pricing Toggle ─── */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.pricing-toggle span {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  transition: color 0.2s;
}

.pricing-toggle span.active {
  color: var(--color-text-primary);
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background-color: var(--color-primary);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch.monthly::after {
  transform: translateX(22px);
}

/* ─── App Store Badge ─── */
.app-store-badge {
  display: inline-block;
  transition: opacity 0.2s;
}

.app-store-badge:hover {
  opacity: 0.85;
}

.app-store-badge img,
.app-store-badge svg {
  height: 48px;
  width: auto;
}
