/* Copied from 01 Bargly WEB (public/tokens.css and public/components.css). Values are
   verbatim; only the dashes in comments were replaced. Do not edit here: change the
   source in the web repo and copy again. */

/* ============================================================
   BARGLY, DESIGN TOKENS
   Every value below is extracted verbatim from the Figma file
   "Bargly web calude (1).fig" (page: Website-Final-Claude).
   No values are invented; absences are documented in comments.
   ============================================================ */

:root {

  /* ----------------------------------------------------------
     COLOR, base palette
     Source: frame "bargly - colour palette_light" + section fills.
     Note: the palette card labels read DDFF00 / FF00FF / 230F88 /
     F5F4F6 / 0E0330, but every component in the file paints with
     the values below, the component values are kept as canonical.
     ---------------------------------------------------------- */
  --color-lime:      #DEFF00;  /* "Lime"     , rgb(222,255,0)  */
  --color-bloom:     #FF00FE;  /* "Bloom"    , rgb(255,0,254)  */
  --color-violet:    #531CC7;  /* "Violet"   , rgb(83,28,199)  (from the on-light eyebrow) */
  --color-indigo:    #2F21BC;  /* "Indigo"   , rgb(47,33,188)  */
  --color-midnight:  #0E0230;  /* "Midnight" , rgb(14,2,48)    */
  --color-charcoal:  #151517;  /* "Charcoal" , rgb(21,21,23)   */
  --color-cloud:     #F3F3F4;  /* "Cloud"    , rgb(243,243,244)*/
  --color-white:     #FFFFFF;

  /* COLOR, semantic */
  --color-primary:          var(--color-lime);
  --color-secondary:        var(--color-bloom);
  --color-surface:          var(--color-charcoal);      /* page background (dark) */
  --color-surface-nav:      var(--color-midnight);      /* navbar bar */
  --color-surface-light:    var(--color-cloud);         /* light sections */
  --color-surface-glass:    rgba(255, 255, 255, 0.12);  /* status pill fill */
  --color-text-primary:     var(--color-cloud);         /* headings/body on dark */
  --color-text-bright:      var(--color-white);         /* nav links, pill text */
  --color-text-secondary:   rgba(255, 255, 255, 0.45);  /* footer links */
  --color-text-tertiary:    rgba(255, 255, 255, 0.35);  /* footer tagline */
  --color-text-faint:       rgba(255, 255, 255, 0.2);   /* footer col heads, copyright */
  --color-text-accent:      var(--color-lime);          /* highlighted pill text, eyebrows */
  --color-text-on-primary:  var(--color-midnight);      /* text on lime */
  --color-text-on-light:    var(--color-charcoal);      /* text on cloud sections */
  --color-text-eyebrow:         rgba(222, 255, 0, 0.6); /* eyebrow on dark */
  --color-text-eyebrow-light:   #531CC7;                /* eyebrow on light, rgb(83,28,199) */
  --color-text-eyebrow-bloom:   rgba(255, 0, 254, 0.6); /* eyebrow, bloom tint */
  --color-connector:            #D4D4D4;                /* dashed loop connector, rgb(212,212,212) */
  --color-border-faq:           rgba(255, 255, 255, 0.12); /* FAQ hairlines */
  --color-border-table:         rgba(255, 255, 255, 0.08); /* comparison table rows */
  --color-surface-raised:       rgba(255, 255, 255, 0.04); /* price card fill */
  --color-surface-featured:     rgb(26, 26, 29);           /* featured price card inner */
  --color-surface-toggle:       rgba(255, 255, 255, 0.08); /* billing toggle track */
  --color-text-ticker-label:    rgba(14, 2, 48, 0.333); /* ticker category label */
  --color-icon-social:      rgba(255, 255, 255, 0.25);
  --color-border:           rgba(255, 255, 255, 0.2);   /* status pill stroke */
  --color-border-subtle:    rgba(255, 255, 255, 0.06);  /* footer hairline */
  /* State variants (–hover/–active) and status colors (error/success)
     are NOT defined in the Figma file for these frames, so none are
     declared here. Add them to the file first, then extend. */

  /* COLOR, gradients (angles + stops verbatim) */
  --gradient-core:        linear-gradient(111.125deg, #DEFF00 0.31%, #FF00FE 51.2%, #2F21BC 99.23%);
  --gradient-indigo:      linear-gradient(111.125deg, #2D1FB5 0.31%, #100436 99.23%);
  --gradient-footer:      linear-gradient(114.903deg, #2E20B5 0%, #100436 100%);
  --gradient-mark:        linear-gradient(135.992deg, #DEFF00 12.67%, #FF00FE 51%, #2F21BC 87.18%);
  --gradient-mark-purple: linear-gradient(133.433deg, #2E20B9 14%, #0F0333 86.63%);
  --gradient-liquid-hover: linear-gradient(135.992deg, var(--color-lime) 0%, var(--color-bloom) 50%, var(--color-indigo) 100%); /* primary button hover fill (audit fix 1) */

  /* ----------------------------------------------------------
     TYPOGRAPHY
     Primary: Funnel Display (all headings + display type).
     Secondary: Inter (body, ledes, UI). Satoshi: ticker names only.
     ---------------------------------------------------------- */
  --font-family-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;   /* SECONDARY, body, UI, ledes */
  --font-family-display: "Funnel Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* PRIMARY, all headings/display */
  --font-family-accent:  "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* size scale (px values as used in the file) */
  --font-size-xs:  12px;   /* eyebrows, pills, ticker labels, copyright */
  --font-size-sm:  14px;   /* buttons, nav + footer links, ticker */
  --font-size-md:  18px;   /* ledes, body */
  --font-size-md-plus: 24px; /* deal card titles, Funnel SemiBold 24 from the file */
  --font-size-lg:  34px;   /* card titles */
  --font-size-xl:  64px;   /* feature/step titles, loop quote */
  --font-size-2xl: 94px;   /* hero + section headings (hero token merged, audit fix 2) */
  --font-size-3xl: 196px;  /* CTA banner display */

  /* line heights (paired to the scale) */
  --line-height-xs:       16px;
  --line-height-sm:       20px;
  --line-height-md:       32px;
  --line-height-md-snug:  29.25px;   /* long body paragraph, local-world lede */
  --line-height-md-loose: 27px;      /* ticker separator glyph */
  --line-height-md-plus:  32px;      /* deal card titles */
  --line-height-lg:       38.454px;
  --line-height-xl:       64px;
  --line-height-2xl:      94px;
  --line-height-3xl:      100%;

  /* font weights */
  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-black:    900;

  /* letter spacing */
  --letter-spacing-caps:       1.2px;     /* eyebrows, ticker labels */
  --letter-spacing-sm:         -0.15px;   /* 14px UI text */
  --letter-spacing-md:         -0.439px;  /* 18px body */
  --letter-spacing-display:    -3px;      /* 64px + 94px headings */
  --letter-spacing-display-lg: -0.04em;   /* 196px display */

  /* ----------------------------------------------------------
     SPACING, single scale; every value appears in the file
     ---------------------------------------------------------- */
  --space-1:  6px;    /* pill padding-block */
  --space-2:  8px;    /* button gap, pill text gap */
  --space-3:  12px;   /* pill padding-inline, navbar action gap, card text gap */
  --space-4:  16px;   /* button-group gap, ticker padding-block, social gap */
  --space-5:  20px;   /* footer paragraph padding */
  --space-6:  24px;   /* container padding, button padding-inline */
  --space-7:  32px;   /* nav link gap */
  --space-8:  40px;   /* ticker item gap, card title offset */
  --space-9:  42px;   /* section-header gap */
  --space-10: 62px;   /* card grid gap */
  --space-11: 64px;   /* footer copyright offset */
  --space-12: 120px;  /* CTA banner padding-inline */
  --space-13: 150px;  /* section padding-block + section gap */
  --space-14: 240px;  /* section padding-inline (at full 1958px design width) */

  /* ----------------------------------------------------------
     BORDER RADIUS
     ---------------------------------------------------------- */
  --radius-sm:   12px;    /* small buttons (navbar) */
  --radius-md:   16px;    /* secondary buttons */
  --radius-lg:   18px;    /* primary buttons */
  --radius-xl:   24px;    /* palette swatch cards */
  --radius-full: 9999px;  /* status pills, dots (16777200 in file) */

  /* ----------------------------------------------------------
     SHADOWS
     The landing-page frames use flat fills with no drop shadows.
     The only shadow colour anywhere in the file is
     rgba(14,2,48,0.18) (product-mockup frames); kept as a base
     token. No shadow-sm/md/lg exist in the file, none invented.
     ---------------------------------------------------------- */
  --shadow-color: rgba(14, 2, 48, 0.18);
  --shadow-inset-toggle: inset 0 2px 6px rgba(0, 0, 0, 0.35); /* billing toggle depth */

  /* ----------------------------------------------------------
     LAYOUT / BREAKPOINTS
     The file is a 1958px desktop design. Containers from the file:
       --container-nav: 1280px (navbar + footer container)
       --container-content: 1416px (section content width)
     Breakpoint tokens (for reference, custom properties cannot be
     used inside @media): xl 1280 (file container), lg 1024,
     md 768, sm 640. Only 1280 is file-derived; the rest are
     standard fallbacks used for graceful degradation.
     ---------------------------------------------------------- */
  --container-nav:     1280px;
  --container-content: 1416px;
  --navbar-height:     84px;
}

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

body {
  margin: 0;
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  font-family: var(--font-family-sans);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-md);
  letter-spacing: var(--letter-spacing-md);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-text-accent);
}

h1, h2, h3, h4, p, ul {
  margin: 0;
}

.logo {
  display: inline-flex;
}

.logo__image {
  width: 156.946px;
  height: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  letter-spacing: var(--letter-spacing-sm);
  white-space: nowrap;
}

.button:hover {
  color: inherit; /* buttons keep their own colors over the base a:hover */
}

.button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.button:active {
  scale: 0.98;
}

.button--secondary:hover,
.button--ghost:hover {
  background-color: var(--color-surface-glass);
}

.button--primary {
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary); /* keeps primary the same 52px height as secondary */
  color: var(--color-text-on-primary);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-lg);
  padding: 14px var(--space-6);
  height: 52px;
}

.button--primary:hover {
  color: var(--color-text-on-primary);
}

.button--secondary {
  border: 2px solid var(--color-cloud);
  color: var(--color-cloud);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  padding: 14px var(--space-6);
  height: 52px;
}

.button--secondary:hover {
  color: var(--color-cloud);
}

.button--ghost {
  color: var(--color-text-bright);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  height: 36px;
}

.button--ghost:hover {
  background-color: var(--color-surface-glass);
}

.button--sm {
  height: 36px;
  border-width: 0;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
}

.eyebrow {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-xs);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-text-eyebrow);
}

.text-gradient {
  background: var(--gradient-core);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  /* Gradient text (background-clip:text) clips descenders (g/j/p/ń) and the
     last glyph's right edge (e.g. "de", "Od"). Pad the gradient box out, then
     cancel the bottom pad so spacing to surrounding text is unchanged. */
  padding-inline: 0.08em;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-9);
  text-align: center;
  max-width: var(--container-content);
  margin-inline: auto;
}

.section-header__title {
  font-family: var(--font-family-display);
  font-size: min(var(--font-size-2xl), 8vw);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: var(--letter-spacing-display);
  color: var(--color-text-primary);
  white-space: pre-line;
}

.section-header__lede {
  max-width: 576px;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-md);
  letter-spacing: var(--letter-spacing-md);
  color: var(--color-text-primary);
}

.section-header__lede--snug {
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-md-snug);
  white-space: pre-line;
}

.button-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--navbar-height);
  background-color: var(--color-surface-nav);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__container {
  width: 100%;
  max-width: var(--container-nav);
  padding-inline: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section {
  padding: var(--space-13) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-13);
}

/* Responsive rules, copied from the same file for the components above. */
@media (max-width: 1024px) {
  .navbar__links {
    display: none;
  }

  .section {
    padding-block: 96px;
    gap: 96px;
  }
}

@media (max-width: 640px) {
  .button-group {
    flex-direction: column;
    align-items: stretch;
  }

  .button-group .button {
    width: 100%;
  }
}

/* Policy page components, copied from the same file. */
.legal {
  background-color: var(--color-surface-light);
  color: var(--color-text-on-light);
  padding: 120px var(--space-6) var(--space-13);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legal__doc {
  width: 100%;
  max-width: 760px;
}

.legal__doc h1 {
  font-family: var(--font-family-display);
  font-size: min(var(--font-size-xl), 9vw);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-xl);
  letter-spacing: var(--letter-spacing-display);
  margin-bottom: var(--space-4);
}

.legal__meta {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  letter-spacing: var(--letter-spacing-sm);
  color: rgba(21, 21, 23, 0.55);
  margin-bottom: var(--space-8);
}

.legal__doc h2 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-lg);
  letter-spacing: normal;
  margin: 56px 0 var(--space-4);
}

.legal__doc p,
.legal__doc li {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-md);
  letter-spacing: var(--letter-spacing-md);
  margin-bottom: var(--space-4);
}

.legal__doc ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal__doc li {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-md);
  letter-spacing: var(--letter-spacing-md);
  margin-bottom: var(--space-4);
}

.legal__doc hr {
  border: none;
  border-top: 1px solid rgba(21, 21, 23, 0.12);
  margin: var(--space-8) 0;
}

.legal a:hover {
  color: #2D1FB4;
}
