/* ==========================================================================
   Pace Product Landing Page Styles
   Figma Exact Spec:
   - For desktop (Frame 91:5) 1440px
   - For mobile (Frame 275:365) 390px
   ========================================================================== */

:root {
  --pace-bg: #F8FCF9;            /* rgba(248, 252, 249, 1) */
  --pace-nav-bg: #FBFDFB;        /* rgba(251, 253, 251, 1) */
  --pace-text-main: #545A5E;     /* rgba(84, 90, 94, 1) / HSL 205, 6%, 35% */
  --pace-text-dark: #35393B;     /* rgba(53, 57, 59, 1) / HSL 200, 5.4%, 22% */
  --pace-text-muted: #484E51;    /* rgba(72, 78, 81, 1) / HSL 200, 5.4%, 30% */
  --pace-text-light: #60676C;    /* rgba(96, 103, 108, 1) */
  --pace-btn-bg: #52896B;        /* rgba(82, 137, 107, 1) */
  --pace-btn-wrapper: #DCEFE2;   /* rgba(220, 239, 226, 1) */
  --pace-card-bg: #F1F9F3;       /* rgba(241, 249, 243, 1) */
  --pace-card-border: #C9CDCF;   /* rgba(201, 205, 207, 1) */
  --pace-green-accent: #27AE60;  /* Progress green */
  --pace-font-headline: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --pace-font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --pace-font-brand: 'Pixelify Sans', cursive, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.pace-landing-body {
  background-color: var(--pace-bg);
  color: var(--pace-text-main);
  font-family: var(--pace-font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================================================================
   Navigation Bar (Desktop: 68px | Mobile: 60px)
   ========================================================================== */

.pace-nav-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--pace-nav-bg);
  z-index: 1000;
  border-bottom: 1px solid rgba(84, 90, 94, 0.08);
}

.pace-nav-container {
  max-width: 1440px;
  height: 68px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pace-brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.pace-brand-name {
  font-family: var(--pace-font-brand);
  font-weight: 700;
  font-size: 28px;
  color: #60676C;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-text-desktop {
  display: inline;
}

.brand-text-mobile {
  display: none;
}

.pace-nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.pace-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pace-nav-link {
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--pace-text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pace-nav-link:hover {
  color: var(--pace-text-dark);
}

.pace-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background-color: var(--pace-btn-wrapper);
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pace-nav-cta:hover {
  background-color: #CEE7D6;
}

.pace-nav-cta-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  height: 36px;
  background-color: #FFFFFF;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #330F00;
  line-height: 1;
  white-space: nowrap;
}

.pace-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Mobile Menu Dialogue (Figma Node 284:1142) */
.pace-menu-dialogue {
  display: none;
}

/* ==========================================================================
   Hero Section (Frame 1814107157)
   ========================================================================== */

.pace-hero-section {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 140px 80px 100px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
}

/* Floating Decorative Elements */
.hero-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-deco-menu {
  top: 70px;
  left: 50px;
  width: 170px;
  filter: drop-shadow(0 16px 36px rgba(0,0,0,0.08));
}

.hero-deco-clock {
  top: 75px;
  right: 110px;
  width: 125px;
}

.hero-deco-note {
  top: 70px;
  left: 50px;
  width: 110px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.05));
}

.hero-deco-matrix {
  top: 320px;
  right: 40px;
  width: 310px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.09));
}

.hero-deco-note-mobile {
  display: none;
}

/* Hero Center Content */
.pace-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
}

.pace-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.pace-lockup-icon {
  width: 32px;
  height: 32px;
}

.pace-lockup-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.02em;
  color: var(--pace-text-main);
  line-height: 1;
}

.pace-hero-headline {
  font-family: var(--pace-font-headline);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--pace-text-main);
  margin-bottom: 40px;
}

/* Primary Download Button */
.pace-main-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background-color: var(--pace-btn-wrapper);
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 78px 6px rgba(175, 207, 190, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  margin-bottom: 48px;
}

.pace-main-download-btn:hover {
  transform: translateY(-2px);
  background-color: #CEE7D6;
  box-shadow: 0 4px 84px 8px rgba(175, 207, 190, 0.9);
}

.pace-main-download-btn:active {
  transform: translateY(0);
}

.pace-main-download-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background-color: var(--pace-btn-bg);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #FFFFFF;
  line-height: 1;
  white-space: nowrap;
}

/* Download on Android Info Card (Frame 1814107171) */
.pace-android-card {
  width: 363px;
  background-color: var(--pace-card-bg);
  border: 1.5px solid var(--pace-card-border);
  border-radius: 24px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.android-device-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.android-card-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.android-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.android-card-title {
  font-family: 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--pace-text-dark);
}

.android-card-subtitle {
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--pace-text-muted);
}

.android-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--pace-text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.android-card-action:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.android-card-action.copied {
  color: var(--pace-btn-bg);
  font-weight: 500;
}

.android-card-action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Use Cases Section (Frame 275:394)
   ========================================================================== */

.pace-usecases-section {
  width: 100%;
  margin: 0 auto;
  padding: 80px 32px 140px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 140px;
}

.usecase-block {
  width: 100%;
  max-width: 1040px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 8vw, 160px);
}

.usecase-block.reverse {
  flex-direction: row-reverse;
}

.usecase-text {
  flex: 1;
  max-width: 576px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.usecase-title {
  font-family: 'Google Sans Flex', 'Segoe UI', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.015em;
  color: var(--pace-text-dark);
}

.usecase-desc {
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--pace-text-main);
}

.usecase-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.usecase-list li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  color: var(--pace-text-main);
}

.usecase-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--pace-text-main);
  font-weight: bold;
}

/* Media Mockup Container */
.usecase-media {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup-frame {
  width: 260px;
  height: 560px;
  border-radius: 40px;
  background-color: #000000;
  padding: 8px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

.phone-mockup-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}

/* Dual Screens Container for Pomodoro Intervals */
.dual-screens-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 200px;
  margin-top: 40px;
}

.interval-screen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.interval-mockup-frame {
  width: 240px;
  height: 520px;
  border-radius: 36px;
  background-color: #000000;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.interval-screen-label {
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--pace-text-main);
  text-align: center;
}

/* ==========================================================================
   Footer (Pace Landing Theme)
   ========================================================================== */

.pace-footer-wrapper {
  width: 100%;
  background-color: var(--pace-bg);
  padding: 60px 0 40px 0;
}

.pace-footer-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(84, 90, 94, 0.12);
}

.pace-footer-brand-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pace-footer-brand-text {
  font-family: var(--pace-font-brand);
  font-size: 20px;
  font-weight: 700;
  color: #60676C;
  line-height: 1;
}

.pace-footer-copyright {
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--pace-text-muted);
}

.pace-back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--pace-text-main);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  background: #FFFFFF;
  border: 1px solid var(--pace-card-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.pace-back-to-top-btn:hover {
  border-color: var(--pace-btn-bg);
  color: var(--pace-btn-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(82, 137, 107, 0.15);
}

@media (max-width: 768px) {
  .pace-footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}


@media (max-width: 1100px) {
  .pace-usecases-section {
    padding: 60px 40px 100px 40px;
    gap: 100px;
  }

  .usecase-block {
    gap: 40px;
  }

  .hero-deco-menu {
    left: 20px;
    top: 70px;
    width: 90px;
  }

  .hero-deco-clock {
    right: 40px;
    top: 70px;
    width: 70px;
  }

  .hero-deco-matrix {
    right: 20px;
    width: 170px;
  }
}

@media (max-width: 860px) {
  /* Navigation Bar (Node 275:386 - Padding: 8px 20px, Height: 60px) */
  .pace-nav-container {
    padding: 8px 20px;
    height: 60px;
  }

  .pace-brand-name {
    font-size: 28px;
    letter-spacing: 0.01em;
    color: #60676C;
  }

  .brand-text-desktop {
    display: none;
  }

  .brand-text-mobile {
    display: inline;
    color: #60676C;
  }

  .pace-nav-links,
  .pace-nav-cta {
    display: none;
  }

  .pace-mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 101;
  }

  /* Mobile Menu Dialogue (Figma Node 284:1142 - Glass Effect) */
  .pace-menu-dialogue {
    display: none;
    position: absolute;
    top: 72px;
    right: 20px;
    width: 148px;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.45) 0%,
      rgba(251, 253, 252, 0.20) 45%,
      rgba(251, 253, 252, 0.15) 100%
    );
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1.8px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: 12px 0;
    box-shadow: 
      0 1.8px 28.8px rgba(0, 0, 0, 0.12),
      inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -1px 2px 0 rgba(255, 255, 255, 0.3);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
    transform-origin: top right;
  }

  .pace-menu-dialogue.is-open {
    display: flex;
    animation: paceDialogueEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes paceDialogueEnter {
    from {
      opacity: 0;
      transform: scale(0.92) translateY(-6px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  .pace-dialogue-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    text-decoration: none;
    color: #2B2E31;
    transition: background-color 0.15s ease;
  }

  .pace-dialogue-item:hover,
  .pace-dialogue-item:active {
    background-color: rgba(255, 255, 255, 0.4);
  }

  .pace-dialogue-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .pace-dialogue-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #2B2E31;
    line-height: 1.25;
    white-space: nowrap;
  }

  /* Hero Section (Frame 275:367 - Padding: 120px 0 120px 0, Gap: 56px) */
  .pace-hero-section {
    padding: 120px 24px 100px 24px;
    gap: 56px;
    position: relative;
    overflow: visible;
  }

  .pace-hero-content {
    gap: 0;
  }

  /* Decorative elements positioned exactly as in Figma mobile hero */
  .hero-deco-menu {
    display: block;
    top: auto;
    bottom: 16px;
    left: 20px;
    width: 80px;
  }

  .hero-deco-clock {
    display: block;
    top: 52px;
    right: 28px;
    left: auto;
    width: 42.5px;
  }

  .hero-deco-matrix {
    display: none;
  }

  /* Note card on mobile (Frame 1814107132 - Node 279:831, Scaled up & pushed 20px more down) */
  .hero-deco-note-mobile {
    display: block;
    position: absolute;
    top: auto;
    bottom: -84px;
    right: 0px;
    left: auto;
    width: 175px;
    z-index: 1;
    filter: drop-shadow(0 14px 32px rgba(0,0,0,0.09));
  }

  /* Brand Lockup (Node 275:368 - Frame 1814107158 inner gap: 24px) */
  .pace-brand-lockup {
    margin-bottom: 24px;
    gap: 8.4px;
  }

  .pace-lockup-icon {
    width: 17.7px;
    height: 29.7px;
  }

  .pace-lockup-text {
    font-size: 25.9px;
  }

  /* Headline (Node 275:381 - Segoe UI 20px Regular, margin-bottom: 40px before button) */
  .pace-hero-headline {
    font-family: 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--pace-text-main);
    margin-bottom: 40px;
  }

  /* Download APK Button on Mobile (Node 275:382 / 275:385 - Width: 155px, Height: 45px) */
  .pace-main-download-btn {
    width: 155px;
    height: 45px;
    padding: 4px;
    margin-bottom: 0;
  }

  .pace-main-download-inner {
    width: 100%;
    height: 100%;
    padding: 0;
    font-size: 14px;
  }

  .pace-android-card {
    display: none;
  }

  /* Use Cases Section (Frame 1814107164 - Sections Gap: 0 with individual paddings) */
  .pace-usecases-section {
    padding: 0;
    gap: 0;
    width: 100%;
  }

  /* Common Use Case Block Layout on Mobile (Node 279:936, 279:942, 279:956) */
  .usecase-block,
  .usecase-block.reverse {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  /* Block 1: Creating notes (Node 279:936 - Padding: 120px 24px 60px 24px, Gap: 56px) */
  .usecase-block:nth-of-type(1) {
    padding: 120px 24px 60px 24px;
    gap: 56px;
  }

  /* Block 2: Pomodoro timer (Node 279:942 - Padding: 60px 24px 60px 24px, Gap: 64px) */
  .usecase-block:nth-of-type(2) {
    padding: 60px 24px 60px 24px;
    gap: 64px;
  }

  /* Block 3: Eisenhower matrix (Node 279:956 - Padding: 60px 24px 60px 24px, Gap: 48px) */
  .usecase-block:nth-of-type(3) {
    padding: 60px 24px 60px 24px;
    gap: 48px;
  }

  /* Text Wrapper (Node 279:940 / Frame 1814107163 - Width: 342px, Gap: 24px) */
  .usecase-text {
    width: 100%;
    max-width: 342px;
    gap: 24px;
  }

  /* Use Case Title (Node 279:937 - Google Sans Flex Bold 18px) */
  .usecase-title {
    font-family: 'Google Sans Flex', 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.015em;
    color: #35393B;
  }

  /* Use Case Description & List (Node 279:938 / 279:945 - Segoe UI 14px-16px, line-height 22px-24px, #35393B) */
  .usecase-desc {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.005em;
    color: #35393B;
  }

  .usecase-list {
    margin: 8px 0;
    gap: 6px;
  }

  .usecase-list li {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.005em;
    color: #35393B;
  }

  /* Screen Phone Mockup on Mobile (Width: 148px, Height: 330px matching Figma screen rect) */
  .usecase-media {
    width: 100%;
    justify-content: center;
  }

  .phone-mockup-frame {
    width: 156px;
    height: 336px;
    border-radius: 24px;
    padding: 4px;
  }

  .phone-mockup-video {
    border-radius: 20px;
  }

  /* Dual Screens on Mobile (Frame 279:967 - Row layout, Gap: 56px, Padding: 0 24px) */
  .dual-screens-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 16px;
    padding-top: 20px;
    padding-bottom: 60px;
    width: 100%;
  }

  .interval-screen-card {
    gap: 12px;
  }

  .interval-mockup-frame {
    width: 120px;
    height: 256px;
    border-radius: 20px;
    padding: 4px;
  }

  .interval-mockup-frame .phone-mockup-video {
    border-radius: 16px;
  }

  /* Interval labels (Node 279:968 / 279:972 - Inter Regular 11px) */
  .interval-screen-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--pace-text-main);
  }

  /* Footer on Mobile */
  .pace-footer-brand-text {
    font-size: 24px;
    color: #60676C;
  }
}

