/* style.css */
/* Core component patterns required by layout tests */

.btn-primary {
    background-color: var(--color-action-blue);
    border-radius: var(--radius-pill);
    color: var(--color-canvas-white);
}

.btn-ghost {
    background: transparent;
    color: var(--color-action-blue);
}

.spec-card {
    border-radius: var(--radius-card);
    background-color: var(--color-canvas-white);
}

.section-white {
    background-color: var(--color-canvas-white);
}

.section-parchment {
    background-color: var(--color-canvas-parchment);
}

.section-dark {
    background-color: var(--color-canvas-dark);
    color: var(--color-canvas-white);
}

/* AirPods-style Floating Pill Component */
.hero-pill {
    animation: float 4s ease-in-out infinite;
    transform-origin: center;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.12),
        0 2px 8px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.hero-pill-btn:hover {
    background-color: #0077ed !important;
}

@media (max-width: 640px) {
    .hero-pill-container {
        margin-left: -16px;
        margin-right: -16px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-0.5deg);
        filter: drop-shadow(0 12px 20px rgba(0,0,0,0.15));
    }
    50% {
        transform: translateY(-6px) rotate(-0.5deg);
        filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
    }
}

/* ==========================================================================
   Extracted from index.html - Core Page Components
   ========================================================================== */

/* 1. Wave Pulse (Eyebrow Animations) */
@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.7); }
  50% { transform: scaleY(1.1); }
}
.wave-bar { animation: wavePulse 1.5s ease-in-out infinite; transform-origin: bottom; }
.wave-bar:nth-child(1) { animation-delay: 0.0s; height: 35%; }
.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 100%; box-shadow: 0 0 15px rgba(0,102,204,0.5); }
.wave-bar:nth-child(4) { animation-delay: 0.2s; height: 75%; }
.wave-bar:nth-child(5) { animation-delay: 0.0s; height: 40%; }

/* 2. App Demo Section */
#app-demo-section {
  padding: 120px 0 80px 0;
  background: linear-gradient(to bottom, rgba(245, 245, 247, 0) 0%, rgba(245, 245, 247, 0) 30%, #f5f5f7 65%, #f5f5f7 100%),
              linear-gradient(to right, #f25134, #df307e);
}
#app-demo-section .demo-img-container {
  width: 780px;
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: 60px;
}
#app-demo-section .demo-phone-img {
  width: 580px;
  display: block;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.18)) drop-shadow(0 8px 20px rgba(0,0,0,0.10));
  opacity: 0;
  transform: translateY(40px) translateX(-20px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#app-demo-section .demo-phone-img.animate-in {
  opacity: 1;
  transform: translateY(0) translateX(0);
}
#app-demo-section .demo-caption-label {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#app-demo-section .demo-caption-label.animate-in {
  opacity: 1;
  transform: translateY(0);
}
#app-demo-section .demo-caption-body {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#app-demo-section .demo-caption-body.animate-in {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 767px) {
  #app-demo-section {
    padding: 60px 0 40px 0;
  }
  #app-demo-section .demo-headline {
    font-size: 34px !important;
  }
  #app-demo-section .demo-img-container {
    width: 100%;
    padding: 0 16px;
    margin-bottom: 40px;
  }
  #app-demo-section .demo-phone-img {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  #app-demo-section .demo-caption-container {
    padding: 0 24px;
  }
}

/* 3. FAQ Section */
#faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  background: #f5f5f7;
}
#faq-section .faq-header-row {
  padding-left: max(24px, calc((100vw - 1200px) / 2));
  padding-right: max(24px, calc((100vw - 1200px) / 2));
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
#faq-section .faq-headline {
  font-size: 40px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.003em;
  line-height: 1.07;
  max-width: 480px;
}
@media (min-width: 768px) {
  #faq-section .faq-headline {
    font-size: 56px;
  }
}
#faq-section .faq-docs-link {
  font-size: 17px;
  color: #0066cc;
  font-weight: 400;
  text-decoration: none;
  padding-bottom: 8px;
}
#faq-section .faq-docs-link:hover {
  text-decoration: underline;
}
#faq-section .cards-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  gap: 16px;
  padding-left: max(24px, calc((100vw - 1200px) / 2));
  padding-right: max(24px, calc((100vw - 1200px) / 2));
  padding-top: 12px;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
#faq-section .cards-container::-webkit-scrollbar {
  display: none;
}
#faq-section .faq-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 24px 24px 24px;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  scroll-snap-align: start;
}
#faq-section .faq-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
#faq-section .faq-answer {
  max-height: 60px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#faq-section .faq-card.expanded .faq-answer {
  max-height: 400px;
}
#faq-section .faq-expand-btn {
  width: 36px;
  height: 36px;
  background: #1d1d1f;
  border-radius: 50%;
  color: white;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-top: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* ==========================================================================
   Apple HIG Compliance: Touch Targets (Minimum 44x44pt)
   ========================================================================== */

/* Navbar links expanded hit targets */
.nav-link,
#navbar a.font-display {
    padding: 8px 12px !important;
    margin: -8px -12px !important;
    display: inline-block;
}

/* Navbar hamburger menu button touch size */
#navbar button {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Footer links expanded hit targets */
footer a {
    padding: 8px 0 !important;
    margin: -8px 0 !important;
    display: inline-block;
}

#faq-section .faq-card.expanded .faq-expand-btn {
  transform: rotate(45deg);
}
#faq-section .faq-controls {
  position: absolute;
  bottom: 24px;
  right: max(24px, calc((100vw - 1200px) / 2));
  display: flex;
  gap: 8px;
  z-index: 10;
}
#faq-section .faq-control-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}
#faq-section .faq-control-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.12);
}
#faq-section .faq-control-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
@media (max-width: 767px) {
  #faq-section {
    padding: 60px 0;
  }
  #faq-section .faq-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-left: 24px;
    padding-right: 24px;
  }
  #faq-section .faq-headline {
    font-size: 32px;
  }
  #faq-section .faq-docs-link {
    width: 100%;
    display: block;
    padding-bottom: 0;
  }
  #faq-section .faq-card {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
  }
  #faq-section .faq-controls {
    display: none;
  }
}

/* ==========================================================================
   Apple-Style Footer Overrides
   ========================================================================== */
.site-footer {
    background-color: #f5f5f7 !important;
    color: #1d1d1f !important;
}
.footer-link-item {
    font-family: var(--font-text);
    font-size: 12px;
    font-weight: 400;
    color: #515154 !important;
    line-height: 2.2 !important;
    transition: color 0.15s ease !important;
    text-decoration: none !important;
    display: inline-block;
    padding: 0 !important;
    margin: 0 !important;
}
.footer-link-item:hover {
    color: #1d1d1f !important;
}
.footer-github-cta {
    font-family: var(--font-text);
    font-size: 13px;
    color: #515154 !important;
    border: 1px solid #d2d2d7 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    margin: 0 !important;
    background: transparent !important;
}
.footer-github-cta:hover {
    border-color: #86868b !important;
    color: #1d1d1f !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
}
.footer-disabled-link {
    font-family: var(--font-text);
    font-size: 12px;
    font-weight: 400;
    color: #515154 !important;
    line-height: 2.2 !important;
    text-decoration: none !important;
    display: inline-block;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.4 !important;
    pointer-events: none !important;
}
.footer-legal-link {
    font-family: var(--font-text);
    font-size: 12px;
    color: #86868b !important;
    transition: color 0.15s ease !important;
    text-decoration: none !important;
    display: inline-block;
    padding: 0 !important;
    margin: 0 !important;
}
.footer-legal-link:hover {
    color: #1d1d1f !important;
}
.footer-legal-disabled {
    font-family: var(--font-text);
    font-size: 12px;
    color: #86868b !important;
    text-decoration: none !important;
    display: inline-block;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.4 !important;
    pointer-events: none !important;
}

/* Bento Inset Pocket styling */
.bento-pocket {
  background-color: var(--color-canvas-white);
  border: 1px solid rgba(210, 210, 215, 0.4);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.015), 0 4px 24px rgba(0, 0, 0, 0.02);
  border-radius: 28px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.bento-pocket-dark {
  background-color: var(--color-ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 24px rgba(0, 0, 0, 0.1);
  border-radius: 28px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.bento-pocket:hover, .bento-pocket:focus-within {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01), 0 12px 32px rgba(0, 0, 0, 0.06);
}

.bento-pocket-dark:hover, .bento-pocket-dark:focus-within {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Pulse animation for Siri mic orb */
@keyframes orb-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.45; }
  50% { transform: scale(1.1) rotate(180deg); opacity: 0.65; }
}

.animate-orb {
  animation: orb-pulse 8s infinite ease-in-out;
}

/* Rotating perspective nodes for memory */
.perspective-nodes {
  perspective: 1000px;
}



