/* ── PAGE.CSS — inner page styles (product, pricing, legal) ── */
/* Load alongside atd-software.css */

/* ─────────────────────────────────────────
   PAGE HERO
───────────────────────────────────────── */
.page-hero {
  padding: min(8vh, 64px) 6% min(8vh, 48px);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.page-hero .eyebrow {
  animation: fadeUp 0.6s 0.10s ease both;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  animation: fadeUp 0.6s 0.22s ease both;
}

.page-hero .hero-sub {
  animation: fadeUp 0.6s 0.34s ease both;
}

.page-hero .hero-actions {
  animation: fadeUp 0.6s 0.46s ease both;
}

/* ─────────────────────────────────────────
   SHARED SECTION
───────────────────────────────────────── */
.page-section {
  padding: 64px 6%;
  max-width: 1100px;
  margin: 0 auto;
}

.page-section.ruled {
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 56px;
  text-align: center;
}

.page-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.page-section-sub {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   FEATURE GRID
───────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.feature-tile {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--indigo), var(--indigo-mid));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.2);
}

.feature-tile:hover::before {
  opacity: 1;
}

.feature-tile-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.1));
}

.tile-indigo::before {
  background: linear-gradient(90deg, var(--indigo), var(--indigo-mid));
}

.tile-violet::before {
  background: linear-gradient(90deg, var(--violet), var(--violet-light));
}

.tile-indigo .feature-tile-icon {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tile-violet .feature-tile-icon {
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-tile-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feature-tile-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  font-family: 'Lato', sans-serif;
}

/* ─────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  gap: 32px;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-mid), var(--violet));
  opacity: 0.3;
}

.step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-mid));
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  font-family: 'Lato', sans-serif;
}

/* ─────────────────────────────────────────
   CTA BAND
───────────────────────────────────────── */
.cta-band {
  margin: 0 6% 80px;
  border-radius: var(--radius);
  background: var(--grad);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.cta-band-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-band-text p {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: #fff;
  color: var(--indigo);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-white:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   SCREENSHOT CAROUSEL — fixed
───────────────────────────────────────── */
.carousel-section {
  padding: 72px 6%;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.carousel-section .section-header {
  margin-bottom: 48px;
  text-align: center;
}

.carousel-outer {
  position: relative;
  /* Horizontal padding makes room for the arrow buttons on desktop */
  padding: 0 28px;
}

.carousel-frame {
  border-radius: var(--radius);
  border: 1px solid var(--border-mid);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.carousel-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(245, 246, 248, 0.9);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-mid);
  opacity: 0.5;
  flex-shrink: 0;
}

.chrome-bar {
  flex: 1;
  height: 8px;
  border-radius: 100px;
  background: var(--border);
  opacity: 0.6;
  margin: 0 10px;
}

/* Clipping viewport */
.carousel-viewport {
  overflow: hidden;
  width: 100%;
  /* Aspect ratio drives the height — 16:10 suits landscape app screenshots */
  aspect-ratio: 16 / 10;
}

/* Moving strip */
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Each slide fills exactly the viewport width and height */
.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.carousel-caption {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.caption-text {
  font-size: 0.8rem;
  color: var(--text-mid);
  font-style: italic;
  font-family: 'Libre Baskerville', serif;
}

.caption-counter {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* Arrow buttons — sit outside the frame in the outer padding */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--text-mid);
  z-index: 10;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.carousel-btn:hover {
  background: #fff;
  border-color: rgba(79, 70, 229, 0.3);
  color: var(--indigo-mid);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-mid);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s, border-radius 0.2s;
}

.carousel-dot.active {
  background: var(--indigo-mid);
  width: 20px;
  border-radius: 100px;
}

.carousel-dot:hover:not(.active) {
  background: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .carousel-outer {
    padding: 0 20px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn.prev {
    left: 0;
  }

  .carousel-btn.next {
    right: 0;
  }

  .carousel-viewport {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 520px) {
  .carousel-section {
    padding: 48px 4%;
  }

  /* On mobile the buttons move inside the frame overlay — no outer padding needed */
  .carousel-outer {
    padding: 0;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid var(--border-mid);
    /* Offset slightly inward so they overlap the frame edge */
    top: auto;
    bottom: 48px;
    transform: none;
  }

  .carousel-btn:hover {
    transform: scale(1.06);
  }

  .carousel-btn.prev {
    left: 12px;
  }

  .carousel-btn.next {
    right: 12px;
  }

  /* Taller aspect ratio on mobile — portrait-ish screenshots breathe better */
  .carousel-viewport {
    aspect-ratio: 4 / 3;
  }

  .caption-text {
    font-size: 0.75rem;
  }
}

/* ─────────────────────────────────────────
   PRICING
───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.pc-indigo:hover {
  border-color: rgba(79, 70, 229, 0.3);
}

.pricing-card.pc-violet:hover {
  border-color: rgba(109, 40, 217, 0.26);
}

.pricing-card-bar {
  height: 3px;
}

.pc-indigo .pricing-card-bar {
  background: linear-gradient(90deg, var(--indigo), var(--indigo-mid));
}

.pc-violet .pricing-card-bar {
  background: linear-gradient(90deg, var(--violet), var(--violet-light));
}

.pricing-card-head {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-product-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pc-indigo .pricing-product-name {
  color: var(--indigo-mid);
}

.pc-violet .pricing-product-name {
  color: var(--violet);
}

.pricing-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 6px;
}

.price-currency {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.price-note {
  font-size: 0.775rem;
  color: var(--text-dim);
  font-style: italic;
}

.pricing-card-features {
  padding: 24px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.845rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.pricing-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.58rem;
  font-weight: 900;
}

.pc-indigo .pricing-check {
  background: rgba(79, 70, 229, 0.1);
  color: var(--indigo-mid);
  border: 1px solid rgba(79, 70, 229, 0.18);
}

.pc-violet .pricing-check {
  background: rgba(109, 40, 217, 0.09);
  color: var(--violet);
  border: 1px solid rgba(109, 40, 217, 0.18);
}

.pricing-card-footer {
  padding: 8px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
}

.pc-indigo .btn-pricing {
  background: linear-gradient(118deg, var(--indigo), var(--indigo-mid));
}

.pc-violet .btn-pricing {
  background: linear-gradient(118deg, var(--violet), var(--violet-light));
}

.btn-pricing:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.pricing-stripe-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.bundle-banner {
  max-width: 900px;
  margin: 24px auto 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bundle-banner-text {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.bundle-banner-text strong {
  font-weight: 700;
  color: var(--text);
}

.bundle-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--grad-subtle);
  color: var(--indigo-mid);
  border: 1px solid rgba(79, 70, 229, 0.18);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   FAQ
───────────────────────────────────────── */
.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-family: 'Lato', sans-serif;
  font-size: 0.895rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

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

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

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: 0.855rem;
  color: var(--text-mid);
  line-height: 1.7;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 20px 16px;
}

/* ─────────────────────────────────────────
   NAV ACTIVE STATE
───────────────────────────────────────── */
.nav-active {
  color: var(--text) !important;
  font-weight: 500 !important;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 820px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

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

  .steps::before {
    display: none;
  }

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

  .cta-band {
    flex-direction: column;
    text-align: center;
  }

  .bundle-banner {
    flex-direction: column;
  }

  .carousel-btn.prev {
    left: -8px;
  }

  .carousel-btn.next {
    right: -8px;
  }

  .page-section-title {
    font-size: 1.6rem;
  }

  .page-hero {
    padding: 80px 6% 56px;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-tile {
    padding: 24px 20px;
  }

  .page-section {
    padding: 48px 6%;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .page-section-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .page-section-sub {
    font-size: 1rem;
  }

  .page-hero {
    padding: 72px 6% 48px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-hero .hero-sub {
    font-size: 1rem;
    line-height: 1.6;
  }

  .step {
    padding: 0 12px;
  }

  .step-num {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
  }

  .step-title {
    font-size: 1rem;
  }

  .step-desc {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 64px 4% 40px;
  }

  .page-section {
    padding: 40px 4%;
  }

  .feature-tile {
    padding: 20px 16px;
  }

  .feature-tile-icon {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }

  .feature-tile-title {
    font-size: 1.1rem;
  }

  .feature-tile-desc {
    font-size: 0.85rem;
  }

  .step-num {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .step-title {
    font-size: 0.95rem;
  }

  .step-desc {
    font-size: 0.85rem;
  }
}

.feature-tile {
  padding: 28px 24px;
}

.section-header {
  margin-bottom: 48px;
}

@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-mid);
    transform: translateY(-50%);
  }

  .carousel-btn.prev {
    left: 8px;
  }

  .carousel-btn.next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 64px 4% 40px;
  }

  .carousel-section {
    padding: 56px 6%;
  }
}

.feature-tile {
  padding: 28px 24px;
}

.section-header {
  margin-bottom: 48px;
}

.page-section-title {
  font-size: 1.4rem;
}

.feature-tile {
  padding: 24px 20px;
}

.section-header {
  margin-bottom: 40px;
}

.page-section {
  padding: 48px 6%;
}