/* =========================================================================
   Fun.io – Black Friday "All-in-One Business Starter Bundle" page (EN / FR)
   -------------------------------------------------------------------------
    1. Design tokens
    2. Base
    3. Layout helpers
    4. Components: buttons, badge, icons, section heads, countdown, lang switch
    5. Promo bar
    6. Header
    7. Hero (+ price card, trust row)
    8. Features
    9. Pricing
   10. Closing CTA band
   11. Footer
   12. Background effects
   13. French text-length adjustments
   14. Responsive
   ========================================================================= */

/* 1. Design tokens ------------------------------------------------------ */
:root {
  --c-bg:         #070707;
  --c-card:       rgba(24, 10, 10, .78);
  --c-card-2:     rgba(10, 8, 8, .9);
  --c-red:        #ff2a2a;
  --c-red-mid:    #e10600;
  --c-red-deep:   #a80000;
  --c-red-line:   rgba(255, 42, 42, .55);
  --c-red-soft:   rgba(255, 42, 42, .16);
  --c-text:       #ffffff;
  --c-text-soft:  #ece6e6;
  --c-muted:      #b4a9a9;

  --g-red:        linear-gradient(180deg, #ff6a5a 0%, #ff2a2a 45%, #c60000 100%);
  --g-red-btn:    linear-gradient(180deg, #ff4a40 0%, #ef1010 55%, #c40000 100%);
  --g-white:      linear-gradient(180deg, #ffffff 0%, #f1f1f1 55%, #bdbdbd 100%);

  --f-display: Poppins, "Arial Black", system-ui, sans-serif;
  --f-body:    Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter:    24px;
  --radius:    16px;
  --radius-sm: 10px;
  --section-y: 88px;

  --glow-red: 0 0 0 1px rgba(255, 60, 60, .35), 0 0 34px -6px rgba(255, 30, 30, .55);
  --shadow:   0 30px 60px -30px rgba(0, 0, 0, .9);
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 55% 45% at 80% 6%, rgba(255, 30, 30, .20), transparent 70%),
    radial-gradient(ellipse 45% 35% at 6% 0%,  rgba(255, 40, 40, .10), transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 72%, rgba(200, 0, 0, .08), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 42, 42, .4); }

/* 3. Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section-y); position: relative; z-index: 1; }
.red-text   { background: var(--g-red);   -webkit-background-clip: text; background-clip: text; color: transparent; }
.white-text { background: var(--g-white); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 4. Components --------------------------------------------------------- */
.icon { width: 22px; height: 22px; flex: none; color: var(--c-red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-weight: 800; font-size: 16px; letter-spacing: .02em; line-height: 1; text-transform: uppercase;
  padding: 15px 26px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, filter .15s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn .icon { width: 18px; height: 18px; color: currentColor; }
.btn--red {
  color: #fff; background: var(--g-red-btn); border-color: rgba(255, 140, 140, .6);
  box-shadow: 0 0 0 1px rgba(255, 40, 40, .35), 0 10px 30px -8px rgba(255, 20, 20, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--outline { color: #fff; border-color: var(--c-red-line); background: rgba(255, 42, 42, .07); }
.btn--lg { padding: 19px 32px; font-size: 18px; border-radius: 12px; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 900; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; line-height: 1;
  color: #fff; padding: 11px 18px; border-radius: 10px; background: var(--g-red-btn);
  box-shadow: 0 0 0 1px rgba(255, 120, 120, .45), 0 8px 30px -6px rgba(255, 30, 30, .75);
}
.badge .icon { color: #fff; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head__eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--c-red); margin-bottom: 12px; }
.section-head__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.section-head__text { color: var(--c-muted); font-size: 18px; margin-top: 14px; }

/* Countdown */
.countdown { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.countdown__ended { display: none; font-weight: 800; }
.countdown.is-ended .countdown__unit, .countdown.is-ended .countdown__sep { display: none; }
.countdown.is-ended .countdown__ended { display: inline; }
.countdown--compact .countdown__unit { display: inline-flex; align-items: baseline; gap: 2px; padding: 2px 7px; border-radius: 5px; background: rgba(0, 0, 0, .35); font-weight: 800; }
.countdown--compact .countdown__label { font-size: 11px; opacity: .85; }
.countdown--large { gap: 8px; }
.countdown--large .countdown__unit { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .6); border: 1px solid var(--c-red-soft); }
.countdown--large .countdown__value { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1; }
.countdown--large .countdown__label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); margin-top: 5px; }
.countdown--large .countdown__sep { font-weight: 800; font-size: 20px; color: var(--c-red); }

/* EN / FR switch */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--c-red-soft); background: rgba(255, 255, 255, .03); }
.lang-switch button { border: 0; background: none; cursor: pointer; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--c-muted); }
.lang-switch button[aria-pressed="true"] { background: var(--g-red-btn); color: #fff; }

/* 5. Promo bar ---------------------------------------------------------- */
.promo-bar { position: relative; z-index: 30; font-size: 14px; background: linear-gradient(90deg, #a80000, #e10600 30%, #ff2a2a 50%, #e10600 70%, #a80000); }
.promo-bar__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 22px; min-height: 46px; padding-top: 6px; padding-bottom: 6px; }
.promo-bar__offer { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.promo-bar__offer strong { font-weight: 800; }
.promo-bar__tag { font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-red-mid); background: #fff; padding: 3px 8px; border-radius: 4px; }
.promo-bar__timer { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.promo-bar__timer .icon { color: #fff; width: 16px; height: 16px; }
.promo-bar__link { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* 6. Header ------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7, 7, 7, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 42, 42, .14); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 80px; }
/* Logo = wordmark image + tagline as real text (stays readable at any size) */
.site-header__logo, .site-footer__logo { display: inline-flex; flex-direction: column; align-items: stretch; gap: 4px; }
.site-header__logo img { width: 150px; }
.brand-tagline {
  display: block; font-family: var(--f-body); font-weight: 700; font-size: 9px; line-height: 1;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: #d9d4d4;
  text-align: justify; text-align-last: justify; /* spread across the wordmark width */
}
.site-nav { display: flex; gap: 30px; margin-left: auto; font-weight: 600; font-size: 15px; color: var(--c-text-soft); }
.site-nav a:hover { color: #fff; }
.site-header__actions { display: flex; align-items: center; gap: 14px; margin-left: 12px; }

/* 7. Hero --------------------------------------------------------------- */
.hero { position: relative; z-index: 1; padding: 36px 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 16px; }
.hero__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.02em; margin-top: 22px; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.hero__title-l1 { display: block; font-size: clamp(40px, 5.2vw, 74px); }
.hero__title-l2 { display: block; font-size: clamp(60px, 8vw, 116px); margin-top: 4px; filter: drop-shadow(0 6px 26px rgba(255, 30, 30, .45)); }
.hero__title-sub { display: block; font-size: clamp(20px, 2.3vw, 32px); margin-top: 14px; letter-spacing: 0; }
.hero__lede { font-size: 18px; color: var(--c-text-soft); margin-top: 18px; max-width: 560px; }

.price-card { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; padding: 18px 24px; max-width: 580px; border-radius: var(--radius); background: rgba(0, 0, 0, .65); border: 1px solid var(--c-red-line); box-shadow: var(--glow-red); }
.price-card__now { font-family: var(--f-display); font-weight: 900; font-size: 58px; line-height: 1; letter-spacing: -.02em; }
.price-card__now small { font-size: 22px; font-weight: 700; letter-spacing: 0; }
.price-card__meta { display: grid; gap: 6px; }
.price-card__was { color: var(--c-muted); font-size: 16px; }
.price-card__was s { text-decoration-thickness: 2px; text-decoration-color: var(--c-red); }
.price-card__save { justify-self: start; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--c-red-mid); padding: 4px 10px; border-radius: 6px; }

.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
.hero__deadline { display: grid; gap: 8px; }
.hero__deadline-label { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); }

.trust-row { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; }
.trust-row__item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; }
.trust-row__item .icon { width: 34px; height: 34px; }
.trust-row__item + .trust-row__item { padding-left: 24px; border-left: 1px solid var(--c-red-soft); }

.hero__art { position: relative; margin-right: calc(var(--gutter) * -1); }
.hero__art img { width: 100%; max-width: 620px; margin-left: auto; }

/* 8. Features ----------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 30px 26px; border-radius: var(--radius); background: linear-gradient(180deg, var(--c-card), var(--c-card-2)); border: 1px solid var(--c-red-soft); box-shadow: var(--shadow); transition: border-color .2s ease, transform .2s ease; }
.feature:hover { transform: translateY(-4px); border-color: var(--c-red-line); }
.feature__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; background: rgba(255, 42, 42, .1); border: 1px solid var(--c-red-soft); margin-bottom: 20px; }
.feature__icon .icon { width: 32px; height: 32px; }
.feature__title { font-family: var(--f-display); font-weight: 800; font-size: 21px; line-height: 1.2; text-transform: uppercase; }
.feature__text { color: var(--c-muted); margin-top: 10px; font-size: 15px; }
.feature--cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; background: radial-gradient(circle at 85% 15%, rgba(255, 80, 80, .35), transparent 55%), linear-gradient(135deg, #b30000, #4a0000); border-color: var(--c-red-line); }
.feature--cta .feature__title { font-size: 26px; }

/* 9. Pricing ------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 28px; }
.plan { position: relative; display: flex; flex-direction: column; text-align: center; padding: 40px 32px 32px; border-radius: 20px; background: linear-gradient(180deg, var(--c-card), var(--c-card-2)); border: 1px solid var(--c-red-soft); box-shadow: var(--shadow); }
.plan--featured { border-color: var(--c-red-line); box-shadow: var(--glow-red), var(--shadow); }
.plan__flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--g-red-btn); padding: 6px 14px; border-radius: 999px; }
.plan__name { font-family: var(--f-display); font-weight: 900; font-size: 26px; text-transform: uppercase; }
.plan__desc { color: var(--c-muted); margin-top: 6px; }
.plan__was { margin-top: 24px; color: var(--c-muted); }
.plan__was s { text-decoration-thickness: 2px; text-decoration-color: var(--c-red); }
.plan__price { margin: 6px 0 4px; font-family: var(--f-display); font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -.02em; }
.plan__price small { font-size: 24px; font-weight: 700; letter-spacing: 0; }
.plan__term { font-weight: 600; color: var(--c-text-soft); }
.plan__list { display: grid; gap: 12px; text-align: left; margin: 28px 0 30px; padding-top: 26px; border-top: 1px solid var(--c-red-soft); flex: 1; }
.plan__list li { display: flex; align-items: center; gap: 12px; color: var(--c-text-soft); }
.plan__list .icon { width: 20px; height: 20px; }
.plans__note { text-align: center; color: var(--c-muted); font-size: 14px; margin-top: 24px; }

/* 10. CTA band ---------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--c-red-line); box-shadow: var(--glow-red); background: #000 url("../img/cta-fox.jpg") right center / cover no-repeat; min-height: 340px; display: flex; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .85) 40%, rgba(0, 0, 0, 0) 70%); }
.cta-band__copy { position: relative; padding: 48px; max-width: 640px; }
.cta-band__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.05; text-transform: uppercase; }
.cta-band__text { color: var(--c-text-soft); font-size: 18px; margin: 14px 0 26px; }

/* 11. Footer ------------------------------------------------------------ */
.site-footer { position: relative; z-index: 1; margin-top: var(--section-y); border-top: 1px solid rgba(255, 42, 42, .18); background: rgba(0, 0, 0, .75); }
.site-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 28px; }
.site-footer__logo img { width: 160px; }
.site-footer__logo .brand-tagline { font-size: 9.5px; letter-spacing: .17em; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--c-text-soft); }
.site-footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--c-red-soft); color: var(--c-text-soft); }
.social a:hover { border-color: var(--c-red); color: #fff; }
.site-footer__bottom { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding-top: 22px; padding-bottom: 32px; }
.site-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--c-red-soft); }
.site-footer__family { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--c-text-soft); }
.site-footer__family a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }
.site-footer__family img { height: 22px; width: auto; }
.site-footer__copy { font-size: 13px; color: var(--c-muted); }

/* 12. Background effects ------------------------------------------------ */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body::before {
  background-image:
    radial-gradient(2px 2px     at 30px 40px,   rgba(255, 120, 110, .85), transparent 70%),
    radial-gradient(1.5px 1.5px at 160px 100px, rgba(255, 60, 60, .7),    transparent 70%),
    radial-gradient(1.5px 1.5px at 90px 180px,  rgba(255, 220, 220, .55), transparent 70%),
    radial-gradient(2.5px 2.5px at 130px 140px, rgba(255, 40, 40, .8),    transparent 70%);
  background-size: 190px 200px, 240px 220px, 300px 260px, 420px 380px;
  opacity: .4; animation: sparkle 6s ease-in-out infinite alternate;
}
body::after {
  background-image: linear-gradient(rgba(255, 42, 42, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 42, 42, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000, transparent 80%);
}
@keyframes sparkle { from { opacity: .25; } to { opacity: .6; } }
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { position: sticky; z-index: 20; }

/* 13. French text runs longer – scale the big headline lines down a little */
:lang(fr) .hero__title-l1 { font-size: clamp(36px, 4.9vw, 70px); }
:lang(fr) .hero__title-l2 { font-size: clamp(42px, 5.6vw, 82px); }
:lang(fr) .hero__title-sub { font-size: clamp(18px, 1.9vw, 27px); }

/* 14. Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
}
@media (max-width: 960px) {
  :root { --section-y: 64px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; margin: 0 auto; }
  .hero__art img { max-width: 520px; margin: 0 auto; }
  .plans { grid-template-columns: minmax(0, 480px); }
  .cta-band { background-position: 75% center; min-height: 0; }
  .cta-band::before { background: linear-gradient(90deg, rgba(0, 0, 0, .94), rgba(0, 0, 0, .72)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header__inner { height: 66px; gap: 10px; }
  .site-header__logo img { width: 118px; }
  .site-header__logo .brand-tagline { font-size: 7.5px; letter-spacing: .14em; }
  .site-header__actions { margin-left: auto; gap: 8px; }
  .site-header .btn { display: none; }
  .promo-bar { font-size: 13px; }
  .promo-bar__inner { flex-direction: column; gap: 6px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
  .promo-bar__offer { flex-wrap: wrap; justify-content: center; }
  .promo-bar__link { display: none; }
  .hero { padding-top: 16px; }
  .badge { font-size: 17px; }
  .hero__lede { font-size: 16.5px; }
  .price-card { padding: 16px 18px; }
  .price-card__now { font-size: 48px; }
  .hero__actions .btn { width: 100%; }
  .countdown--large .countdown__unit { width: 58px; height: 58px; }
  .countdown--large .countdown__sep { display: none; }
  .trust-row { display: grid; gap: 12px; }
  .trust-row__item + .trust-row__item { padding-left: 0; border-left: 0; }
  .features { grid-template-columns: 1fr; }
  .plan { padding: 36px 22px 24px; }
  .plan__price { font-size: 54px; }
  .cta-band__copy { padding: 30px 22px; }
  .cta-band .btn { width: 100%; }
  .site-footer__top { flex-direction: column; text-align: center; }
  .site-footer__links, .social { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
