/* ==========================================================================
   /instagram-links-browser (Site 6): page sections on top of the Landing 6
   kit (css/the25-landing6.css). Every rule is scoped to
   .l6-page--instagram-browser. Behaviour: js/the25-site6-instagram-browser.js.

   Mock UI (phones, Instagram screens, browser bars) is sized in em so each
   mock scales as one piece from its font-size.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared bits: buttons, small print, centred rows
   -------------------------------------------------------------------------- */

.l6-page--instagram-browser .igb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 24px;
    border: 0;
    border-radius: 12px;
    background: var(--l6-blue);
    color: #fff;
    font-family: var(--l6-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.l6-page--instagram-browser .igb-btn:hover {
    background: var(--l6-blue-deep);
    transform: translateY(-1px);
}

.l6-page--instagram-browser .igb-btn--light {
    background: #fff;
    color: var(--l6-ink);
}

.l6-page--instagram-browser .igb-btn--light:hover {
    background: #e8f0ff;
}

.l6-page--instagram-browser .igb-center {
    margin-top: 40px !important;
    text-align: center;
}

.l6-page--instagram-browser .igb-cta-row {
    margin-top: 28px !important;
}

.l6-page--instagram-browser .igb-small {
    margin-top: 12px !important;
    color: var(--l6-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.l6-page--instagram-browser .igb-sub-h {
    margin: clamp(52px, 6vw, 72px) 0 22px;
    font-family: var(--l6-display);
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.l6-page--instagram-browser .igb-h3link {
    color: inherit;
    text-decoration: none;
}

.l6-page--instagram-browser .igb-h3link:hover {
    color: var(--l6-blue-deep);
}

/* --------------------------------------------------------------------------
   Hero: the H1 is the keyword on top of the promise
   -------------------------------------------------------------------------- */

.l6-page--instagram-browser .igb-display-key,
.l6-page--instagram-browser .igb-display-sub {
    display: block;
}

.l6-page--instagram-browser .igb-display-sub {
    margin-top: 0.32em;
    color: #a9cdfc;
    font-size: 0.5em;
    letter-spacing: -0.02em;
    line-height: 1.12;
}

.l6-page--instagram-browser .igb-hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
}

.l6-page--instagram-browser .igb-hero-note i {
    margin-right: 6px;
    color: var(--l6-mint);
}

/* --------------------------------------------------------------------------
   Hero visual: the same tap in two phones ([data-igb-duo]), told as a story.
   data-dest picks the example and data-step the moment in the story:
     0  back on the Instagram profile (the cut between two loops)
     1  a follower taps the link in the bio
     2  the link opens: Instagram's browser slides up over the profile
     3  where they end up: signed out in Instagram's browser, or signed in
        in their own browser or app (the markup's finished state)
   Everything is switched with CSS from those two attributes; the JS only sets
   them, plus --igb-hold (how long the current step lasts).
   -------------------------------------------------------------------------- */

.l6-page--instagram-browser .igb-duo {
    display: grid;
    justify-self: center;
    gap: 18px;
    width: min(100%, 700px);
    margin: 0;
}

.l6-page--instagram-browser .igb-duo-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 22px 2.5cqw;
    padding: 26px 18px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(60% 55% at 78% 40%, rgba(94, 224, 160, 0.14), transparent 70%),
        radial-gradient(55% 55% at 18% 45%, rgba(255, 107, 112, 0.12), transparent 70%),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    container-type: inline-size;
}

/* Both sides are as tall as the taller one, with the label at the top and the
   phone at the bottom, so the two labels line up when one caption wraps */
.l6-page--instagram-browser .igb-duo-side {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-self: stretch;
    justify-items: center;
    min-width: 0;
    text-align: center;
}

.l6-page--instagram-browser .igb-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px 5px 6px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.l6-page--instagram-browser .igb-chip i {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
}

.l6-page--instagram-browser .igb-chip--bad {
    border: 1px solid rgba(255, 107, 112, 0.5);
    background: rgba(229, 72, 77, 0.16);
    color: #ffc2c4;
}

.l6-page--instagram-browser .igb-chip--bad i {
    background: var(--l6-stop);
}

.l6-page--instagram-browser .igb-chip--good {
    border: 1px solid rgba(94, 224, 160, 0.55);
    background: rgba(19, 165, 107, 0.2);
    color: #b5f5d4;
}

.l6-page--instagram-browser .igb-chip--good i {
    background: var(--l6-go);
}

.l6-page--instagram-browser .igb-chip-sub {
    min-height: 1.4em;
    margin: 6px 0 16px !important;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* "Where is this follower now": one line per moment, stacked in one cell so
   the phones never move when the line changes */
.l6-page--instagram-browser .igb-now {
    display: grid;
    align-items: center;
    justify-items: center;
}

.l6-page--instagram-browser .igb-now > span {
    display: inline-flex;
    grid-area: 1 / 1;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    opacity: 0;
    transform: translateY(0.3em);
    transition: opacity 260ms ease, transform 260ms ease;
}

.l6-page--instagram-browser .igb-now [data-for] {
    align-items: center;
    gap: 0.45em;
}

.l6-page--instagram-browser .igb-now img {
    flex: none;
    width: 1.2em;
    height: 1.2em;
    border-radius: 0.28em;
}

.l6-page--instagram-browser .igb-now-hand {
    color: #bcd8ff;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-duo-side--bad .igb-now-end {
    color: #ffc2c4;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-duo-side--good .igb-now-end {
    color: #b5f5d4;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-duo[data-step="0"] .igb-now-in,
.l6-page--instagram-browser .igb-duo[data-step="1"] .igb-now-in,
.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-duo-side--bad .igb-now-in,
.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-now-hand,
.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-now-end {
    opacity: 1;
    transform: none;
}

/* The fourth shadow is the glow of the phone that got out (step 3) */
.l6-page--instagram-browser .igb-duo .l6-phone {
    margin: 0;
    box-shadow:
        inset 0 0 0 0.14em #2d3b55,
        0 1.6em 3.2em rgba(2, 20, 66, 0.38),
        0 0.3em 0.8em rgba(2, 20, 66, 0.25),
        0 0 0 rgba(94, 224, 160, 0);
    font-size: min(11px, calc(100cqw / 46));
    transform-origin: 50% 100%;
    transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 400ms ease, box-shadow 400ms ease;
}

/* Instagram's walls: a ring in Instagram's colours around a phone that is
   still inside Instagram, and a green one around the phone that left it */
.l6-page--instagram-browser .igb-duo .l6-phone::before,
.l6-page--instagram-browser .igb-duo .l6-phone::after {
    content: "";
    position: absolute;
    inset: -0.5em;
    padding: 0.26em;
    border-radius: 3.6em;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    transition: opacity 400ms ease;
    pointer-events: none;
}

.l6-page--instagram-browser .igb-duo .l6-phone::after {
    background: var(--l6-mint);
    opacity: 0;
}

.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-phone--out::before {
    opacity: 0;
}

.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-phone--out::after {
    opacity: 1;
}

.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-phone--out {
    box-shadow:
        inset 0 0 0 0.14em #2d3b55,
        0 1.6em 3.2em rgba(2, 20, 66, 0.38),
        0 0.3em 0.8em rgba(2, 20, 66, 0.25),
        0 0 3.4em rgba(94, 224, 160, 0.42);
}

.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-phone--trap {
    opacity: 0.88;
    transform: scale(0.94);
}

.l6-page--instagram-browser .igb-duo-vs {
    display: grid;
    align-self: center;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* The story in words under the phones: story-style progress bars and one line
   per step. The lines share one cell, so the tallest one sets the height. */
.l6-page--instagram-browser .igb-duo-story {
    display: grid;
    grid-column: 1 / -1;
    justify-items: center;
    gap: 12px;
}

.l6-page--instagram-browser .igb-duo-bars {
    display: flex;
    gap: 5px;
    width: min(100%, 210px);
}

.l6-page--instagram-browser .igb-duo-bars i {
    position: relative;
    flex: 1;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.22);
}

.l6-page--instagram-browser .igb-duo-bars i::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #fff;
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-duo-bars i:nth-child(1)::after,
.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-duo-bars i:nth-child(-n+2)::after {
    transform: none;
}

.l6-page--instagram-browser .igb-duo[data-step="1"] .igb-duo-bars i:nth-child(1)::after,
.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-duo-bars i:nth-child(2)::after,
.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-duo-bars i:nth-child(3)::after {
    animation: igb-duo-fill var(--igb-hold, 0ms) linear both;
}

@keyframes igb-duo-fill {
    from { transform: scaleX(0); }
    to { transform: none; }
}

.l6-page--instagram-browser .igb-duo-say {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: igb-say;
}

.l6-page--instagram-browser .igb-duo-say li {
    display: flex;
    grid-area: 1 / 1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 320ms ease, transform 320ms ease;
    counter-increment: igb-say;
}

.l6-page--instagram-browser .igb-duo-say li::before {
    content: counter(igb-say);
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: var(--l6-ink);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.l6-page--instagram-browser .igb-duo[data-step="0"] .igb-duo-say li:nth-child(1),
.l6-page--instagram-browser .igb-duo[data-step="1"] .igb-duo-say li:nth-child(1),
.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-duo-say li:nth-child(2),
.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-duo-say li:nth-child(3) {
    opacity: 1;
    transform: none;
}

/* A hard cut (the JS adds .is-cut for one frame when it restarts the story) */
.l6-page--instagram-browser .igb-duo.is-cut *,
.l6-page--instagram-browser .igb-duo.is-cut *::before,
.l6-page--instagram-browser .igb-duo.is-cut *::after {
    animation: none !important;
    transition: none !important;
}

.l6-page--instagram-browser .igb-duo-token {
    position: absolute;
    z-index: 3;
    top: 46%;
    right: -5%;
    width: clamp(44px, 11cqw, 72px);
    height: auto;
    animation: l6-bob 3.4s ease-in-out infinite;
}

.l6-page--instagram-browser .igb-duo-picks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.l6-page--instagram-browser .igb-duo-picks button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 7px 15px 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-family: var(--l6-text);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.l6-page--instagram-browser .igb-duo-picks button img {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.l6-page--instagram-browser .igb-duo-picks button:hover {
    background: rgba(255, 255, 255, 0.14);
}

.l6-page--instagram-browser .igb-duo-picks button[aria-pressed="true"] {
    border-color: #fff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(94, 168, 255, 0.28);
    color: var(--l6-ink);
}

.l6-page--instagram-browser .igb-duo-picks button:focus-visible {
    outline: 3px solid var(--l6-sky);
    outline-offset: 3px;
}

.l6-page--instagram-browser .igb-duo-foot {
    max-width: 46em;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
}

/* Which example is showing */
.l6-page--instagram-browser .igb-duo [data-for] {
    display: none;
}

.l6-page--instagram-browser .igb-duo[data-dest^="shop"] .igb-iab-bar [data-for="shop"],
.l6-page--instagram-browser .igb-duo[data-dest="youtube"] .igb-iab-bar [data-for="youtube"],
.l6-page--instagram-browser .igb-duo[data-dest="amazon"] .igb-iab-bar [data-for="amazon"],
.l6-page--instagram-browser .igb-duo[data-dest^="shop"] .igb-ig-link [data-for="shop"],
.l6-page--instagram-browser .igb-duo[data-dest="youtube"] .igb-ig-link [data-for="youtube"],
.l6-page--instagram-browser .igb-duo[data-dest="amazon"] .igb-ig-link [data-for="amazon"] {
    display: inline;
}

.l6-page--instagram-browser .igb-duo[data-dest="shop-ios"] .igb-chip-sub [data-for="shop-ios"],
.l6-page--instagram-browser .igb-duo[data-dest="shop-android"] .igb-chip-sub [data-for="shop-android"],
.l6-page--instagram-browser .igb-duo[data-dest="youtube"] .igb-chip-sub [data-for="youtube"],
.l6-page--instagram-browser .igb-duo[data-dest="amazon"] .igb-chip-sub [data-for="amazon"] {
    display: inline-flex;
}

.l6-page--instagram-browser .igb-duo[data-dest="shop-ios"] .igb-hand-app [data-for="shop-ios"],
.l6-page--instagram-browser .igb-duo[data-dest="shop-android"] .igb-hand-app [data-for="shop-android"],
.l6-page--instagram-browser .igb-duo[data-dest="youtube"] .igb-hand-app [data-for="youtube"],
.l6-page--instagram-browser .igb-duo[data-dest="amazon"] .igb-hand-app [data-for="amazon"] {
    display: block;
}

.l6-page--instagram-browser .igb-duo[data-dest^="shop"] .igb-page[data-for="shop"],
.l6-page--instagram-browser .igb-duo[data-dest="youtube"] .igb-page[data-for="youtube"],
.l6-page--instagram-browser .igb-duo[data-dest="amazon"] .igb-page[data-for="amazon"] {
    display: grid;
}

/* Step 3, second phone: the destination fades and rises in over Instagram,
   the way an app opens on top of the one you were in */
.l6-page--instagram-browser .igb-duo .igb-out {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(7%) scale(0.95);
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 520ms;
}

.l6-page--instagram-browser .igb-duo[data-step="3"][data-dest="shop-ios"] .igb-out[data-for="shop-ios"],
.l6-page--instagram-browser .igb-duo[data-step="3"][data-dest="shop-android"] .igb-out[data-for="shop-android"],
.l6-page--instagram-browser .igb-duo[data-step="3"][data-dest="youtube"] .igb-out[data-for="youtube"],
.l6-page--instagram-browser .igb-duo[data-step="3"][data-dest="amazon"] .igb-out[data-for="amazon"] {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

/* Steps 0 and 1: the Instagram profile both phones start on */
.l6-page--instagram-browser .igb-ig {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    padding: 3.7em 1.15em 0;
    background: #fff;
    color: #111;
    transition: opacity 320ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.l6-page--instagram-browser .igb-ig-top {
    display: flex;
    align-items: center;
    gap: 1em;
    font-size: 1.05em;
}

.l6-page--instagram-browser .igb-ig-top b {
    flex: 1;
}

.l6-page--instagram-browser .igb-ig-head {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.l6-page--instagram-browser .igb-ig-head .igb-ring img {
    width: 4.2em;
    height: 4.2em;
}

.l6-page--instagram-browser .igb-ig-stats {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 0.4em;
    min-width: 0;
    color: #262626;
    font-size: 0.64em;
    text-align: center;
}

/* Sized by their words ("publicaciones" is twice "posts"); the ellipsis is
   only a safety net */
.l6-page--instagram-browser .igb-ig-stats span {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.l6-page--instagram-browser .igb-ig-stats b {
    display: block;
    color: #111;
    font-size: 1.4em;
}

.l6-page--instagram-browser .igb-ig-name {
    font-size: 0.92em;
}

.l6-page--instagram-browser .igb-ig-bio {
    margin-top: -0.6em;
    color: #262626;
    font-size: 0.84em;
}

/* The link the story is about */
.l6-page--instagram-browser .igb-ig-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.4em;
    margin: -0.5em 0 -0.15em -0.5em;
    padding: 0.32em 0.5em;
    border-radius: 0.5em;
    color: #00376b;
    font-size: 0.95em;
    font-weight: 700;
    white-space: nowrap;
}

.l6-page--instagram-browser .igb-ig-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.15em;
    margin: 0.2em -1.15em 0;
}

.l6-page--instagram-browser .igb-ig-grid > * {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    background: linear-gradient(160deg, #f6eadb, #e8d6c1);
    object-fit: cover;
}

.l6-page--instagram-browser .igb-ig-grid i:nth-of-type(2n) {
    background: linear-gradient(160deg, #dfe9f7, #c7d6ee);
}

.l6-page--instagram-browser .igb-ig-grid i:nth-of-type(3n) {
    background: linear-gradient(160deg, #e6f2ea, #cfe5d8);
}

.l6-page--instagram-browser .igb-ig-tabs {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    padding: 0.8em 0.8em 1.6em;
    border-top: 1px solid #efefef;
    background: #fff;
    color: #111;
    font-size: 1.15em;
}

/* Step 1: the finger comes in, presses the link, and the link lights up */
.l6-page--instagram-browser .igb-duo .igb-finger {
    top: 50%;
    left: 60%;
    margin: -1.3em 0 0 -1.3em;
}

.l6-page--instagram-browser .igb-duo[data-step="1"] .igb-finger {
    animation: igb-duo-tap var(--igb-hold, 2400ms) ease both;
}

.l6-page--instagram-browser .igb-duo[data-step="1"] .igb-ig-link {
    animation: igb-duo-link var(--igb-hold, 2400ms) ease both;
}

@keyframes igb-duo-tap {
    0%, 28% { opacity: 0; transform: translate(2.2em, 3em) scale(1.1); }
    56% { opacity: 1; transform: none; }
    67% { opacity: 1; transform: scale(0.72); }
    78%, 100% { opacity: 1; transform: none; }
}

@keyframes igb-duo-link {
    0%, 62% { background-color: rgba(9, 103, 242, 0); }
    70%, 100% { background-color: rgba(9, 103, 242, 0.16); }
}

/* Step 2: Instagram's browser slides up over the profile, in both phones */
.l6-page--instagram-browser .igb-duo .igb-iab {
    box-shadow: 0 -0.8em 2.4em rgba(0, 0, 0, 0.22);
    transform: translateY(103%);
    transition: transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 320ms ease;
}

.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-iab,
.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-iab {
    transform: none;
}

/* Once the browser covers the profile, take the profile out: a covered layer
   can still show as a hairline at the screen edge on fractional pixel sizes */
.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-ig,
.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-ig {
    visibility: hidden;
    transition: opacity 320ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 600ms;
}

.l6-page--instagram-browser .igb-duo .igb-iab-bar {
    position: relative;
}

/* Loading line under the address: the plain link finishes loading its page,
   the LinkTwin link is handed over before it gets there */
.l6-page--instagram-browser .igb-duo .igb-iab-bar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 0.18em;
    background: #0095f6;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-iab-bar::after {
    animation: igb-duo-load 1100ms 300ms ease-out both;
}

@keyframes igb-duo-load {
    0% { opacity: 1; transform: scaleX(0); }
    80% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: none; }
}

.l6-page--instagram-browser .igb-duo .igb-iab .igb-page {
    opacity: 0;
    transition: opacity 300ms ease;
}

.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-iab .igb-page,
.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-iab .igb-page {
    opacity: 1;
}

.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-iab .igb-page {
    transition-delay: 900ms;
}

/* Second phone, step 2: LinkTwin passes the tap to the browser or the app */
.l6-page--instagram-browser .igb-hand-go {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.9em;
    padding-bottom: 5em;
}

.l6-page--instagram-browser .igb-hand-app {
    display: grid;
    place-items: center;
    width: 4.4em;
    height: 4.4em;
    border-radius: 1.1em;
    background: #fff;
    box-shadow: 0 0 0 1px #e8ecf2, 0 0.5em 1.4em rgba(13, 27, 46, 0.16);
}

.l6-page--instagram-browser .igb-hand-app img {
    width: 2.8em;
    height: 2.8em;
    object-fit: contain;
}

.l6-page--instagram-browser .igb-hand-app > i {
    color: var(--l6-blue);
    font-size: 1.7em;
}

.l6-page--instagram-browser .igb-hand-dots {
    display: flex;
    gap: 0.4em;
}

.l6-page--instagram-browser .igb-hand-dots i {
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: var(--l6-blue);
    opacity: 0.25;
}

.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-hand-dots i {
    animation: igb-duo-dot 900ms ease-in-out infinite;
}

.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-hand-dots i:nth-child(2) {
    animation-delay: 150ms;
}

.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-hand-dots i:nth-child(3) {
    animation-delay: 300ms;
}

.l6-page--instagram-browser .igb-duo[data-step="2"] .igb-hand-app--to {
    animation: igb-duo-pop 520ms 1000ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes igb-duo-dot {
    0%, 100% { opacity: 0.25; transform: none; }
    40% { opacity: 1; transform: translateX(0.12em) scale(1.25); }
}

@keyframes igb-duo-pop {
    from { opacity: 0.35; transform: scale(0.7); }
    to { opacity: 1; transform: none; }
}

/* Step 3, second phone: Instagram and its browser shrink away */
.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-phone--out .igb-ig,
.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-hand {
    opacity: 0;
    transform: scale(0.9);
}

/* Step 3, first phone: the sign-in wall says no */
.l6-page--instagram-browser .igb-duo .igb-iab .igb-p-field {
    transition: border-color 300ms ease 400ms, background-color 300ms ease 400ms;
}

.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-iab .igb-p-field {
    border-color: #f1a7aa;
    background: #fff6f6;
}

.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-iab .igb-p-btn--off,
.l6-page--instagram-browser .igb-duo[data-step="3"] .igb-iab .igb-p-wall {
    animation: igb-duo-nope 520ms 520ms ease both;
}

@keyframes igb-duo-nope {
    0%, 100% { transform: none; }
    20% { transform: translateX(-0.35em); }
    40% { transform: translateX(0.35em); }
    60% { transform: translateX(-0.2em); }
    80% { transform: translateX(0.2em); }
}

/* Android: punch-hole camera instead of the island, vertical menu dots */
.l6-page--instagram-browser .igb-punch {
    position: absolute;
    z-index: 31;
    top: 1em;
    left: 50%;
    display: none;
    width: 0.95em;
    height: 0.95em;
    border-radius: 50%;
    background: #000;
    transform: translateX(-50%);
}

.l6-page--instagram-browser .igb-android {
    display: none;
}

.l6-page--instagram-browser .igb-duo[data-dest="shop-android"] .l6-island,
.l6-page--instagram-browser .igb-duo[data-dest="shop-android"] .igb-ios {
    display: none;
}

.l6-page--instagram-browser .igb-duo[data-dest="shop-android"] .igb-punch,
.l6-page--instagram-browser .igb-duo[data-dest="shop-android"] .igb-android {
    display: block;
}

/* --------------------------------------------------------------------------
   Screens: Instagram's in-app browser and the pages inside it
   -------------------------------------------------------------------------- */

.l6-page--instagram-browser .igb-iab {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.l6-page--instagram-browser .igb-iab-bar {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0.8em;
    padding: 3.5em 1.15em 0.75em;
    border-bottom: 1px solid #ececec;
    background: #fff;
    color: #262626;
}

.l6-page--instagram-browser .igb-iab-bar > i {
    width: 1.1em;
    font-size: 1.1em;
    text-align: center;
}

.l6-page--instagram-browser .igb-iab-bar > span {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
    text-align: center;
}

.l6-page--instagram-browser .igb-iab-bar b {
    display: block;
    color: #111;
    font-size: 0.95em;
}

.l6-page--instagram-browser .igb-iab-bar small {
    display: block;
    color: #8e8e8e;
    font-size: 0.72em;
}

.l6-page--instagram-browser .igb-page,
.l6-page--instagram-browser .igb-out-page {
    display: grid;
    align-content: start;
    gap: 0.6em;
    padding: 1em 1.15em;
}

.l6-page--instagram-browser .igb-duo .igb-page {
    display: none;
}

.l6-page--instagram-browser .igb-shop-hero {
    display: block;
    height: 11.5em;
    border-radius: 0.8em;
    background:
        radial-gradient(circle at 68% 56%, #c9a27a 0 21%, transparent 22%),
        radial-gradient(circle at 68% 50%, #8a6a4c 0 25%, transparent 26%),
        linear-gradient(160deg, #f6eadb, #e8d6c1);
}

.l6-page--instagram-browser .igb-p-title {
    color: var(--l6-ink);
    font-size: 1.02em;
    line-height: 1.22;
}

.l6-page--instagram-browser .igb-p-price {
    color: var(--l6-ink);
    font-size: 0.95em;
}

.l6-page--instagram-browser .igb-p-field {
    padding: 0.62em 0.75em;
    border: 1px solid #dfe3ea;
    border-radius: 0.55em;
    color: #9aa3b2;
    font-size: 0.85em;
}

.l6-page--instagram-browser .igb-p-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 0.72em;
    border-radius: 0.6em;
    font-size: 0.9em;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-p-btn--off {
    background: #e9ecf1;
    color: #8b94a3;
}

.l6-page--instagram-browser .igb-p-btn--pay {
    background: #000;
    color: #fff;
}

.l6-page--instagram-browser .igb-p-btn--pay .fa-google-pay {
    font-size: 2.1em;
    line-height: 0.7;
}

.l6-page--instagram-browser .igb-p-hello,
.l6-page--instagram-browser .igb-p-card,
.l6-page--instagram-browser .igb-p-wall {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.55em 0.7em;
    border-radius: 0.55em;
    font-size: 0.82em;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-p-hello {
    background: var(--l6-go-soft);
    color: #0c7a4e;
}

.l6-page--instagram-browser .igb-p-card {
    background: var(--l6-haze);
    color: var(--l6-ink);
}

.l6-page--instagram-browser .igb-p-wall {
    background: var(--l6-stop-soft);
    color: #b42318;
}

/* YouTube (web, signed out) and the YouTube app */
.l6-page--instagram-browser .igb-yt-web,
.l6-page--instagram-browser .igb-ytapp-top {
    display: flex;
    align-items: center;
    gap: 0.45em;
    color: #0f0f0f;
    font-size: 0.95em;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-yt-web img,
.l6-page--instagram-browser .igb-ytapp-top img {
    width: 1.5em;
    height: 1.5em;
}

.l6-page--instagram-browser .igb-yt-web em {
    margin-left: auto;
    padding: 0.3em 0.7em;
    border: 1px solid #c6d8f5;
    border-radius: 999px;
    color: #065fd4;
    font-size: 0.8em;
    font-style: normal;
}

.l6-page--instagram-browser .igb-yt-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 0.6em;
    object-fit: cover;
}

.l6-page--instagram-browser .igb-yt-chan {
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: #0f0f0f;
    font-size: 0.85em;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-yt-chan img {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    object-fit: cover;
}

.l6-page--instagram-browser .igb-yt-chan em {
    margin-left: auto;
    padding: 0.4em 0.85em;
    border-radius: 999px;
    font-size: 0.86em;
    font-style: normal;
}

.l6-page--instagram-browser .igb-yt-chan em.is-off {
    background: #e9ecf1;
    color: #8b94a3;
}

.l6-page--instagram-browser .igb-yt-chan em.is-on {
    background: #f1f1f1;
    color: #0f0f0f;
}

.l6-page--instagram-browser .igb-ytapp {
    flex-direction: column;
    gap: 0.65em;
    padding-top: 3.4em;
    background: #fff;
}

.l6-page--instagram-browser .igb-ytapp > *:not(.igb-yt-thumb) {
    margin: 0 1.1em;
}

.l6-page--instagram-browser .igb-ytapp-top i {
    margin-left: auto;
    color: #0f0f0f;
}

.l6-page--instagram-browser .igb-ytapp .igb-yt-thumb {
    border-radius: 0;
}

.l6-page--instagram-browser .igb-yt-actions {
    display: flex;
    gap: 0.45em;
}

.l6-page--instagram-browser .igb-yt-actions span {
    padding: 0.42em 0.75em;
    border-radius: 999px;
    background: #f2f2f2;
    color: #0f0f0f;
    font-size: 0.76em;
    font-weight: 700;
    white-space: nowrap;
}

.l6-page--instagram-browser .igb-yt-comment {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.6em 0.75em;
    border-radius: 0.7em;
    background: #f2f2f2;
    color: #606060;
    font-size: 0.8em;
}

/* Amazon (web, signed out) and the Amazon app */
.l6-page--instagram-browser .igb-amz-web {
    display: flex;
    align-items: center;
    gap: 0.45em;
    margin: -1em -1.15em 0.2em;
    padding: 0.75em 1.15em;
    background: #131921;
    color: #fff;
    font-size: 0.95em;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-amz-web img {
    width: 1.4em;
    height: 1.4em;
    padding: 0.12em;
    border-radius: 0.3em;
    background: #fff;
}

.l6-page--instagram-browser .igb-amz-web em {
    margin-left: auto;
    color: #fff;
    font-size: 0.8em;
    font-style: normal;
}

.l6-page--instagram-browser .igb-amz-img {
    justify-self: center;
    width: auto;
    height: 10.5em;
    object-fit: contain;
}

.l6-page--instagram-browser .igb-amzapp {
    flex-direction: column;
    gap: 0.6em;
    padding: 0 0 1em;
    background: #fff;
}

.l6-page--instagram-browser .igb-amzapp > :not(.igb-amzapp-top):not(.igb-amzapp-deliver) {
    margin: 0 1.1em;
}

.l6-page--instagram-browser .igb-amzapp .igb-amz-img {
    align-self: center;
}

.l6-page--instagram-browser .igb-amzapp-top {
    display: block;
    padding: 3.4em 0.9em 0.7em;
    background: linear-gradient(90deg, #a6e7ce, #8fdbe0);
}

.l6-page--instagram-browser .igb-amzapp-search {
    display: flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.6em 0.8em;
    border-radius: 0.6em;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    color: #6f7373;
    font-size: 0.82em;
}

.l6-page--instagram-browser .igb-amzapp-deliver {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.55em 1.1em;
    background: #c9f0e6;
    color: #0f1111;
    font-size: 0.78em;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-amzapp-btn {
    padding: 0.7em;
    border-radius: 999px;
    color: #0f1111;
    font-size: 0.86em;
    font-weight: 700;
    text-align: center;
}

.l6-page--instagram-browser .igb-amzapp-btn--cart {
    background: #ffd814;
}

.l6-page--instagram-browser .igb-amzapp-btn--buy {
    background: #ffa41c;
}

/* Safari (address bar at the bottom) and Chrome (omnibox on top) */
.l6-page--instagram-browser .igb-out {
    flex-direction: column;
    background: #fff;
}

.l6-page--instagram-browser .igb-safari {
    padding-top: 3.2em;
}

.l6-page--instagram-browser .igb-safari-bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 0.75em;
    padding: 0.7em 0.9em 1.6em;
    border-top: 1px solid #e6e6e6;
    background: rgba(246, 246, 248, 0.96);
}

.l6-page--instagram-browser .igb-safari-url {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.6em 0.85em;
    border-radius: 0.9em;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    color: #111;
    font-size: 0.85em;
}

.l6-page--instagram-browser .igb-safari-url > span {
    color: #444;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-safari-url b {
    flex: 1;
    text-align: center;
}

.l6-page--instagram-browser .igb-safari-url b i {
    margin-right: 0.35em;
    color: #6b6b6b;
    font-size: 0.8em;
}

.l6-page--instagram-browser .igb-safari-tools {
    display: flex;
    justify-content: space-between;
    padding: 0 0.6em;
    color: #0a84ff;
    font-size: 0.95em;
}

.l6-page--instagram-browser .igb-chrome {
    padding-top: 3.2em;
}

.l6-page--instagram-browser .igb-chrome-bar {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.55em 0.9em 0.7em;
    border-bottom: 1px solid #e6e8eb;
    color: #444;
    font-size: 0.95em;
}

.l6-page--instagram-browser .igb-chrome-url {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.5em;
    min-width: 0;
    padding: 0.55em 0.85em;
    border-radius: 999px;
    background: #eef1f5;
    color: #111;
    font-size: 0.86em;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-chrome-url i {
    color: #5f6368;
    font-size: 0.8em;
}

.l6-page--instagram-browser .igb-chrome-tabs {
    display: grid;
    place-items: center;
    width: 1.45em;
    height: 1.45em;
    border: 0.14em solid #444;
    border-radius: 0.3em;
    font-size: 0.7em;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Where links live on Instagram: six spots with small Instagram mocks
   -------------------------------------------------------------------------- */

.l6-page--instagram-browser .igb-where {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.l6-page--instagram-browser .igb-spot {
    display: flex;
    flex-direction: column;
    padding: 12px 12px 26px;
    border: 1px solid var(--l6-line);
    border-radius: 26px;
    background: var(--l6-paper);
    box-shadow: 0 1px 0 rgba(13, 27, 46, 0.04), 0 18px 40px rgba(13, 27, 46, 0.06);
}

.l6-page--instagram-browser .igb-spot > :not(.igb-spot-art) {
    margin-right: 14px;
    margin-left: 14px;
}

.l6-page--instagram-browser .igb-spot h3 {
    margin-top: 6px;
    margin-bottom: 8px;
    font-family: var(--l6-display);
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.l6-page--instagram-browser .igb-spot p {
    font-size: 0.95rem;
    line-height: 1.55;
}

.l6-page--instagram-browser .igb-spot-art {
    position: relative;
    display: grid;
    place-items: center;
    height: 236px;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(70% 80% at 85% 0%, rgba(255, 182, 120, 0.35), transparent 70%),
        linear-gradient(150deg, #fde8f2, #efe9ff);
}

.l6-page--instagram-browser .igb-spot--no .igb-spot-art {
    background: linear-gradient(150deg, #eef1f5, #f6f7f9);
}

.l6-page--instagram-browser .igb-spot-state {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    margin-top: 18px !important;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-spot-state--yes {
    background: var(--l6-go-soft);
    color: #0c7a4e;
}

.l6-page--instagram-browser .igb-spot-state--no {
    background: #fff1d9;
    color: var(--l6-amber-deep);
}

.l6-page--instagram-browser .igb-spot--dark {
    border-color: transparent;
    background:
        radial-gradient(60% 50% at 90% 0%, rgba(9, 103, 242, 0.35), transparent 70%),
        var(--l6-navy);
    color: rgba(255, 255, 255, 0.74);
}

.l6-page--instagram-browser .igb-spot--dark h3 {
    margin-top: 22px;
    color: #fff;
}

.l6-page--instagram-browser .igb-spot--dark .igb-spot-art {
    align-content: center;
    gap: 16px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.05);
}

.l6-page--instagram-browser .igb-spot--dark .igb-btn {
    align-self: flex-start;
    margin-top: auto;
}

.l6-page--instagram-browser .igb-spot--dark p {
    margin-bottom: 20px;
}

.l6-page--instagram-browser .igb-spot-link {
    width: 100%;
}

.l6-page--instagram-browser .igb-spot-uses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.l6-page--instagram-browser .igb-spot-uses li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-spot-uses i {
    color: var(--l6-mint);
    font-size: 0.75rem;
}

/* The little Instagram screens */
.l6-page--instagram-browser .igb-m {
    position: relative;
    display: grid;
    gap: 0.7em;
    padding: 1em;
    border-radius: 1.2em;
    background: #fff;
    box-shadow: 0 14px 34px rgba(13, 27, 46, 0.14);
    color: #111;
    font-family: var(--l6-ui);
    font-size: 12px;
    line-height: 1.3;
    text-align: left;
}

.l6-page--instagram-browser .igb-m img {
    display: block;
}

.l6-page--instagram-browser .igb-m-bio {
    width: 17.5em;
}

.l6-page--instagram-browser .igb-m-bio-head {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.l6-page--instagram-browser .igb-m-bio-head b {
    display: block;
    font-size: 1em;
}

.l6-page--instagram-browser .igb-m-bio-head small {
    color: #737373;
    font-size: 0.8em;
}

.l6-page--instagram-browser .igb-ring {
    display: block;
    padding: 0.16em;
    border-radius: 50%;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.l6-page--instagram-browser .igb-ring img {
    width: 3.2em;
    height: 3.2em;
    border: 0.16em solid #fff;
    border-radius: 50%;
    object-fit: cover;
}

.l6-page--instagram-browser .igb-m-bio-text {
    font-size: 0.86em;
}

.l6-page--instagram-browser .igb-m-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 0.45em;
    padding: 0.2em 0.4em;
    margin-left: -0.4em;
    border-radius: 0.5em;
    color: #00376b;
    font-size: 0.88em;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-m-link em {
    color: #737373;
    font-style: normal;
    font-weight: 400;
}

.l6-page--instagram-browser .igb-m-bio-btns {
    display: flex;
    gap: 0.5em;
}

.l6-page--instagram-browser .igb-m-bio-btns span {
    flex: 1;
    padding: 0.5em;
    border-radius: 0.6em;
    background: #efefef;
    font-size: 0.82em;
    font-weight: 700;
    text-align: center;
}

.l6-page--instagram-browser .igb-m-bio-btns span:first-child {
    background: #0095f6;
    color: #fff;
}

.l6-page--instagram-browser .igb-m-story,
.l6-page--instagram-browser .igb-m-caption {
    width: 10.5em;
    height: 17.5em;
    padding: 0;
    overflow: hidden;
    background: #222;
}

.l6-page--instagram-browser .igb-m-story > img,
.l6-page--instagram-browser .igb-m-caption > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.l6-page--instagram-browser .igb-m-story-bars {
    position: absolute;
    top: 0.6em;
    right: 0.6em;
    left: 0.6em;
    display: flex;
    gap: 0.25em;
}

.l6-page--instagram-browser .igb-m-story-bars i {
    flex: 1;
    height: 0.16em;
    border-radius: 1em;
    background: rgba(255, 255, 255, 0.5);
}

.l6-page--instagram-browser .igb-m-story-bars i:first-child {
    background: #fff;
}

.l6-page--instagram-browser .igb-m-story-who {
    position: absolute;
    top: 1.3em;
    left: 0.7em;
    display: flex;
    align-items: center;
    gap: 0.4em;
    color: #fff;
    font-size: 0.78em;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.l6-page--instagram-browser .igb-m-story-who img {
    width: 1.9em;
    height: 1.9em;
    border-radius: 50%;
    object-fit: cover;
}

.l6-page--instagram-browser .igb-m-sticker {
    position: absolute;
    top: 58%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.5em 0.75em;
    border-radius: 0.55em;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: #3478f6;
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transform: translateX(-50%) rotate(-3deg);
}

.l6-page--instagram-browser .igb-m-dm {
    width: 17.5em;
}

.l6-page--instagram-browser .igb-m-dm-head {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding-bottom: 0.55em;
    border-bottom: 1px solid #efefef;
    font-size: 0.9em;
}

.l6-page--instagram-browser .igb-m-dm-head img {
    width: 1.9em;
    height: 1.9em;
    border-radius: 50%;
    object-fit: cover;
}

.l6-page--instagram-browser .igb-m-dm-in {
    justify-self: start;
    max-width: 80%;
    padding: 0.55em 0.85em;
    border-radius: 1.2em;
    background: #efefef;
    font-size: 0.85em;
}

.l6-page--instagram-browser .igb-m-dm-out {
    justify-self: end;
    padding: 0.3em;
    border-radius: 1.2em;
    background: linear-gradient(135deg, #7b4dff, #3797f0);
}

.l6-page--instagram-browser .igb-m-dm-card {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.35em 0.75em 0.35em 0.35em;
    border-radius: 0.95em;
    background: #fff;
}

.l6-page--instagram-browser .igb-m-dm-card img {
    width: 3em;
    height: 3em;
    border-radius: 0.7em;
    background: #f3eadf;
    object-fit: contain;
}

.l6-page--instagram-browser .igb-m-dm-card b {
    display: block;
    font-size: 0.85em;
}

.l6-page--instagram-browser .igb-m-dm-card small {
    color: #00376b;
    font-size: 0.8em;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-m-ad {
    width: 15.5em;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.l6-page--instagram-browser .igb-m-ad-head {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7em 0.8em;
}

.l6-page--instagram-browser .igb-m-ad-head b {
    display: block;
    font-size: 0.86em;
}

.l6-page--instagram-browser .igb-m-ad-head small {
    display: block;
    color: #737373;
    font-size: 0.72em;
}

.l6-page--instagram-browser .igb-m-ad-head i {
    margin-left: auto;
    color: #262626;
}

.l6-page--instagram-browser .igb-m-ad-img {
    display: block;
    height: 8.5em;
    background:
        radial-gradient(circle at 62% 56%, #c9a27a 0 19%, transparent 20%),
        radial-gradient(circle at 62% 50%, #8a6a4c 0 23%, transparent 24%),
        linear-gradient(160deg, #f6eadb, #e8d6c1);
}

.l6-page--instagram-browser .igb-m-ad-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7em 0.85em;
    border-bottom: 1px solid #efefef;
    color: #0095f6;
    font-size: 0.86em;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-m-caption-text {
    position: absolute;
    right: 0.7em;
    bottom: 0.8em;
    left: 0.7em;
    color: #fff;
    font-size: 0.76em;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.l6-page--instagram-browser .igb-m-caption::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}

.l6-page--instagram-browser .igb-m-caption-text {
    z-index: 1;
}

.l6-page--instagram-browser .igb-m-plain {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 198, 107, 0.9);
    text-decoration-thickness: 0.14em;
}

.l6-page--instagram-browser .igb-m-caption-x {
    position: absolute;
    z-index: 1;
    top: 0.7em;
    right: 0.7em;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.3em 0.6em;
    border-radius: 999px;
    background: var(--l6-amber);
    color: #4d2e00;
    font-size: 0.72em;
    font-weight: 800;
}

/* A soft ring on every tappable spot */
.l6-page--instagram-browser .igb-m-link,
.l6-page--instagram-browser .igb-m-dm-out,
.l6-page--instagram-browser .igb-m-ad-cta {
    position: relative;
}

.l6-page--instagram-browser .igb-tap::after {
    content: "";
    position: absolute;
    inset: -0.35em;
    border: 0.16em solid rgba(9, 103, 242, 0.55);
    border-radius: 0.8em;
    animation: igb-ring 2.6s ease-out infinite;
    pointer-events: none;
}

.l6-page--instagram-browser .igb-m-sticker.igb-tap::after {
    border-radius: 0.8em;
}

@keyframes igb-ring {
    0% { opacity: 0; transform: scale(0.92); }
    25% { opacity: 1; }
    70%, 100% { opacity: 0; transform: scale(1.08); }
}

/* --------------------------------------------------------------------------
   Checkout table (In-app browser vs External browser)
   -------------------------------------------------------------------------- */

.l6-page--instagram-browser .igb-checkout-copy > p + p {
    margin-top: 14px;
}

.l6-page--instagram-browser .igb-checkout-copy strong {
    color: var(--l6-ink);
}

.l6-page--instagram-browser .l6-tags i {
    color: var(--l6-blue);
}

.l6-page--instagram-browser .igb-table {
    overflow: hidden;
    border: 1px solid var(--l6-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(13, 27, 46, 0.08);
}

.l6-page--instagram-browser .igb-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 13px 22px;
    border-top: 1px solid var(--l6-line);
    font-size: 0.92rem;
}

.l6-page--instagram-browser .igb-table-head {
    border-top: 0;
    background: var(--l6-haze);
    color: var(--l6-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-table-head span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.l6-page--instagram-browser .igb-table-head img {
    width: 18px;
    height: 18px;
}

.l6-page--instagram-browser .igb-table [role="rowheader"] b {
    display: block;
    color: var(--l6-ink);
    font-size: 0.95rem;
}

.l6-page--instagram-browser .igb-table [role="rowheader"] small {
    display: block;
    color: var(--l6-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.l6-page--instagram-browser .igb-no,
.l6-page--instagram-browser .igb-yes {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-no {
    color: #b42318;
}

.l6-page--instagram-browser .igb-yes {
    color: #0c7a4e;
}

.l6-page--instagram-browser .igb-no i,
.l6-page--instagram-browser .igb-yes i {
    display: grid;
    flex: none;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 9px;
}

.l6-page--instagram-browser .igb-no i {
    background: var(--l6-stop-soft);
    color: var(--l6-stop);
}

.l6-page--instagram-browser .igb-yes i {
    background: var(--l6-go-soft);
    color: var(--l6-go);
}

/* --------------------------------------------------------------------------
   Platform cards: mini Safari / Chrome windows
   -------------------------------------------------------------------------- */

.l6-page--instagram-browser .igb-tag-ico {
    color: var(--l6-ink);
    font-size: 1.15rem;
}

.l6-page--instagram-browser .igb-mini {
    display: grid;
    width: min(76%, 250px);
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(13, 27, 46, 0.16);
}

.l6-page--instagram-browser .igb-mini-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    background: #f3f4f6;
}

.l6-page--instagram-browser .igb-mini--chrome .igb-mini-bar {
    background: #dfe3e8;
}

.l6-page--instagram-browser .igb-mini-bar img {
    width: 18px;
    height: 18px;
}

.l6-page--instagram-browser .igb-mini-bar b {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--l6-ink);
    font-size: 0.74rem;
}

.l6-page--instagram-browser .igb-mini-bar b i {
    color: var(--l6-go);
    font-size: 0.62rem;
}

.l6-page--instagram-browser .igb-mini-bar em {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 2px solid #4a4f57;
    border-radius: 4px;
    color: #4a4f57;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-mini-page {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.l6-page--instagram-browser .igb-mini-page > i {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: #e6ebf2;
}

.l6-page--instagram-browser .igb-mini-page > i:nth-child(1) { width: 92%; height: 44px; border-radius: 8px; background: linear-gradient(160deg, #f6eadb, #e8d6c1); }
.l6-page--instagram-browser .igb-mini-page > i:nth-child(2) { width: 70%; }
.l6-page--instagram-browser .igb-mini-page > i:nth-child(3) { width: 48%; }

.l6-page--instagram-browser .igb-mini .igb-p-hello {
    font-size: 0.72rem;
    padding: 5px 8px;
}

.l6-page--instagram-browser .igb-platforms .l6-card-art {
    padding-right: 40px;
}

.l6-page--instagram-browser .igb-official {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 16px;
    margin-top: 26px;
}

.l6-page--instagram-browser .igb-official p {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border: 1px solid var(--l6-line);
    border-radius: 20px;
    background: #fff;
    font-size: 0.92rem;
    line-height: 1.55;
}

.l6-page--instagram-browser .igb-official p > i {
    flex: none;
    margin-top: 3px;
    color: var(--l6-blue);
    font-size: 1.15rem;
}

.l6-page--instagram-browser .igb-official b,
.l6-page--instagram-browser .igb-official strong {
    color: var(--l6-ink);
}

.l6-page--instagram-browser .igb-official b {
    display: block;
    margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Open it yourself: the in-app browser's menu ([data-igb-menu] data-step)
   0 page, 1 tap the dots, 2 menu open + tap "Open in external browser",
   3 the page in Safari. Default markup state (no JS / reduced motion): 2.
   -------------------------------------------------------------------------- */

.l6-page--instagram-browser .igb-self-steps {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.l6-page--instagram-browser .igb-self-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--l6-body);
    font-size: 1rem;
    line-height: 1.5;
}

.l6-page--instagram-browser .igb-self-steps span {
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--l6-blue);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-self-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px !important;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--l6-haze);
    color: var(--l6-ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

.l6-page--instagram-browser .igb-self-note img {
    flex: none;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.l6-page--instagram-browser .igb-self-art .l6-phone {
    position: relative;
}

.l6-page--instagram-browser .igb-self-card b {
    display: block;
    color: var(--l6-ink);
    font-size: 0.95rem;
}

.l6-page--instagram-browser .igb-sheet {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 0.2em;
    padding: 0.6em 0.8em 2.2em;
    border-radius: 1.4em 1.4em 0 0;
    background: #fff;
    box-shadow: 0 -0.8em 2.4em rgba(0, 0, 0, 0.22);
    transform: translateY(105%);
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.l6-page--instagram-browser .igb-iab {
    transition: filter 300ms ease;
}

.l6-page--instagram-browser .igb-sheet-grab {
    justify-self: center;
    width: 3em;
    height: 0.3em;
    margin-bottom: 0.5em;
    border-radius: 1em;
    background: #d6d6d6;
}

.l6-page--instagram-browser .igb-sheet-item {
    display: flex;
    align-items: center;
    gap: 0.9em;
    padding: 0.85em 0.8em;
    border-radius: 0.8em;
    color: #262626;
    font-size: 0.95em;
}

.l6-page--instagram-browser .igb-sheet-item i {
    width: 1.2em;
    text-align: center;
}

.l6-page--instagram-browser .igb-sheet-item--go {
    background: #eef4ff;
    color: var(--l6-blue-deep);
    font-weight: 700;
}

.l6-page--instagram-browser .igb-self-safari {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6%) scale(0.96);
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 520ms;
}

.l6-page--instagram-browser .igb-finger {
    position: absolute;
    z-index: 40;
    width: 2.6em;
    height: 2.6em;
    border: 0.18em solid rgba(9, 103, 242, 0.75);
    border-radius: 50%;
    background: rgba(9, 103, 242, 0.22);
    opacity: 0;
    transition: top 500ms ease, left 500ms ease, opacity 200ms ease;
    pointer-events: none;
}

[data-igb-menu][data-step="1"] .igb-finger {
    top: 3.65em;
    left: calc(100% - 3.15em);
    opacity: 1;
    animation: igb-press 900ms ease-in-out infinite;
}

[data-igb-menu][data-step="2"] .igb-sheet {
    transform: none;
}

[data-igb-menu][data-step="2"] .igb-iab .igb-page {
    filter: brightness(0.7);
}

[data-igb-menu][data-step="2"] .igb-finger {
    top: calc(100% - 5.7em);
    left: 55%;
    opacity: 1;
    animation: igb-press 900ms ease-in-out infinite;
}

[data-igb-menu][data-step="3"] .igb-self-safari {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

@keyframes igb-press {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.82); }
}

/* --------------------------------------------------------------------------
   Features bento
   -------------------------------------------------------------------------- */

.l6-page--instagram-browser .igb-convert {
    display: grid;
    gap: 8px;
}

.l6-page--instagram-browser .igb-convert-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--l6-haze);
    color: var(--l6-body);
    font-size: 0.86rem;
}

.l6-page--instagram-browser .igb-convert-row small {
    flex: none;
    min-width: 72px;
    color: var(--l6-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-convert-row > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.l6-page--instagram-browser .igb-convert-row--lt {
    background: #e8f1ff;
    color: var(--l6-ink);
}

.l6-page--instagram-browser .igb-convert-row--lt b {
    color: var(--l6-blue);
}

.l6-page--instagram-browser .igb-convert-row--ok {
    background: var(--l6-go-soft);
    color: #0c7a4e;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-convert-row--ok img {
    width: 20px;
    height: 20px;
}

.l6-page--instagram-browser .igb-convert-row--ok i {
    margin-left: auto;
}

.l6-page--instagram-browser .igb-dark-link {
    color: var(--l6-link-on-dark) !important;
    font-weight: 700;
}

.l6-page--instagram-browser .igb-src-ico {
    color: #fff;
    font-size: 15px;
    font-style: normal;
    text-align: center;
}

.l6-page--instagram-browser .igb-qr {
    display: flex;
    align-items: center;
    gap: 14px;
}

.l6-page--instagram-browser .igb-qr-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--l6-haze);
    color: var(--l6-ink);
    font-size: 0.8rem;
}

.l6-page--instagram-browser .igb-qr-tag b {
    color: var(--l6-blue);
}

.l6-page--instagram-browser .igb-appgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 52px);
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.l6-page--instagram-browser .igb-appgrid li {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--l6-line);
    border-radius: 14px;
    background: #fff;
}

.l6-page--instagram-browser .igb-appgrid img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.l6-page--instagram-browser .igb-reverse .l6-linkcard-note {
    margin-top: 10px;
}

.l6-page--instagram-browser .igb-faq-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
    .l6-page--instagram-browser .igb-duo {
        width: min(100%, 680px);
    }
}

@media (max-width: 1060px) {
    .l6-page--instagram-browser .igb-where {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .l6-page--instagram-browser .igb-official {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .l6-page--instagram-browser .igb-display-sub {
        font-size: 0.56em;
    }

    .l6-page--instagram-browser .igb-duo-stage {
        padding: 18px 10px 20px;
        border-radius: 22px;
    }

    .l6-page--instagram-browser .igb-chip {
        gap: 6px;
        padding: 4px 10px 4px 5px;
        font-size: 0.76rem;
    }

    .l6-page--instagram-browser .igb-chip i {
        width: 17px;
        height: 17px;
        font-size: 8px;
    }

    .l6-page--instagram-browser .igb-chip-sub {
        font-size: 0.7rem;
    }

    .l6-page--instagram-browser .igb-duo-vs {
        width: 26px;
        height: 26px;
        margin-top: 40px;
        font-size: 0.56rem;
    }

    .l6-page--instagram-browser .igb-duo-say li {
        gap: 8px;
        font-size: 0.86rem;
    }

    .l6-page--instagram-browser .igb-duo-say li::before {
        width: 21px;
        height: 21px;
        font-size: 0.72rem;
    }

    .l6-page--instagram-browser .igb-duo-picks {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .l6-page--instagram-browser .igb-duo-picks button {
        justify-content: flex-start;
        padding: 7px 10px 7px 8px;
        font-size: 0.78rem;
        text-align: left;
    }

    .l6-page--instagram-browser .igb-where {
        grid-template-columns: minmax(0, 1fr);
    }

    .l6-page--instagram-browser .igb-table-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 6px 12px;
        padding: 12px 16px;
    }

    .l6-page--instagram-browser .igb-table [role="rowheader"] {
        grid-column: 1 / -1;
    }

    .l6-page--instagram-browser .igb-table-head span:first-child {
        display: none;
    }

    .l6-page--instagram-browser .igb-appgrid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .l6-page--instagram-browser .igb-convert-row small {
        min-width: 0;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion: finished states, no keyframes
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .l6-page--instagram-browser .igb-duo-token,
    .l6-page--instagram-browser .igb-tap::after,
    .l6-page--instagram-browser .igb-finger {
        animation: none !important;
    }

    .l6-page--instagram-browser .igb-duo *,
    .l6-page--instagram-browser .igb-duo *::before,
    .l6-page--instagram-browser .igb-duo *::after {
        animation: none !important;
        transition: none !important;
    }

    /* No story to play: the phones show how it ends, the words tell all three steps */
    .l6-page--instagram-browser .igb-duo-bars {
        display: none;
    }

    .l6-page--instagram-browser .igb-duo-say {
        gap: 8px;
    }

    .l6-page--instagram-browser .igb-duo-say li {
        grid-area: auto;
        justify-content: flex-start;
        opacity: 1;
        transform: none;
    }

    .l6-page--instagram-browser .igb-duo .igb-out,
    .l6-page--instagram-browser .igb-sheet,
    .l6-page--instagram-browser .igb-self-safari,
    .l6-page--instagram-browser .igb-finger,
    .l6-page--instagram-browser .igb-btn {
        transition: none !important;
    }

    .l6-page--instagram-browser .igb-tap::after {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Second pass: spacing and the reverse (instagram.com links) tile
   -------------------------------------------------------------------------- */

.l6-page--instagram-browser .igb-platforms .l6-card > p + .l6-check-list {
    margin-top: 16px;
}

.l6-page--instagram-browser .igb-platforms .l6-card h3 {
    margin-bottom: 10px;
}

.l6-page--instagram-browser .igb-reverse {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
}

.l6-page--instagram-browser .igb-m-profile {
    grid-row: 1 / span 2;
    width: 15em;
}

.l6-page--instagram-browser .igb-reverse .l6-linkcard {
    align-self: end;
    justify-self: start;
}

.l6-page--instagram-browser .igb-reverse .l6-linkcard-note {
    align-self: start;
}

@media (max-width: 640px) {
    .l6-page--instagram-browser .igb-reverse {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 12px;
    }

    .l6-page--instagram-browser .igb-m-profile {
        grid-row: auto;
    }
}

@media (min-width: 1181px) {
    .l6-page--instagram-browser #open-it-yourself .l6-split--flip {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (min-width: 641px) {
    .l6-page--instagram-browser .igb-self-card {
        top: 30%;
        bottom: auto;
    }
}
