/**
 * /index4.php: "The Hinge", a homepage candidate built to
 * .scratch/index1-homepage/copy-spec.md and .scratch/homepage-layouts/index4/vibe-spec.md.
 *
 * One hinge runs down the page. Left of it the workshop as it lives now: thin,
 * grey, overlapping fragments with their own small chrome. Right of it the same
 * moment in Workshopr: one solid warm card. In the hero the hinge is a range
 * input that moves the split. index-new.css loads first for the account dialogs
 * and the .tue-page ground (paper grid, type reset).
 */
@property --i4-split {
  syntax: "<number>";
  inherits: true;
  initial-value: 40;
}

.i4 { accent-color: var(--brand); caret-color: var(--brand-ink); }
.i4 p { color: var(--text-default); }

/* Checkout feedback: the pressed CTA says it is working, and an error lands
   beside it. The error outranks `.i4 p` so its colour holds. */
.i4 .ws-btn.is-busy { cursor: progress; opacity: 0.75; pointer-events: none; }
.i4 p.i4-cta-error {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-basis: 100%;
  margin: var(--space-2) 0 0;
  font-size: var(--text-h4);
  color: var(--color-error-ink);
}
.i4 p.i4-cta-error[hidden] { display: none; }
.i4-cta-error__icon { font-size: var(--text-h2); }
/* The primary has no border and the secondary a 2px one; a transparent border
   evens the pair's heights on this page without touching the shared sheet. */
.i4 .ws-btn--primary { border: 2px solid transparent; }
/* The large buttons' own label paints 12px; at an 80% root, --text-body is
   the smallest step this page lets content take. */
.i4 .ws-btn--lg { font-size: var(--text-body); }

/* ── Hero: the copy across the top ──────────────────────────────────── */
.i4-hero { padding-block: var(--space-12) var(--space-16); }
.i4-hero__top { display: grid; gap: var(--space-6); }
.i4-hero__head { margin: 0; max-width: none; }
.i4-hero__head .ws-section-header__title {
  font-size: var(--text-display-xl);
  line-height: 1.04;
  letter-spacing: var(--tracking-tight);
  color: var(--text-dark);
}
/* DESIGN.md's Display Text Pattern: the emphasised words italic in brand ink,
   with a flush band in the brand's soft tint under them. */
.i4-hero__head .ws-section-header__subtitle {
  font-style: italic;
  color: var(--brand-ink);
  background-image: linear-gradient(transparent calc(100% - var(--space-2)), var(--brand-soft) 0);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.i4-hero__head .ws-section-header__desc {
  margin-top: var(--space-6);
  max-width: 34em;
  font-size: var(--text-h2);
  line-height: var(--leading-normal);
  color: var(--text-default);
}
.i4-hero__act { display: flex; flex-direction: column; align-items: flex-start; }
.i4-hero__trial { flex-basis: 100%; margin: 0; font-size: var(--text-h4); color: var(--text-muted); }
/* Side by side, the two buttons share the row and the trial line drops below
   both; on a phone the source order keeps it under the primary. */
@media (min-width: 641px) {
  .i4-hero__primary { order: 1; }
  .i4-hero__secondary { order: 2; }
  .i4-hero__trial { order: 3; }
}
/* Wide, the headline takes the whole row and the subheadline and actions share
   the row under it, so the hinge starts inside the first screen. */
@media (min-width: 1100px) {
  .i4-hero__top { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--space-12); row-gap: var(--space-6); align-items: start; }
  .i4-hero__head { display: contents; }
  .i4-hero__head .ws-section-header__title { grid-column: 1 / -1; }
  .i4-hero__head .ws-section-header__desc { grid-column: 1; grid-row: 2; margin-top: 0; }
  .i4-hero__act { grid-column: 2; grid-row: 2; }
}

/* ── The hinge ──────────────────────────────────────────────────────── */
.i4-hinge {
  --i4-split: 40;
  --i4-hinge-w: var(--space-12);
  position: relative;
  margin: var(--space-10) 0 0;
  display: grid;
  gap: var(--space-8);
}
.i4-side__label {
  margin: 0 0 var(--space-4);
  font-size: var(--text-h4);
  font-weight: var(--font-semibold);
}
.i4 .i4-side--now .i4-side__label { color: var(--text-muted); }
.i4 .i4-side--ws .i4-side__label { color: var(--text-dark); }

/* The hinge line between the sides, and the grip that shows it moves. */
.i4-hinge__rule { display: none; }
.i4-hinge__control { display: none; }

@media (min-width: 900px) {
  /* The split is a percentage of the figure's width; the hinge column is
     centred on it, so its centre and the range thumb's centre coincide. */
  .i4-hinge {
    grid-template-columns:
      minmax(0, calc(var(--i4-split) * 1% - var(--i4-hinge-w) / 2))
      var(--i4-hinge-w)
      minmax(0, 1fr);
    gap: 0;
    animation: i4-settle var(--duration-reveal-lg) var(--ease-reveal) 300ms backwards;
  }
  .i4-side--now { padding-right: var(--space-4); }
  .i4-side--ws { padding-left: var(--space-4); }

  .i4-hinge__rule { display: block; position: relative; }
  .i4-hinge__rule::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--gray-300);
    border-radius: var(--radius-full);
  }
  .i4-hinge__grip {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    width: var(--i4-hinge-w);
    height: var(--i4-hinge-w);
    margin-top: calc(var(--i4-hinge-w) / -2);
    place-items: center;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
  }
  .i4-hinge.is-live .i4-hinge__grip { display: grid; }
  .i4-hinge__icon { width: var(--space-6); height: var(--space-6); fill: currentColor; }
  .i4-hinge:has(.ws-range__input:hover) .i4-hinge__grip,
  .i4-hinge:has(.ws-range__input:active) .i4-hinge__grip { border-color: var(--brand); color: var(--brand-ink); }

  /* The range's box spans the travel plus half a thumb each side, so the
     thumb's centre runs from 30% to 60%, exactly where the grip sits. */
  .i4-hinge__control {
    display: block;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: calc(30% - var(--i4-hinge-w) / 2);
    width: calc(30% + var(--i4-hinge-w));
    height: var(--i4-hinge-w);
    margin-top: calc(var(--i4-hinge-w) / -2);
  }
  .i4-hinge__control[hidden] { display: none; }
}

/* ws_range's bare variant paints nothing and keeps its ring on the thumb;
   the thumb is the grip's size, so the ring lands round the drawn grip. */
.i4-hinge__control .ws-range { --ws-range-thumb: var(--i4-hinge-w); }

@keyframes i4-settle { from { --i4-split: 50; } }

/* ── How it lives now: the fragments ────────────────────────────────── */
/* Faint by line and scale, not by ink: every word keeps --text-muted, which
   holds 5.16:1 on the page and 5.39:1 on white. */
.i4-frags {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
}
.i4-frag {
  position: relative;
  padding: var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: var(--text-body);
  line-height: var(--leading-snug);
}
.i4 .i4-frag p, .i4-frag li { color: var(--text-muted); }
.i4-frag__bar {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin: calc(var(--space-3) * -1) calc(var(--space-3) * -1) var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.i4-frag__bar span { overflow: hidden; text-overflow: ellipsis; }
/* Narrow, the name wraps rather than losing its last word. */
@media (max-width: 899px) {
  .i4-frag__bar, .i4-frag__bar span { white-space: normal; }
}
.i4-frag__icon { flex: none; width: var(--space-4); height: var(--space-4); fill: currentColor; }
.i4-frag__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.i4-frag__note { margin: 0; }
.i4-frag__clock {
  margin: 0;
  font-size: var(--text-h1);
  font-weight: var(--font-normal);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.i4-stickies { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.i4-stickies li {
  flex: 1 1 7em;
  min-height: var(--space-12);
  padding: var(--space-2);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
}

/* Stacked on a phone: a compact pile. Wide: the four overlap like papers left
   on the grid, each a little off square. */
.i4-hero .i4-frags { gap: var(--space-3); }
.i4-hero .i4-frag--doc   { grid-column: 1 / 5; grid-row: 1; transform: rotate(-1.5deg); z-index: 1; }
.i4-hero .i4-frag--board { grid-column: 3 / 7; grid-row: 1; margin-top: var(--space-10); transform: rotate(1.5deg); z-index: 2; }
.i4-hero .i4-frag--timer { grid-column: 1 / 3; grid-row: 2; margin-top: calc(var(--space-6) * -1); transform: rotate(2deg); z-index: 3; text-align: center; }
.i4-hero .i4-frag--mail  { grid-column: 3 / 7; grid-row: 2; margin-top: var(--space-2); transform: rotate(-1deg); z-index: 4; }
@media (max-width: 899px) {
  .i4-hero .i4-frags { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: var(--container-sm); }
  /* Stacked, the fragments keep their small scale rather than run the width. */
  .i4-pair__now { max-width: var(--container-xs); }
  .i4-hero .i4-frag--doc,
  .i4-hero .i4-frag--board,
  .i4-hero .i4-frag--timer,
  .i4-hero .i4-frag--mail { grid-column: auto; grid-row: auto; margin-top: 0; }
}

/* ── In Workshopr: one solid card ───────────────────────────────────── */
.i4-nb-card { box-shadow: var(--shadow-md); }
.i4-nb__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--font-semibold);
}
.i4 p.i4-nb__title { color: var(--text-dark); }
.i4-nb { list-style: none; margin: 0; padding: 0; }
.i4-nb__row { display: grid; gap: var(--space-2); padding-block: var(--space-3); border-top: 1px solid var(--card-border); }
.i4-nb__row:last-child { padding-bottom: 0; }
@media (min-width: 1100px) {
  .i4-nb__row { grid-template-columns: minmax(0, 7em) minmax(0, 1fr); gap: var(--space-4); align-items: baseline; }
}
.i4-nb__k { margin: 0; font-size: var(--text-body); font-weight: var(--font-semibold); }
.i4 p.i4-nb__k { color: var(--text-muted); }

/* The same item, wherever it appears. The tint keeps brand ink at 4.58:1;
   the hairline gives the lighter fill its edge. */
.i4-same {
  background: var(--brand-tint);
  box-shadow: inset 0 0 0 1px var(--brand-line);
  border-radius: var(--radius-lg);
}
.i4-same .i4-agenda__name { color: var(--brand-ink); font-weight: var(--font-semibold); }
/* In the write-up the chips carry the mark themselves: a box round them would
   nest a third surface inside the card. */
.i4-same-chip { background: var(--brand-tint); border-color: var(--brand-line); }
.i4 .ws-source-chip,
.i4 .ws-source-chip__label { font-size: var(--text-body); }

.i4-agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.i4-agenda li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-h4);
  color: var(--text-dark);
}
.i4-agenda__time, .i4-agenda__mins { font-variant-numeric: tabular-nums; color: var(--text-muted); }

.i4 p.i4-live {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-h4);
}
.i4-live__clock {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-dark);
}
.i4 p.i4-live__meta { margin: var(--space-2) 0 0; padding-inline: var(--space-3); font-size: var(--text-body); color: var(--text-muted); }

.i4 p.i4-theme {
  margin: 0 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  line-height: var(--leading-snug);
  color: var(--text-dark);
}
.i4-sources { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ── Section headings below the hero ────────────────────────────────── */
/* A display step, so the scale does not fall from the hero's 57.6px straight
   to body-sized h2s. index-new.css zeroes paragraph margins, so each
   description sets its own. */
.i4-pairs .ws-section-header__title,
.i4-library .ws-section-header__title,
.i4-plans .ws-section-header__title {
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
@media (min-width: 1100px) {
  .i4-pairs .ws-section-header__title,
  .i4-library .ws-section-header__title,
  .i4-plans .ws-section-header__title { font-size: var(--text-display-lg); }
}
.i4-pairs .ws-section-header__desc,
.i4-library .ws-section-header__desc,
.i4-plans .ws-section-header__desc {
  max-width: 40em;
  margin-top: var(--space-4);
  font-size: var(--text-h3);
  line-height: var(--leading-normal);
  color: var(--text-default);
}
@media (min-width: 1100px) {
  .i4-pairs .ws-section-header__desc,
  .i4-library .ws-section-header__desc,
  .i4-plans .ws-section-header__desc { margin-top: var(--space-5); }
}

/* ── One workshop, followed through: the hinge for each stage ───────── */
.i4-pairs { padding-block: var(--space-16); }
.i4-pairs .ws-section-header { margin-bottom: var(--space-8); }
.i4-legend { display: none; }
.i4-pair-list { position: relative; }
.i4-pair { padding-block: var(--space-8); }
.i4-pair + .i4-pair { border-top: 1px solid var(--card-border); }
.i4 .i4-pair__title { margin: 0 0 var(--space-5); font-size: var(--text-h1); line-height: var(--leading-tight); }
.i4-pair__grid { display: grid; gap: var(--space-6); }
.i4-pair__rule { display: none; }
.i4-pair__ws { display: grid; gap: var(--space-6); align-content: start; }
.i4-item__title { margin: 0 0 var(--space-1); font-size: var(--text-h3); }
.i4-pair__captions p { margin: 0; max-width: 40em; font-size: var(--text-h4); line-height: var(--leading-normal); }

/* The fragment it replaces: the same thin papers as the hero, fewer of them. */
.i4-pair__now { margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); align-content: start; }
.i4-pair__now .i4-frag--doc   { grid-column: 1 / 6; transform: rotate(-1deg); }
.i4-pair__now .i4-frag--draft { grid-column: 2 / 7; margin-top: calc(var(--space-5) * -1); transform: rotate(1deg); }
.i4-pair__now .i4-frag--timer { grid-column: 1 / 3; transform: rotate(-2deg); text-align: center; }
.i4-pair__now .i4-frag--paper { grid-column: 3 / 7; margin-top: var(--space-3); transform: rotate(1deg); }
.i4-pair__now .i4-frag--mail  { grid-column: 1 / 6; transform: rotate(-1deg); }
.i4 .i4-pair__cap { grid-column: 1 / -1; margin: var(--space-2) 0 0; max-width: 28em; font-size: var(--text-body); color: var(--text-muted); }

/* Wide, each stage sits on the hero's default split, and one hinge line runs
   down through all three, level with the hero's own. */
@media (min-width: 900px) {
  .i4-legend {
    display: grid;
    grid-template-columns: minmax(0, calc(40% - var(--space-6))) var(--space-12) minmax(0, 1fr);
    margin-bottom: var(--space-2);
    font-size: var(--text-h4);
    font-weight: var(--font-semibold);
  }
  .i4-legend span:first-child { color: var(--text-muted); }
  .i4-legend span:last-child { grid-column: 3; padding-left: var(--space-4); color: var(--text-dark); }
  .i4-pair-list::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(40% - 1px);
    width: 2px;
    background: var(--gray-300);
    border-radius: var(--radius-full);
  }
  /* The stage title heads the left side, so the right side's captions start
     level with it rather than under an empty row. */
  .i4-pair {
    display: grid;
    grid-template-columns: minmax(0, calc(40% - var(--space-6))) var(--space-12) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  .i4-pair__grid { display: contents; }
  .i4 .i4-pair__title { grid-column: 1; grid-row: 1; padding-right: var(--space-4); }
  .i4-pair__now { grid-column: 1; grid-row: 2; padding-right: var(--space-4); }
  .i4-pair__rule { display: block; grid-column: 2; grid-row: 1 / span 2; }
  .i4-pair__ws { grid-column: 3; grid-row: 1 / span 2; padding-left: var(--space-4); }
}
@media (min-width: 1100px) {
  .i4-pair__ws { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* The Workshopr surfaces: solid, warm, Fraunces where the content speaks. */
.i4-surface { box-shadow: var(--shadow-md); }
.i4-pair__surface { margin: 0; }
.i4-surface .i4-nb__k { margin: var(--space-4) 0 var(--space-2); }
.i4-surface .i4-nb__k:first-child { margin-top: 0; }
.i4 p.i4-pitch {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: var(--leading-snug);
  color: var(--text-dark);
}
/* The filled blanks: ink for contrast on the card (brand ink there is 4.47:1),
   the brand's rule underneath to mark them. */
.i4-pitch b { font-weight: var(--font-semibold); color: var(--text-dark); border-bottom: 2px solid var(--brand); }
.i4-arc { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--card-border); }
.i4 p.i4-arc__score { display: flex; align-items: baseline; gap: var(--space-2); margin: 0 0 var(--space-2); }
.i4-arc__num { font-family: var(--font-heading); font-size: var(--text-h1); line-height: 1; color: var(--text-dark); }
.i4-arc__word { font-weight: var(--font-semibold); color: var(--text-dark); }
.i4-arc__curve { display: block; width: 100%; height: var(--space-12); color: var(--brand); }
.i4-arc__fill { fill: var(--brand-tint); }
.i4-arc__line { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.i4-record { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.i4-record li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: baseline; font-size: var(--text-h4); color: var(--text-default); }
.i4-record__time { font-variant-numeric: tabular-nums; color: var(--text-muted); }
.i4-record__what b { font-weight: var(--font-semibold); color: var(--text-dark); margin-right: var(--space-1); }
/* The intervention card opens under a rule rather than in a box of its own,
   so the console stays one surface; its icon carries the brand. */
.i4-rescue { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--card-border); }
.i4 p.i4-rescue__k { display: flex; align-items: center; gap: var(--space-1); margin: 0; font-size: var(--text-body); font-weight: var(--font-semibold); color: var(--text-muted); }
.i4-rescue__icon { flex: none; width: var(--space-5); height: var(--space-5); fill: var(--brand); }
.i4 p.i4-rescue__title { margin: var(--space-1) 0 0; font-family: var(--font-heading); font-size: var(--text-h3); color: var(--text-dark); }
.i4 p.i4-rescue__say { margin: var(--space-1) 0 0; font-size: var(--text-h4); }
.i4 p.i4-onepager__line { margin: 0 0 var(--space-2); font-family: var(--font-heading); font-size: var(--text-h3); color: var(--text-dark); }

/* ── Library ────────────────────────────────────────────────────────── */
.i4-library { padding-block: var(--space-16); background: var(--bg-warm-muted); }
/* Stacked: the heading and its button, then the three entries in one row. */
.i4-library__grid { display: grid; gap: var(--space-10); }
.i4-library__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); max-width: 46em; }
.i4-library__text .ws-section-header { margin: 0; }
.i4-libcard__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 0; }
/* The duration badge's own grey measures 4.40:1 at this size; body ink clears it. */
.i4-libcard__meta .ws-badge { font-size: var(--text-body); padding: var(--space-1) var(--space-2); color: var(--text-default); }

/* ── Listed on ──────────────────────────────────────────────────────── */
.i4-seen { padding-block: var(--space-10); }
.i4-seen__row { justify-content: center; }
.i4 p.i4-seen__label { font-size: var(--text-h4); color: var(--text-muted); }
.i4-seen__row img { height: var(--space-10); width: auto; }
@media (max-width: 640px) {
  .i4-seen__row > p { flex-basis: 100%; text-align: center; }
}

/* ── Plans ──────────────────────────────────────────────────────────── */
.i4-plans { padding-block: var(--space-16); }
.i4-plans__grid { display: grid; gap: var(--space-6); margin-top: var(--space-10); align-items: start; }
@media (min-width: 900px) {
  .i4-plans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.i4-plan { height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.i4-plan--pro { border-color: var(--brand-line); box-shadow: var(--shadow-md); }
/* Both heads share one height, so Free's price and button sit level with Pro's
   beside its billing switch. */
.i4-plan__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; min-height: var(--space-10); }
.i4-billing { display: flex; gap: var(--space-1); }
.i4-billing__btn { font-size: var(--text-body); }
.i4-billing__btn.is-on { background: var(--brand-tint); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-line); }
/* Inside a --card-bg card, a white fill keeps the secondary button's brand ink
   at 5.02:1 (it measures 4.47:1 on the card itself). */
.i4-plan .ws-btn--secondary { background-color: var(--bg-surface); }
.i4 p.i4-plan__cost { margin: 0; color: var(--text-muted); font-size: var(--text-h4); }
.i4-plan__cost b { font-family: var(--font-heading); font-size: var(--text-display); color: var(--text-dark); font-weight: var(--font-semibold); }
.i4 p.i4-plan__all { margin: 0; font-weight: var(--font-semibold); color: var(--text-dark); }
.i4-plan__list { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); font-size: var(--text-h4); color: var(--text-default); }
.i4-plan__list li::marker { color: var(--brand); }
/* Each card's action sits under its price, so the two line up side by side. */
.i4-plan__cta { margin-top: 0; }
.i4 p.i4-plan__trial { margin: 0; font-size: var(--text-h4); color: var(--text-muted); }

/* ── The last word ──────────────────────────────────────────────────── */
/* The page's own close has to outrank the footer's newsletter block that
   follows it, so it takes a display step and real room. */
.i4-end { padding-block: var(--space-16); }
/* On the page's own container, so the close holds the left edge every section above it keeps. */
.i4-end .ws-cta-section__container { max-width: var(--container-xl); padding-inline: var(--space-4); }
.i4-end .ws-cta-section__title {
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.i4-end .ws-cta-section__subtitle { font-size: var(--text-h3); }
@media (min-width: 1100px) {
  .i4-end .ws-cta-section__title { font-size: var(--text-display-lg); }
}

/* ── Small screens ──────────────────────────────────────────────────── */
@media (max-width: 1099px) {
  .i4-hero__head .ws-section-header__title { font-size: var(--text-display-lg); }
}
@media (max-width: 640px) {
  .i4-hero { padding-block: var(--space-6) var(--space-12); }
  .i4-hero__head .ws-section-header__title { font-size: var(--text-display); line-height: var(--leading-tight); }
  .i4-hero__head .ws-section-header__desc { margin-top: var(--space-4); font-size: var(--text-h3); }
  .i4-hero__act { margin-top: var(--space-2); }
  .i4-hero__actions, .i4-hero__actions .ws-btn { width: 100%; justify-content: center; }
}


/* ── Real screens ───────────────────────────────────────────────────── */
/* One region of a real screen, stored at twice its pixels and framed like a
   card, so it reads as the product rather than as another drawing. */
.i4-shot { margin: 0; display: grid; gap: var(--space-3); min-width: 0; }
.i4-shot__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--bg-surface);
}
.i4-shot__cap { margin: 0; max-width: 36em; font-size: var(--text-body); line-height: var(--leading-snug); color: var(--text-muted); }
.i4-shot { margin-top: var(--space-10); }

@media (prefers-reduced-motion: reduce) {
  .i4-hinge, .i4 .i4-hinge { animation: none; }
  .i4-hinge__grip { transition: none; }
}
