/* ===================================================================
   AutoCount Revision 45 — SVDP Confirmation
   Custom styles that sit on top of Tailwind utility classes.
   Edit colors in the :root / html.dark blocks to re-theme the page.
=================================================================== */

:root {
  --bg: #FFFFFF;
  --surface: #FAF9F7;
  --ink: #26262B;
  --ink-sub: #6B6B72;
  --accent: #F2AA24;
  --accent-dark: #C9860D;
  --border: #E8E6E1;
  --card: #FFFFFF;
  --ph-icon: #C9C6BC;
  --ph-from: #FDF3E0;
  --ph-to: #FFFFFF;
  --google-form: #7372fe;
  --google-form-dark: #5746e3;
}

html.dark {
  --bg: #121214;
  --surface: #18181B;
  --ink: #F2F0EB;
  --ink-sub: #A3A3AA;
  --accent: #F2AA24;
  --accent-dark: #FFC661;
  --border: #2E2E33;
  --card: #1B1B1E;
  --ph-icon: #45454B;
  --ph-from: #1B1B1E;
  --ph-to: #121214;
}

html { scroll-behavior: smooth; }

::selection { background: rgba(242, 170, 36, .35); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- scroll fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.in-view { opacity: 1; transform: translateY(0); }

/* ---------- hero stamp ---------- */
.stamp { transform: rotate(-6deg); }

/* ---------- image placeholder frame ----------
   Reused by every image slot on the page. Reserves space via
   aspect-ratio (set by Tailwind's aspect-[...] class or inline style)
   so the layout never jumps, whether or not the real image loads. */
.ph-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--ph-from), var(--ph-to));
}
.ph-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SVDP carousel images: show the whole screenshot, never crop it */
.svdp-frame img {
  object-fit: contain;
}
.ph-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ph-icon);
}
.ph-fallback svg { stroke: currentColor; }

/* ---------- accordion (FAQ) ---------- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.accordion-item.open .accordion-content { max-height: 400px; }
.accordion-item.open .chev { transform: rotate(180deg); }
.chev { transition: transform .3s ease; }

/* ===================================================================
   "How to apply SVDP" slider
   10 slides of different sizes. The viewport height animates to match
   whichever slide is currently in view (see js/script.js).
=================================================================== */

.svdp-carousel {
  position: relative;
}

.svdp-viewport {
  overflow: hidden;
  border-radius: 24px;
  transition: height .45s cubic-bezier(.4, 0, .2, 1);
}

.svdp-track {
  display: flex;
  width: 100%;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.svdp-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: 0 2px;
}

.svdp-frame {
  width: 100%;
  /* height comes from the inline aspect-ratio set per slide, so the
     frame's own box always matches the image's real proportions */
  border-radius: 20px;
}

.svdp-caption {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.svdp-step-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svdp-caption-title {
  font-family: 'Sora', 'Noto Sans SC', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.svdp-caption-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-sub);
}

.svdp-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.svdp-nav:hover { border-color: var(--accent); }
.svdp-nav svg { width: 18px; height: 18px; }
.svdp-prev { left: -14px; }
.svdp-next { right: -14px; }

@media (min-width: 1024px) {
    lg\:py-28 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 640px) {
  .svdp-prev { left: -22px; }
  .svdp-next { right: -22px; }
  .py-28 { padding-top: 3rem; padding-bottom: 3rem; }
  .py-20 { padding-top: 3rem; padding-bottom: 3rem; }
}

@media (min-width: 768px) {
  .svdp-prev { left: -32px; }
  .svdp-next { right: -32px; }
  .py-28 { padding-top: 3rem; padding-bottom: 3rem; }
  .py-20 { padding-top: 3rem; padding-bottom: 3rem; }
}

.svdp-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--border);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: width .25s ease, background .25s ease;
}
.svdp-dot.active {
  width: 22px;
  background: var(--accent);
}

/* ---------- Google Form CTA button ----------
   Used for "Contact Us" buttons that link out to the Google Form.
   Uses --google-form / --google-form-dark defined in :root / html.dark. */
.btn-google-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--google-form);
  color: #FFFFFF;
  transition: background-color .2s ease, transform .15s ease;
}
.btn-google-form:hover {
  background: var(--google-form-dark);
}
.btn-google-form:active {
  transform: translateY(1px);
}
.btn-google-form svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
