/* ===========================
   TYPOGRAPHY SYSTEM — Yellow/Grey (YCColor)
   Applies to: .defaultH1 .defaultH2 .defaultH3 .defaultH4 .defaultP, li, section spacing
   Rules:
   - smallest paragraph: 16px
   - labels: 14px
   - pixel-perfect steps for every breakpoint
=========================== */

/* ---------- Base tokens (colors + rhythm) ---------- */
:root{
  /* palette from image */
  --c-ink: #41444B;
  --c-ink-2: #52575D;
  --c-muted: rgba(82,87,93,.86);
  --c-muted-2: rgba(82,87,93,.72);
  --c-accent: #FDDB3A;
  --c-base: #F6F4E6;
  --c-white: #FFFFFF;

  /* typography */
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* rhythm (desktop default) */
  --lh-h1: 1.06;
  --lh-h2: 1.10;
  --lh-h3: 1.18;
  --lh-h4: 1.22;
  --lh-p:  1.70;

  --sp-1: 6px;
  --sp-2: 10px;
  --sp-3: 14px;
  --sp-4: 18px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;

  /* helpers */
  --text-shadow-soft: 0 18px 44px rgba(65,68,75,.10);
}

/* ---------- Resets for consistency ---------- */
.defaultH1, .defaultH2, .defaultH3, .defaultH4,
.defaultP, li{
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* lists should not inherit huge spacing from browser defaults */
ul, ol{
  margin: 0;
  padding-left: 1.15em;
}
li{
  margin: 0;
  padding: 0;
}
section{
  padding-block: 40px;
}

/* ---------- Labels (14px) ---------- */
.label,
.chip,
.pill,
.tier-label{
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-ink);
}

/* ---------- H1 ---------- */
.defaultH1{
  font-family: var(--font-head);
  font-size: 60px;              /* desktop */
  line-height: var(--lh-h1);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
}

/* ---------- H2 ---------- */
.defaultH2{
  margin: 0 0 var(--sp-4);
  font-family: var(--font-head);
  font-size: 32px !important;              /* desktop */
  line-height: var(--lh-h2);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--c-ink);

  /* subtle accent underline (instead of neon gradient) */
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.defaultH2::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(253,219,58,.65);
  z-index: -1;
}

/* ---------- H3 ---------- */
.defaultH3{
  margin: 0 0 var(--sp-2);
  font-family: var(--font-body);
  font-size: 24px;              /* desktop */
  line-height: var(--lh-h3);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

/* ---------- H4 ---------- */
.defaultH4{
  margin: 0 0 var(--sp-2);
  font-family: var(--font-body);
  font-size: 20px;              /* desktop */
  line-height: var(--lh-h4);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--c-ink-2);
}

/* ---------- Paragraph + list text ---------- */
.defaultP,
li{
  font-family: var(--font-body);
  font-size: 18px;              /* desktop */
  line-height: var(--lh-p);
  font-weight: 500;
  color: var(--c-muted);
}

/* keep paragraphs visually airy, but controlled */
.defaultP{
  margin: 0 0 var(--sp-4);
}

/* ---------- Sections spacing ---------- */


.left section{
  padding: 14px 0 !important;
  margin-bottom: 0 !important;
}

/* Headings inside sections */
section h2{
  margin-top: 0 !important;
  margin-bottom: var(--sp-4) !important;
}

section h2 + p{
  margin: 0 !important;
  margin-bottom: var(--sp-4) !important;
}

.left-title{
  margin-block: 40px;
}

/* ===========================
   RESPONSIVE — Pixel steps
   (Every breakpoint has explicit px sizes)
=========================== */

/* Large desktop */
@media (max-width: 1400px){
  .defaultH1{ font-size: 46px; }
  .defaultH2{ font-size: 31px; }
  .defaultH3{ font-size: 23px; }
  .defaultH4{ font-size: 19px; }
  .defaultP, li{ font-size: 17px; }
}

/* Desktop / laptop */
@media (max-width: 1100px){
  :root{
    --sp-4: 16px;
    --sp-5: 22px;
    --sp-6: 28px;
  }

  .defaultH1{ font-size: 40px; line-height: 1.08; }
  .defaultH2{ font-size: 28px; line-height: 1.12; }
  .defaultH3{ font-size: 22px; line-height: 1.20; }
  .defaultH4{ font-size: 18px; line-height: 1.25; }
  .defaultP, li{ font-size: 16px; line-height: 1.72; }  /* min paragraph size */

 
  .left section{ padding: 12px 0 !important; }
  section h2{ margin-bottom: 16px !important; }
  section h2 + p{ margin-bottom: 16px !important; }

  /* label rule stays 14px */
}

/* Tablet */
@media (max-width: 900px){
  .defaultH1{ font-size: 36px; }
  .defaultH2{ font-size: 30px; }
  .defaultH3{ font-size: 24px; }
  .defaultH4{ font-size: 18px; }
  .defaultP, li{ font-size: 16px; }

  .left-title{ margin-block: 32px; }
}

/* Small tablet / big phone */
@media (max-width: 700px){
  :root{
    --sp-3: 12px;
    --sp-4: 14px;
    --sp-5: 18px;
  }

  .defaultH1{ font-size: 45px; line-height: 1.10; }
  .defaultH2{ font-size: 24px; line-height: 1.14; }
  .defaultH3{ font-size: 20px; }
  .defaultH4{ font-size: 18px; }
  .defaultP, li{ font-size: 16px; line-height: 1.75; }

  .defaultH2::after{ display: none; }
}

/* Phones */
@media (max-width: 500px){
  .defaultH1{ font-size: 35px !important; }
  .defaultH2{ font-size: 30px !important; }
  .defaultH3{ font-size: 24px !important; }
  .defaultH4{ font-size: 18px !important; }
  .defaultP, li{ font-size: 16px !important; }

  .left section{ padding: 10px 0 !important; }
  .left-title{ margin-block: 26px; }
}

/* Very small phones */
@media (max-width: 380px){
  .defaultH1{ font-size: 26px !important; }
  .defaultH2{ font-size: 20px !important; }
  .defaultH3{ font-size: 18px !important; }
  .defaultH4{ font-size: 17px !important; }
  .defaultP, li{ font-size: 16px !important; }
}
