/*
Theme Name: Flying Pigs
Template: twentytwentyfive
Description: The Flying Pigs Uploader product site. A block child theme of Twenty Twenty-Five in the big-host grammar: Poppins, a dark rounded hero, eyebrow-and-headline sections, soft white cards, a proof band, two plans, a dark close.
Version: 0.3.5
Author: 48hmorris
Text Domain: flying-pigs
*/
@font-face { font-family: "Fredoka"; src: url("assets/fonts/Fredoka-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root { --fp-shadow: 0 8px 24px rgba(59, 34, 48, 0.08); --fp-radius: 28px; }
body { -webkit-font-smoothing: antialiased; }

/* Header: plane and wordmark left, four links and one button right */
/* The header stays at the top as the page scrolls. The sticky box is the template part's own
   <header> wrapper, whose parent is as tall as the page; a hairline and a soft shadow come on
   once the page has moved (lightbox.js sets .is-stuck). Links to #features, #pro and the rest
   stop below it, and a signed-in visitor's toolbar pushes it down. */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; background: var(--wp--preset--color--white, #fff); transition: box-shadow 0.2s ease; }
header.wp-block-template-part.is-stuck { box-shadow: 0 1px 0 var(--wp--preset--color--line, #EBE3E6), 0 6px 18px rgba(59, 34, 48, 0.07); }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }
html { scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { header.wp-block-template-part { transition: none; } }
.fp-header { padding-block: 14px; }
.fp-header .wp-block-site-title a { display: inline-flex; align-items: center; gap: 10px; font-family: Fredoka, sans-serif; font-weight: 600; font-size: 1.35rem; text-decoration: none; color: var(--wp--preset--color--plum); }
.fp-header .wp-block-site-title a::before { content: ""; display: inline-block; width: 70px; height: 32px; background: url("assets/img/flying-pigs-mark.svg") no-repeat center / contain; }
.fp-header .wp-block-navigation { gap: 6px; }
.fp-header .wp-block-navigation a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--wp--preset--color--ink); padding: 8px 12px; border-radius: 8px; }
.fp-header .wp-block-navigation a:hover { color: var(--wp--preset--color--rose); }
.fp-header .wp-block-navigation .fp-nav-cta a { background: var(--wp--preset--color--rose); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 10px; margin-left: 8px; }
.fp-header .wp-block-navigation .fp-nav-cta a:hover { background: var(--wp--preset--color--plum); color: #fff; }
.fp-header .wp-block-navigation .fp-nav-buy a { background: #2f9e44; }
.fp-header .wp-block-navigation .fp-nav-buy a:hover { background: #237a34; }

/* Section grammar: eyebrow, two-beat headline, one intro line */
.fp-sec { padding-top: clamp(4rem, 8vw, 6.5rem); }
.fp-eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--rose); margin: 0 0 0.9rem; }
.fp-sec h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 0.8rem; }
.fp-intro { font-size: 1.1rem; color: var(--wp--preset--color--sub); max-width: 62ch; margin: 0 0 2.6rem; line-height: 1.6; }
.fp-center { text-align: center; }
.fp-center .fp-intro, .fp-center h2 { margin-left: auto; margin-right: auto; }

/* Buttons */
.fp-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.fp-btn { display: inline-block; border-radius: 10px; padding: 13px 24px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.fp-btn-solid { background: var(--wp--preset--color--rose); color: #fff; }
.fp-btn-solid:hover { background: var(--wp--preset--color--pig); color: var(--wp--preset--color--plum); }
.fp-btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff; }
.fp-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.fp-on-white .fp-btn-ghost { border-color: var(--wp--preset--color--plum); color: var(--wp--preset--color--plum); }
.fp-on-white .fp-btn-ghost:hover { background: var(--wp--preset--color--panel); }

/* Hero: the dark rounded panel. Question, NONE, the pigs line, the plane as cargo. */
.fp-hero { background: var(--wp--preset--color--plum); color: #fff; border-radius: var(--fp-radius); margin-top: 1.5rem; padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem; align-items: center; }
.fp-hero .fp-eyebrow { color: var(--wp--preset--color--pig); }
.fp-hero h1 { color: #fff; font-size: clamp(1.35rem, 2.3vw, 1.9rem); font-weight: 500; line-height: 1.3; letter-spacing: 0; margin: 0 0 0.4rem; max-width: 26ch; }
.fp-none { font-size: clamp(5.5rem, 13vw, 10rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; color: var(--wp--preset--color--pig); margin: 0 0 1.1rem; }
.fp-hero .fp-lede { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; color: #fff; line-height: 1.35; margin: 0 0 1rem; max-width: 30ch; }
.fp-hero .fp-body { color: rgba(255, 255, 255, 0.78); font-size: 1rem; line-height: 1.6; max-width: 50ch; margin: 0 0 1.8rem; }
.fp-hero-art img { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
@media (max-width: 860px) {
  .fp-hero { grid-template-columns: 1fr; text-align: center; }
  .fp-hero h1, .fp-hero .fp-lede, .fp-hero .fp-body { margin-left: auto; margin-right: auto; }
  .fp-hero .fp-btns { justify-content: center; }
  .fp-hero-art { order: -1; }
  .fp-hero-art img { max-width: 300px; }
}

/* Cards: one per row, text on one side and the interface crop on the other, sides alternating */
.fp-cards { display: grid; grid-template-columns: 1fr; gap: 24px; text-align: left; }
.fp-card { background: #fff; border-radius: var(--fp-radius); box-shadow: var(--fp-shadow); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
.fp-card img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 2px 12px rgba(59, 34, 48, 0.14); cursor: zoom-in; transition: transform 0.15s; }
.fp-card img:hover { transform: scale(1.015); }
.fp-card-text p + p:not(.fp-label) { margin-top: 0.9em; }
/* A screenshot that is small by nature (the pop-out window): shown at its own size, never stretched. */
.fp-card img.fp-img-natural { width: auto; max-width: min(100%, 480px); justify-self: center; }
.fp-card:nth-child(odd) img, .fp-card:nth-child(odd) .fp-card-pics { order: 2; }
.fp-card-pics { display: grid; gap: 14px; }
/* Three pictures: the first across the top, the other two side by side under it */
.fp-card-pics--trio { grid-template-columns: 1fr 1fr; align-items: start; }
.fp-card-pics--trio img:first-child { grid-column: 1 / -1; }
@media (max-width: 520px) { .fp-card-pics--trio { grid-template-columns: 1fr; } }
.fp-card .fp-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--sub); margin: 0 0 8px; }
.fp-card h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 600; line-height: 1.2; margin: 0 0 0.6rem; }
.fp-card p { color: var(--wp--preset--color--sub); font-size: 1rem; line-height: 1.6; margin: 0; max-width: 46ch; }
.fp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; }
.fp-chip { font-size: 0.78rem; font-weight: 600; background: var(--wp--preset--color--panel); color: var(--wp--preset--color--plum); border-radius: 999px; padding: 5px 11px; }
.fp-chip::before { content: "\2713\00a0"; color: var(--wp--preset--color--rose); }
.fp-chip-pro { background: var(--wp--preset--color--plum); color: #fff; }
.fp-chip-pro::before { color: var(--wp--preset--color--pig); }
.fp-band .fp-card { box-shadow: none; border: 1px solid var(--wp--preset--color--line); }
@media (max-width: 800px) {
  .fp-card { grid-template-columns: 1fr; gap: 20px; padding: 18px 18px 24px; }
  .fp-card:nth-child(odd) img, .fp-card:nth-child(odd) .fp-card-pics { order: 0; }
}

/* Tinted band for the second chapter */
.fp-band { background: var(--wp--preset--color--panel); border-radius: var(--fp-radius); padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem); }

/* Proof band: four big numbers, one credit line */
.fp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 2.5rem auto 2rem; max-width: 1000px; text-align: left; }
.fp-stat { border-top: 3px solid var(--wp--preset--color--pig); padding-top: 18px; }
.fp-stat b { display: block; font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--wp--preset--color--plum); }
.fp-stat span { display: block; color: var(--wp--preset--color--sub); font-size: 0.95rem; line-height: 1.45; margin-top: 10px; }
.fp-credit { font-size: 0.9rem; color: var(--wp--preset--color--sub); max-width: 62ch; margin: 0 auto 1.6rem; }
.fp-proof .fp-btns { justify-content: center; }
@media (max-width: 900px) { .fp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Plans */
.fp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 0.5rem auto 0; text-align: left; }
.fp-plan { background: #fff; border: 1.5px solid #CBB9C2; border-radius: 20px; padding: 30px 28px 28px; position: relative; }
.fp-plan-pro { border: 2px solid #6E3B8F; box-shadow: var(--fp-shadow); }
.fp-plan-tab { position: absolute; top: -14px; left: 28px; background: #6E3B8F; color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: 8px; }
.fp-plan h3 { font-size: 1.4rem; font-weight: 600; margin: 0 0 2px; }
.fp-plan .fp-for { color: var(--wp--preset--color--sub); font-size: 0.95rem; margin: 0; }
.fp-plan .fp-amount { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 18px 0 2px; }
.fp-plan .fp-term { color: var(--wp--preset--color--sub); font-size: 0.9rem; margin: 0 0 20px; }
.fp-plan .fp-btn { display: block; text-align: center; }
.fp-plan-free .fp-btn { background: var(--wp--preset--color--plum); }
.fp-plan-free .fp-btn:hover { background: var(--wp--preset--color--rose); color: #fff; }
.fp-plan ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.fp-plan li { padding-left: 26px; position: relative; line-height: 1.45; }
.fp-plan li::before { content: "\2713"; position: absolute; left: 2px; top: 0; color: var(--wp--preset--color--rose); font-weight: 700; }
.fp-plan .fp-fine { font-size: 0.85rem; color: var(--wp--preset--color--sub); margin: 18px 0 0; line-height: 1.5; }
@media (max-width: 760px) { .fp-plans { grid-template-columns: 1fr; } }
.fp-plan .fp-amount .fp-from { font-size: 1rem; font-weight: 500; color: var(--wp--preset--color--sub); letter-spacing: 0; }

/* Get Pro: three license cards, the store's own PayPal buttons inside (eStore shortcodes) */
.fp-licenses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 980px; margin: 1.2rem auto 0; text-align: center; }
.fp-license { background: #fff; border: 1.5px solid #CBB9C2; border-radius: 20px; padding: 30px 22px 24px; position: relative; display: flex; flex-direction: column; }
.fp-license-mid { border: 2px solid #6E3B8F; box-shadow: var(--fp-shadow); }
.fp-license .fp-plan-tab { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.fp-license h3 { font-size: 1.25rem; font-weight: 600; margin: 0; }
.fp-license .fp-amount { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 14px 0 6px; }
.fp-license .fp-term { color: var(--wp--preset--color--sub); font-size: 0.92rem; line-height: 1.45; margin: 0 0 18px; flex: 1; }
.fp-btn-soon, .fp-btn-soon:hover { display: block; text-align: center; background: #E9E1E5; color: var(--wp--preset--color--sub); cursor: not-allowed; user-select: none; }
.fp-buy form { margin: 0; }
.fp-buy .eStore_button_wrapper { display: flex; justify-content: center; }
.fp-buy input[type="image"] { display: block; height: auto; max-width: 100%; border: 0; padding: 0; background: none; }
@media (max-width: 820px) { .fp-licenses { grid-template-columns: 1fr; max-width: 420px; } }
#buynow .fp-credit { margin: 1.8rem auto 0; max-width: 620px; font-size: 0.88rem; color: var(--wp--preset--color--sub); }

/* The dark close */
.fp-cta { background: var(--wp--preset--color--plum); color: #fff; border-radius: var(--fp-radius); padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem); text-align: center; }
.fp-cta .fp-eyebrow { color: var(--wp--preset--color--pig); }
.fp-cta h2 { color: #fff; }
.fp-cta p { color: rgba(255, 255, 255, 0.78); max-width: 52ch; margin: 0 auto 1.8rem; }
.fp-cta .fp-btns { justify-content: center; }

/* FAQ */
.fp-faq { max-width: 760px; margin: 0 auto; text-align: left; }
.fp-faq details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 18px 0; }
.fp-faq summary { font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.fp-faq summary::-webkit-details-marker { display: none; }
.fp-faq summary::after { content: "+"; color: var(--wp--preset--color--rose); font-size: 1.4rem; font-weight: 500; line-height: 1; }
.fp-faq details[open] summary::after { content: "\2212"; }
.fp-faq p { color: var(--wp--preset--color--sub); margin: 10px 0 0; line-height: 1.6; }

.fp-footer { padding-block: 3rem 2.5rem; color: var(--wp--preset--color--sub); font-size: 0.9rem; }
.fp-footer a { color: inherit; }
a:focus-visible, .fp-btn:focus-visible { outline: 3px solid var(--wp--preset--color--rose); outline-offset: 2px; }

/* Lightbox: the full-size picture on a dark field */
.fp-lightbox { border: 0; border-radius: 16px; padding: 0; background: #fff; max-width: min(96vw, 1400px); max-height: 94vh; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45); }
.fp-lightbox::backdrop { background: rgba(31, 26, 29, 0.82); }
.fp-lightbox img { display: block; max-width: min(96vw, 1400px); max-height: calc(94vh - 56px); width: auto; height: auto; object-fit: contain; border-radius: 16px 16px 0 0; }
.fp-lightbox-cap { margin: 0; padding: 14px 20px; font-size: 0.95rem; color: var(--wp--preset--color--sub); }
.fp-lightbox-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(31, 26, 29, 0.7); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.fp-lightbox-close:hover { background: var(--wp--preset--color--rose); }
