/* ===== discount-programs/*: tab bar =====
   3 tabs, the current one marked by a gradient underline (not a fill) and a
   full-opacity label while the other two fade back. The tabs are real links —
   each program is its own page (/discount-programs/student-academic/,
   /startup/, /agency-freelancer/) — so the current tab is set in each page's
   markup (.is-active + aria-current), not by script. */
.discount-tabs {
  background: #fff;
  border-top: 2px solid #1b1b1f;
}

.discount-tabs__bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.discount-tabs__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 32px;
  border: none;
  background: none;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease;
}
.discount-tabs__tab:hover { background: #fafafb; }
.discount-tabs__tab:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: -2px; }
/* The current tab's underline: the same red -> orange gradient as
   .footer__underline/.cph-backups__underline (the owner's "orange and red
   mixed" gradient), flush with the tab's own bottom edge. It used to be one
   shared bar that slid between tabs while a script swapped panels in place;
   now that each tab is its own page there is nothing to slide, so it's simply
   drawn under whichever tab is current. */
.discount-tabs__tab.is-active { position: relative; }
.discount-tabs__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
/* Typography matched to an owner-supplied font-inspector spec, colour
   included (same spec given earlier for the section this switcher
   replaced — see the reference-styling rule in README A.3: usually only
   typography/box dimensions are matched and colour is kept as the site's
   own, but this spec explicitly gives a colour too, so it's matched
   exactly). */
.discount-tabs__label {
  font-family: "Cairo", "Cairo Fallback", "Manrope", "Manrope Fallback", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 46px;
  color: rgb(32, 29, 44);
  /* Faded by default so the selected tab visibly stands out; the active
     tab's own rule below brings it back to full opacity. */
  opacity: .4;
  transition: opacity .28s cubic-bezier(.4, 0, .2, 1);
}
.discount-tabs__tab.is-active .discount-tabs__label { opacity: 1; }

.discount-tabs__panel {
  display: none;
  padding: 64px 0;
}
/* Used to be a 2-column grid (a big heading on the left, this body on the
   right) — the heading was removed per owner request, so the body just
   takes the row on its own now, capped to a readable width instead of
   stretching the full container. */
/* Each page holds exactly one panel, and it carries .is-active in the markup
   (the other two programs are on their own pages). It fades in on arrival, the
   same short fade it always had on first load; the fade sits on the panel
   itself, not on its criteria boxes, which is why it stays cheap. */
.discount-tabs__panel.is-active {
  display: block;
  position: relative;
  z-index: 1;
  animation: discount-panel-in .28s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes discount-panel-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Site-wide convention: motion is opt-out. */
@media (prefers-reduced-motion: reduce) {
  .discount-tabs__panel.is-active { animation: none; }
}
/* Per owner: ALL THREE panels centre their copy, and each block spans exactly
   the width of that panel's own criteria boxes below it — from the left edge
   of its leftmost box to the right edge of its rightmost one. The width half
   of that is already handled by the width:50% rule below (verified flush to
   0.0px against the grid at every window width), so this is only the
   centring.

   Text alignment and block POSITION are separate things here: all three
   centre their text, but panel 1's block sits in the left half of the
   container, panel 2's in the middle and panel 3's in the right half — that's
   what the margin-left/right: auto rules below do, and they must stay.

   History, so it isn't undone: panel 1 was left-aligned, then briefly
   right-aligned, before the owner settled on centred for 1 and 3 to match 2.
   The original complaint was never geometry — the block edges always matched
   the boxes — it was that ragged text stopped short of them. */
.discount-tabs__panel-body {
  /* No max-width here: every panel-body lives under #discount-panel-1/2/3,
     and all three set max-width: none below, so a cap here can never apply.
     The 640px fallback that used to sit here was dead; the live one is in the
     max-width: 860px block near the end of this section. */
  text-align: center;
}
#discount-panel-2 .discount-tabs__panel-body {
  margin-left: auto;
  margin-right: auto;
}
#discount-panel-3 .discount-tabs__panel-body {
  margin-left: auto;
}
/* Per owner: every panel's description column must line up with its own
   criteria groups below it — 50% instead of the shared 640px cap, so the heading/description/
   caption never run past where that panel's boxes start/end. Panel 2's
   own margin-left/right: auto above already centres this 50%-wide block;
   panel 1 stays flush left (no rule needed) and panel 3 flush right via its
   own margin-left: auto above. */
#discount-panel-1 .discount-tabs__panel-body,
#discount-panel-2 .discount-tabs__panel-body,
#discount-panel-3 .discount-tabs__panel-body {
  width: 50%;
  max-width: none;
}
/* Typography matched to an owner-supplied font-inspector spec (Cairo 600,
   25px/25px) — see the reference-styling rule in README A.3. That spec's
   colour was white, but this text sits on this section's white background,
   so it's kept at the site's own dark colour instead (white would be
   invisible here) — confirmed with the owner rather than assumed. */
.discount-tabs__panel-subtitle {
  margin: 0 0 16px;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 25px;
  font-weight: 600;
  line-height: 25px;
  color: rgb(27, 27, 31);
}
/* Typography matched to an owner-supplied font-inspector spec (Manrope 300,
   15px/25px, colour rgba(32,29,44,.82)) — updated spec, colour included
   this time since it's a dark tone that's actually visible on this
   section's white background (unlike the earlier white/translucent-white
   specs given for this element and .discount-tabs__panel-subtitle). */
.discount-tabs__panel-desc {
  margin: 0 0 12px;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 25px;
  color: rgba(32, 29, 44, .82);
}
/* A .discount-tabs__panel-desc:last-child rule used to sit here to drop the
   description's bottom margin. It never matched: every panel body runs
   subtitle -> description -> Claim button -> caption, so the description is
   never the last child. Removed rather than left as a false hint that the
   description can end a panel. */

/* "Claim Your Discount" CTA, sat between each panel's description and its
   criteria caption. Matched to the homepage Plans button the owner pointed
   at (.plan-card .btn--outline): same transparent fill, 1.5px brand-orange
   border, Cairo 700 15px and orange-fill-on-hover from .btn--outline,
   with that button's own overrides repeated here — width:auto and the 8px
   corner, both of which override the base .btn's full-width pill.

   Being inline-flex it follows each panel's own text-align, so it sits left
   on Student & Academic, centred on Startup and right on Agency &
   Freelancer without any per-panel rules.

   Also reused inside .discount-tabs__criteria-groups: panel 3 has no fixed
   discount to "claim", so its own CTA ("Email Us for Custom Pricing") sits
   under the "How to get your custom pricing" group instead of in
   .discount-tabs__panel-body — same button, different parent, hence the
   second selector below. That context is always left-aligned (the group's
   own text-align:left), not per-panel like the panel-body one is. */
.discount-tabs__panel-body .discount-tabs__cta,
.discount-tabs__criteria-groups .discount-tabs__cta {
  /* Specificity deliberately raised above .btn--outline (0,1,0 vs 0,2,0).
     .btn--outline sets width:100% for the plan cards, and matching it on
     source order alone left the button's width depending on rule order in
     this file — one reorder away from stretching the full column again.
     Every value below is the reference button, .plan-card .btn--outline. */
  display: inline-flex;
  width: auto;
  max-width: 100%;
  /* No top margin of its own: the description's 12px bottom margin is the
     whole gap. Per owner the button belongs WITH the paragraph above it, so
     that 12px has to stay smaller than the 20px below it that separates the
     button from the criteria caption — the button reads as the end of the
     description, not as the start of the criteria block. */
  margin: 0;
  padding: 12px 32px;
  border-radius: 8px;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 15px;
}
/* Inside .discount-tabs__criteria-groups the button follows a
   .discount-tabs__criteria-desc paragraph that (unlike .discount-tabs__
   panel-desc in the panel-body context) has no bottom margin of its own —
   without this the button would sit flush against the paragraph above it. */
.discount-tabs__criteria-desc + .discount-tabs__cta { margin-top: 12px; }

/* Eligibility criteria cards under each panel — same light-card look as
   .cph-why-card (white fill, light border, soft shadow, lifts + orange
   border on hover) since this section sits on a white background, but
   simplified to description-only per owner: no icon, no per-card title.
   Sample placeholder text in the HTML; owner will replace with the real
   criteria. Independent of .discount-tabs__panel-body's own max-width/
   alignment above it — a card grid doesn't need that left/centre/right
   text alignment applied to it. */

/* Per owner: panel 1's (Student & Academic) grid starts flush left and
   ends at the horizontal midpoint of the Startup tab above it; panel 3's
   (Agency & Freelancer) grid is the mirror — starts at that same midpoint
   and ends flush right. Panel 2's (Startup) grid is the same 50% width,
   but centred instead of pinned to either edge. All three sit in the same
   .container as .discount-tabs__bar, so 50% width lines up exactly with
   the Startup tab's own centre either way. */

/* Panel 2's grouped criteria (see .discount-tabs__criteria-groups further
   down) reuse this same centred 50%-width placement, same class as panel 1
   uses for its own grouped criteria — see that rule's comment. */
#discount-panel-2 .discount-tabs__criteria-groups {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

/* Panel 3's grouped criteria (see .discount-tabs__criteria-groups further
   down) reuse this same flush-right 50%-width placement. */
#discount-panel-3 .discount-tabs__criteria-groups {
  width: 50%;
  margin-left: auto;
}

/* Typography matched to an owner-supplied font-inspector spec (Manrope 400,
   14px/21px) — same recurring situation as the panel subtitle/description
   above: the spec's colour (rgba(255,255,255,.78)) is translucent white,
   which would be invisible on these cards' white background, so kept at
   the site's own dark colour instead. */
.discount-tabs__criteria-desc {
  margin: 0;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: rgba(27, 27, 31, .75);
}

/* ===== Grouped eligibility criteria (owner request) =====
   Each panel lists its criteria as headed groups, not a flat card grid (too
   much to scan as one undifferentiated grid): a 50%-width block
   (flush-left for 1, centred for 2, flush-right for 3 — see each panel's own
   #discount-panel-N override above), same grid-column/row placement beside
   the sticky aside images, same two responsive resets — see the matching
   #discount-panel-1/2/3 rules under "Sticky per-tab image columns" and the
   two breakpoints below. */
.discount-tabs__criteria-groups {
  width: 50%;
  /* No margin-left/right here: each panel needs a different pin (flush-left,
     centred, flush-right) via its own #discount-panel-N override above —
     setting one side here would fight whichever panel doesn't want it. */
  /* The "Important Information..." caption that used to introduce this block
     was removed on all three panels (owner request) — the group headings
     introduce themselves instead — so this is a plain gap off the CTA button. */
  margin-top: 30px;
  text-align: left; /* headed lists read better left-aligned than the flat cards' centred text */
}
#discount-panel-1 .discount-tabs__criteria-groups { margin-right: auto; }
.discount-tabs__criteria-group + .discount-tabs__criteria-group { margin-top: 28px; }
.discount-tabs__criteria-heading {
  margin: 0 0 10px;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgb(27, 27, 31);
}
.discount-tabs__criteria-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.discount-tabs__criteria-list li {
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 20px;
  color: rgba(27, 27, 31, .75);
}
.discount-tabs__criteria-list li::marker { color: var(--brand-orange); }
/* Inline links in the intro paragraph and the criteria groups (package page,
   Privacy Policy, etc.) — color:inherit rather than a fixed value since this
   class is used inside both .discount-tabs__panel-desc (rgba(32,29,44,.82))
   and .discount-tabs__criteria-list li (rgba(27,27,31,.75)); underline plus
   the hover colour are what mark it as a link either way. */
.discount-tabs__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.discount-tabs__link:hover { color: var(--brand-orange); }
.discount-tabs__criteria-updated {
  margin: 28px 0 0;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: rgba(27, 27, 31, .5);
}

/* ===== Sticky per-tab image columns (owner request) =====
   Each panel's copy and criteria grid only occupy HALF the container (see the
   width:50% rules above), so the other half sits empty — on the right for
   panel 1, both sides for centred panel 2, on the left for panel 3. These fill
   that empty half with two tall images per tab.

   Behaviour the owner asked for: the images start level with the panel's
   heading, run down to the bottom of the screen, and then stay FROZEN while
   the copy and the boxes scroll past them.

   That's position:sticky, not fixed. Fixed pins to the viewport for good, so
   the images would still be stuck on screen once you'd scrolled on to the
   footer, and it would take JS watching the scroll position to hide them.
   Sticky gives the same frozen effect and RELEASES BY ITSELF at the end of the
   panel's grid area — no JS, nothing to keep in sync. Same mechanism as the
   sticky nav and the cPanel package header elsewhere in this file.

   Layout is grid placement on .discount-tabs__panel itself rather than a new
   wrapper element, so the existing body/criteria markup is untouched;
   the panel's two existing children are simply placed into column 1 (or 2)
   and the aside spans both rows beside them.

   Only above 1100px. Below that the empty half is gone, so the columns hide
   and the panel falls back to the block layout and 50% widths defined above,
   exactly as before this existed. */
.discount-tabs__aside { display: none; }

@media (min-width: 1101px) {
  .discount-tabs__panel.is-active {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 596px each inside the 1192px container */
    /* start, not the stretch default: a stretched grid item fills its area and
       then has nowhere to travel, which silently kills position:sticky. */
    align-items: start;
  }
  /* Panel 2's copy is centred, so it needs an empty quarter on EACH side
     rather than one empty half — one image per side instead of two. */
  #discount-panel-2.is-active {
    grid-template-columns: 1fr 2fr 1fr; /* 298 / 596 / 298 */
  }

  /* Column placement. Panel 1 keeps its copy left, panel 3 mirrors it, and
     the aside takes the empty column beside it. grid-row: 1 / span 2 (not
     1 / -1 — there are no explicit rows here, so -1 would resolve back to
     line 1 and span nothing). */
  #discount-panel-1 .discount-tabs__panel-body     { grid-column: 1; grid-row: 1; }
  #discount-panel-1 .discount-tabs__criteria-groups { grid-column: 1; grid-row: 2; }
  #discount-panel-1 .discount-tabs__aside          { grid-column: 2; grid-row: 1 / span 2; }

  #discount-panel-2 .discount-tabs__panel-body     { grid-column: 2; grid-row: 1; }
  #discount-panel-2 .discount-tabs__criteria-groups { grid-column: 2; grid-row: 2; }
  #discount-panel-2 .discount-tabs__aside--left    { grid-column: 1; grid-row: 1 / span 2; }
  #discount-panel-2 .discount-tabs__aside--right   { grid-column: 3; grid-row: 1 / span 2; }

  /* Panel 3 only: its body and criteria groups are wrapped in one
     .discount-tabs__panel-content element instead of being placed in two
     separate grid rows the way panels 1/2's are above — see the comment on
     that wrapper in discount-programs/index.html for why (short/no-fixed-
     discount content let the sticky aside, spanning two auto rows, stretch
     the first row and open a gap between the two). One row means the aside
     has nothing to stretch, so it's grid-row: 1 here too, not a span. */
  #discount-panel-3 .discount-tabs__panel-content  { grid-column: 2; grid-row: 1; }
  #discount-panel-3 .discount-tabs__aside          { grid-column: 1; grid-row: 1; }

  /* The grid columns now do what width:50% + auto margins did above, and the
     two together would halve the copy again. Longhand margins so the criteria
     grid keeps its 10px margin-top to the caption. */
  #discount-panel-1 .discount-tabs__panel-body,
#discount-panel-2 .discount-tabs__panel-body,
#discount-panel-3 .discount-tabs__panel-body,
#discount-panel-1 .discount-tabs__criteria-groups,
#discount-panel-2 .discount-tabs__criteria-groups,
#discount-panel-3 .discount-tabs__criteria-groups {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .discount-tabs__aside {
    display: flex;
    justify-content: center; /* even gutters either side of the pair */
    gap: 24px;
    /* Sized so the column clears both edges of the screen by an equal gap —
       nav-bottom to image-top, and image-bottom to the fold — once it's
       frozen. General formula, G being that gap:
         top    = navHeight + G
         height = 100vh - navHeight - 2G
       (derived by requiring top - navHeight == 100vh - (top + height)).
       navHeight is 75px (74 .nav__inner + 1px border).

       G is 24px, matching the site's own --gutter — tightened down from an
       earlier 96px per owner request ("reduce the gap"). top: 99px,
       height: calc(100vh - 123px).

       Centring the height in the viewport instead of using this formula was
       tried and rejected early on — that measures the top gap from the top
       of the SCREEN, so the nav ate most of it and the bottom gap looked
       twice as large. Recompute both numbers together (from G and
       navHeight) if either the gap or the nav's height ever changes. */
    position: sticky;
    top: 99px;
    height: calc(100vh - 123px);
    min-height: 320px; /* floor for very short windows, where the calc runs out */
    pointer-events: none; /* purely decorative */
  }

  .discount-tabs__aside-img {
    flex: 0 0 240px;
    height: 100%;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f2f2f5; /* shows while the image decodes */
  }
  /* The pair sits dead level. A 60px stagger on the second image was tried
     and rejected by the owner — it read as two different heights rather than
     as a deliberate offset. Don't reintroduce it. */

  /* SAMPLE IMAGES — placeholders (flat colour blocks) at the current spec:
     480x1920 JPEG, shown in a 240px-wide box that's calc(100vh - 123px) tall
     (roughly 240x900-960 on a typical desktop window; taller on a taller
     window, since the column's height tracks the viewport — see the
     geometry comment above). `background-size: cover` crops any extra
     height on a shorter window and upscales slightly (still cropping to fit
     the width) on a taller one, so exact height isn't critical. Swap these
     three pairs for the real photos at the same six filenames; nothing else
     needs to change. */
  #discount-panel-1 .discount-tabs__aside-img--a { background-image: url("../assets/img/discount/student-academic-1.jpg"); }
  #discount-panel-1 .discount-tabs__aside-img--b { background-image: url("../assets/img/discount/student-academic-2.jpg"); }
  #discount-panel-2 .discount-tabs__aside-img--a { background-image: url("../assets/img/discount/startup-1.jpg"); }
  #discount-panel-2 .discount-tabs__aside-img--b { background-image: url("../assets/img/discount/startup-2.jpg"); }
  #discount-panel-3 .discount-tabs__aside-img--a { background-image: url("../assets/img/discount/agency-freelancer-1.jpg"); }
  #discount-panel-3 .discount-tabs__aside-img--b { background-image: url("../assets/img/discount/agency-freelancer-2.jpg"); }
}

@media (max-width: 860px) {
  
  /* The half-width split only makes sense lined up against the
     desktop-width tab bar above — too cramped once the grid itself drops
     to 2 columns, so all three panels go back to full width here. */
  #discount-panel-1 .discount-tabs__criteria-groups,
#discount-panel-2 .discount-tabs__criteria-groups,
#discount-panel-3 .discount-tabs__criteria-groups {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  /* Same reset for the matching description column above it (see
     .discount-tabs__panel-body's own comment). */
  #discount-panel-1 .discount-tabs__panel-body,
  #discount-panel-2 .discount-tabs__panel-body,
  #discount-panel-3 .discount-tabs__panel-body {
    width: auto;
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  .discount-tabs__tab { padding: 20px 16px; }
  .discount-tabs__label { font-size: 22px; line-height: 26px; }
}

/* ===== Discount Programs: "How to Claim Your Discount" stepper =====
   Sits after the tab switcher, page-wide (one instance, not per-tab). Same
   dark "content band" gradient as .cph-features/.migration for the site's
   alternating light/dark rhythm — duplicated here rather than shared via
   class, since this component's structure (a numbered vertical stepper) has
   nothing else in common with those. */
.discount-stepper {
  position: relative;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(245, 126, 32, .12) 0, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(245, 126, 32, .08) 0, transparent 45%),
    linear-gradient(135deg, #1b2427 0%, #2b383c 52%, #141b1d 100%);
}
.discount-stepper__inner { padding: 88px 0; }
.discount-stepper__head { text-align: center; margin-bottom: 64px; }
/* Typography matched to an owner-supplied font-inspector spec — REVISED:
   a first spec gave Cairo 600, 25px/25px; a second, corrected spec gave
   Cairo 600, 40px/40px, rgba(255,255,255,.95). Values replaced wholesale
   for the second spec, not merged with the first. Colour not hardcoded:
   this section's own `color: var(--text)` (#f5f5f7) already reads as
   white, matching the spec's near-opaque white closely enough that a
   literal override would add a value with no visible effect. */
.discount-stepper__title {
  margin: 0;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 40px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: .2px;
}
.discount-stepper__subtitle {
  margin: 14px auto 0;
  max-width: 560px;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(255, 255, 255, .78);
}
.discount-stepper__underline {
  width: 64px;
  height: 2px;
  margin: 36px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand-orange));
}

.discount-stepper__list {
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  /* Wide enough that step 1's description ("Send an email to
     discountprograms@serversalad.com with your category in the subject
     line.") fits on a single line at desktop widths instead of wrapping —
     was 640px. */
  max-width: 760px;
}
/* Each step is a 2-column grid: a fixed-width marker (circle + the dotted
   line down to the next step) and the text body. The connector is a flex
   child of the marker, not an absolutely-positioned line, so it stretches to
   exactly the step's own height automatically — no measuring needed, and it
   still works if a description ever wraps to more lines. */
.discount-stepper__step {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 24px;
}
.discount-stepper__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.discount-stepper__circle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.discount-stepper__connector {
  flex: 1 1 auto;
  width: 0;
  margin: 6px 0;
  border-left: 2px dotted rgba(255, 255, 255, .3);
}
.discount-stepper__body { padding-bottom: 40px; }
/* Last step has no .discount-stepper__connector in the markup and needs no
   trailing gap either — nothing follows it. */
.discount-stepper__step:last-child .discount-stepper__body { padding-bottom: 0; }

/* Closing note for existing customers, sat under the whole numbered list.
   Deliberately smaller and more muted than .discount-stepper__step-desc
   (14px, .78 opacity) — a fainter aside, not a fourth step — and centred
   like .discount-stepper__subtitle above the list, rather than left-aligned
   like the step bodies. */
.discount-stepper__note {
  margin: 40px auto 0;
  max-width: 640px;
  text-align: center;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: rgba(255, 255, 255, .55);
}
.discount-stepper__note strong {
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
}

.discount-stepper__step-title {
  margin: 0 0 8px;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 25px;
  font-weight: 600;
  line-height: 25px;
  color: #fff;
}
.discount-stepper__step-desc {
  margin: 0;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: rgba(255, 255, 255, .78);
}

/* ===== Scroll-reveal for the numbered circles =====
   js/main.js adds .is-revealed to each .discount-stepper__step as it
   scrolls into view (IntersectionObserver, one shot per step) — so 1, 2, 3
   pop in one after another as the visitor scrolls, not all at once on
   load. The circle overshoots past full size with a brief orange glow
   ring, then settles back to its normal white-bordered resting look
   (nothing about the final state changes, only how it arrives); the title
   and description fade/slide in just after, and the dotted connector
   "draws" downward last so it reads as pointing at the next number. */
.discount-stepper__circle {
  opacity: 0;
  transform: scale(.4);
}
/* Two animations on the same element: the one-shot pop plays first, then
   (once the visitor has seen it and .6s have passed) an infinite pulse
   takes over — later in the list wins on the property they share
   (box-shadow), so the pulse only starts driving the glow ring once the
   pop has already handed off, rather than the two fighting over it. */
.discount-stepper__step.is-revealed .discount-stepper__circle {
  animation:
    discount-stepper-pop .6s cubic-bezier(.34, 1.56, .64, 1) forwards,
    discount-stepper-pulse 2.4s ease-in-out .6s infinite;
}
@keyframes discount-stepper-pop {
  0% {
    opacity: 0;
    transform: scale(.4);
    border-color: rgba(255, 255, 255, .4);
    box-shadow: 0 0 0 0 rgba(245, 126, 32, 0);
  }
  55% {
    opacity: 1;
    transform: scale(1.15);
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 10px rgba(245, 126, 32, .22);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 255, 255, .4);
    box-shadow: 0 0 0 0 rgba(245, 126, 32, 0);
  }
}
/* Slow "radar ping" ring that loops forever once a step has revealed —
   the continuous motion the entrance animation alone didn't have. */
@keyframes discount-stepper-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 126, 32, .35); }
  50% { box-shadow: 0 0 0 9px rgba(245, 126, 32, 0); }
}

.discount-stepper__step-title,
.discount-stepper__step-desc {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease .15s, transform .5s ease .15s;
}
.discount-stepper__step.is-revealed .discount-stepper__step-title,
.discount-stepper__step.is-revealed .discount-stepper__step-desc {
  opacity: 1;
  transform: translateY(0);
}

.discount-stepper__connector {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s ease .35s;
}
.discount-stepper__step.is-revealed .discount-stepper__connector {
  transform: scaleY(1);
}

/* One glowing dot that flows down the WHOLE list — circle 1 to circle 2,
   then circle 2 to circle 3, then loops back to the top — rather than each
   connector looping its own separate dot. Positioned/animated entirely by
   js/main.js (element.animate() against measured circle centres), since
   the vertical gap between circles differs per step (a 2-line description
   vs. a 1-line one) and only JS knows those actual pixel distances; this
   rule just anchors it horizontally on the marker column's centre line,
   which .discount-stepper__connector also relies on (see its width: 0 comment). */
.discount-stepper__signal {
  position: absolute;
  left: 20px;
  top: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--brand-orange);
  /* Flat fill + one soft halo, no white specular core — a plain glowing
     marker rather than a shiny highlight. Cut down twice from an earlier,
     much brighter/wider-glow version per owner feedback ("too shiny"). */
  box-shadow: 0 0 6px 2px rgba(245, 126, 32, .3);
  opacity: 0;
  pointer-events: none;
}
/* A short comet tail trailing above the dot, in the direction it just
   travelled from (it moves downward), so it reads as a streak of light
   rather than a bare dot hopping between points. */
.discount-stepper__signal::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 14px;
  transform: translateX(-50%);
  background: linear-gradient(to top, rgba(245, 126, 32, .25), rgba(245, 126, 32, 0));
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .discount-stepper__circle,
  .discount-stepper__step-title,
  .discount-stepper__step-desc,
  .discount-stepper__connector {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .discount-stepper__signal { display: none; }
}

/* Tablet only: same `88px 0` side-gutter bug as .cph-*__inner/.migration__inner —
   zeroed at the base rule, only restored by the mobile query below. */
@media (min-width: 561px) and (max-width: 1210px) {
  .discount-stepper__inner { padding-left: var(--gutter); padding-right: var(--gutter); }
}

@media (max-width: 560px) {
  .discount-stepper__inner { padding: 64px var(--gutter); } /* `0` zeroed the side gutter, so the circles and text ran to the screen edges */
  .discount-stepper__head { margin-bottom: 40px; }
  .discount-stepper__step { column-gap: 16px; } /* steps stay left-aligned; slightly tighter marker gap for the narrower width */
}

/* ===== Tablet only: each discount panel's body/criteria =====
   The desktop two-column layout (sticky image pair beside 50%-width copy,
   pinned left/centre/right so it lines up with that pair) only half-applies
   below 1101px: the images stop rendering, but the copy's width/pin rules
   are unconditional, so panel 1 keeps hugging the left edge and panel 3 the
   right, with a dead empty half where the images used to be. Per owner: no
   need for the images at this width (text is enough), and the content
   should read as one centred column instead of staying pinned. */
@media (min-width: 561px) and (max-width: 1210px) {
  .discount-tabs__aside { display: none; }

  /* Between 1101-1210px the panel itself is still the desktop 2-column grid
     (that breakpoint has no upper bound), so with the aside hidden its
     content was centring inside an empty half-width grid cell instead of
     the full row. Drop back to normal block flow so the centred copy above
     actually spans the whole container. */
  .discount-tabs__panel.is-active { display: block; }

  #discount-panel-1 .discount-tabs__panel-body,
  #discount-panel-2 .discount-tabs__panel-body,
  #discount-panel-3 .discount-tabs__panel-body,
  #discount-panel-1 .discount-tabs__criteria-groups,
  #discount-panel-2 .discount-tabs__criteria-groups,
  #discount-panel-3 .discount-tabs__criteria-groups {
    width: auto;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}
