/* ═══════════════════════════════════════════
   PackPilot Landing Page — Brand-Matched CSS
   Colors: cream #fff9f0, coral #a43c1f, sage #4a654f
   ═══════════════════════════════════════════ */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Brand Palette from tokens.ts */
  --bg-color: #fff9f0;
  --surface-color: #ffffff;
  --surface-muted-color: #f9f3ea;
  --surface-alt-color: #f3ede4;
  --outline-color: #dec0b8;
  --outline-muted-color: #e7e2d9;

  --coral-color: #a43c1f;
  --coral-dark-color: #721900;
  --coral-bright-color: #ff7f5c;
  --apricot-color: #ffdbd1;
  --peach-color: #ffb5a1;

  --sage-color: #4a654f;
  --sage-dark-color: #334d38;
  --sage-soft-color: #c9e7cc;
  --terracotta-color: #745a33;
  --warning-container-color: #ffddb0;

  --text-color: #1d1b16;
  --muted-text-color: #57423c;
  --secondary-text-color: #8b716b;

  --dark-bg-color: #241d22;
  --dark-surface-color: #31272d;
  --dark-surface-muted-color: #3d3137;
  --dark-text-color: #f6f0e7;
  --dark-muted-text-color: #d9c9c2;
  --dark-outline-color: #59454f;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Animations */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 4px 6px -1px rgba(164, 60, 31, 0.05), 0 2px 4px -1px rgba(164, 60, 31, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(164, 60, 31, 0.08), 0 4px 6px -2px rgba(164, 60, 31, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(164, 60, 31, 0.1), 0 10px 10px -5px rgba(164, 60, 31, 0.04);
  --shadow-glow: 0 0 30px rgba(164, 60, 31, 0.15);
}

/* --- Reset & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  line-height: 1.6;
}

body,
main,
section,
footer,
.header {
  max-width: 100%;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}

/* --- Custom Background Blobs --- */
.blob {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(120px);
  z-index: -10;
  opacity: 0.4;
  pointer-events: none;
}

.blob-1 {
  background-color: var(--peach-color);
  width: 400px;
  height: 400px;
  top: 5%;
  right: -50px;
  animation: float-blob-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  background-color: var(--sage-soft-color);
  width: 350px;
  height: 350px;
  top: 35%;
  left: -80px;
  animation: float-blob-2 30s infinite alternate ease-in-out;
}

.blob-3 {
  background-color: var(--apricot-color);
  width: 450px;
  height: 450px;
  top: 70%;
  right: 10%;
  animation: float-blob-1 28s infinite alternate-reverse ease-in-out;
}

@keyframes float-blob-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, 80px) scale(1.1);
  }

  100% {
    transform: translate(-30px, 40px) scale(0.9);
  }
}

@keyframes float-blob-2 {
  0% {
    transform: translate(0, 0) scale(0.9);
  }

  50% {
    transform: translate(-40px, -70px) scale(1.15);
  }

  100% {
    transform: translate(60px, -30px) scale(1);
  }
}

/* --- Common Components --- */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: var(--apricot-color);
  color: var(--coral-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid var(--outline-color);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.25;
  color: var(--text-color);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--muted-text-color);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--coral-color);
  color: var(--bg-color);
  box-shadow: 0 4px 14px rgba(164, 60, 31, 0.25);
}

.btn-primary:hover {
  background-color: var(--coral-dark-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(164, 60, 31, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--surface-alt-color);
  color: var(--text-color);
  border: 1px solid var(--outline-muted-color);
}

.btn-secondary:hover {
  background-color: var(--surface-color);
  border-color: var(--outline-color);
  transform: translateY(-2px);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: rgba(255, 249, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 70px;
  border-bottom: 1px solid var(--outline-muted-color);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: -14px;
}

.logo-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin-right: -6px;
  /* Pull text very close to Pico icon, bypassing transparency padding */
  transition: var(--transition-smooth);
}

.logo:hover .logo-img {
  transform: rotate(-10deg) scale(1.1);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-color);
  letter-spacing: -0.02em;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--muted-text-color);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--coral-color);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--coral-color);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 52px;
  line-height: 1.15;
  color: var(--text-color);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--coral-color);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted-text-color);
  margin-bottom: 36px;
}

.hero-subtitle strong {
  color: var(--coral-color);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--outline-muted-color);
  padding-top: 28px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--coral-color);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 13px;
  color: var(--secondary-text-color);
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-wrapper-hero {
  position: relative;
  z-index: 5;
}

/* Styled device frame */
.phone-frame {
  width: 290px;
  height: 580px;
  border: 12px solid var(--dark-bg-color);
  border-radius: 40px;
  background-color: var(--dark-bg-color);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  transition: var(--transition-slow);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background-color: var(--dark-bg-color);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating overlay cards */
.float-card {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--outline-muted-color);
  z-index: 10;
}

.float-card-1 {
  top: 10%;
  left: -170px;
  animation: float-slow 4s infinite alternate ease-in-out;
}

.float-card-2 {
  bottom: 12%;
  right: -230px;
  animation: float-slow 4.5s infinite alternate-reverse ease-in-out;
}

.float-card h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-color);
}

.float-card p {
  font-size: 11px;
  color: var(--muted-text-color);
}

.float-card .icon {
  font-size: 20px;
}

@keyframes float-slow {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-12px);
  }
}

/* --- Features Section --- */
.features {
  padding: 100px 0;
  background-color: var(--surface-muted-color);
  border-top: 1px solid var(--outline-muted-color);
  border-bottom: 1px solid var(--outline-muted-color);
}

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

.feature-card {
  background-color: var(--surface-color);
  border: 1px solid var(--outline-muted-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--outline-color);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-color);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted-text-color);
  line-height: 1.6;
}

/* --- Screenshots Section --- */
.screenshots {
  padding: 80px 0;
  background-color: var(--bg-color);
  overflow: hidden;
}

.preview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.preview-info {
  max-width: 480px;
}

.preview-info h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.25;
  color: var(--text-color);
  margin-bottom: 14px;
}

.preview-desc {
  font-size: 16px;
  color: var(--muted-text-color);
  line-height: 1.6;
  margin-bottom: 28px;
}

.preview-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-wrapper {
  position: relative;
}

.mockup-frame {
  width: 250px;
  height: 500px;
  border: 10px solid var(--dark-bg-color);
  border-radius: 36px;
  background-color: var(--dark-bg-color);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.mockup-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 20px;
  background-color: var(--dark-bg-color);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.carousel-slider {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  width: 20%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--muted-text-color);
  line-height: 1.5;
  min-height: 54px;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 3px solid var(--coral-color);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--outline-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background-color: var(--coral-color);
  width: 24px;
}

/* --- Meet Pico Chat Section --- */
.pico-section {
  padding: 100px 0;
  background-color: var(--surface-muted-color);
  border-top: 1px solid var(--outline-muted-color);
  border-bottom: 1px solid var(--outline-muted-color);
}

.pico-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 60px;
}

.pico-info {
  max-width: 500px;
}

.pico-info h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.25;
  color: var(--text-color);
  margin-bottom: 16px;
}

.pico-info p {
  font-size: 15px;
  color: var(--muted-text-color);
  margin-bottom: 16px;
}

.pico-subdesc {
  color: var(--secondary-text-color) !important;
}

.chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.prompt-chip {
  background-color: var(--surface-color);
  border: 1px solid var(--outline-muted-color);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.prompt-chip:hover {
  border-color: var(--coral-color);
  background-color: var(--apricot-color);
  color: var(--coral-color);
  transform: translateY(-2px);
}

.prompt-chip.active {
  background-color: var(--coral-color);
  border-color: var(--coral-color);
  color: var(--bg-color);
  box-shadow: 0 4px 10px rgba(164, 60, 31, 0.2);
}

/* Chat Widget Mockup */
.chat-widget {
  background-color: var(--surface-color);
  border: 1px solid var(--outline-muted-color);
  border-radius: var(--radius-xl);
  height: 480px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-header {
  padding: 18px 24px;
  background-color: var(--surface-alt-color);
  border-bottom: 1px solid var(--outline-muted-color);
  display: flex;
  align-items: center;
  gap: 14px;
}

.pico-avatar-wrapper {
  position: relative;
}

.pico-chat-avatar {
  width: 42px;
  height: 42px;
  background-color: var(--apricot-color);
  border-radius: var(--radius-full);
  border: 1px solid var(--outline-color);
  object-fit: contain;
}

.pico-avatar-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background-color: var(--sage-color);
  border: 2px solid var(--surface-alt-color);
  border-radius: var(--radius-full);
}

.chat-pico-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-color);
}

.chat-pico-status {
  font-size: 11px;
  color: var(--secondary-text-color);
}

.chat-body {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  position: relative;
  line-height: 1.5;
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble.received {
  background-color: var(--surface-muted-color);
  color: var(--text-color);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--outline-muted-color);
}

.chat-bubble.sent {
  background-color: var(--apricot-color);
  color: var(--coral-dark-color);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  border: 1px solid var(--outline-color);
}

.chat-bubble .time {
  display: block;
  font-size: 9px;
  color: var(--secondary-text-color);
  margin-top: 6px;
  text-align: right;
}

.chat-body .typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--surface-muted-color);
  border: 1px solid var(--outline-muted-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--secondary-text-color);
  border-radius: var(--radius-full);
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.chat-input-area {
  padding: 16px 24px;
  background-color: var(--surface-color);
  border-top: 1px solid var(--outline-muted-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-input-field {
  flex-grow: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-color);
  padding-right: 16px;
}

.chat-input-field::placeholder {
  color: var(--secondary-text-color);
  font-style: italic;
}

.chat-send-btn {
  background-color: var(--surface-alt-color);
  color: var(--outline-color);
  border: 1px solid var(--outline-muted-color);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  transition: var(--transition-smooth);
}

.chat-send-btn.active {
  background-color: var(--coral-color);
  color: var(--surface-color);
  border-color: var(--coral-color);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(164, 60, 31, 0.2);
}

/* --- Steps Section --- */
.how-it-works {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background-color: var(--surface-color);
  border: 1px solid var(--outline-muted-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--coral-color);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 40px;
  color: var(--apricot-color);
  line-height: 1;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 13px;
  color: var(--muted-text-color);
  line-height: 1.5;
}

/* --- Final CTA Section --- */
.download-section {
  padding: 48px 0 64px;
  background-color: var(--bg-color);
}

.download-container {
  max-width: 900px;
}

.download-card {
  background-color: var(--dark-bg-color);
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(164, 60, 31, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 100%, rgba(74, 101, 79, 0.22) 0%, transparent 50%),
    linear-gradient(160deg, #2a2228 0%, var(--dark-bg-color) 45%, #1e181c 100%);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  text-align: center;
  color: var(--dark-text-color);
  border: 1px solid var(--dark-outline-color);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 40px -12px rgba(36, 29, 34, 0.4),
    0 0 0 1px rgba(255, 181, 161, 0.06) inset;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--coral-bright-color), transparent);
  border-radius: 0 0 4px 4px;
}

.download-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 127, 92, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.download-card-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peach-color);
  background-color: rgba(255, 181, 161, 0.1);
  border: 1px solid rgba(255, 181, 161, 0.25);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.download-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--dark-text-color);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}

.download-card h2 .cta-highlight {
  color: var(--coral-bright-color);
  position: relative;
}

.download-card p {
  font-size: 15px;
  color: var(--dark-muted-text-color);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.download-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.store-badge {
  background-color: var(--dark-surface-color);
  border: 1px solid var(--dark-outline-color);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  transition: var(--transition-smooth);
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.store-icon {
  flex-shrink: 0;
  color: var(--dark-text-color);
  transition: var(--transition-smooth);
}

.store-badge:hover .store-icon {
  color: var(--peach-color);
}

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-badge:hover {
  background-color: var(--dark-surface-muted-color);
  border-color: var(--peach-color);
  transform: translateY(-3px);
}

.badge-sub {
  font-size: 10px;
  color: var(--dark-muted-text-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--dark-text-color);
  line-height: 1.2;
}

.cta-fineprint {
  font-size: 12px;
  color: var(--dark-muted-text-color);
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

/* --- Footer --- */
.footer {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
  border-top: 1px solid var(--dark-outline-color);
  padding-top: 80px;
  padding-bottom: 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--dark-muted-text-color);
  margin-top: 20px;
  line-height: 1.6;
}

.footer-logo .logo-text {
  color: var(--dark-text-color);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--dark-text-color);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--dark-muted-text-color);
}

.footer-links a:hover {
  color: var(--peach-color);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--dark-outline-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--dark-muted-text-color);
}

/* --- Blogs Page Listing & Reader --- */
.blog-page-body {
  background-color: var(--bg-color);
}

.blog-main-content {
  padding-top: 140px;
  padding-bottom: 100px;
  min-height: 70vh;
}

.blog-page-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.blog-page-header h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--text-color);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.blog-page-header p {
  font-size: 16px;
  color: var(--muted-text-color);
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--muted-text-color);
  background-color: var(--surface-color);
  border: 1px solid var(--outline-muted-color);
  border-radius: var(--radius-lg);
}

.blog-empty code {
  font-size: 0.9em;
  color: var(--coral-color);
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background-color: var(--surface-color);
  border: 1px solid var(--outline-muted-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--outline-color);
  box-shadow: var(--shadow-md);
}

.blog-card:hover .blog-link {
  color: var(--coral-dark-color);
  transform: translateX(4px);
}

.blog-image-placeholder-styled {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--outline-muted-color);
  background-color: var(--surface-alt-color);
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-image-placeholder-styled {
  transform: scale(1.03);
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 11px;
  color: var(--secondary-text-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  font-weight: 500;
}

.blog-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-color);
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 700;
}

.blog-content p {
  font-size: 13px;
  color: var(--muted-text-color);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--coral-color);
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
}

.blog-link:hover {
  color: var(--coral-dark-color);
  transform: translateX(4px);
}

/* Reader Section */
.blog-reader-view {
  max-width: 920px;
  margin: 0 auto;
}

.back-to-blogs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral-color);
  margin-bottom: 32px;
  transition: var(--transition-fast);
}

.back-to-blogs:hover {
  color: var(--coral-dark-color);
  transform: translateX(-4px);
}

.blog-article-content {
  background-color: var(--surface-color);
  border: 1px solid var(--outline-muted-color);
  border-radius: var(--radius-xl);
  padding: 48px 48px 28px;
  box-shadow: var(--shadow-sm);
  color: var(--text-color);
  line-height: 1.8;
}

.blog-reader-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--outline-muted-color);
  padding-bottom: 16px;
}

.blog-date-meta {
  font-size: 13px;
  color: var(--secondary-text-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Markdown typography inside reader */
.blog-article-content h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.25;
  color: var(--text-color);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.blog-article-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text-color);
  margin-top: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}

.blog-article-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-color);
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}

.blog-article-content p {
  font-size: 15px;
  color: var(--muted-text-color);
  margin-bottom: 20px;
}

.blog-article-content ul {
  list-style-type: disc;
  margin-bottom: 24px;
  padding-left: 24px;
}

.blog-article-content ol {
  list-style-type: decimal;
  margin-bottom: 24px;
  padding-left: 24px;
}

.blog-article-content li {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--muted-text-color);
}

.blog-article-content img {
  border-radius: var(--radius-md);
  margin: 32px 0;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.blog-article-content blockquote {
  border-left: 4px solid var(--coral-color);
  background-color: var(--surface-muted-color);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-style: italic;
}

.blog-article-content blockquote p {
  margin-bottom: 0;
}

.error-container {
  text-align: center;
  padding: 40px 20px;
}

.error-container h2 {
  font-family: var(--font-heading);
  margin-bottom: 16px;
  color: var(--text-color);
}

.error-container p {
  color: var(--muted-text-color);
  margin-bottom: 24px;
}

.footer-support {
  margin-top: 8px;
  font-size: 13px;
  color: var(--dark-muted-text-color);
}

.footer-support a {
  color: var(--peach-color);
}

.footer-support,
.footer-support a {
  overflow-wrap: anywhere;
}

.footer-support a:hover {
  text-decoration: underline;
}

/* --- Blog Article Reader Components --- */
.blog-hero-img {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  margin: -48px -48px 0 -48px;
  max-height: 420px;
}

.blog-hero-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.blog-article-meta {
  padding-top: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--outline-muted-color);
  margin-bottom: 20px;
}

.blog-article-title {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.22;
  color: var(--text-color);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 14px 0 14px;
}

.blog-article-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--secondary-text-color);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.byline-sep {
  opacity: 0.4;
}

.blog-article-description {
  font-size: 16px;
  color: var(--muted-text-color);
  line-height: 1.65;
  margin-bottom: 0;
  font-style: italic;
}

.blog-article-body {
  line-height: 1.8;
}

.blog-article-body > :first-child {
  margin-top: 0;
}

.blog-article-body > p:empty {
  display: none;
}

.blog-article-body h1,
.blog-article-body h2,
.blog-article-body h3 {
  font-family: var(--font-heading);
  color: var(--text-color);
  font-weight: 700;
}

.blog-article-body h1 {
  font-size: 30px;
  margin: 36px 0 16px;
}

.blog-article-body h2 {
  font-size: 24px;
  margin: 32px 0 14px;
}

.blog-article-body h3 {
  font-size: 19px;
  margin: 26px 0 12px;
}

.blog-article-body p {
  font-size: 15px;
  color: var(--muted-text-color);
  margin-bottom: 20px;
}

.blog-article-body ul,
.blog-article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.blog-article-body li {
  font-size: 15px;
  color: var(--muted-text-color);
  margin-bottom: 8px;
  line-height: 1.6;
}

.blog-article-body strong {
  color: var(--text-color);
  font-weight: 600;
}

.blog-article-body a {
  color: var(--coral-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article-body a:hover {
  color: var(--coral-dark-color);
}

.blog-article-body img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.blog-article-body blockquote {
  border-left: 4px solid var(--coral-color);
  background-color: var(--surface-muted-color);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
}

.blog-article-body blockquote p {
  margin-bottom: 0;
}
.blog-article-body .table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 28px;
  border: 1px solid var(--outline-muted-color);
  border-radius: 8px;
}

.blog-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}

.blog-article-body th {
  background-color: var(--surface-alt-color);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(164, 60, 31, 0.25);
  color: var(--text-color);
}

.blog-article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(164, 60, 31, 0.1);
  color: var(--muted-text-color);
}

.blog-article-body tr:last-child td {
  border-bottom: none;
}

/* --- Categories & Tags --- */
.blog-categories,
.blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cat-chip {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: var(--apricot-color);
  color: var(--coral-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--outline-color);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--outline-muted-color);
}

.tag-chip {
  font-size: 12px;
  font-weight: 500;
  background-color: var(--surface-muted-color);
  color: var(--muted-text-color);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--outline-muted-color);
  transition: var(--transition-fast);
}

.tag-chip:hover {
  background-color: var(--surface-alt-color);
  color: var(--text-color);
}

/* --- Blog Card Footer --- */
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--outline-muted-color);
}

.blog-author {
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary-text-color);
}

/* --- FAQ Accordion --- */
.faq-section {
  margin-top: 32px;
  padding-top: 24px;
  margin-bottom: 0;
}

.faq-section h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--outline-muted-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.15s ease;
}

.faq-question:hover {
  color: var(--coral-color);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--secondary-text-color);
  transition: transform 0.25s ease;
}

.faq-answer {
  padding-bottom: 14px;
}

.faq-list .faq-item:last-child .faq-answer {
  padding-bottom: 0;
}

.faq-answer p {
  font-size: 14px;
  color: var(--muted-text-color);
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- Scroll Entrance Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Adaptations --- */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 42px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .pico-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pico-info {
    max-width: 100%;
  }

  .preview-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .preview-info {
    max-width: 100%;
    text-align: center;
  }

  .preview-info h2 {
    font-size: 30px;
  }

  .carousel-caption {
    text-align: center;
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--coral-color);
    padding-top: 14px;
    min-height: 80px; /* Added to stabilize heights and prevent vertical jumps */
  }

  .carousel-dots {
    justify-content: center;
  }

  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .float-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .blob {
    display: none;
  }

  /* Header mobile toggle */
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: auto;
    max-width: 100dvw;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background-color: var(--bg-color);
    padding: 40px 24px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--outline-muted-color);
    overflow-y: auto;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .nav-list {
    flex-direction: column;
    gap: 24px;
  }

  .nav-link {
    font-size: 18px;
    display: block;
  }

  /* Menu Toggled states */
  .menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header-actions .btn {
    display: none;
    /* Hide top CTA on very small phones or keep custom spacing */
  }

  .phone-frame {
    width: 230px;
    height: 460px;
    border-width: 8px;
    border-radius: 32px;
  }

  .phone-frame::before {
    width: 90px;
    height: 18px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .float-card {
    display: none;
    /* Simplify UI on mobile to avoid overlapping */
  }

  .section-header h2 {
    font-size: 28px;
  }

  .preview-visual {
    order: -1;
  }

  .mockup-frame {
    width: 220px;
    height: 440px;
  }

  .download-card {
    padding: 32px 20px;
  }

  .download-card h2 {
    font-size: 26px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 580px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header {
    height: 72px;
  }

  .header.scrolled {
    height: 66px;
  }

  .logo {
    margin-left: -10px;
  }

  .logo-img {
    width: 54px;
    height: 54px;
  }

  .logo-text {
    font-size: 19px;
  }

  .nav {
    top: 72px;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    padding: 32px 20px;
  }

  .header.scrolled .nav {
    top: 66px;
    height: calc(100vh - 66px);
    height: calc(100dvh - 66px);
  }

  .hero {
    padding-top: 118px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .carousel-caption {
    min-height: 95px; /* Taller area to prevent wrapping layout shifts on narrow screens */
  }

  .carousel-btn {
    display: none !important; /* Hide prev/next buttons on small phones to prevent layout overflow */
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-timeline {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .stat-item {
    width: 100%;
  }

  .phone-frame {
    width: min(230px, calc(100vw - 64px));
    height: auto;
    aspect-ratio: 1 / 2;
  }

  .mockup-frame {
    width: min(220px, calc(100vw - 64px));
    height: auto;
    aspect-ratio: 1 / 2;
  }

  .download-card {
    border-radius: 22px;
    padding: 30px 18px;
  }

  .store-badge {
    min-width: 0;
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .footer {
    padding-top: 64px;
  }

  .footer-links {
    gap: 24px;
  }

  .blog-article-content {
    padding: 28px 20px 20px;
  }

  .blog-hero-img {
    margin: -28px -20px 0 -20px;
  }

  .blog-article-title {
    font-size: 26px;
  }

  .blog-article-body h2 {
    font-size: 20px;
  }

  .blog-article-body h3 {
    font-size: 17px;
  }
}
