/* =============================================================
   SCREENSHOT SHOWCASE & HERO PHONE FRAME  — Finance Calculator
   ============================================================= */

/* ── Theme-aware image swap (smooth transition) ─────────────── */
.themed-img {
  transition: opacity 0.25s ease;
}

.themed-img.swapping {
  opacity: 0;
}

/* ── Hero Phone Frame (interactive scrollable screen) ────────── */
.hero-phone-frame {
  width: 290px;
  height: 590px;
  border-radius: 46px;
  border: 4px solid #1F2937;
  overflow: hidden;
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
  background: #0B0F19;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .hero-phone-frame {
  border-color: #E2E8F0;
  background: #F8FAFC;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.hero-phone-frame:hover {
  box-shadow: 0 45px 100px rgba(37, 99, 235, 0.25), 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* Phone Top Notch Bar */
.phone-notch-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  background: transparent;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.phone-speaker {
  width: 44px;
  height: 4px;
  background: #1F2937;
  border-radius: 4px;
  opacity: 0.6;
}

.phone-camera-lens {
  width: 8px;
  height: 8px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 50%;
}

/* Scrollable Inner Screen Viewport */
.hero-phone-viewport {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  cursor: grab;
  position: relative;
  border-radius: 42px;
}

.hero-phone-viewport:active {
  cursor: grabbing;
}

/* Custom sleek scrollbar for phone screen */
.hero-phone-viewport::-webkit-scrollbar {
  width: 4px;
}

.hero-phone-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.hero-phone-viewport::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}

.hero-phone-viewport::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.hero-screenshot {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Scroll hint pill */
.phone-scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: bounceHint 2.4s infinite;
}

[data-theme="light"] .phone-scroll-hint {
  background: rgba(255, 255, 255, 0.9);
  color: #0F172A;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.phone-scroll-hint.hidden {
  opacity: 0;
  transform: translate(-50%, 10px);
}

@keyframes bounceHint {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -6px);
  }
  60% {
    transform: translate(-50%, -3px);
  }
}

/* ── Showcase Section ────────────────────────────────────────── */
.showcase-section {
  padding: 96px 0;
  background: var(--bg-surface);
}

/* ── 4-column screenshot grid ───────────────────────────────── */
.screenshots-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.screenshot-phone-frame {
  width: 100%;
  max-width: 200px;
  border-radius: 32px;
  border: 2.5px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.04);
  background: #0B0F19;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-phone-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 36px 72px rgba(0, 0, 0, 0.55);
}

.screenshot-phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  text-align: center;
}

.screenshot-caption h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px;
}

.screenshot-caption p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Showcase CTA ───────────────────────────────────────────── */
.showcase-cta {
  text-align: center;
}

.showcase-cta p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

/* ── Play badge helpers ──────────────────────────────────────── */
.play-badge-link {
  display: inline-block;
  text-decoration: none;
}

.play-badge-img {
  height: 60px;
  width: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-badge-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.play-badge-large {
  height: 72px;
}

.cta-badge {
  display: inline-block;
}

/* ── Footer play badge ───────────────────────────────────────── */
.footer-play-badge {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
}

.footer-play-badge img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.footer-play-badge img:hover {
  transform: translateY(-2px);
}

/* ── Footer brand column ─────────────────────────────────────── */
.footer-brand-col {
  display: flex;
  flex-direction: column;
}

/* ── Inner page styles (privacy-policy / contact) ────────────── */
.inner-page-header {
  padding: 80px 0 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.inner-page-header .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.inner-page-header .breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
}

.inner-page-header .breadcrumbs a:hover {
  text-decoration: underline;
}

.inner-page-header .breadcrumbs span {
  color: var(--text-muted);
}

.inner-page-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 10px;
}

.inner-page-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ── Legal / Policy content area ────────────────────────────── */
.legal-content-wrap {
  padding: 56px 0 80px;
}

.legal-article {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 52px;
}

@media (max-width: 640px) {
  .legal-article { padding: 28px 20px; }
}

.legal-article h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-article h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-article p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 12px;
}

.legal-article ul {
  margin: 0 0 12px 0;
  padding-left: 24px;
}

.legal-article ul li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-highlight {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 16px;
}

.legal-highlight p {
  margin: 0;
  color: var(--text-muted);
}

.legal-email-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.legal-email-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.legal-email-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  flex: 1;
  word-break: break-all;
}

.btn-copy {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.btn-copy:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ── Contact page specifics ─────────────────────────────────── */
.contact-layout {
  padding: 56px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.contact-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 12px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

.app-meta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 24px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.meta-row:last-child { border-bottom: none; }

.meta-lbl {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-val {
  color: var(--text-main);
  font-weight: 600;
}

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

.instruction-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.instruction-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.instruction-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.instruction-content strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.instruction-content span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
  margin-top: 4px;
}

.contact-email-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  color: #fff;
}

/* ── Responsive showcase ─────────────────────────────────────── */
@media (max-width: 900px) {
  .screenshots-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .screenshots-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .play-badge-img { height: 50px; }
  .play-badge-large { height: 58px; }
  .hero-phone-frame { 
    width: 240px; 
    height: 490px;
    border-radius: 36px;
  }
}
