/* ==========================================================================
   FundedDeals — shared landing page stylesheet
   Dark financial theme (deep navy + gold). Standalone CSS, no build step.
   Ported from the original Tailwind theme tokens.
   ========================================================================== */

:root {
  --background: 222 47% 6%;
  --foreground: 210 20% 95%;
  --card: 222 47% 9%;
  --primary: 45 93% 47%;
  --primary-glow: 45 93% 55%;
  --primary-foreground: 222 47% 6%;
  --secondary: 222 30% 14%;
  --muted: 222 30% 12%;
  --muted-foreground: 215 15% 58%;
  --accent: 45 93% 47%;
  --destructive: 0 72% 51%;
  --border: 222 30% 18%;
  --success: 142 71% 45%;
  --coupon-bg: 222 40% 12%;
  --coupon-border: 45 70% 40%;
  --coupon-text: 45 93% 60%;
  --radius: 0.625rem;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: hsl(var(--primary)); text-decoration: none; }
a:hover { color: hsl(var(--primary-glow)); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }

/* ---------- Site header (mirrors HOMEPAGE Header.tsx) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 3.5rem; }
.header-logo { display: flex; flex-shrink: 0; align-items: center; }
.header-logo img { height: 2rem; width: auto; display: block; }

.header-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.header-nav > a { font-size: 0.875rem; font-weight: 500; color: hsl(var(--muted-foreground)); }
.header-nav > a:hover { color: hsl(var(--foreground)); }
.header-nav .btn-telegram,
.header-nav .btn-gold {
  padding: 0.375rem 0.75rem; border-radius: 0.375rem;
  font-size: 0.875rem; font-weight: 600; white-space: nowrap;
}
.header-nav .btn-telegram {
  background: #0088cc; color: #fff;
  box-shadow: 0 0 15px -3px #0088cc;
}
.header-nav .btn-telegram:hover { background: #0088cce6; color: #fff; }
.header-nav .btn-gold {
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  box-shadow: 0 4px 20px -4px hsl(45 93% 47% / 0.25);
}
.header-nav .btn-gold:hover { color: hsl(var(--primary-foreground)); filter: brightness(1.1); }

/* ---------- Breadcrumb (inside the header, centre slot) ---------- */
.breadcrumb { min-width: 0; overflow: hidden; font-size: 0.8125rem; }
.breadcrumb ol { list-style: none; display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; min-width: 0; color: hsl(var(--muted-foreground)); }
.breadcrumb li + li::before { content: "›"; color: hsl(var(--muted-foreground) / 0.6); flex: none; }
.breadcrumb a { color: hsl(var(--muted-foreground)); white-space: nowrap; }
.breadcrumb a:hover { color: hsl(var(--primary)); }
.breadcrumb [aria-current="page"] {
  color: hsl(var(--foreground)); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .header-nav > a:not(.btn-telegram):not(.btn-gold) { display: none; }
}
@media (max-width: 720px) {
  .header-inner { gap: 0.75rem; }
  .header-logo img { height: 1.5rem; }
  .header-nav { gap: 0.75rem; }
  .header-nav .btn-telegram { display: none; }
  .breadcrumb { font-size: 0.75rem; }
  /* Ancestors would wrap the fixed-height bar, so the current page stands alone. */
  .breadcrumb li:not(:last-child) { display: none; }
  .breadcrumb li:last-child::before { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, hsl(222,47%,6%) 0%, hsl(222,47%,11%) 50%, hsl(222,40%,8%) 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(hsl(222 30% 15% / 0.5) 1px, transparent 1px),
    linear-gradient(90deg, hsl(222 30% 15% / 0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, hsl(45 93% 47% / 0.08) 0%, transparent 60%);
}
.hero .container { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 4rem; }
.hero-inner { max-width: 48rem; margin: 0 auto; text-align: center; }

.brand-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.brand-logo img { height: 80px; width: auto; object-fit: contain; }
@media (min-width: 768px) { .brand-logo img { height: 120px; } }
@media (min-width: 1024px) { .brand-logo img { height: 150px; } }

.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid hsl(var(--primary) / 0.2);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}
.badge--success { border-color: hsl(var(--success) / 0.2); background: hsl(var(--success) / 0.1); color: hsl(var(--success)); }
.badge-row { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

h1.headline {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 800; line-height: 1.1; margin: 0 0 1rem;
}
.text-gradient-gold {
  background-image: linear-gradient(135deg, hsl(45 93% 55%) 0%, hsl(38 80% 45%) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subheadline { font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 42rem; margin: 0 auto 1.5rem; }

.discount-box {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.25rem 2rem; border-radius: 1rem;
  border: 1px solid transparent;
  background:
    linear-gradient(hsl(var(--card)), hsl(var(--card))) padding-box,
    linear-gradient(135deg, hsl(45 93% 47% / 0.4) 0%, hsl(45 93% 47% / 0.1) 100%) border-box;
  box-shadow: 0 0 60px hsl(45 93% 47% / 0.15);
  animation: glow-pulse 2s ease-in-out infinite;
}
.discount-value { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; letter-spacing: -0.02em; }
.discount-meta { text-align: left; font-size: 0.875rem; }
.discount-meta .off { display: block; font-weight: 700; font-size: 1.125rem; color: hsl(var(--foreground) / 0.9); }
.discount-meta .now { display: block; color: hsl(var(--muted-foreground)); }
.discount-meta .now--ended { color: hsl(var(--destructive) / 0.85); }

.trust-row { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.trust-row span { display: inline-flex; align-items: center; gap: 0.5rem; }
.icon-inline { width: 1rem; height: 1rem; }

/* ---------- Coupon card ---------- */
.coupon-section { margin-top: -4rem; position: relative; z-index: 10; padding: 3rem 0; }
.card {
  max-width: 42rem; margin: 0 auto; overflow: hidden;
  border-radius: 1rem;
  border: 1px solid transparent;
  background:
    linear-gradient(hsl(var(--card)), hsl(var(--card))) padding-box,
    linear-gradient(135deg, hsl(45 93% 47% / 0.4) 0%, hsl(45 93% 47% / 0.1) 100%) border-box;
  box-shadow: 0 12px 40px hsl(0 0% 0% / 0.5);
}
.scarcity {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 600;
  color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.1);
  border-bottom: 1px solid hsl(var(--destructive) / 0.2);
}
.card-body { padding: 2rem; }
@media (max-width: 640px) { .card-body { padding: 1.5rem; } }

.card-head { text-align: center; margin-bottom: 1.5rem; }
.card-head .offer-badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.75rem; color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.3);
}
.card-head h2 { font-size: clamp(1.75rem, 5vw, 2.25rem); font-weight: 800; margin: 0.75rem 0 0.5rem; }
.card-head .short-title { font-weight: 500; font-size: 1.0625rem; margin: 0.5rem 0; }
.card-head .applies { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

.code-box {
  position: relative; cursor: pointer; margin: 1.5rem 0 0.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem; border-radius: 0.75rem;
  border: 2px dashed hsl(var(--coupon-border));
  background: hsl(var(--coupon-bg));
  transition: border-color 0.2s;
}
.code-box:hover { border-color: hsl(var(--primary)); }
.code-box .code-left { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.code-box .scissors {
  width: 2.5rem; height: 2.5rem; flex: none; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--primary) / 0.1);
}
.code-box .code-text {
  font-family: var(--font-mono); font-size: clamp(1.5rem, 5vw, 1.875rem);
  font-weight: 700; letter-spacing: 0.1em; color: hsl(var(--coupon-text));
  overflow-wrap: anywhere;
}
.copy-hint { text-align: center; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* The offer as a plain sentence, for search + AI answer engines to quote. */
.offer-sentence {
  margin: 1.25rem 0 0; text-align: center;
  font-size: 1rem; line-height: 1.6;
  color: hsl(var(--muted-foreground));
}
.offer-sentence strong { color: hsl(var(--foreground)); }

/* ---------- Copy → redirect countdown toast ---------- */
.fd-toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 100;
  display: flex; align-items: center; gap: 0.75rem;
  max-width: min(92vw, 26rem);
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--primary) / 0.45);
  box-shadow: 0 12px 40px hsl(222 47% 2% / 0.55);
  color: hsl(var(--foreground));
  font-size: 0.9375rem; font-weight: 500;
  opacity: 0; transform: translate(-50%, 1.25rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.fd-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.fd-toast-check {
  flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--success) / 0.15); color: hsl(var(--success));
}
.fd-toast-msg { flex: 1 1 auto; min-width: 0; }
.fd-toast-count {
  flex: none; min-width: 1.5rem; height: 1.5rem; padding: 0 0.375rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.375rem;
  font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  animation: toast-count-pulse 1s ease-in-out infinite;
}

.code-fallback {
  display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1.25rem;
  padding: 1rem; border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.05);
  border: 1px solid hsl(var(--primary) / 0.2);
  font-size: 0.875rem; color: hsl(var(--foreground) / 0.8);
}
.code-fallback .code-chip {
  font-family: var(--font-mono); font-weight: 700; color: hsl(var(--primary));
  padding: 0.125rem 0.5rem; border-radius: 0.25rem; background: hsl(var(--primary) / 0.1);
}

/* ---------- Brand index (root homepage) ---------- */
.brand-grid {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.brand-card {
  flex: 1 1 15rem; max-width: 24rem;
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.875rem 1rem; border-radius: var(--radius);
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  transition: border-color 0.15s, transform 0.15s;
}
.brand-card:hover { border-color: hsl(var(--primary)); color: hsl(var(--foreground)); transform: translateY(-2px); }
.brand-card-name { font-weight: 600; font-size: 0.9375rem; }
.brand-card-meta { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-cta {
  width: 100%; padding: 1rem 1.5rem; font-size: 1.125rem;
  color: hsl(var(--primary-foreground));
  background: linear-gradient(135deg, hsl(45 93% 47%) 0%, hsl(38 93% 42%) 100%);
  box-shadow: 0 8px 32px hsl(45 93% 47% / 0.25);
  animation: bounce-subtle 2s ease-in-out infinite;
}
.btn-cta:hover { color: hsl(var(--primary-foreground)); transform: translateY(-2px); }
.btn-outline {
  color: hsl(var(--foreground)); background: transparent;
  border-color: hsl(var(--border));
}
.btn-outline:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.btn-copy {
  padding: 0.375rem 0.75rem; font-size: 0.875rem;
  background: transparent; color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); border-radius: 0.5rem;
}
.btn-copy:hover { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); border-color: hsl(var(--primary)); }

.meta-row {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.5rem; font-size: 0.75rem; color: hsl(var(--muted-foreground));
}

/* ---------- Generic sections ---------- */
.section { padding: 3rem 0; }
.section--alt { background: hsl(var(--secondary) / 0.2); }
.section-title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; margin: 0 0 0.5rem; text-align: center; }
.section-sub { color: hsl(var(--muted-foreground)); text-align: center; margin: 0 auto 2.5rem; max-width: 40rem; }
.prose { max-width: 48rem; margin: 0 auto; color: hsl(var(--foreground) / 0.85); }
.prose p { margin: 0 0 1rem; }

/* Feature grid */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature {
  padding: 1.5rem; border-radius: 0.75rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
}
.feature .f-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; margin-bottom: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
}
.feature h3 { margin: 0 0 0.375rem; font-size: 1.0625rem; }
.feature p { margin: 0; color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }

/* Trust / verification block */
.verify-block {
  max-width: 56rem; margin: 0 auto;
  padding: 2rem; border-radius: 1rem;
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border) / 0.5);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem;
}
.verify-block .v-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
}
.verify-block h3 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.verify-block p { margin: 0; color: hsl(var(--muted-foreground)); font-size: 0.875rem; max-width: 32rem; }

/* FAQ */
.faq { max-width: 48rem; margin: 0 auto; }
.faq details {
  border: 1px solid hsl(var(--border)); border-radius: 0.75rem;
  background: hsl(var(--card)); margin-bottom: 0.75rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.125rem 1.25rem; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: hsl(var(--primary)); font-size: 1.25rem; }
.faq details[open] summary::after { content: '−'; }
.faq .answer { padding: 0 1.25rem 1.25rem; color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }

/* Steps */
.steps { max-width: 48rem; margin: 0 auto; counter-reset: step; }
.step { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.step .num {
  counter-increment: step; flex: none;
  width: 2rem; height: 2rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--primary) / 0.15); color: hsl(var(--primary)); font-weight: 700;
}
.step .num::before { content: counter(step); }
.step h3 { margin: 0 0 0.25rem; font-size: 1.0625rem; }
.step p { margin: 0; color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }

/* Tools */
.tools { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 56rem; margin: 0 auto; }
.tool { padding: 1.5rem; border-radius: 0.75rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); text-align: center; }
.tool h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.tool p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; margin: 0 0 1rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 2rem 0; border-top: 1px solid hsl(var(--border)); }
.disclosure {
  max-width: 42rem; margin: 0 auto 1rem; padding: 1.5rem;
  background: hsl(var(--muted) / 0.5); border-radius: 0.75rem;
  font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-align: center;
}
.copyright { text-align: center; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ---------- Animations ---------- */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px hsl(45 93% 47% / 0.2); }
  50%      { box-shadow: 0 0 40px hsl(45 93% 47% / 0.4); }
}
@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-count-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
.fade-up { animation: fade-in-up 0.6s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
