/* When Pigs Fly USA — whenpigsflybrand.com
   One scrolling story built around the 100-envelope grid. Old brand on purpose: black, white and yellow #FFDE59,
   Futura-like display type (Jost). Single light look: the brand is black, white and yellow. */
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url("fonts/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 700; font-display: swap; src: url("fonts/jost-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 800; font-display: swap; src: url("fonts/jost-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #161513;
  --ink-2: #4a4740;
  --ink-3: #7b776d;
  --paper: #ffffff;
  --butter: #fff6cf;
  --yellow: #ffde59;
  --line: #e9e4d3;
  --teal: #19a7b0;
  --lilac: #b9a4e0;
  --rose: #f2b8cb;
  --pink: #fbd8e0;     /* the pig in the logo */
  --black: #000000;    /* the logo artwork sits on pure black */
  --display: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--ink-2); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons: TikTok Shop is the main door, Amazon the second */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-secondary { background: var(--paper); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.note { font-size: 0.85rem; color: var(--ink-3); }

/* Top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo img { height: 44px; width: auto; }
.logo .word { height: 17px; }
.top nav { display: flex; gap: 24px; font-family: var(--display); font-weight: 600; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; white-space: nowrap; flex: none; }

/* Hero */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 .money, .lp-hero h1 .money { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 .08em; }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 24px; background: var(--pink); z-index: -1; }
.hero-photo { isolation: isolate; }
.hero-free { display: grid; gap: 10px; padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--butter); }
.hero-free p { font-size: .98rem; }
.hero-free .form input[type="email"] { border-color: var(--ink); min-height: 48px; }
.hero-free .form .btn { border-color: var(--ink); min-height: 48px; }
.hero-free .form-msg { color: var(--ink); font-weight: 600; min-height: 0; }
.hero-free .form-msg:empty { display: none; }
.proof { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.proof .stars { color: var(--ink); letter-spacing: 2px; }
.hero-photo { position: relative; min-width: 0; }
.hero-photo img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.sticker { position: absolute; left: -18px; bottom: 28px; background: var(--yellow); border-radius: 50%; width: 132px; height: 132px; display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 800; line-height: 1; transform: rotate(-8deg); box-shadow: 0 10px 30px rgba(22,21,19,.18); }
.sticker b { display: block; font-size: 1.9rem; }
.sticker span { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* The envelope board: the 100 numbers, tap to stuff one */
.board-band { background: var(--butter); padding-block: 72px; }
.board-band .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.board-copy { display: grid; gap: 18px; min-width: 0; }
.tally { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.tally small { font-size: .45em; font-weight: 600; color: var(--ink-3); }
.meter { height: 12px; background: var(--paper); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.meter i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s ease; }
.board { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.cell { aspect-ratio: 1; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); font-family: var(--display); font-weight: 600; font-size: clamp(.62rem, 1.4vw, .95rem); font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; display: grid; place-items: center; position: relative; padding: 0; transition: background .12s ease; }
.cell:hover { background: var(--yellow); }
.cell.done { background: var(--ink); color: var(--paper); }
.cell.done::after { content: ""; position: absolute; inset: 22% 18%; border-top: 2px solid var(--yellow); transform: rotate(-35deg) translateY(45%); }
.board-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 8px 14px; font-family: var(--display); font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink); }
.chip:hover { background: var(--paper); }

/* How it works: a real sequence, so it is numbered */
.how { padding-block: 80px; }
.how-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 640px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { display: grid; gap: 14px; align-content: start; min-width: 0; }
.step img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.step .n { font-family: var(--display); font-weight: 800; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); }
.step p { color: var(--ink-2); }

/* The binder */
.binder { padding-block: 80px; border-top: 1px solid var(--line); }
.binder .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.binder-photo { min-width: 0; position: sticky; top: 90px; }
.binder-photo img { border-radius: 24px; width: 100%; }
.binder-text { display: grid; gap: 24px; min-width: 0; }
.price { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); }
.price b { font-size: 2.2rem; font-weight: 800; }
.price s { color: var(--ink-3); font-size: 1.1rem; }
.colors { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.swatches figure { margin: 0; display: grid; gap: 8px; min-width: 0; }
.swatches img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--pink); }
.swatches figcaption { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: .95rem; }
.buy-color { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .88rem; }
.buy-color a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.buy-color a:hover { color: var(--ink); }
.swatches figcaption i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(22,21,19,.15); }
.color { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1.5px solid var(--line); border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: .92rem; }
.color i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(22,21,19,.15); }
.inside { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.inside li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.inside .qty { font-family: var(--display); font-weight: 800; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.inside span { color: var(--ink-2); }
.inside strong { color: var(--ink); font-weight: 600; }

/* Free challenges (email list) */
.free { background: var(--black); color: var(--paper); padding-block: 80px; }
.free .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.free h2 { color: var(--paper); }
.free h2 em { font-style: normal; color: var(--yellow); }
.free-text { display: grid; gap: 18px; min-width: 0; }
.free p { color: #d9d5c9; }
.free .eyebrow { color: var(--yellow); }
.form { display: flex; flex-wrap: wrap; gap: 10px; }
.form input[type="email"] { flex: 1 1 240px; min-width: 0; min-height: 54px; border-radius: 999px; border: 2px solid var(--paper); background: var(--paper); color: var(--ink); padding: 0 20px; font: inherit; }
.form .btn { border-color: var(--yellow); }
.form .hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.4em; font-size: .95rem; color: var(--yellow); }
.free-photo { min-width: 0; }
.free-photo img { border-radius: 24px; transform: rotate(2deg); width: 100%; }
.fine { font-size: .8rem; color: #a8a396; }
.fine a { color: #d9d5c9; }

/* Why it works */
.why { padding-block: 80px; }
.why .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.why-head { grid-column: 1 / -1; display: grid; gap: 12px; max-width: 680px; margin-bottom: 8px; }
.why-item { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 3px solid var(--ink); }
.why-item p { color: var(--ink-2); }

/* FAQ */
.faq { padding-block: 80px; background: var(--butter); }
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq details { border-bottom: 1px solid #e6dcb0; padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* Final call + footer */
.last { padding-block: 88px; text-align: center; }
.last .wrap { display: grid; gap: 22px; justify-items: center; }
.last-mark { width: 96px; height: auto; }
footer { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-dark { background: var(--black); color: #d9d5c9; border-top: 0; padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
.footer-dark strong { color: var(--pink); }
.footer-dark a { color: var(--paper); }
.footer-logo { width: 120px; height: auto; }

/* Legal pages */
.legal { padding-block: 56px 88px; }
.legal .wrap { max-width: 760px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.4rem; margin-top: 18px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal a { text-decoration: underline; }

.top .sm { display: none; }
@media (max-width: 520px) { .top .lg { display: none; } .top .sm { display: inline; } }

/* Landing for ads (/challenge/): the email form is the first thing, then proof from real buyers */
.lp-hero { padding-block: 40px 64px; background: var(--butter); }
.lp-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lp-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
.lp-hero .form input[type="email"] { border-color: var(--ink); }
.lp-hero .form .btn { border-color: var(--ink); }
.lp-hero .form-msg { color: var(--ink); font-weight: 600; }
.lp-hero .fine { color: var(--ink-3); }
.lp-hero .fine a { color: var(--ink-2); }
.lp-photo { position: relative; min-width: 0; }
.lp-photo img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.quote-card { position: absolute; left: -24px; bottom: 24px; right: 24px; background: var(--paper); border-radius: 18px; padding: 16px 18px; box-shadow: 0 14px 40px rgba(22,21,19,.18); display: grid; gap: 6px; }
.quote-card p { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.who { font-size: .84rem; color: var(--ink-3); }
.who b { color: var(--ink-2); font-weight: 600; }
.stars { color: var(--ink); letter-spacing: 2px; }
.ratings { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; color: var(--ink-2); }
.ratings span { display: inline-flex; align-items: center; gap: 8px; }

.ugc { padding-block: 64px; }
.ugc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 28px; }
.ugc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ugc-grid img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.ugc-grid img:nth-child(1) { grid-column: span 2; grid-row: span 2; }

.photo-reviews { padding-block: 64px; }
.pr-grid { columns: 3 300px; column-gap: 18px; }
.pr { break-inside: avoid; margin: 0 0 18px; border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 12px 18px; display: grid; gap: 10px; background: var(--paper); }
.pr-main { border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.pr p { color: var(--ink-2); padding-inline: 6px; }
.pr .stars, .pr .who { padding-inline: 6px; }
.pr-thumbs { display: flex; gap: 8px; padding-inline: 2px; }
.pr-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; width: 56px; height: 56px; overflow: hidden; flex: none; }
.pr-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.pr-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.story { padding-block: 72px; border-top: 1px solid var(--line); }
.story .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.story-points { display: grid; gap: 28px; counter-reset: pt; }
.story-points div { display: grid; grid-template-columns: 46px 1fr; gap: 6px 16px; }
.story-points div::before { counter-increment: pt; content: counter(pt); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.story-points p { color: var(--ink-2); }
.pull { margin: 0; padding: 22px 24px; border-left: 4px solid var(--yellow); background: var(--butter); border-radius: 0 var(--radius) var(--radius) 0; display: grid; gap: 8px; }
.pull p { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.35; }

.gets { padding-block: 72px; background: var(--pink); }
.gets .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.gets img { border-radius: 24px; width: 100%; }
.gets ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.gets li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; }
.gets li::before { content: "✓"; font-family: var(--display); font-weight: 800; }
.gets-text { display: grid; gap: 20px; min-width: 0; }

.reviews { padding-block: 72px; }
.reviews-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 680px; }
.review-grid { columns: 3 280px; column-gap: 16px; }
.review { break-inside: avoid; margin: 0 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; background: var(--paper); }
.review img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.review h3 { font-size: 1.05rem; }
.review p { color: var(--ink-2); }

.vids { padding-block: 64px; background: var(--black); color: var(--paper); }
.vids h2 { color: var(--paper); }
.vids .eyebrow { color: var(--yellow); }
.vid-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.vid-row video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: #222; }
.vid-row figure { margin: 0; display: grid; gap: 8px; min-width: 0; }
.vid-row figcaption { font-size: .88rem; color: #d9d5c9; }
.vid-row figcaption b { color: var(--paper); font-weight: 600; }
.vids-note { margin-top: 18px; color: #a8a396; }

.plug { padding-block: 64px; border-top: 1px solid var(--line); }
.plug .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.plug img { border-radius: 18px; }
.plug-text { display: grid; gap: 16px; min-width: 0; }

@media (max-width: 900px) {
  .lp-hero .wrap, .story .wrap, .gets .wrap, .plug .wrap { grid-template-columns: 1fr; gap: 28px; }
  .lp-hero { padding-block: 24px 48px; }
  .lp-photo img { aspect-ratio: 1; }
  .quote-card { left: 12px; right: 12px; bottom: -28px; }
  .lp-photo { margin-bottom: 28px; }
  .ugc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vid-row { grid-template-columns: repeat(6, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .vid-row figure { scroll-snap-align: start; }
  .pr-grid { columns: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; align-items: start; }
  .pr { margin: 0; scroll-snap-align: start; }
  .plug img { max-width: 200px; }
}

@media (max-width: 900px) {
  .top nav { display: none; }
  .hero .wrap, .board-band .wrap, .binder .wrap, .free .wrap, .faq .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-block: 32px 56px; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 5 / 4; }
  .sticker { width: 104px; height: 104px; left: 12px; bottom: -22px; }
  .sticker b { font-size: 1.5rem; }
  .hero-photo::before { inset: 12px -8px -12px 12px; }
  .logo img { height: 36px; }
  .logo .word { height: 14px; }
  .binder-photo { position: static; }
  .steps, .why .wrap { grid-template-columns: 1fr; }
  .step { grid-template-columns: 110px 1fr; align-items: center; column-gap: 16px; }
  .step img { grid-row: span 3; }
  .board { gap: 4px; }
  .cell { border-radius: 5px; }
  .btns .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .top .wrap { gap: 10px; }
  .logo { gap: 8px; }
  .logo img { height: 30px; }
  .logo .word { height: 11px; }
  .top .btn { padding: 0 14px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
