/* ==========================================================================
   Crisp Finance S.à r.l. — brand stylesheet
   Palette & type per "Crisp — Brand guidelines v2025 1.0"
   Electric Blue #0700FE · Onyx #04082D · Slate #4A5668 · Light Slate #7F90A3
   Gray #D6DBE1 · Cloud #F2F5F7 · White #FFFFFF
   Headlines: Clash Grotesk Semibold/Bold · Body: Graphik → grotesque fallback
   ========================================================================== */

@font-face {
  font-family: "Clash Grotesk";
  src: url("fonts/ClashGrotesk-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("fonts/ClashGrotesk-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("fonts/ClashGrotesk-Semibold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("fonts/ClashGrotesk-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --electric: #0700FE;
  --onyx: #04082D;
  --slate: #4A5668;
  --light-slate: #7F90A3;
  --gray: #D6DBE1;
  --cloud: #F2F5F7;
  --white: #FFFFFF;

  --display: "Clash Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--onyx);
  background: var(--cloud);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--onyx);
}

a { color: var(--electric); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: var(--electric);
  margin: 0 0 18px;
}
.eyebrow.on-dark { color: var(--gray); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,245,247,0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .brand img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  color: var(--onyx);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--electric); text-decoration: none; }
.nav-links a.active { color: var(--electric); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--electric);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* slice motif echoing the logotype fragmentation */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0) 0 92px,
    rgba(255,255,255,0.06) 92px 94px
  );
  pointer-events: none;
}
.hero-inner { position: relative; padding: clamp(64px,10vw,128px) 0 clamp(56px,8vw,104px); }
.hero h1 {
  color: var(--white);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  max-width: 16ch;
}
.hero p.lede {
  color: rgba(255,255,255,0.88);
  font-size: clamp(18px, 2.1vw, 23px);
  max-width: 56ch;
  margin: 26px 0 0;
  line-height: 1.5;
}
.hero .actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: 15px;
  padding: 14px 26px; border-radius: 2px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--onyx); color: var(--white); }
.btn-primary:hover { background: #0a1247; }
.btn-light { background: var(--white); color: var(--onyx); }
.btn-light:hover { background: var(--cloud); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-outline { border-color: var(--onyx); color: var(--onyx); }
.btn-outline:hover { background: var(--onyx); color: var(--white); }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-light { background: var(--cloud); }
.section-white { background: var(--white); }
.section-onyx { background: var(--onyx); color: var(--gray); }
.section-onyx h1, .section-onyx h2, .section-onyx h3 { color: var(--white); }

.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--slate); font-size: 19px; margin: 14px 0 0; }
.section-onyx .section-head p { color: var(--light-slate); }

.lead-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.lead-2col p { margin: 0 0 18px; color: var(--slate); font-size: 18px; }
.section-onyx .lead-2col p { color: var(--gray); }

/* ---------- Stat / highlight cards ---------- */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 3px;
  padding: 30px 26px;
}
.section-onyx .card { background: #070c33; border-color: #141a47; }
.card .k {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 42px); color: var(--electric);
  line-height: 1; letter-spacing: -0.02em;
}
.card .l { margin-top: 10px; font-size: 15px; color: var(--slate); }
.section-onyx .card .l { color: var(--light-slate); }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--slate); font-size: 15.5px; }
.section-onyx .card p { color: var(--light-slate); }

/* ---------- Terms table ---------- */
.terms { background: var(--white); border: 1px solid var(--gray); border-radius: 3px; overflow: hidden; }
.terms-row {
  display: grid; grid-template-columns: 270px 1fr;
  border-top: 1px solid var(--gray);
}
.terms-row:first-child { border-top: none; }
.terms-row .t-key {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--slate);
  padding: 20px 26px; background: var(--cloud);
}
.terms-row .t-val { padding: 20px 26px; color: var(--onyx); font-size: 16.5px; }
.terms-row .t-val strong { font-weight: 600; }

/* key facts strip */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--gray); border-radius: 3px; overflow: hidden;
  background: var(--white);
}
.fact { padding: 26px; border-left: 1px solid var(--gray); }
.fact:first-child { border-left: none; }
.fact .fk { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--light-slate); font-family: var(--display); font-weight: 600; }
.fact .fv { font-family: var(--display); font-weight: 600; font-size: clamp(20px,2.2vw,26px); margin-top: 8px; color: var(--onyx); letter-spacing: -0.01em; }

/* ---------- Risk / disclaimer ---------- */
.notice {
  background: var(--white); border: 1px solid var(--gray);
  border-left: 3px solid var(--electric);
  border-radius: 3px; padding: 28px 30px;
}
.notice h3 { font-size: 18px; }
.notice p, .notice li { color: var(--slate); font-size: 14.5px; line-height: 1.6; }
.notice ul { margin: 0; padding-left: 20px; }
.notice li { margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px,5vw,64px); align-items: start; }
.contact-block { margin-bottom: 34px; }
.contact-block .label { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--electric); margin-bottom: 8px; }
.contact-block .value { font-size: 18px; color: var(--onyx); }
.contact-block .value a { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--onyx); color: var(--light-slate); padding: 64px 0 40px; }
.site-footer .f-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img.f-logo { height: 24px; margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--display); font-weight: 600; margin-bottom: 14px; }
.site-footer a { color: var(--gray); display: block; margin-bottom: 8px; font-size: 15px; }
.site-footer a:hover { color: var(--white); }
.site-footer p { font-size: 14px; color: var(--light-slate); margin: 6px 0; }
.f-bottom { border-top: 1px solid #141a47; margin-top: 44px; padding-top: 24px; font-size: 13px; color: var(--light-slate); }
.f-bottom .disclaimer { max-width: 100%; line-height: 1.55; }

/* ---------- IR: next-event cards ---------- */
.next-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.next-card {
  background: var(--white); border: 1px solid var(--gray); border-radius: 3px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.next-card .date { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--onyx); letter-spacing: -0.01em; }
.next-card .desc { font-size: 14.5px; color: var(--slate); }

/* pills */
.badge {
  display: inline-block; font-family: var(--display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; width: fit-content;
}
.badge-coupon { background: rgba(7,0,254,0.10); color: var(--electric); }
.badge-nav { background: var(--gray); color: var(--slate); }

/* ---------- IR: price cards ---------- */
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price-card {
  background: var(--white); border: 1px solid var(--gray); border-radius: 3px;
  padding: 30px 28px;
}
.price-card .p-label { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--light-slate); }
.price-card .p-pct { font-family: var(--display); font-weight: 600; font-size: clamp(38px,5vw,52px); line-height: 1; color: var(--electric); margin: 12px 0 4px; letter-spacing: -0.02em; }
.price-card .p-abs { font-size: 15px; color: var(--slate); }
.price-card .p-sub { font-size: 13px; color: var(--light-slate); margin-top: 6px; }

/* provider credit */
.provider {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 26px; padding: 16px 20px;
  background: var(--white); border: 1px solid var(--gray); border-radius: 3px;
}
.provider .p-txt { font-size: 14px; color: var(--slate); }
.provider a.p-logo { display: inline-flex; align-items: center; }
.provider a.p-logo img { height: 26px; width: auto; display: block; }

/* NAV latest block */
.nav-latest {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--white); border: 1px solid var(--gray); border-radius: 3px; padding: 32px;
}
.nav-latest .nav-num { font-family: var(--display); font-weight: 600; font-size: clamp(30px,4vw,44px); color: var(--onyx); letter-spacing: -0.02em; }
.nav-latest .nav-pending { font-family: var(--display); font-weight: 600; font-size: clamp(22px,3vw,30px); color: var(--light-slate); }
.nav-latest .nav-meta { color: var(--slate); font-size: 15.5px; }

/* ---------- IR: calendar table ---------- */
.cal { background: var(--white); border: 1px solid var(--gray); border-radius: 3px; overflow: hidden; }
.cal-row { display: grid; grid-template-columns: 190px 150px 1fr; border-top: 1px solid var(--gray); align-items: center; }
.cal-row:first-child { border-top: none; }
.cal-row.head { background: var(--cloud); }
.cal-row.head > div { font-family: var(--display); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--light-slate); padding: 14px 24px; }
.cal-row > div { padding: 15px 24px; font-size: 16px; }
.cal-row .c-date { font-family: var(--display); font-weight: 600; color: var(--onyx); }
.cal-row .c-desc { color: var(--slate); font-size: 15px; }
.cal-row.past { opacity: 0.5; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .lead-2col { grid-template-columns: 1fr; }
  .cards, .cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .next-cards { grid-template-columns: repeat(2, 1fr); }
  .price-cards { grid-template-columns: 1fr; }
  .nav-latest { grid-template-columns: 1fr; gap: 14px; }
  .cal-row { grid-template-columns: 130px 1fr; }
  .cal-row .c-desc { display: none; }
  .cal-row.head > div:nth-child(3) { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .f-top { grid-template-columns: 1fr 1fr; }
  .terms-row { grid-template-columns: 1fr; }
  .terms-row .t-key { background: var(--cloud); }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--cloud); border-bottom: 1px solid var(--gray);
    flex-direction: column; gap: 0; align-items: stretch;
    padding: 8px var(--gutter) 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--gray); }
  .nav-links a:first-child { border-top: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--onyx); display: block; }
}
@media (max-width: 520px) {
  .cards, .cards.cols-3, .facts, .next-cards { grid-template-columns: 1fr; }
  .fact { border-left: none; border-top: 1px solid var(--gray); }
  .fact:first-child { border-top: none; }
  .site-footer .f-top { grid-template-columns: 1fr; }
}
