/* The PF Sites page (/pf-sites). Colours come from the site's own settings, so light and dark follow theme.v1.css. */

@font-face {
  font-family: "Instrument Serif";
  src: url('/assets/pf-sites/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

.pfs em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- The film at the top ---------- */
.pfs-hero { position: relative; min-height: min(86vh, 820px); display: grid; align-items: end; justify-items: center; overflow: hidden; background: #0b0f17; color: #fff; }
.pfs-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pfs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 18, .28) 0%, rgba(6, 10, 18, .18) 40%, rgba(6, 10, 18, .78) 100%); }
.pfs-hero-in { position: relative; z-index: 1; text-align: center; padding: 120px var(--pad-x) clamp(56px, 9vh, 96px); max-width: 1100px; }
.pfs-hero h1 { color: #fff; font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; }
.pfs-hero h1 em { font-size: 1.06em; }
.pfs-chips { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pfs-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pfs-chips li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f44' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pfs-hero .btn { margin-top: 28px; }

/* ---------- Examples ---------- */
.pfs-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); }
.pfs-head .eyebrow { justify-content: center; }
.pfs-head h2 { margin-top: 10px; }
.pfs-head p.lead { margin-top: 12px; color: var(--ink-3); }
.pfs-examples { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pfs-ex { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--pf-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pfs-ex img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.pfs-ex figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.pfs-ex b { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.pfs-ex span { font-size: 13px; color: var(--ink-3); }
.pfs-kinds { margin: clamp(28px, 4vw, 44px) 0 0; text-align: center; font-size: 14.5px; color: var(--ink-3); line-height: 1.9; }
@media (max-width: 1024px) { .pfs-examples { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .pfs-examples { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- Three things it does ---------- */
.pfs-gain { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.pfs-gain + .pfs-gain { border-top: 1px solid var(--line); }
.pfs-gain:nth-of-type(even) .pfs-gain-art { order: -1; }
.pfs-num { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--pf-blue); font-feature-settings: "tnum"; }
.pfs-gain h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.025em; margin: 10px 0 12px; color: var(--ink); }
.pfs-gain p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.pfs-gain-art { border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); padding: clamp(16px, 2.4vw, 28px); display: grid; place-items: center; min-height: 260px; }
.pfs-gain-art video { display: block; width: 100%; border-radius: 12px; box-shadow: var(--shadow-md); }
.pfs-paper { width: min(340px, 100%); background: var(--pf-card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); padding: 18px 18px 16px; font-size: 14px; color: var(--ink-2); }
.pfs-paper-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.pfs-paper small { display: block; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.pfs-paper b { color: var(--ink); font-weight: 600; }
.pfs-paid { font-style: normal; font-size: 12px; font-weight: 700; color: #15803d; background: rgba(22, 163, 74, .12); border-radius: 999px; padding: 4px 10px; }
.pfs-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-feature-settings: "tnum"; }
.pfs-row.total { font-weight: 700; color: var(--ink); }
.pfs-cards { display: grid; gap: 14px; width: min(340px, 100%); }
.pfs-gift { border-radius: 16px; padding: 18px; color: #fff; background: linear-gradient(135deg, #17306a 0%, #0a1f44 60%, #06142f 100%); box-shadow: var(--shadow-md); }
.pfs-gift small { display: block; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: .75; }
.pfs-gift b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 14px; }
.pfs-gift span { display: block; font-size: 14px; opacity: .9; }
.pfs-gift u { text-decoration: none; display: block; margin-top: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: 0.08em; opacity: .9; }
.pfs-person { display: flex; align-items: center; gap: 12px; background: var(--pf-card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.pfs-person i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; color: var(--pf-btn-ink); background: var(--pf-btn); }
.pfs-person b { display: block; font-size: 14.5px; color: var(--ink); }
.pfs-person span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 820px) {
  .pfs-gain { grid-template-columns: 1fr; gap: 20px; }
  .pfs-gain:nth-of-type(even) .pfs-gain-art { order: 0; }
}

/* ---------- Questions ---------- */
.pfs-faq { max-width: 820px; margin: 0 auto; }
.pfs-more { text-align: center; margin-top: 26px; }

/* ---------- Start: sign up and log in, at the foot of the page ---------- */
.pfs-close { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: #0b0f17; color: #fff; display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 64px); }
.pfs-close::before { content: ""; position: absolute; inset: 0; background: url('/assets/pf-sites/restaurant.jpg') center / cover no-repeat; opacity: .34; filter: blur(2px) saturate(1.1); transform: scale(1.05); }
.pfs-close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 12, 22, .92) 0%, rgba(8, 12, 22, .72) 55%, rgba(8, 12, 22, .35) 100%); }
.pfs-close > * { position: relative; z-index: 1; min-width: 0; }
.pfs-close img.pfs-logo { width: 56px; height: 56px; border-radius: 14px; display: block; margin-bottom: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.pfs-close h2 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.03em; margin: 0; }
.pfs-close p { color: rgba(255, 255, 255, .82); font-size: 18px; margin: 14px 0 0; }
.pfs-namer { margin-top: 24px; width: 100%; display: flex; gap: 8px; align-items: center; max-width: 480px; background: rgba(255, 255, 255, .96); border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.pfs-namer input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16.5px; color: #10141b; }
.pfs-namer input::placeholder { color: #6e6e73; }
.pfs-namer .btn { flex: none; background: #e4ecfa; color: #0a1f44; border: 1px solid rgba(10, 31, 68, .12); }
.pfs-namer:focus-within { box-shadow: 0 0 0 4px rgba(127, 176, 255, .45), 0 20px 50px -20px rgba(0, 0, 0, .6); }
.pfs-close p.pfs-have { font-size: 15.5px; margin-top: 18px; }
.pfs-have a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pfs-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transform: rotate(-3deg) scale(.96); }
.pfs-collage img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; display: block; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .7); }
.pfs-collage img:nth-child(odd) { transform: translateY(18px); }
@media (max-width: 900px) {
  .pfs-close { grid-template-columns: 1fr; }
  .pfs-collage { display: none; }
}
@media (max-width: 480px) {
  .pfs-namer { padding-left: 16px; }
  .pfs-namer .btn { padding: 10px 14px; font-size: 14px; }
}

/* In dark the paid mark and the film's own button keep their contrast. */
@media (prefers-color-scheme: dark) {
  .pfs-paid { color: #86efac; background: rgba(134, 239, 172, .14); }
  .pfs-namer .btn { background: #e4ecfa; color: #0a1f44; }
}

/* ---------- Legal and help (/legal) ---------- */
.legal-wrap { max-width: 1080px; margin: 0 auto; }
.legal-grid { display: grid; grid-template-columns: 240px 1fr 1fr; gap: 0 18px; align-items: center; margin-top: 28px; }
.legal-col { padding: 0 4px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.legal-row { padding: 18px 0; border-top: 1px solid var(--line); align-self: stretch; }
.legal-row b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.legal-row span { font-size: 14px; color: var(--ink-3); }
.legal-cell { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--pf-card); color: var(--ink); font-size: 15.5px; font-weight: 600; box-shadow: var(--shadow-sm); transition: border-color 160ms, transform 160ms; }
.legal-cell:hover { border-color: var(--line-2); transform: translateY(-1px); }
.legal-cell small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.legal-cell .go { color: var(--ink-3); flex: none; }
@media (max-width: 820px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-col { display: none; }
  .legal-row { padding-bottom: 6px; }
}
