/* ============================================================
   G14 - apostasbonushoje.com (PT, SRIJ)
   Main stylesheet: design tokens, base, layout, utilities.
   Visual system: Stripe-inspired (deep navy, Stripe purple, white).
   Methodology: BEM (block__element--modifier).
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Source+Code+Pro:wght@500;700&display=swap");

@import "blocks/topstrip.css";
@import "blocks/header.css";
@import "blocks/hero.css";
@import "blocks/ranking.css";
@import "blocks/info.css";
@import "blocks/legal.css";
@import "blocks/footer.css";
@import "blocks/cookie.css";
@import "blocks/polish.css";

/* --- Design tokens (Stripe-style palette) ------------------ */
:root {
  /* Surfaces */
  --c-bg:           #ffffff;        /* page background, primary surface */
  --c-bg-muted:    #f6f9fc;         /* very light surface for soft sections */
  --c-bg-dark:     #1c1e54;         /* deep indigo brand section */

  /* Text */
  --c-heading:     #061b31;         /* deep navy headings */
  --c-label:       #273951;         /* labels / strong body */
  --c-body:        #64748d;         /* body text, slate */
  --c-muted:       #8898aa;         /* tertiary / captions */
  --c-on-dark:     #ffffff;         /* text on dark sections */
  --c-on-dark-soft: rgba(255, 255, 255, 0.78);

  /* Brand purple (Stripe) */
  --c-purple:      #533afd;         /* primary CTA */
  --c-purple-hover:#4434d4;
  --c-purple-light:#b9b9f9;
  --c-purple-tint: #d6d9fc;
  --c-purple-bg:   rgba(83, 58, 253, 0.05);

  /* Lines */
  --c-border:      #e5edf5;
  --c-border-soft: #f0f4f8;

  /* States */
  --c-success:     #15be53;
  --c-success-text:#108c3d;
  --c-success-bg:  rgba(21, 190, 83, 0.12);
  --c-success-border: rgba(21, 190, 83, 0.4);
  --c-warn:        #b6321c;

  /* Decorative (gradients only) */
  --c-ruby:        #ea2261;
  --c-magenta:     #f96bee;

  /* Typography families */
  --ff-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-mono:    "Source Code Pro", ui-monospace, "SFMono-Regular", "Menlo", monospace;

  /* Font sizes — Stripe hierarchy */
  --fs-hero:     clamp(2.4rem, 3.4vw + 1rem, 3.5rem); /* 56px display */
  --fs-display:  clamp(2rem,   2.4vw + 1rem, 3rem);   /* 48px display */
  --fs-section:  clamp(1.6rem, 1.4vw + 0.9rem, 2rem); /* 32px section */
  --fs-sub:      clamp(1.25rem, 0.6vw + 0.9rem, 1.625rem); /* 22-26px */
  --fs-large:    1.125rem;  /* 18px body large */
  --fs-body:     1rem;      /* 16px */
  --fs-small:    0.875rem;  /* 14px */
  --fs-cap:      0.8125rem; /* 13px caption */
  --fs-mono:     0.75rem;   /* 12px mono */

  /* Rhythm */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Conservative radii (Stripe is square-ish) */
  --r-1: 4px;
  --r-2: 6px;
  --r-3: 8px;

  /* Stripe signature multi-layer blue-tinted shadows */
  --shadow-sm: rgba(50, 50, 93, 0.10) 0px 4px 8px -4px,
               rgba(0, 0, 0, 0.05) 0px 2px 4px -2px;
  --shadow-md: rgba(50, 50, 93, 0.18) 0px 12px 24px -12px,
               rgba(0, 0, 0, 0.08) 0px 6px 12px -6px;
  --shadow-lg: rgba(50, 50, 93, 0.25) 0px 30px 45px -30px,
               rgba(0, 0, 0, 0.10) 0px 18px 36px -18px;
  --shadow-xl: rgba(50, 50, 93, 0.30) 0px 50px 80px -40px,
               rgba(0, 0, 0, 0.15) 0px 22px 44px -22px;

  /* Decorative gradient (hero blob) */
  --grad-ruby: linear-gradient(135deg, var(--c-ruby) 0%, var(--c-magenta) 100%);

  --container: 1080px;
  --container-narrow: 760px;
}

/* --- Reset & base ----------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-wrap: break-word; word-wrap: break-word; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01", "cv11";
}

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

a {
  color: var(--c-purple);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--c-purple-hover); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--ff-body);
  color: var(--c-heading);
  font-weight: 300; /* whisper-weight signature */
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-hero); line-height: 1.03; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-section); line-height: 1.10; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-sub); line-height: 1.20; letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; line-height: 1.30; font-weight: 500; letter-spacing: -0.005em; }

p  { margin: 0 0 var(--sp-4); color: var(--c-body); }
ul { padding-left: 1.2rem; }

strong { color: var(--c-label); font-weight: 500; }

/* Tabular numerics utility (numbers, ratings, prices) */
.num,
.tabular { font-variant-numeric: tabular-nums; }

/* Mono code/numbers */
.mono {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0;
}

/* --- Layout primitives ------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: clamp(1.1rem, 3vw, 2rem);
  margin-inline: auto;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--c-bg-muted); }
.section--ink {
  background: var(--c-bg-dark);
  color: var(--c-on-dark);
}
.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--c-on-dark); }
.section--ink p { color: var(--c-on-dark-soft); }

/* Section eyebrow — small uppercase mono-ish tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  color: var(--c-purple);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-3);
  line-height: 2;
}
.section--ink .eyebrow { color: var(--c-purple-light); }

/* Buttons (conservative, 4px radius — NOT pill) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-1);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: var(--fs-small);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-purple);
  color: #ffffff;
  border-color: var(--c-purple);
}
.btn--primary:hover {
  background: var(--c-purple-hover);
  border-color: var(--c-purple-hover);
  color: #ffffff;
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--c-purple);
  border-color: var(--c-purple-light);
}
.btn--ghost:hover {
  background: var(--c-purple-bg);
  color: var(--c-purple-hover);
  border-color: var(--c-purple-light);
  text-decoration: none;
}
.section--ink .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.section--ink .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

/* Generic neutral pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 6px;
  height: 20px;
  background: #ffffff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-1);
  font-size: 11px;
  font-weight: 400;
  color: #000000;
  line-height: 1;
}

/* Success badge */
.badge--success {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 1px 6px;
  background: var(--c-success-bg);
  color: var(--c-success-text);
  border: 1px solid var(--c-success-border);
  border-radius: var(--r-1);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
}

/* Accessibility helpers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--c-purple);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

::selection { background: var(--c-purple-light); color: var(--c-heading); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -1000px;
  top: 0.5rem;
  background: var(--c-bg-dark);
  color: #ffffff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-1);
  font-size: var(--fs-small);
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; }

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