/* FinToolbox — Premium landing page. Builds on /css/styles.css tokens + .card/.btn/.tag. */

/* Hero */
.prem-hero { text-align: center; max-width: 720px; margin: 8px auto 40px; }
.prem-hero .badge-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.prem-hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.08; margin: 0 0 14px; }
.prem-hero .tagline { font-size: 16px; color: var(--text-2); line-height: 1.6; margin: 0 auto 26px; max-width: 540px; }
.prem-price { display: inline-flex; align-items: baseline; gap: 4px; margin-bottom: 22px; }
.prem-price .amt { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; }
.prem-price .per { font-size: 15px; color: var(--text-3); font-weight: 600; }
.prem-price .prem-vat { font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 6px; }
.prem-hero .cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.prem-hero .reassure { margin-top: 14px; font-size: 12.5px; color: var(--text-4); }

/* Section heads */
.prem-section-head { text-align: center; max-width: 640px; margin: 0 auto 22px; }
.prem-section-head h2 { font-size: 24px; margin: 0 0 8px; }
.prem-section-head p { font-size: 13.5px; color: var(--text-3); margin: 0; line-height: 1.6; }
.prem-section { margin: 48px 0; }

/* Features grid */
.prem-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.prem-feat { padding: 20px; }
.prem-feat .ic {
  width: 38px; height: 38px; border-radius: 9px; background: var(--green-soft);
  display: grid; place-items: center; color: var(--green); margin-bottom: 12px;
}
.prem-feat h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.prem-feat p { margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* Comparison table — three columns since Schritt 35 (Free / Premium / PLUS). */
.prem-compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; max-width: 920px; margin: 0 auto; }
table.prem-compare { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.prem-compare th, .prem-compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.prem-compare thead th { font-size: 13px; font-weight: 700; background: var(--card-2); }
.prem-compare thead th.col-prem      { color: var(--green); }
.prem-compare thead th.col-prem-plus { color: var(--yellow); }
.prem-compare tbody tr:last-child td { border-bottom: none; }
.prem-compare td.cell { text-align: center; width: 110px; }
.prem-compare .feat-name { font-weight: 600; color: var(--text-2); }
.prem-compare .yes  { color: var(--green); font-weight: 700; }
.prem-compare .no   { color: var(--text-4); }
.prem-compare .soon { color: var(--yellow); font-weight: 700; font-size: 11.5px; letter-spacing: 0.04em; }
.prem-compare .col-prem      { background: color-mix(in srgb, var(--green) 6%, transparent); }
.prem-compare .col-prem-plus { background: color-mix(in srgb, var(--yellow) 8%, transparent); }
.prem-col-price { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-3); margin-top: 3px; }

/* FAQ */
.prem-faq { padding: 26px 28px; max-width: 760px; margin: 0 auto; }
.prem-faq .q { margin-bottom: 16px; }
.prem-faq .q:last-child { margin-bottom: 0; }
.prem-faq .q h3 { margin: 0 0 5px; font-size: 15px; font-weight: 600; }
.prem-faq .q p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* Final CTA band */
.prem-cta {
  text-align: center; padding: 40px 28px; border-radius: 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--green) 14%, var(--card)), var(--card));
  border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line)); max-width: 760px; margin: 48px auto 0;
}
.prem-cta h2 { font-size: 24px; margin: 0 0 8px; }
.prem-cta p { font-size: 13.5px; color: var(--text-2); margin: 0 0 20px; }
.prem-cta .note { font-size: 12px; color: var(--text-4); margin-top: 14px; }
.prem-cta-buttons { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.prem-cta-buttons .btn { width: 100%; max-width: 420px; justify-content: center; }

/* PLUS variant of btn-primary — gold accent so PLUS reads distinct from
   the green Premium button. Mirrors the .cell.col-prem-plus accent. */
.btn-primary-plus {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--yellow), color-mix(in srgb, var(--yellow) 70%, #c89a2c));
  color: #1a1407;
  border: 1px solid color-mix(in srgb, var(--yellow) 60%, var(--line));
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 18px;
  transition: filter 0.12s ease, transform 0.06s ease;
  cursor: pointer;
}
.btn-primary-plus:hover { filter: brightness(1.06); }
.btn-primary-plus:active { transform: translateY(1px); }
.btn-primary-plus.btn-lg { padding: 14px 22px; font-size: 14.5px; }

@media (max-width: 600px) {
  .prem-section { margin: 36px 0; }
}

/* ============================================================
   Screenshot Showcase (between hero + features). Three small
   cards + one wide hero card, all empty placeholders today;
   later they get background-image overrides on the #ss-* ids.
   Entrance: opacity 0→1 + translateY 20px→0, 400ms, triggered
   by an IntersectionObserver that adds .is-visible.
   ============================================================ */
.ss-divider {
  max-width: 960px;
  height: 1px;
  margin: 8px auto 28px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--green) 45%, transparent) 50%,
    transparent 100%
  );
}
.ss-showcase {
  max-width: 960px;
  margin: 0 auto 56px;
}
.ss-head { text-align: center; margin-bottom: 24px; }
.ss-headline {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--green);
}
.ss-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
}
.ss-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

/* Common card shell — anchor wrapping a 16:10 frame + label below.
   Each .ss-card carries its own opacity/transform until the IO flips
   .is-visible (or prefers-reduced-motion / no-IO fallback). */
.ss-card {
  display: block;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ss-card.is-visible { opacity: 1; transform: none; }

.ss-frame {
  aspect-ratio: 16 / 10;
  background-color: var(--card-2);   /* fallback while the image is loading */
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  /* Hover-ready: transform/box-shadow already covered by the wider
     card transition, so the frame just gets its border + shadow swap. */
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
/* The real screenshot — an <img> tag (replaces the older CSS background-image
   approach so Google Image Search can index every shot). object-fit:cover
   reproduces the previous background-size:cover behavior; border-radius:inherit
   keeps the rounded corners through the image. */
.ss-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: block;
  /* Lift above the placeholder camera/caption so those stay hidden behind
     the image even if a future stylesheet shows them again. */
  position: absolute;
  inset: 0;
}
/* Hero is the same shell but wider (16:7 aspect on desktop). */
.ss-card-hero .ss-frame { aspect-ratio: 16 / 7; }
/* Wide secondary card under the hero — full container width like the hero
   but keeps the 16:10 default (Recent Trades screenshot is denser, the
   shorter 16:7 would crop it). */
.ss-card-wide { display: block; margin-top: 20px; }

/* Placeholder camera + caption hidden whenever the frame has a real image
   inside it. Future cards without an <img> still show the placeholder. */
.ss-frame:has(img) .ss-cam,
.ss-frame:has(img) .ss-soon { display: none; }

/* Hover: lift + green glow + green border. Anchor handles transform so
   the .ss-label moves up with the card. */
.ss-card:hover {
  transform: translateY(-4px);
}
.ss-card:hover .ss-frame {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(0, 200, 150, 0.15);
}
.ss-card:focus-visible {
  outline: none;
}
.ss-card:focus-visible .ss-frame {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

/* "Screenshot coming soon" placeholder — centred green camera + caption.
   When a real background-image lands on #ss-* via a later CSS rule, the
   image will paint over var(--card-2) and these two children should be
   hidden by that same later rule (e.g. .ss-card#ss-dashboard .ss-cam,
   .ss-card#ss-dashboard .ss-soon { display: none; }). */
.ss-cam {
  color: color-mix(in srgb, var(--green) 70%, var(--text-3));
  opacity: 0.85;
}
.ss-soon {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.ss-label {
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

/* Mobile: stack the row, switch the hero frame to 16:10 so it doesn't
   collapse to a skinny strip on narrow viewports. */
@media (max-width: 768px) {
  .ss-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ss-card-hero .ss-frame { aspect-ratio: 16 / 10; }
  .ss-showcase { margin-bottom: 40px; }
}

/* ============================================================
   Screenshot lightbox + zoom hint icon.
   The .ss-zoom dot lives top-right of every .ss-frame and only
   appears on hover (always visible on touch via the :focus-within
   fallback). The #ss-lightbox overlay is a singleton at the body
   bottom, toggled via the [hidden] attribute by inline JS.
   ============================================================ */
.ss-frame[data-lightbox] { cursor: zoom-in; }

.ss-zoom {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;          /* clicks fall through to the frame */
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 3;
}
/* Show on hover and on keyboard focus of the parent .ss-card. */
.ss-card:hover .ss-zoom,
.ss-card:focus-visible .ss-zoom { opacity: 1; transform: scale(1); }

#ss-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: ssLbFade 0.18s ease-out;
}
#ss-lightbox[hidden] { display: none; }
@keyframes ssLbFade { from { opacity: 0; } to { opacity: 1; } }
#ss-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  display: block;
}
.ss-lb-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.06s ease;
}
.ss-lb-close:hover { background: rgba(0, 0, 0, 0.78); border-color: rgba(255, 255, 255, 0.4); }
.ss-lb-close:active { transform: scale(0.95); }
.ss-lb-close:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Reduce padding on phones so the image gets all the vertical room. */
@media (max-width: 600px) {
  #ss-lightbox { padding: 12px; }
  #ss-lightbox img { max-width: 96vw; max-height: 86vh; }
  .ss-lb-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 20px; }
}
