/* Free Instagram Tools landing page - page-scoped styles on top of the
 * shared tools.css. The page keeps the site chrome (red brand bar, hero
 * H1) and themes everything below it after Instagram's own web UI: white
 * surfaces on a light ground, thin #dbdbdb hairlines, gradient story
 * rings, and one blue button per post. Poppins stays (site consistency);
 * the Instagram gradient carries the theme. The profile card, the post
 * action-icon row, the hashtag lines, and the Tools / Saved tab strip were
 * removed on 2026-09-03 (operator request); their rules went with them. */

:root {
    --ig-grad:      linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
    --ig-grad-text: linear-gradient(90deg, #833ab4 0%, #e1306c 45%, #f77737 80%, #fcaf45 100%);
    --ig-ring:      conic-gradient(from 30deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
    --ig-ink:       #262626;
    --ig-muted:     #8e8e8e;
    --ig-border:    #dbdbdb;
    --ig-chip:      #efefef;
    --ig-blue:      #0095f6;
    --ig-blue-dark: #1877f2;
    --ig-link:      #00376b;

    /* Shared platform-page shell tokens (platform-tools.css). */
    --pp-muted:     var(--ig-muted);
    --pp-link:      var(--ig-link);
    --pp-faq-highlight: #fdf2f8;
}

/* -------------------------------------------------------------------
 * Hero: gradient H1 (the column cap + lead color come from the shared
 * platform-tools.css).
 * ------------------------------------------------------------------- */
.page-hero h1 {
    display: inline-block;
    background: var(--ig-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
/* -------------------------------------------------------------------
 * Story rings: gradient ring > white gap > disc (the post-header icon and
 * the bio mock's avatar).
 * ------------------------------------------------------------------- */
.fit-ring {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ig-ring);
    padding: 3px;
}
.fit-ring-gap {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}
.fit-ring-disc {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--ig-chip);
    color: var(--ig-ink);
    overflow: hidden;
}
.fit-ring-sm { width: 42px;  height: 42px; }
/* pe-7s glyphs inside a ring take the gradient as their fill. */
.fit-ring-disc i {
    font-size: 30px;
    line-height: 1;
    background: var(--ig-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.fit-ring-sm .fit-ring-disc i { font-size: 20px; }

/* -------------------------------------------------------------------
 * Feed: a 2-up grid of post cards directly under the hero (the Tools /
 * Saved tab strip that used to head it went on 2026-09-03 with the Saved
 * feature), collapsing to one column below ~900px of content width.
 * ------------------------------------------------------------------- */
.fit-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

/* Post card */
.fit-post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ig-border);
    border-radius: 12px;
    overflow: hidden;
    scroll-margin-top: 24px;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.fit-post:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.fit-post-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}
.fit-post-id {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
}
.fit-post-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.1px;
    color: var(--ig-ink);
}
.fit-post-name a {
    color: inherit;
}
.fit-post-name a:hover {
    color: var(--ig-ink);
    text-decoration: underline;
}
.fit-post-sub {
    font-size: 12px;
    color: var(--ig-muted);
}
/* The dots: a real button opening the post's action sheet. */
.fit-post-more {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    color: var(--ig-ink);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.fit-post-more:hover,
.fit-post-more[aria-expanded="true"] {
    background: var(--ig-chip);
}
.fit-post-more:focus-visible {
    outline: 2px solid var(--ig-blue);
    outline-offset: 2px;
}

/* Media tile: pastel gradient ground (per tool via --fit-tint) holding
 * the white mock-up. The whole tile links to the tool. overflow: hidden
 * keeps a mock that outgrows the tile from spilling over the card copy
 * (the grid mock did, 2026-09-03); mocks are sized to fit regardless. */
.fit-post-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 264px;
    padding: 22px;
    border-top: 1px solid var(--ig-border);
    border-bottom: 1px solid var(--ig-border);
    background: var(--fit-tint, var(--ig-chip));
    color: var(--ig-ink);
    overflow: hidden;
}
.fit-post-media:hover,
.fit-post-media:focus-visible {
    color: var(--ig-ink);
}
.fit-post-media:focus-visible {
    outline: 2px solid var(--ig-blue);
    outline-offset: -4px;
}
.fit-post-media .fit-mock {
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Facts line + caption directly under the media tile (the action-icon row
 * that used to sit between them is gone, so the facts carry the gap). */
.fit-post-facts,
.fit-post-caption {
    margin: 0;
    padding: 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ig-ink);
}
.fit-post-facts {
    padding-top: 14px;
}
.fit-post-facts strong {
    font-weight: 600;
}
.fit-post-caption {
    margin-top: 6px;
}
.fit-post-cta-wrap {
    margin-top: auto;
    padding: 14px 16px 16px;
}

/* Buttons: Instagram's blue primary. Anchor-styled buttons restate color
 * on :hover so the global a:hover cannot flip the label to link-blue. */
.fit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.fit-btn:focus-visible {
    outline: 2px solid var(--ig-blue);
    outline-offset: 2px;
}
.fit-btn-primary {
    width: 100%;
    background: var(--ig-blue);
    color: #fff;
}
.fit-btn-primary:hover,
.fit-btn-primary:focus-visible {
    background: var(--ig-blue-dark);
    color: #fff;
}
.fit-btn-primary:active {
    transform: translateY(1px);
}

/* -------------------------------------------------------------------
 * Media illustrations: text-free skeletons of each tool's output (bars,
 * pills, dots, a meter) on a white card, so the tile reads as an image
 * and never competes with the card's real copy.
 * ------------------------------------------------------------------- */
.fit-mock {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid var(--ig-border);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: var(--shadow-md);
    color: var(--ig-ink);
}
.fit-post:hover .fit-post-media .fit-mock {
    transform: scale(1.02);
}
.fit-sk-bar {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: #dfe3e8;
}
.fit-sk-bar-dark {
    height: 10px;
    background: #3a3f47;
}
.fit-sk-bar-link {
    background: #a9c8f5;
}
.fit-sk-bar-faint {
    height: 6px;
    background: #eceef1;
}
.fit-sk-lines {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1 1 auto;
    min-width: 0;
}
.fit-sk-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fit-sk-row .fit-sk-bar {
    flex: 0 0 auto;
}

/* bio */
.fit-sk-profile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.fit-mock-face {
    background: linear-gradient(135deg, #fbcfe8 0%, #c4b5fd 100%);
}
.fit-sk-meter {
    height: 7px;
    margin-top: 16px;
    border-radius: 4px;
    background: var(--ig-chip);
    overflow: hidden;
}
.fit-sk-meter span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--ig-grad);
}
.fit-sk-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

/* name */
.fit-sk-name .fit-sk-row {
    padding: 9px 0;
    border-top: 1px solid var(--ig-chip);
}
.fit-sk-name .fit-sk-row:first-child {
    padding-top: 0;
    border-top: 0;
}
.fit-sk-name .fit-sk-row:last-child {
    padding-bottom: 0;
}
.fit-sk-at {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    background: var(--ig-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.fit-mock-score {
    display: inline-flex;
    gap: 3px;
    flex: 0 0 auto;
    margin-left: auto;
}
.fit-mock-score i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ig-chip);
}
.fit-mock-score i.on {
    background: var(--ig-grad);
}

/* caption */
.fit-sk-row-head {
    margin-bottom: 12px;
}
.fit-sk-avatar {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ig-ring);
}
.fit-sk-cut {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 72%;
}
.fit-sk-cut .fit-sk-bar {
    flex: 1 1 auto;
    background: linear-gradient(90deg, #dfe3e8 0%, #dfe3e8 70%, rgba(223, 227, 232, 0) 100%);
}
.fit-sk-more {
    flex: 0 0 auto;
    width: 30px;
    height: 8px;
    border-radius: 4px;
    background: #b9bec6;
}
.fit-sk-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

/* hashtags: pills with a "#" and a tinted bar; row dots mark the tier */
.fit-sk-tags .fit-sk-row {
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 5px 0;
}
.fit-sk-tier {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-right: 2px;
    border-radius: 50%;
    background: #ddd6fe;
}
.fit-sk-row-niche .fit-sk-tier     { background: #fbcfe8; }
.fit-sk-row-community .fit-sk-tier { background: #fed7aa; }
.fit-sk-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 9px 0 8px;
    border-radius: 999px;
    background: var(--ig-chip);
    color: var(--ig-link);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.fit-sk-tag::before {
    content: "#";
}
.fit-sk-tag::after {
    content: "";
    width: var(--w, 40px);
    height: 7px;
    border-radius: 4px;
    background: currentColor;
    opacity: 0.32;
}
.fit-sk-tag-broad     { background: #ede9fe; }
.fit-sk-tag-niche     { background: #fce7f3; }
.fit-sk-tag-community { background: #ffedd5; }
.fit-sk-tag-link      { background: #e8f1fd; }

/* generic fallback for a tool without a bespoke illustration */
.fit-mock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-md);
}
.fit-mock-icon i {
    font-size: 52px;
    line-height: 1;
    background: var(--ig-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* -------------------------------------------------------------------
 * Action sheet (the dots): stacked options on the shared modal backdrop,
 * the way Instagram's post menu looks.
 * ------------------------------------------------------------------- */
.fit-sheet {
    width: min(400px, 100%);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    text-align: center;
}
.fit-sheet-title {
    margin: 0;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ig-muted);
}
.fit-sheet-item {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-top: 1px solid var(--ig-border);
    background: none;
    font: inherit;
    font-size: 14px;
    color: var(--ig-ink);
    cursor: pointer;
    transition: background 0.12s ease;
}
.fit-sheet-item:hover,
.fit-sheet-item:focus-visible {
    background: var(--ig-chip);
    outline: none;
}
.fit-sheet-item.is-primary {
    font-weight: 700;
}
.fit-sheet-item[hidden] {
    display: none;
}
.fit-sheet-cancel {
    font-weight: 600;
}

/* -------------------------------------------------------------------
 * Mobile (project breakpoints: 640px, 420px)
 * ------------------------------------------------------------------- */
@media (max-width: 640px) {
    .fit-feed { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .fit-post-media { height: 236px; padding: 16px; }
    .fit-mock { padding: 14px; }
}

@media (max-width: 420px) {
    .fit-post-media { height: 224px; padding: 12px; }
    .fit-post-facts, .fit-post-caption { font-size: 13.5px; }
}

/* ---- Skeleton kinds for the Instagram tools batch (2026-08-28) ---- */
.fit-sk-bar-thick { height: 12px; border-radius: 6px; }
.fit-sk-bar-skew { transform: skewX(-14deg); }
.fit-sk-bar-wave { background-image: repeating-linear-gradient(90deg, currentColor 0 10px, transparent 10px 16px); }
.fit-sk-bar-dots { background: repeating-linear-gradient(90deg, #c7ced9 0 6px, transparent 6px 11px); }
.fit-sk-gap { display: block; height: 6px; border-top: 2px dashed #f3c6dd; margin: 5px 0 3px; }
.fit-sk-big { display: flex; gap: 6px; margin-bottom: 10px; }
.fit-sk-digit { width: 22px; height: 30px; border-radius: 6px; background: #1f2937; opacity: 0.85; }
.fit-sk-digit.short { width: 14px; }
.fit-sk-result { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.fit-sk-result-pill { width: 54px; height: 18px; border-radius: 999px; background: #d62976; flex: 0 0 auto; }
.fit-sk-frame { position: relative; height: 96px; border-radius: 10px; background: linear-gradient(135deg, #c7d2fe, #f9a8d4); margin-bottom: 10px; overflow: hidden; }
.fit-sk-crop { position: absolute; top: 12px; right: 22px; bottom: 12px; left: 22px; border: 2px dashed #fff; border-radius: 6px; }
.fit-sk-corner { position: absolute; width: 14px; height: 14px; border: 3px solid #fff; }
.fit-sk-corner.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.fit-sk-corner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.fit-sk-phone .fit-sk-screen { position: relative; width: 74px; height: 132px; margin: 0 auto; border-radius: 12px; background: linear-gradient(160deg, #e0f2fe, #fbcfe8); overflow: hidden; }
.fit-sk-band { position: absolute; left: 0; right: 0; background: rgba(214, 41, 118, 0.4); }
.fit-sk-band.top { top: 0; height: 16px; }
.fit-sk-band.bottom { bottom: 0; height: 30px; }
.fit-sk-safe { position: absolute; left: 6px; right: 14px; top: 22px; bottom: 36px; border: 2px solid #22c55e; border-radius: 4px; }
.fit-sk-rail { position: absolute; right: 0; top: 56px; bottom: 30px; width: 10px; background: rgba(214, 41, 118, 0.4); }
/* The grid mock sizes its nine 4:5 tiles in px (42x52) rather than from
 * the mock's width: three fluid-width rows at 4:5 outgrew the 264px media
 * tile and overlapped the card copy (Grid Maker card, 2026-09-03). The
 * card shrinks to its content and sits centered in the tile. */
.fit-sk-grid { width: auto; }
.fit-sk-tiles { display: grid; grid-template-columns: repeat(3, 42px); grid-auto-rows: 52px; gap: 3px; }
.fit-sk-tile { position: relative; background: linear-gradient(135deg, #ede9fe, #fbcfe8); border-radius: 3px; }
.fit-sk-tile i { position: absolute; right: 3px; bottom: 3px; width: 8px; height: 8px; border-radius: 50%; background: #1f2937; opacity: 0.7; }
.fit-sk-pill { width: 28px; height: 12px; border-radius: 999px; margin-left: auto; flex: 0 0 auto; }
.fit-sk-pill-lost { background: #fecaca; }
.fit-sk-pill-new { background: #bbf7d0; }
.fit-sk-pill-mutual { background: #e5e7eb; }
.fit-sk-idea { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.fit-sk-idea .fit-sk-lines { flex: 1 1 auto; }
.fit-sk-bullet { width: 10px; height: 10px; border-radius: 50%; background: #d62976; margin-top: 3px; flex: 0 0 auto; }
.fit-sk-keywords .fit-sk-row { justify-content: space-between; }
.fit-sk-vol i { width: 6px; height: 6px; }
