/* ============================================================
   Mycaloa — Global stylesheet
   Mood: warm, emotional, premium, nostalgic (golden-hour light,
   the idea of a time capsule).
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN SYSTEM — CSS custom properties
   ------------------------------------------------------------ */
:root {
  /* Color palette */
  --color-bg: #1c1410;            /* Background — dark warm */
  --color-surface: #241a13;       /* Secondary surface */
  --color-amber: #e0a458;         /* Primary amber */
  --color-amber-bright: #f2c078;  /* Bright amber accent */
  --color-rose: #d98c6a;          /* Warm rose accent */
  --color-cream: #f5ede0;         /* Cream text */
  --color-cream-muted: #c9bba6;   /* Muted cream */
  --color-rule: rgba(224, 164, 88, 0.22); /* Warm amber hairline */

  /* Typography */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Modular type scale (mobile-first; scaled up on larger screens below) */
  --text-xs: 0.8125rem;   /* 13px */
  --text-sm: 0.9375rem;   /* 15px */
  --text-base: 1.0625rem; /* 17px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 2rem;       /* 32px */
  --text-3xl: 2.75rem;    /* 44px */
  --text-4xl: 3.5rem;     /* 56px */

  --leading-tight: 1.12;
  --leading-snug: 1.3;
  --leading-normal: 1.7;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Layout */
  --content-max: 1120px;
  --content-pad: var(--space-5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Elevation & glow (warm, never cold) */
  --shadow-soft: 0 12px 40px -16px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --glow-amber: 0 0 0 1px rgba(224, 164, 88, 0.35),
    0 14px 40px -14px rgba(224, 164, 88, 0.4);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-fast: 160ms var(--ease-out);
  --transition-base: 260ms var(--ease-out);
}


/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: var(--leading-normal);
  /* Golden-hour atmosphere: a warm amber wash from the top and a soft rose
     glow rising from the bottom — fixed to the viewport so it stays put as
     the page scrolls (mirrors the brand reference). */
  background-image: radial-gradient(
      ellipse 80% 50% at 50% -10%,
      rgba(224, 164, 88, 0.16),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 110%,
      rgba(217, 140, 106, 0.1),
      transparent 60%
    );
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-amber-bright);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-cream);
}

:focus-visible {
  outline: 2px solid var(--color-amber-bright);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--color-cream);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-xl);
}

p {
  max-width: 60ch;
}

/* Soft, muted supporting text */
.text-muted {
  color: var(--color-cream-muted);
}

/* Signature italic-serif accent — warm amber-bright emphasis in body copy. */
.accent {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  color: var(--color-amber-bright);
}

/* Small eyebrow / kicker label above section titles */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-amber);
}


/* ------------------------------------------------------------
   4. LAYOUT — section wrapper
   ------------------------------------------------------------ */
.section {
  width: 100%;
  padding-block: var(--space-8);
  padding-inline: var(--content-pad);
}

/* Centered content column inside any section */
.section > * {
  margin-inline: auto;
  max-width: var(--content-max);
}

/* Secondary-surface band for visual rhythm between sections */
.section--surface {
  background-color: var(--color-surface);
}


/* ------------------------------------------------------------
   5. COMPONENTS — buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-base), background-color var(--transition-base),
    color var(--transition-base), border-color var(--transition-base);
}

.btn:active {
  transform: translateY(1px);
}

/* Primary — warm amber gradient */
.btn--primary {
  color: var(--color-bg);
  background-image: linear-gradient(
    135deg,
    var(--color-amber-bright),
    var(--color-amber)
  );
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  color: var(--color-bg);
  box-shadow: var(--glow-amber);
  transform: translateY(-2px);
}

/* Secondary — outlined with the warm amber hairline (never cold cream) */
.btn--secondary {
  color: var(--color-cream);
  background-color: transparent;
  border-color: var(--color-rule);
}

.btn--secondary:hover {
  color: var(--color-cream);
  border-color: var(--color-amber);
  background-color: rgba(224, 164, 88, 0.08);
  transform: translateY(-2px);
}


/* ------------------------------------------------------------
   6. COMPONENTS — card
   ------------------------------------------------------------ */
.card {
  padding: var(--space-6);
  background-color: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base),
    border-color var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 164, 88, 0.4);
}

/* Highlighted card variant (e.g. "most popular" pricing tier) */
.card--featured {
  border-color: rgba(224, 164, 88, 0.55);
  box-shadow: var(--glow-amber);
}

/* Responsive grid for cards / steps / tiers */
.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}


/* ------------------------------------------------------------
   7. MOTION — staggered fade-up on load
   Elements marked [data-animate] start hidden and rise into place.
   Falls back to visible if JS is disabled (see no-js note below) or
   if the user prefers reduced motion.
   ------------------------------------------------------------ */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* If JS never runs, reveal everything so content is never lost. */
.no-js [data-animate] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}


/* ------------------------------------------------------------
   8. RESPONSIVE — tablet & up
   ------------------------------------------------------------ */
@media (min-width: 640px) {
  :root {
    --content-pad: var(--space-6);
  }

  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  :root {
    /* Scale headings up on larger viewports */
    --text-2xl: 2.5rem;
    --text-3xl: 3.5rem;
    --text-4xl: 4.5rem;
  }

  .section {
    padding-block: var(--space-9);
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ------------------------------------------------------------
   9. SECTION HEADINGS — shared kicker + title block
   ------------------------------------------------------------ */
.section__head {
  margin-bottom: var(--space-7);
  text-align: center;
}

.section__head .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}


/* ------------------------------------------------------------
   10. HEADER / BRAND
   ------------------------------------------------------------ */
.site-header {
  padding: var(--space-5) var(--content-pad);
  border-bottom: 1px solid var(--color-rule);
}

/* Header row: brand on the left, language switcher on the right. */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-inline: auto;
  max-width: var(--content-max);
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-cream);
}

.brand:hover {
  color: var(--color-cream);
}

/* Capsule pictogram — soft time-capsule silhouette with a glowing core. */
.brand__mark {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-amber);
  /* Asymmetric radius gives the capsule / seed silhouette */
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: capsule-glow 4s ease-in-out infinite;
}

.brand__mark::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-amber-bright);
  box-shadow: 0 0 12px var(--color-amber);
}

@keyframes capsule-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(224, 164, 88, 0);
  }
  50% {
    box-shadow: 0 0 24px 2px rgba(224, 164, 88, 0.25);
  }
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.03em; /* matches the reference .logo tracking */
  line-height: 1;
}

/* Two-tone syllable emphasis: Ca + a in bright amber, lo in warm rose. */
.syl-ca,
.syl-a {
  color: var(--color-amber-bright);
}

.syl-lo {
  color: var(--color-rose);
}

/* Italic-serif tagline with the Ca / lo / a letters picked out in amber. */
.tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-cream-muted);
}

.tagline b {
  font-style: normal;
  font-weight: 500;
  color: var(--color-amber-bright);
}

.brand__tagline {
  font-size: var(--text-sm);
}

/* Language switcher — minimal "FR / EN" toggle. The active language glows in
   bright amber; the inactive one sits muted until hovered. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  flex: none;
}

.lang-switch__btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-cream-muted);
  background: none;
  border: 0;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.lang-switch__btn:hover {
  color: var(--color-cream);
}

/* Active language — bright amber accent (set via aria-pressed by main.js). */
.lang-switch__btn[aria-pressed="true"] {
  color: var(--color-amber-bright);
  cursor: default;
}

.lang-switch__sep {
  color: var(--color-rule);
  font-size: var(--text-sm);
  user-select: none;
}


/* ------------------------------------------------------------
   11. HERO
   ------------------------------------------------------------ */
.hero {
  text-align: center;
}

.hero__headline {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
}

.hero__subline {
  font-size: var(--text-lg);
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.hero__cta {
  margin-bottom: var(--space-8);
}

.hero__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-rule);
}

.hero__visual img {
  width: 100%;
  object-fit: cover;
}


/* ------------------------------------------------------------
   12. HOW IT WORKS — steps
   ------------------------------------------------------------ */
.steps {
  list-style: none;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-bg);
  background-image: linear-gradient(
    135deg,
    var(--color-amber-bright),
    var(--color-amber)
  );
  border-radius: var(--radius-pill);
}

.step h3 {
  margin-bottom: var(--space-3);
}


/* ------------------------------------------------------------
   13. DEMO GALLERY — responsive video slots
   ------------------------------------------------------------ */
.demo-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* 16:9 responsive frame that holds the lazy-loaded iframe */
.demo-item__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-surface);
  border: 1px solid var(--color-rule);
  box-shadow: var(--shadow-soft);
}

.demo-item__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-item figcaption {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-cream);
  text-align: center;
}


/* ------------------------------------------------------------
   14. PRICING — tier cards
   ------------------------------------------------------------ */
.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: calc(var(--space-4) * -1);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bg);
  background-image: linear-gradient(
    135deg,
    var(--color-amber-bright),
    var(--color-amber)
  );
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-card__name {
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  margin-bottom: var(--space-5);
}

.pricing-card__amount {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-amber-bright);
}

.pricing-card__benefits {
  list-style: none;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-card__benefits li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--color-cream-muted);
}

/* Warm amber check mark before each benefit */
.pricing-card__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-amber);
}

/* Push the CTA to the bottom so cards align on a row */
.pricing-card__cta {
  margin-top: auto;
  width: 100%;
}


/* ------------------------------------------------------------
   15. PRIVACY & TRUST
   ------------------------------------------------------------ */
.privacy {
  text-align: center;
}

.privacy__inner {
  max-width: 720px;
}

.privacy h2 {
  margin-block: var(--space-3) var(--space-5);
}

.privacy__body {
  font-size: var(--text-lg);
  margin-inline: auto;
}


/* ------------------------------------------------------------
   16. FINAL CTA
   ------------------------------------------------------------ */
.final-cta {
  text-align: center;
}

.final-cta__line {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}


/* ------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-rule);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.site-footer__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.03em; /* matches the reference .logo tracking */
  color: var(--color-cream);
}

.site-footer__tagline {
  font-size: var(--text-sm);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
}

.site-footer__copy {
  font-size: var(--text-sm);
}
