/**
 * IPTV From Canada — pages/free-trial.css
 * The six free-trial sections (/iptv-free-trial/).
 *
 *   1. Request form        (ifc-tr)  charcoal
 *   2. What is included    (ifc-ti)  warm white
 *   3. What to test        (ifc-tt)  charcoal
 *   4. How it works        (ifc-ts)  warm white
 *   5. FAQ                           components/faq.css
 *   6. Final CTA           (ifc-tc)  warm white
 *
 * Tokens, containers, buttons, links and the fold artwork all come from
 * general.css; the shared fade for the fold layers lives there too. One
 * stylesheet serves all six so a page built from the shortcodes never loads
 * six near-identical files.
 */

/* --------------------------------------------------------------------------
   Shared: fold artwork layers
   Each section clips its own layer. The horizontal fade is applied centrally
   in general.css, alongside every other fold layer in the theme.
   -------------------------------------------------------------------------- */

.ifc-tr,
.ifc-ti,
.ifc-tt,
.ifc-ts,
.ifc-tc {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

.ifc-tr__folds,
.ifc-ti__folds,
.ifc-tt__folds,
.ifc-ts__folds,
.ifc-tc__folds {
  position: absolute;
  z-index: 0;
  inset-block: 0;
  width: min(420px, 34%);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  pointer-events: none;
}

/* Dark sections carry the artwork on the right, light ones on the left, so
   the page alternates rather than stacking folds in one margin. */
.ifc-tr__folds,
.ifc-tt__folds {
  inset-inline-end: 0;
  background-image: url("../../brand/backgrounds/fold-hero-dark.svg");
  opacity: .5;
}

.ifc-ti__folds,
.ifc-ts__folds,
.ifc-tc__folds {
  inset-inline-start: 0;
  background-image: url("../../brand/backgrounds/fold-hero-light.svg");
  opacity: .2;
  transform: scaleX(-1);
  transform-origin: center;
}

.ifc-tr__inner,
.ifc-ti__inner,
.ifc-tt__inner,
.ifc-ts__inner,
.ifc-tc__inner {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   1. Request form (ifc-tr) — charcoal
   The introduction sits ABOVE the card, never beside it, so the form keeps
   the full container width at every size.
   -------------------------------------------------------------------------- */

.ifc-tr {
  padding-block: 44px;
  background: var(--ifc-ink);
  color: var(--ifc-paper);
}

.ifc-scope .ifc-tr__heading {
  margin: 0;
  font-family: var(--ifc-font);
  font-size: clamp(1.875rem, 1.35rem + 2.1vw, 3rem);   /* 30 -> 48 px */
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
  color: var(--ifc-paper);
}

.ifc-scope .ifc-tr__lead {
  margin: 18px 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ifc-text-dim);
}

.ifc-scope .ifc-tr__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ifc-tr__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ifc-paper-soft);
}

.ifc-scope .ifc-tr__badge-icon {
  width: 22px;
  height: 22px;
  color: var(--ifc-action);
}



/* --------------------------------------------------------------------------
   2. What is included (ifc-ti) — warm white
   -------------------------------------------------------------------------- */

.ifc-ti {
  padding-block: 44px;
  background: var(--ifc-paper);
  color: var(--ifc-ink);
}

/* Centred above the FULL three-card grid. The old 22ch cap broke a 43-
   character heading in two long before it ran out of room; 900 px lets it
   hold one line on desktop and wrap by itself on narrower screens. The cards
   below keep their left-aligned icons, titles and text. */
.ifc-scope .ifc-ti__heading {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--ifc-font);
  font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-align: center;
  text-wrap: balance;
  color: var(--ifc-ink);
}

.ifc-scope .ifc-ti__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.ifc-ti__card {
  padding: 22px;
  border: 1px solid var(--ifc-line);
  border-radius: 12px;
  background: var(--ifc-surface);
}

.ifc-ti__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ifc-action);
}

.ifc-scope .ifc-ti__icon-svg {
  width: 100%;
  height: 100%;
}

.ifc-scope .ifc-ti__card-title {
  margin: 14px 0 0;
  font-family: var(--ifc-font);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ifc-ink);
}

.ifc-scope .ifc-ti__card-text {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ifc-muted);
}

/* --------------------------------------------------------------------------
   3. What to test (ifc-tt) — charcoal, typographic only
   -------------------------------------------------------------------------- */

.ifc-tt {
  padding-block: 44px;
  background: var(--ifc-ink);
  color: var(--ifc-paper);
}

.ifc-tt__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.ifc-scope .ifc-tt__heading {
  margin: 0;
  font-family: var(--ifc-font);
  font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
  color: var(--ifc-paper);
}

.ifc-scope .ifc-tt__lead {
  max-width: 46ch;
  margin: 16px 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ifc-text-dim);
}

.ifc-scope .ifc-tt__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ifc-tt__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding-block: 20px;
}

/* Hairlines between rows only, so the last row has no trailing rule. */
.ifc-tt__row + .ifc-tt__row {
  border-block-start: 1px solid var(--ifc-white-a10);
}

.ifc-tt__row:first-child {
  padding-block-start: 0;
}

.ifc-tt__row:last-child {
  padding-block-end: 0;
}

.ifc-tt__number {
  font-family: var(--ifc-font);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--ifc-action);
}

.ifc-scope .ifc-tt__row-title {
  margin: 0;
  font-family: var(--ifc-font);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  color: var(--ifc-paper);
}

.ifc-scope .ifc-tt__row-text {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ifc-text-dim);
}

/* --------------------------------------------------------------------------
   4. How it works (ifc-ts) — warm white
   -------------------------------------------------------------------------- */

.ifc-ts {
  padding-block: 44px;
  background: var(--ifc-paper);
  color: var(--ifc-ink);
}

.ifc-scope .ifc-ts__heading {
  max-width: 24ch;
  margin: 0;
  font-family: var(--ifc-font);
  font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
  color: var(--ifc-ink);
}

.ifc-scope .ifc-ts__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ifc-ts__step {
  padding: 22px;
  border: 1px solid var(--ifc-line);
  border-radius: 12px;
  background: var(--ifc-surface);
}

.ifc-ts__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ifc-action);
  font-family: var(--ifc-font);
  font-size: .9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ifc-surface);
}

.ifc-scope .ifc-ts__step-title {
  margin: 14px 0 0;
  font-family: var(--ifc-font);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ifc-ink);
}

.ifc-scope .ifc-ts__step-text {
  margin: 9px 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ifc-muted);
}

/* A full-width flex wrapper, not absolute positioning. The paragraph already
   spans the container, so its right edge IS the third card's right edge and
   flex-end lands the link there without a declared offset. While the cards
   are stacked the link stays at the start, where the reading order leaves
   the eye. */
.ifc-scope .ifc-ts__actions {
  display: flex;
  justify-content: flex-start;
  margin: 24px 0 0;
}

.ifc-scope .ifc-ts__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ifc-scope .ifc-ts__link-icon {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   6. Final CTA (ifc-tc) — warm white, compact and centred
   -------------------------------------------------------------------------- */

.ifc-tc {
  padding-block: 44px;
  background: var(--ifc-paper);
  color: var(--ifc-ink);
}

.ifc-tc__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ifc-scope .ifc-tc__heading {
  max-width: 20ch;
  margin: 0;
  font-family: var(--ifc-font);
  font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
  color: var(--ifc-ink);
}

.ifc-scope .ifc-tc__text {
  max-width: 52ch;
  margin: 14px 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ifc-muted);
}

.ifc-scope .ifc-tc__actions {
  margin: 24px 0 0;
}

.ifc-scope .ifc-tc__cta {
  display: flex;
  width: 100%;
}

.ifc-scope .ifc-tc__note {
  max-width: 56ch;
  margin: 16px 0 0;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ifc-muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 560px) {
  .ifc-scope .ifc-tc__cta {
    display: inline-flex;
    width: auto;
  }
}

@media (min-width: 768px) {
  .ifc-tr,
  .ifc-ti,
  .ifc-tt,
  .ifc-ts,
  .ifc-tc {
    padding-block: 64px;
  }



  .ifc-scope .ifc-ti__grid,
  .ifc-scope .ifc-ts__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  /* Switches with the grid: the link moves to the right only once there is a
     third card for it to line up with. */
  .ifc-scope .ifc-ts__actions {
    justify-content: flex-end;
  }

  .ifc-tt__row {
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  /* Introduction left, the four rows right. */
  .ifc-tt__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 56px;
    align-items: start;
  }

  .ifc-scope .ifc-tr__lead,
  .ifc-scope .ifc-tt__lead {
    font-size: 1.125rem;
  }

}

@media (min-width: 1200px) {
  .ifc-tr,
  .ifc-ti,
  .ifc-tt,
  .ifc-ts,
  .ifc-tc {
    padding-block: 80px;
  }
}
