/* Freebie pages. Builds on site.css tokens and components. */
.freebie-page main > .wrap:first-child .breadcrumbs { padding-top: 32px; }

/* Pastel labels taken from the widget's own card colors */
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 9999px; font-size: 14px; line-height: 20px; font-weight: 600; }
.pill.pink { background: #FAD7E6; color: #8C2457; }
.pill.yellow { background: #FBEFB8; color: #6A4B00; }
.pill.lilac { background: #E4DCFF; color: #5A3DAE; }
.pill.blue { background: #D7E5FF; color: #2A4D9E; }

/* Hero */
.fb-hero { padding: 48px 0 64px; }
.fb-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.fb-hero h1 {
    margin-top: 24px; max-width: 680px; font-size: 72px; line-height: 1; font-weight: 600;
    background: linear-gradient(90deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-bottom: 8px;
}
.fb-hero .lead { margin-top: 24px; max-width: 680px; font-size: 18px; line-height: 28px; color: var(--muted); }
.fb-hero .kicker b { background: #FBEFB8; color: #6A4B00; }
.dl { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.dl small { font-size: 14px; line-height: 20px; color: var(--faint); }
.dl.center { justify-content: center; }
.dl .btn i { font-size: 20px; transition: transform .7s var(--ease); }
.dl .btn:hover i { transform: translateY(2px); }
.dl .btn.done { background: #1F6B45; box-shadow: none; }
.stage { position: relative; }
.frame {
    border-radius: 24px; overflow: hidden; background: var(--s2); border: 1px solid var(--line);
    aspect-ratio: 720 / 864; box-shadow: 0 32px 80px rgba(0, 0, 0, .6);
}
.frame video { width: 100%; height: 100%; object-fit: cover; }
.sticker {
    position: absolute; z-index: 1; top: -16px; left: -16px; padding: 8px 16px; border-radius: 16px;
    background: #FBEFB8; color: #3A2A4A; border: 2px solid #3A2A4A; box-shadow: 4px 4px 0 #3A2A4A;
    font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-6deg);
}

/* Feature rows */
.fb-row { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.fb-row.flip .txt { order: 2; }
.fb-row.wide { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.fb-row.wide .txt { max-width: 680px; }
.fb-row h3 { margin-top: 16px; font-size: 30px; line-height: 36px; }
.fb-row p { margin-top: 12px; font-size: 16px; line-height: 28px; color: var(--muted); }
.panel { border-radius: 24px; background: var(--s1); border: 1px solid var(--line); padding: 24px; }
.panel.media { padding: 8px; overflow: hidden; }
.panel.media img, .panel.media video { width: 100%; height: auto; border-radius: 16px; }
.mascots { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mascots li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--muted); text-align: center; }
.mascots img { width: 100%; max-width: 120px; height: auto; transition: transform .7s var(--ease); }
.mascots li:hover img { transform: translateY(-8px) rotate(-4deg); }
.gobble { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: gobble; }
.gobble li { counter-increment: gobble; display: flex; flex-direction: column; gap: 12px; }
.gobble img { width: 100%; height: auto; border-radius: 12px; background: var(--s2); padding: 12px; box-sizing: border-box; }
.gobble span { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.gobble span::before {
    content: counter(gobble); flex: none; width: 24px; height: 24px; border-radius: 9999px; display: grid; place-items: center;
    background: #FBEFB8; color: #3A2A4A; font-size: 12px; line-height: 16px; font-weight: 700;
}
.extras { list-style: none; margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.extras li {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line);
    font-size: 14px; line-height: 20px; color: var(--muted);
}
.extras i { flex: none; font-size: 20px; color: var(--accent); }

/* Setup, contents and license */
.freebie-page .steps { list-style: none; }
.freebie-page .head h2 + p { max-width: 680px; }
.fb-terms { padding-top: 0; }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.terms h3 { display: flex; align-items: center; gap: 8px; font-size: 20px; line-height: 28px; }
.terms h3 i { color: var(--accent); font-size: 24px; }
.files, .rules { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.files li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 12px; background: var(--s2); font-size: 14px; line-height: 20px; }
.files small { color: var(--faint); font-size: 14px; line-height: 20px; text-align: right; }
.rules li { display: flex; gap: 12px; font-size: 14px; line-height: 20px; color: var(--muted); padding: 4px 0; }
.rules i { flex: none; width: 20px; height: 20px; border-radius: 9999px; display: grid; place-items: center; font-size: 12px; }
.rules .yes i { background: #D4F2E2; color: #1F6B45; }
.rules .no i { background: #FAD7E6; color: #8C2457; }
.freebie-page details a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Final call to action */
.final { max-width: 800px; margin: 0 auto; padding: 48px 24px; border-radius: 24px; background: var(--s1); border: 1px solid var(--line); text-align: center; }
.final img { width: 96px; height: auto; margin: 0 auto; }
.final h2 { margin-top: 16px; font-size: 36px; line-height: 40px; }
.final p { margin-top: 12px; color: var(--muted); }
.final .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--muted); transition: color .7s var(--ease); }
.final .more:hover { color: var(--text); }
.final .more i { transition: transform .7s var(--ease); }
.final .more:hover i { transform: translateX(4px); }

/* Overview */
.freebies { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.freebie-card {
    display: flex; flex-direction: column; border-radius: 24px; background: var(--s1); border: 1px solid var(--line); padding: 8px;
    transition: transform .7s var(--ease), border-color .7s var(--ease), background-color .7s var(--ease);
}
.freebie-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--s2); }
.freebie-card:active { transform: scale(0.98); }
.freebie-card .img { border-radius: 16px; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--s3); }
.freebie-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.freebie-card:hover img { transform: scale(1.03); }
.freebie-card .meta { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 16px 16px 12px; }
.freebie-card .card-title { margin-top: 12px; font-size: 24px; line-height: 32px; }
.freebie-card p { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.freebie-card .go { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent); transition: color .7s var(--ease); }
.freebie-card:hover .go { color: var(--text); }

@media (max-width: 1080px) {
    .fb-hero h1 { font-size: 60px; }
    .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .fb-hero { padding: 32px 0 64px; }
    .fb-hero .wrap, .fb-row, .terms, .freebies { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .fb-hero .stage { max-width: 440px; margin: 0 auto; width: 100%; }
    .fb-row { margin-top: 48px; }
    .fb-row.flip .txt { order: 0; }
    .gobble { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .fb-hero h1 { font-size: 48px; }
    .fb-hero .lead { font-size: 16px; line-height: 24px; }
    .fb-row h3 { font-size: 24px; line-height: 32px; }
    .panel { padding: 16px; }
    .mascots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .extras { grid-template-columns: minmax(0, 1fr); }
    .sticker { top: -12px; left: -4px; font-size: 20px; line-height: 28px; }
    .final h2 { font-size: 30px; line-height: 36px; }
    .files li { flex-direction: column; gap: 4px; }
    .files small { text-align: left; }
}
