/* ==========================================================================
   CleverShares marketing one-pager — shared stylesheet
   Dark "1E" design direction. Ported from the design handoff (inline styles
   → reusable classes). Loaded by both index.html (EN) and index-da.html (DA).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --cs-page: #0C1420;
  --cs-alt: #0A121D;
  --cs-spotlight: #08131C;
  --cs-card: #12202E;
  --cs-float: #1A2A3A;
  --cs-chip: #14212F;

  /* Brand */
  --cs-orange: #FF5701;
  --cs-orange-hover: #E64A00;
  --cs-orange-light: #FF7A33;
  --cs-orange-lighter: #FF9A5C;
  --cs-orange-tint: rgba(255, 87, 1, .14);

  --cs-green: #329365;
  --cs-green-text: #6FC79E;
  --cs-green-bright: #35A574;
  --cs-green-tint: rgba(50, 147, 101, .14);

  --cs-negative: #FF8C7A;

  /* Text */
  --cs-text: #EAF1F8;
  --cs-text-2: #A9B8C8;
  --cs-muted: #94A3B4;
  --cs-muted-2: #8A99AB;
  --cs-faint: #78899B;
  --cs-faint-2: #6C7C8E;
  --cs-chip-text: #C6D2DE;

  /* Hairlines */
  --cs-line-card: rgba(255, 255, 255, .09);
  --cs-line-soft: rgba(255, 255, 255, .06);
  --cs-line-ribbon: rgba(255, 255, 255, .18);
  --cs-line-divider: rgba(255, 255, 255, .08);

  /* Shadows */
  --cs-shadow-card: 0 40px 90px -40px rgba(0, 0, 0, .75);
  --cs-shadow-float: 0 24px 48px -16px rgba(0, 0, 0, .85);
  --cs-shadow-cta: 0 14px 30px -10px rgba(255, 87, 1, .55);

  /* Motion */
  --cs-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Brand font (Regular 400 only; Source Sans 3 covers 500–900) ---------- */
@font-face {
  font-family: 'Myriad Pro';
  src: url('/brand/MyriadPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--cs-page);
  color: var(--cs-text);
  font-family: 'Myriad Pro', 'Source Sans 3', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--cs-orange); color: #fff; }
input::placeholder { color: var(--cs-faint-2); }

a { color: inherit; }

img { max-width: 100%; }

/* Keyboard focus — never remove the outline (design system rule) */
:focus-visible {
  outline: 2px solid var(--cs-orange);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -48px;
  background: var(--cs-orange);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* Anchored sections stop below the sticky header instead of sliding under it */
section[id] { scroll-margin-top: 86px; }

/* ---------- Layout ---------- */
/* Single 1440px cap for the whole page (nav + main + footer), centred — the
   design mock was built as one 1440px column. Beyond 1440px the sides fall
   back to the body colour (same --cs-page), so it reads seamlessly. */
.page {
  max-width: 1440px;
  margin: 0 auto;
}

.section {
  padding: 92px 72px;
}
.section--alt { background: var(--cs-alt); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cs-orange-light);
  margin: 0;
}

.accent { color: var(--cs-orange-light); }

.two-col {
  display: grid;
  gap: 56px;
  align-items: center;
}
.two-col--hero { grid-template-columns: 1.4fr .8fr; gap: 60px; }
.two-col--wide-left { grid-template-columns: 1.4fr .8fr; }
.two-col--benefits { grid-template-columns: 1fr .8fr; align-items: end; }
.two-col--spotlight { grid-template-columns: .85fr 1.15fr; }
.two-col--join { grid-template-columns: 1.1fr .9fr; gap: 52px; }

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

.h2 {
  /* Fluid: 31px on small phones → 44px at the 1440 design width */
  font-size: clamp(31px, 3.4vw, 44px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--cs-text);
  margin: 16px 0 0;
  text-wrap: balance;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--cs-text-2);
  margin: 20px 0 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  border-radius: 999px;
  transition: background .15s var(--cs-ease), transform .12s var(--cs-ease), border-color .15s var(--cs-ease);
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--cs-orange);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  box-shadow: var(--cs-shadow-cta);
}
.btn--primary:hover { background: var(--cs-orange-hover); }

.btn--sm {
  font-size: 15px;
  padding: 11px 20px;
  box-shadow: 0 10px 22px -8px rgba(255, 87, 1, .5);
}

/* ---------- Cards ---------- */
.card {
  background: var(--cs-card);
  border: 1px solid var(--cs-line-card);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--cs-shadow-card);
}
.card--rel { position: relative; }

/* Floating badge cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--cs-float);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--cs-shadow-float);
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cs-chip);
  border: 1px solid var(--cs-line-divider);
  color: var(--cs-chip-text);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cs-green-bright);
}

/* ==========================================================================
   NAV / HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 72px;
  border-bottom: 1px solid var(--cs-line-soft);
  background: rgba(12, 20, 32, .72);
  transition: background .25s var(--cs-ease), backdrop-filter .25s var(--cs-ease);
}
/* Blur/opacity treatment once scrolled past the hero (toggled in main.js) */
.site-header.scrolled .site-nav {
  background: rgba(12, 20, 32, .8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark {
  height: 34px;
  width: 34px;
  object-fit: contain;
  border-radius: 9px;
}
.brand__name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--cs-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: var(--cs-text-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s var(--cs-ease);
}
.nav-links a:hover { color: var(--cs-text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Language switcher (circular flag toggles) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-flag {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
  flex-shrink: 0;
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-flag:hover { transform: scale(1.1); border-color: var(--cs-orange); }
.lang-flag.active { border-color: var(--cs-orange); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: radial-gradient(1100px 520px at 82% -12%, rgba(255, 87, 1, .16), transparent 58%), var(--cs-page);
  padding: 80px 72px 90px;
}
.hero__title {
  /* Fluid: 36px on small phones → 62px at the 1440 design width */
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--cs-text);
  margin: 0;
  text-wrap: balance;
}
.hero__lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--cs-text-2);
  margin: 24px 0 0;
  max-width: 62ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Progress card (hero) */
.mock-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cs-faint);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cs-orange-tint);
  color: var(--cs-orange-lighter);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}
.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-row.goal { margin-top: 18px; }
.card-row .goal-title { color: var(--cs-text); font-weight: 700; font-size: 15px; }
.card-row .goal-xp { color: var(--cs-faint); font-size: 13px; font-weight: 600; }
.progress-bar {
  margin-top: 10px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cs-orange), var(--cs-green));
  border-radius: 999px;
}
.tiles-2 {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tile {
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--cs-line-divider);
}
.tile--green {
  background: var(--cs-green-tint);
  border-color: rgba(50, 147, 101, .32);
}
.tile__k { font-size: 12px; font-weight: 700; color: var(--cs-faint); }
.tile--green .tile__k { color: var(--cs-green-text); }
.tile__v { font-size: 19px; font-weight: 800; color: var(--cs-text); margin-top: 3px; }
.tile__v--green { color: var(--cs-green-text); }
.emoji { line-height: 1; flex-shrink: 0; }
.emoji--24 { font-size: 24px; }
.emoji--26 { font-size: 26px; }

.up-next {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  padding: 12px 14px;
}
.up-next__left { display: flex; align-items: center; gap: 11px; }
.up-next__k { color: var(--cs-faint); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.up-next__v { color: var(--cs-text); font-size: 14px; font-weight: 700; margin-top: 2px; }
.link-arrow { color: var(--cs-orange-lighter); font-size: 13px; font-weight: 700; white-space: nowrap; }

.float--progress { left: -8px; bottom: -22px; }
.float__title { color: var(--cs-text); font-size: 14px; font-weight: 800; }
.float__sub { color: var(--cs-faint); font-size: 12px; }

/* ==========================================================================
   STAT RIBBONS
   ========================================================================== */
.ribbon {
  padding: 36px 72px;
  border-top: 1px solid var(--cs-line-ribbon);
  border-bottom: 1px solid var(--cs-line-ribbon);
  background: var(--cs-alt);
}
.ribbon__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cs-orange-light);
  text-align: center;
  margin: 0 0 22px;
}
.ribbon__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat + .stat { border-left: 1px solid var(--cs-line-divider); }
.stat__num {
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--cs-green-text);
  line-height: 1;
}
.stat__label {
  color: var(--cs-muted-2);
  font-size: 14px;
  margin-top: 8px;
}

/* ==========================================================================
   FEATURE CARD GRIDS (challenge / benefits)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 72px;
  margin-top: 56px;
}
.feature-grid--approach {
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 48px;
}
.feature-grid--benefits { margin-top: 48px; }

.feature h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--cs-text);
  margin: 16px 0 0;
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cs-muted);
  margin: 10px 0 0;
}
.feature--approach p { margin-top: 8px; }

.icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--cs-orange-tint);
}
.icon-tile--green {
  background: rgba(50, 147, 101, .16);
  color: var(--cs-green-text);
  font-weight: 800;
}
.icon-tile--glyph { color: var(--cs-orange-lighter); font-weight: 800; }

/* ---------- "My portfolio" card (challenge) ---------- */
.portfolio-wrap { position: relative; margin: 8px 8px 24px 0; }
.portfolio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 22px;
}
.portfolio__head { display: flex; align-items: center; gap: 13px; }
.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(50, 147, 101, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-green-bright);
  flex-shrink: 0;
}
.portfolio__name { flex: 1; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--cs-text); }
.portfolio__total { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--cs-text); line-height: 1; }
.delta-green { color: var(--cs-green-text); font-weight: 700; }
.delta-red { color: var(--cs-negative); font-weight: 700; }

.holding {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, .04);
  border-radius: 14px;
  padding: 12px;
}
.logo-tile {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-weight: 800;
  font-size: 13px;
}
.logo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  background: #fff;
}
.holding__name { flex: 1; }
.holding__name b { font-size: 15px; font-weight: 800; color: var(--cs-text); display: block; }
.holding__name small { font-size: 12px; color: var(--cs-faint); }
.holding__val { text-align: right; }
.holding__val b { font-size: 15px; font-weight: 800; color: var(--cs-text); display: block; }
.holding__val small { font-size: 12px; font-weight: 700; }

.float--portfolio { right: -12px; bottom: -20px; padding: 12px 18px 12px 12px; }
.float__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-green-bright);
  flex-shrink: 0;
}
.float__big { font-size: 17px; font-weight: 800; color: var(--cs-green-text); line-height: 1; }

/* ---------- "Alex / Henriette" card (approach) ---------- */
.persona { border-radius: 24px; padding: 24px; }
.float--streak { top: -16px; right: -8px; padding: 10px 16px; }
.float--streak .float__k { color: var(--cs-orange-lighter); font-size: 16px; font-weight: 800; }
.float--streak .float__s { color: var(--cs-faint); font-size: 13px; font-weight: 600; }
.persona__head { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(50, 147, 101, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-green-text);
  flex-shrink: 0;
}
.persona__name { color: var(--cs-text); font-size: 19px; font-weight: 800; }
.persona__role { color: var(--cs-faint); font-size: 14px; }
.tiles-3 {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tile-c {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--cs-line-divider);
  border-radius: 16px;
  padding: 18px 10px;
  text-align: center;
}
.tile-c--green {
  background: var(--cs-green-tint);
  border-color: rgba(50, 147, 101, .3);
}
.tile-c__v { color: var(--cs-text); font-size: 14px; font-weight: 700; margin-top: 9px; }
.tile-c--green .tile-c__v { color: var(--cs-green-text); }

/* ---------- "Learning progress" card (benefits) ---------- */
.learning { border-radius: 22px; }
.float--rank { top: -16px; right: -8px; padding: 10px 16px; }
.float--rank .float__k { color: var(--cs-text); font-size: 16px; font-weight: 800; }
.float--rank .float__s { color: var(--cs-faint); font-size: 13px; font-weight: 600; }
.learn-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.learn-tile {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--cs-line-divider);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.learn-tile--green {
  background: var(--cs-green-tint);
  border-color: rgba(50, 147, 101, .3);
}
.learn-tile__v { font-size: 22px; font-weight: 800; line-height: 1; color: var(--cs-text); }
.learn-tile__v--orange { color: var(--cs-orange-lighter); }
.learn-tile__v--green { color: var(--cs-green-text); }
.learn-tile__k { color: var(--cs-faint); font-size: 12px; margin-top: 3px; }

/* ==========================================================================
   COMPOUNDING SPOTLIGHT
   ========================================================================== */
.spotlight {
  padding: 80px 72px;
  background: radial-gradient(900px 420px at 18% 0%, rgba(50, 147, 101, .22), transparent 60%), var(--cs-spotlight);
  border-top: 1px solid var(--cs-line-soft);
}
.spotlight__big {
  font-size: clamp(64px, 9.6vw, 132px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--cs-green-bright);
  line-height: .86;
  margin-top: 14px;
}
.spotlight__lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--cs-text);
  font-weight: 700;
  margin: 18px 0 0;
}
.spotlight__sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cs-text-2);
  margin: 12px 0 0;
}
.spotlight__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.spot-card {
  background: var(--cs-card);
  border: 1px solid var(--cs-line-card);
  border-radius: 18px;
  padding: 26px;
}
.spot-card--wide {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 18px;
}
.spot-card__num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--cs-text);
  line-height: 1;
  flex-shrink: 0;
}
.spot-card__label {
  color: var(--cs-muted-2);
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.4;
}
.spot-card--wide .spot-card__label { margin-top: 0; }

/* Small right-aligned assumptions note under the compounding cards */
.spotlight__note {
  margin: 26px 0 0;
  text-align: right;
  font-size: 12.5px;
  line-height: 1.5;
  color: #A8B2BD; /* silver — deliberately non-intrusive */
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 44px;
}
.faq-head .lead { margin: 16px auto 0; max-width: 54ch; }
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}
.faq {
  border-bottom: 1px solid var(--cs-line-divider);
}
.faq > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 6px;
  color: var(--cs-text);
  font-size: 18px;
  font-weight: 700;
}
.faq > summary::-webkit-details-marker { display: none; }
.faqmark {
  color: var(--cs-orange-light);
  font-size: 26px;
  font-weight: 300;
  flex-shrink: 0;
  display: inline-block;
  transition: transform .22s var(--cs-ease);
}
.faq[open] .faqmark { transform: rotate(45deg); }
.faq__body {
  padding: 0 6px 22px;
  color: var(--cs-text-2);
  font-size: 16px;
  line-height: 1.65;
  /* fills the full accordion width (no narrow cap) so answers use the space
     to the left of the +/× toggle instead of leaving it empty */
}

/* ==========================================================================
   JOIN / EARLY ACCESS
   ========================================================================== */
.join-card {
  background: radial-gradient(700px 340px at 85% 12%, rgba(255, 87, 1, .2), transparent 62%), var(--cs-card);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  padding: 56px 60px;
}
.join__chips { display: flex; gap: 10px; margin-bottom: 18px; }
.join__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--cs-chip-text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.join__title {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--cs-text);
  margin: 0;
  text-wrap: balance;
}
.join__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cs-text-2);
  margin: 18px 0 0;
}
.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}
.reassure span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cs-chip-text);
  font-size: 14px;
  font-weight: 600;
}

.form-card {
  background: var(--cs-page);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 28px;
}
.form-card label {
  display: block;
  color: var(--cs-faint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.input-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  background: var(--cs-alt);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 4px 4px 4px 16px;
  transition: border-color .15s var(--cs-ease);
}
.input-wrap:focus-within { border-color: var(--cs-orange); }
.input-wrap.invalid { border-color: var(--cs-negative); }
.input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cs-text);
  font-size: 15px;
  font-family: inherit;
  padding: 12px 0;
}
.form-card .btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
  padding: 15px;
}
.form-card .btn--success { background: var(--cs-green); box-shadow: none; }
.form-error {
  color: var(--cs-negative);
  font-size: 13px;
  margin: 8px 2px 0;
  min-height: 1em;
}
.form-fine {
  text-align: center;
  color: var(--cs-faint);
  font-size: 13px;
  margin: 14px 0 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 56px 72px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: var(--cs-alt);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-logo { height: 38px; object-fit: contain; flex-shrink: 0; }
.footer-contact {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
  color: var(--cs-muted-2);
  font-size: 17px;
}
.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cs-muted-2);
  text-decoration: none;
  transition: color .15s var(--cs-ease);
}
.footer-contact a:hover { color: var(--cs-text); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { color: var(--cs-faint-2); font-size: 14px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  color: var(--cs-text-2);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s var(--cs-ease);
}
.footer-legal a:hover { color: var(--cs-text); }

/* ==========================================================================
   RESPONSIVE — four tiers below the 1440px design width
   (display type is fluid via clamp(); these tiers handle layout + spacing)

     ≤1280  compact desktop  — small/medium tablets landscape
     ≤1024  grid steps       — large-tablet portrait / small-tablet landscape
     ≤960   stacked          — phones landscape + tablets portrait
     ≤640   phones portrait  — and tiny landscape
   ========================================================================== */

@media (max-width: 1280px) {
  .section { padding: 80px 48px; }
  .hero { padding: 64px 48px 76px; }
  .ribbon { padding: 32px 48px; }
  .spotlight { padding: 64px 48px; }
  .site-nav { padding: 18px 36px; }
  .nav-links { gap: 24px; }
  .site-footer { padding: 48px 48px; }

  /* Keep the two-column sections, but guarantee the mockup/form column enough
     width to render without cramming — the copy column absorbs the difference.
     (Fixed fr-ratios were letting the card column collapse to ~300px.) */
  .two-col--hero,
  .two-col--wide-left { grid-template-columns: 1.3fr minmax(340px, .9fr); gap: 44px; }
  .two-col--benefits { grid-template-columns: 1.1fr minmax(340px, .9fr); gap: 44px; }
  .two-col--spotlight { gap: 44px; }
  .two-col--join { gap: 40px; }

  .feature-grid { gap: 40px 44px; }
  /* 4 approach columns get too narrow below the design width */
  .feature-grid--approach { grid-template-columns: repeat(2, 1fr); gap: 36px 44px; }
}

/* 1080 (not 1024) so 1024-wide tablets sit safely inside the tier — media
   queries at an exact device width can miss by a fraction of a pixel. */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .section { padding: 64px 36px; }
  .hero { padding: 52px 36px 64px; }
  .ribbon { padding: 30px 36px; }
  .spotlight { padding: 56px 36px; }
  .site-footer { padding: 44px 36px; }
  .site-nav { padding: 16px 28px; }
  .nav-links { display: none; }

  /* Stack every two-column section: copy first, visual after */
  .two-col,
  .two-col--hero,
  .two-col--wide-left,
  .two-col--benefits,
  .two-col--spotlight,
  .two-col--join {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .two-col--hero .card--rel,
  .two-col--wide-left .portfolio-wrap,
  .two-col--wide-left .card--rel,
  .two-col--benefits .card--rel { order: 2; }

  /* Stacked mockup cards shouldn't stretch edge-to-edge on wide-but-stacked
     screens (landscape phones, portrait tablets) — cap and center them. */
  .two-col--hero .card--rel,
  .two-col--wide-left .portfolio-wrap,
  .two-col--wide-left .card--rel,
  .two-col--benefits .card--rel { width: 100%; max-width: 560px; margin-inline: auto; }
  .two-col--join .form-card { width: 100%; max-width: 480px; margin-inline: auto; }
  .join-card { padding: 44px 36px; }

  .ribbon__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 16px;
    max-width: 640px;
    margin: 0 auto;
  }
  .stat:nth-child(odd) { border-left: none; }

  /* Once the columns stack, fill the width instead of balancing headings —
     text-wrap:balance leaves ragged empty space to the right of the heading.
     (Use `wrap` — plain greedy wrapping — not `normal`, which is not a valid
     text-wrap value and would be ignored.) */
  .hero__title, .h2, .join__title { text-wrap: wrap; }
}

/* 700 (not 640) so 640-wide and 667-wide landscape phones sit safely inside
   the phone tier rather than straddling its boundary. */
@media (max-width: 700px) {
  .section { padding: 56px 20px; }
  .hero { padding: 44px 20px 56px; }
  .ribbon { padding: 26px 20px; }
  .spotlight { padding: 48px 20px; }
  .site-nav { padding: 14px 20px; gap: 12px; }
  .site-footer { padding: 40px 20px; }
  .join-card { padding: 36px 22px; }

  /* Compact the header so the CTA is proportional to the logomark/wordmark/flags
     and everything stays on one row on phones. */
  .brand__name { font-size: 18px; }
  .brand__mark { height: 30px; width: 30px; }
  .nav-right { gap: 10px; }
  .lang-switch { gap: 6px; }
  .lang-flag { width: 24px; height: 24px; }
  .site-nav .btn--sm { font-size: 13px; padding: 8px 13px; box-shadow: 0 8px 16px -8px rgba(255, 87, 1, .5); }

  .two-col,
  .two-col--hero,
  .two-col--wide-left,
  .two-col--benefits,
  .two-col--spotlight,
  .two-col--join { gap: 36px; }

  /* Body copy a notch smaller for phone line lengths */
  .hero__lead { font-size: 17px; }
  .lead { font-size: 17px; }
  .spotlight__lead { font-size: 18px; }
  .spotlight__sub { font-size: 15px; }
  .faq > summary { font-size: 17px; padding: 18px 4px; }

  .feature-grid,
  .feature-grid--approach { grid-template-columns: 1fr; gap: 30px; }
  .spotlight__cards { grid-template-columns: 1fr; }
  .spot-card--wide { grid-column: span 1; }
  .spot-card { padding: 20px; }
  .spot-card__num { font-size: 32px; }
  .ribbon__grid { gap: 22px 12px; }

  /* Scale the four mockup-card visuals down on phones so their content fits the
     narrower cards without cramping (the ribbon numbers already shrink; these
     did not — text like "+150 XP" was wrapping). */
  .card, .persona { padding: 18px; }
  .portfolio__total { font-size: 22px; }
  .emoji--24 { font-size: 20px; }
  .emoji--26 { font-size: 22px; }
  .tile { padding: 12px; }
  .tile__v { font-size: 17px; }
  .tile-c__v { font-size: 13px; }
  .learn-tile { padding: 13px; }
  .learn-tile__v { font-size: 19px; }

  /* The corner badges overlap the card corners by design; give the two cards
     whose badge sits over content a little extra bottom padding so the badge
     lands on empty card surface, not on the last row's values. */
  .two-col--hero .card--rel { padding-bottom: 38px; }
  .portfolio { padding-bottom: 34px; }

  /* Footer: stack tidily at phone widths */
  .footer-top { gap: 20px; }
  .footer-contact { gap: 14px 24px; font-size: 15px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Floating badges keep their designed absolute positioning on mobile too, so
     they overlap the card corners (not docked below it). Their offsets (≤12px)
     sit within the 20px side-padding, so they never cause a horizontal scrollbar. */
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
