/* =========================================================
   CertainTeed — Watch Parties Registration Landing
   Pixel-perfect to Figma at 1440px viewport.
   Tokens:
     Secondary (Blue):  #005EB8
     Primary (Off-w.):  #FBFBFB
     Color 1 (Gray):    #636466
     Color 2 (Light):   #F1F1F1
     Color 3 (Gray):    #6F6F6F
     Color 5 (Cream):   #EDE8E0
     Color 6 (Border):  #C1C1C1
   ========================================================= */

:root {
  --blue: #005EB8;
  --blue-dark: #004a93;
  --primary: #FBFBFB;
  --cream: #EDE8E0;
  --gray-1: #636466;
  --gray-2: #F1F1F1;
  --gray-3: #6F6F6F;
  --gray-6: #C1C1C1;
  --container: 1342px;
  --radius-card: 24px;
  --radius-input: 16px;
  --font-sans: "Gotham", "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-1);
  background: var(--primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.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;
}

/* =========================================================
   Header — 1440 base: CT logo x=117 y=39, EDGE x=1014 y=52, SRS x=1200 y=35
   ========================================================= */
.site-header {
  background: var(--primary);
}
.site-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 35px 117px 39px 117px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 105px;
}
.site-header__logo {
  display: block;
  margin-top: 4px;
}
.site-header__logo img {
  height: 66px;
  width: 286px;
  display: block;
  object-fit: contain;
}
.site-header__partners {
  display: flex;
  align-items: flex-start;
  gap: 34px;
  padding-top: 0;
}
.partner { width: auto; object-fit: contain; display: block; }
.partner--edge {
  height: 53px;
  margin-top: 17px;
}
.partner--srs {
  height: 70px;
  margin-top: 0;
}

/* =========================================================
   Banner — 1440 base: x=49 y=112 w=1342 h=694
   ========================================================= */
.banner {
  background: var(--primary);
  padding-bottom: 60px;
}
.banner__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 49px;
  position: relative;
}

.banner__card {
  position: relative;
  width: 100%;
  height: 540px;
  isolation: isolate;
  overflow: visible;
}

.banner__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Title at x=112 y=161 → x=63 y=49 within card */
.banner__content {
  position: absolute;
  left: 63px;
  top: 49px;
  width: 582px;
  z-index: 2;
  color: var(--primary);
}

.banner__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 50px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px;
  width: 556px;
}
.banner__title-row { display: block; }
.banner__title strong { font-weight: 800; }

.banner__lead {
  font-size: 22px;
  line-height: 1.11;
  margin: 0;
  font-weight: 500;
  color: var(--primary);
  width: 520px;
}
.banner__lead strong { font-weight: 400; }

/* Badge at x=603 y=255 w=335 h=342 → within card x=554 y=143 */
.banner__badge {
  position: absolute;
  z-index: 3;
  left: 554px;
  top: 143px;
  width: 335px;
  height: 342px;
  pointer-events: none;
}

/* Player at x=801 y=112 w=551 h=684 → within card x=752 y=0
   Player extends below the 540-tall card into the cream area. */
.banner__player {
  position: absolute;
  z-index: 2;
  left: 752px;
  top: 0;
  width: 551px;
  height: 684px;
  object-fit: contain;
  object-position: center bottom;
}

/* Note section BELOW the blue card, in cream body background.
   Icon at banner y=435 overlaps the card bottom-edge (card ends at y=540).
   Text at banner y=576 sits below the card. */
.banner__note {
  position: relative;
  margin-top: -105px;
  width: 100%;
  height: 200px;
  z-index: 4;
}
.banner__note-icon {
  position: absolute;
  left: 138px;
  top: 0;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  z-index: 5;
}
.banner__note-icon img {
  width: 103px;
  height: 97px;
  object-fit: contain;
}
.banner__note-text {
  position: absolute;
  left: 63px;
  top: 141px;
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: var(--blue);
  font-weight: 500;
  width: 592px;
  z-index: 5;
}
.banner__note-text strong { font-weight: 400; }

/* =========================================================
   Form Section — 1440 base: heading y=931, image y=825 to 1607
   ========================================================= */
.form-section {
  position: relative;
  background: var(--primary);
  overflow: hidden;
}
.form-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  height: 720px;
  padding: 0 49px;
}
.form-section__overline {
  position: absolute;
  left: 85px;
  top: 11px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 152px;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--cream);
  opacity: 0.55;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Image at x=165 y=825 w=540 h=784 → relative to section x=116 y=0 */
.form-section__visual {
  position: absolute;
  left: 116px;
  top: 0;
  width: 540px;
  height: 784px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}
.form-section__visual img {
  width: 540px;
  height: auto;
  max-height: 784px;
  display: block;
  object-fit: contain;
}

/* Icon at x=138 y=977 w=151 → relative to section x=89 y=152 */
.form-section__icon {
  position: absolute;
  left: 89px;
  top: 152px;
  width: 151px;
  height: 151px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  z-index: 3;
}
.form-section__icon img {
  width: 122px;
  height: 96px;
  object-fit: contain;
}

/* Heading at x=683 y=106 (relative section). Within heading frame: text full-width */
.form-section__content {
  position: absolute;
  left: 683px;
  top: 106px;
  width: 600px;
  z-index: 2;
}

.form-section__title {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 47.5px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 19px;
  text-align: center;
  width: 600px;
  color: var(--gray-1);
}
.form-section__title-gray { display: inline; color: var(--gray-1); }
.form-section__title-blue { display: inline; color: var(--blue); }

/* Form at x=732 y=1079 → relative to section x=683 y=254 → within content x=0 y=148 */
.watch-party-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 588px;
  margin: 19px 0 0;
}
.form-row { display: flex; width: 100%; }
.form-row--split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
}
.form-col { display: flex; width: 100%; }

.watch-party-form input[type="text"],
.watch-party-form input[type="email"],
.watch-party-form input[type="tel"] {
  width: 100%;
  height: 60px;
  background: transparent;
  border: 1px solid var(--gray-6);
  border-radius: var(--radius-input);
  padding: 16px 20px;
  font: inherit;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--gray-3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.watch-party-form #company {
  border-color: var(--blue);
  color: var(--blue);
}

.form-col--email input {
  background: var(--cream);
  border-color: transparent;
  border-radius: 10px;
  color: var(--gray-1);
}

.watch-party-form input::placeholder { color: inherit; opacity: 1; }

.watch-party-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.18);
  color: var(--blue);
}
.form-col--email input:focus { background: #fff; }

.submit-btn {
  margin-top: 0;
  background: var(--blue);
  color: var(--primary);
  border: 0;
  border-radius: var(--radius-input);
  height: 57px;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.submit-btn:hover  { background: var(--blue-dark); }
.submit-btn:active { transform: translateY(1px); }

/* Check heading at y=1387 → relative section y=562 → within content y=456 */
.check-heading {
  margin: 36px 0 0;
  padding-left: 17px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-1);
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.check-group {
  border: 0; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  padding-left: 17px;
}
.check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 2.06;
  color: var(--blue);
  font-weight: 500;
  user-select: none;
}
.check-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.check-item__mark {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gray-6);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.check-item input:checked + .check-item__mark {
  background: var(--blue);
}
.check-item input:checked + .check-item__mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.check-item input:focus-visible + .check-item__mark {
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.25);
}

/* =========================================================
   Footer — Parallelogram from BG.svg: 1341x360, slanted right.
   Top edge x=38-1168, bottom edge x=173-1302.
   ========================================================= */
.site-footer {
  background: var(--primary);
  padding: 0 49px 60px;
}
.site-footer__inner {
  max-width: 1341px;
  margin: 0 auto;
  position: relative;
  height: 360px;
  color: var(--primary);
}
.site-footer__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Heading at relative footer x=77 y=29 — badge 190 + disclaimer */
.site-footer__top {
  position: absolute;
  left: 126px;
  top: 29px;
  width: 1100px;
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 48px;
  z-index: 1;
}
.site-footer__badge {
  width: 190px;
  height: auto;
}
.site-footer__disclaimer {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  max-width: 720px;
  color: var(--primary);
}
.site-footer__disclaimer strong { font-weight: 400; }

/* Brand logos centered horizontally, between disclaimer and copyright */
.site-footer__brands {
  position: absolute;
  left: 0;
  right: 0;
  top: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 0 24px;
  z-index: 1;
}
.site-footer__brand {
  height: 50px;
  width: auto;
  opacity: 1;
}
.site-footer__brand--ct {
  height: 48px;
  filter: brightness(0) invert(1);
}
.site-footer__brand:nth-child(2) {
  filter: brightness(0) invert(1);
}

/* Downbar (copyright) — Inter Regular 16px, with top border */
.site-footer__copyright {
  position: absolute;
  left: 214px;
  right: 214px;
  bottom: 28px;
  margin: 0;
  padding-top: 28px;
  font-family: "Inter", "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: var(--gray-2);
  border-top: 1px solid rgba(241, 241, 241, 0.35);
  font-weight: 400;
  z-index: 1;
}

/* =========================================================
   Responsive — Tablet (1300px and below)
   ========================================================= */
@media (max-width: 1300px) {
  .banner__inner { padding: 0 24px; }
  .banner__card { height: 540px; }
  .banner__shape { display: block; }
  .banner__content { left: 56px; top: 40px; width: 480px; }
  .banner__title { font-size: 40px; }
  .banner__lead { font-size: 18px; width: auto; max-width: 420px; }
  .banner__badge { left: 38%; top: 110px; width: 260px; height: auto; }
  .banner__player { left: 53%; top: 0; width: 47%; height: 540px; }
  .banner__note { padding: 32px 56px 40px; grid-template-columns: 100px 1fr; margin-top: 0; gap: 24px; }
  .banner__note-icon { width: 100px; height: 100px; }
  .banner__note-icon img { width: 80px; height: 76px; }
  .banner__note-text { font-size: 18px; width: auto; max-width: 100%; }

  .site-header__inner { padding: 24px 24px; }
  .site-header__logo img { height: 52px; width: auto; }
  .partner--edge { height: 40px; margin-top: 8px; }
  .partner--srs  { height: 56px; }

  .form-section__inner { padding: 0 24px; height: auto; min-height: 720px; }
  .form-section__overline { left: 60px; font-size: 120px; }
  .form-section__visual { left: 60px; width: 460px; height: auto; }
  .form-section__visual img { width: 460px; max-height: 680px; }
  .form-section__icon { left: 30px; top: 120px; }
  .form-section__content { left: 560px; right: 24px; width: auto; top: 80px; }
  .form-section__title { font-size: 38px; width: auto; }
  .watch-party-form { width: 100%; }

  .site-footer { padding: 0 24px 40px; }
  .site-footer__inner { height: auto; min-height: 320px; padding-bottom: 60px; }
  .site-footer__top { position: relative; left: auto; top: auto; padding: 28px 36px; width: 100%; }
  .site-footer__brands { position: relative; top: auto; padding: 14px 24px; }
  .site-footer__copyright { position: relative; left: auto; right: auto; bottom: auto; margin: 0 36px; padding-top: 16px; }
}

/* Hidden by default — shown only on mobile.
   Higher specificity to override .form-section__visual img display:block */
img.form-section__mobile-badge { display: none; }

/* =========================================================
   Responsive — Mobile (760px and below)
   Matches Figma mobile design (105:402) at 360px viewport
   ========================================================= */
@media (max-width: 760px) {
  .site-header__inner {
    padding: 19px 15px;
    gap: 8px;
    min-height: 0;
  }
  .site-header__logo img { height: 28px; width: auto; }
  .site-header__partners { gap: 14px; }
  .partner--edge { height: 22px; margin-top: 4px; }
  .partner--srs  { height: 26px; }

  /* =====================================================
     BANNER MOBILE — Figma at (15, 70), 330 × 439
     ===================================================== */
  .banner { padding-bottom: 0; }
  .banner__inner { padding: 0 15px; }
  .banner__card {
    height: 439px;
    background: var(--blue);
    border-radius: var(--radius-card);
    position: relative;
    overflow: hidden;
  }
  .banner__shape { display: none; }

  /* Cream scoop cutout at bottom-left for icon + Després text */
  .banner__card::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 230px;
    height: 175px;
    background: var(--primary);
    border-radius: 0 100% 0 0 / 0 100% 0 0;
    z-index: 1;
  }

  /* Title at Figma (40, 76) → relative (25, 6) */
  .banner__content {
    position: absolute;
    padding: 0;
    left: 25px;
    top: 6px;
    width: 280px;
    z-index: 3;
  }
  .banner__title { font-size: 24px; line-height: 1.07; margin-bottom: 10px; width: auto; }
  .banner__lead { font-size: 13px; line-height: 1.25; width: 245px; font-weight: 500; }
  .banner__lead strong { font-weight: 700; }

  /* Badge at Figma (89, 222) → relative (74, 152) */
  .banner__badge {
    position: absolute;
    left: 74px;
    top: 152px;
    width: 152px;
    height: auto;
    transform: none;
    z-index: 4;
  }

  /* Player at Figma (185, 216) → relative (170, 146) */
  .banner__player {
    position: absolute;
    left: 170px;
    right: auto;
    top: 146px;
    width: 157px;
    height: 290px;
    z-index: 3;
  }

  .banner__note { position: static; height: auto; margin: 0; }

  /* Icon at Figma (34, 349) → relative (19, 279) — inside cream cutout */
  .banner__note-icon {
    position: absolute;
    left: 19px;
    top: 279px;
    width: 50px;
    height: 50px;
    background: var(--cream);
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 5;
  }
  .banner__note-icon img { width: 41px; height: 39px; }

  /* Text at Figma (34, 343) → relative (19, 343) — inside cream cutout */
  .banner__note-text {
    position: absolute;
    left: 19px;
    top: 343px;
    font-size: 12px;
    line-height: 1.3;
    width: 180px;
    color: var(--blue);
    font-weight: 500;
    z-index: 5;
  }
  .banner__note-text strong { font-weight: 700; }

  /* =====================================================
     FORM SECTION MOBILE
     Form container is 305 wide centered. Heading is 236 wide.
     ===================================================== */
  .form-section { padding: 60px 15px 24px; overflow: hidden; }
  .form-section__inner {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
    height: auto;
    min-height: 0;
    gap: 0;
    align-items: center;
  }

  /* WATCH PARTY backdrop — Figma 38.87px, opacity 0.4 */
  .form-section__overline {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    font-size: 38.87px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--cream);
    opacity: 0.4;
    margin: 0 0 -8px;
    text-align: center;
    z-index: 0;
  }

  /* Heading content — width 236, font 31.424px Gotham Regular, NOT bold */
  .form-section__content {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    padding: 0;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .form-section__title {
    font-size: 31.4px;
    line-height: 1.2;
    margin: 0 0 19px;
    text-align: center;
    width: 236px;
    letter-spacing: 0;
    font-weight: 400;
    font-family: var(--font-sans);
  }
  /* Inline spans on mobile — text wraps naturally inside 236px width */
  .form-section__title-gray { display: inline; color: var(--gray-1); }
  .form-section__title-blue { display: inline; color: var(--blue); font-weight: 400; }

  /* Form container — 305 wide, centered */
  .watch-party-form {
    width: 305px;
    max-width: 100%;
    gap: 16px;
    margin: 0 auto;
  }

  /* Inputs: 14.5px font on mobile, NOT 18px */
  .watch-party-form input[type="text"],
  .watch-party-form input[type="email"],
  .watch-party-form input[type="tel"] {
    font-size: 14.5px;
  }
  .submit-btn { font-size: 18px; }

  /* On mobile: stack into single column, Phone before Email */
  .form-row--split {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .form-row--split .form-col--email { order: 2; }
  .form-row--split .form-col:not(.form-col--email) { order: 1; }

  /* "Marca si quieres conocer..." — 16px Gotham Medium gray, NO underline on mobile,
     and Figma adds ":" at end on mobile */
  .check-heading {
    padding-left: 0;
    margin: 24px 0 6px;
    font-size: 16px;
    text-align: left;
    width: 305px;
    align-self: center;
    text-decoration: none;
    color: var(--gray-1);
  }
  .check-heading::after { content: ":"; }
  .check-group {
    padding-left: 0;
    margin-top: 0;
    width: 305px;
    align-self: center;
  }
  .check-item {
    gap: 14px;
    font-size: 14px;
    line-height: 2.06;
  }
  .check-item__mark {
    width: 18px;
    height: 18px;
  }
  .check-item input:checked + .check-item__mark::after {
    width: 8px;
    height: 8px;
  }

  /* Cream circle icon — Figma 79.458×79.458, shown above the player image */
  .form-section__icon {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 79px;
    height: 79px;
    margin: 60px 0 -30px 33px;
    align-self: flex-start;
    order: 2;
    z-index: 2;
  }
  .form-section__icon img { width: 64px; height: 50px; }

  /* Player image + Campeones badge below */
  .form-section__visual {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    order: 3;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
  }
  .form-section__visual img { width: 100%; max-width: 331px; height: auto; margin: 0 auto; }
  img.form-section__mobile-badge {
    display: block;
    width: 145px;
    height: auto;
    margin: -50px auto 0;
    position: relative;
    z-index: 2;
  }

  /* =====================================================
     FOOTER MOBILE — simpler stacked layout
     ===================================================== */
  .site-footer { padding: 0 8px 16px; }
  .site-footer__inner {
    height: auto;
    min-height: 0;
    padding: 24px 28px 60px;
    background: var(--blue);
    border-radius: 24px;
    position: relative;
    max-width: 100%;
  }
  /* Hide the parallelogram SVG on mobile */
  .site-footer__bg { display: none; }
  /* Hide the desktop badge — mobile badge is in form-section__mobile-badge */
  .site-footer__badge { display: none; }

  .site-footer__top {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    display: block;
    text-align: center;
    margin: 0 0 18px;
    padding: 0;
  }
  .site-footer__disclaimer {
    font-size: 14px;
    max-width: 260px;
    line-height: 1.4;
    margin: 0 auto;
  }

  /* Brand logos: CT centered on top, EDGE | SRS below */
  .site-footer__brands {
    position: relative;
    top: auto;
    padding: 14px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "ct ct"
      "edge srs";
    gap: 14px 18px;
    place-items: center;
  }
  .site-footer__brand--ct {
    grid-area: ct;
    height: 28px;
  }
  .site-footer__brand:nth-child(2) {
    grid-area: edge;
    height: 26px;
    justify-self: end;
  }
  .site-footer__brand:nth-child(3) {
    grid-area: srs;
    height: 28px;
    justify-self: start;
  }

  .site-footer__copyright {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    font-size: 10px;
    padding-top: 14px;
    margin: 14px 0 0;
    border-top: 1px solid rgba(241, 241, 241, 0.35);
  }
}
