/* Bay Area Polish Group — homepage (wycinanka redesign).
   Self-contained: this is the only stylesheet loaded on the home page. */
:root {
  --paper: #fffdf8;
  --ink: #211b1b;
  --czerwien: #d6262d;
  --karmin: #a81b21;
  --kobalt: #2a4fc9;
  --marigold: #f3b229;
  --leaf: #2e7d4f;
  --hairline: rgba(33, 27, 27, 0.14);
  --radius: 14px;
  --display: "Bricolage Grotesque", "Inter", sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 800; line-height: 0.98; letter-spacing: -0.015em; }

.lace { height: 20px; position: relative; }
.lace::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 11px -4px, var(--lace-c, var(--czerwien)) 12px, transparent 13px);
  background-size: 22px 20px; background-repeat: repeat-x;
}
.lace.lace-flip::before {
  background-image: radial-gradient(circle at 11px 24px, var(--lace-c, var(--czerwien)) 12px, transparent 13px);
}

/* header */
header.site { background: var(--paper); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark svg { display: block; }
.mark-name { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.1; }
.mark-sub { font-size: 11.5px; color: rgba(33, 27, 27, 0.62); }
nav.main { margin-left: auto; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
nav.main a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: rgba(33, 27, 27, 0.78); }
nav.main a:hover { color: var(--czerwien); }
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 999px;
  background: var(--czerwien); color: #fff; text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--karmin); }
.btn:active { transform: scale(0.98); }
.btn.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn.btn-light { background: #fff; color: var(--czerwien); }
.btn.btn-light:hover { background: var(--marigold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--kobalt); outline-offset: 2px; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; padding: 72px 0 88px; }
.hero h1 { font-size: clamp(56px, 9vw, 118px); margin: 18px 0 20px; }
.hero h1 .accent { color: var(--czerwien); }
.hero h1 .accent-k { color: var(--kobalt); }
.hero .lede { font-size: 19px; max-width: 34em; color: rgba(33, 27, 27, 0.82); }
.hero .eyebrow { color: var(--czerwien); }
.signup { margin-top: 34px; max-width: 480px; }
.signup-label { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.signup-row { display: flex; gap: 10px; }
.signup input[type=email] {
  flex: 1; font: inherit; padding: 12px 16px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; min-width: 0;
}
.signup input[type=email]::placeholder { color: rgba(33, 27, 27, 0.4); }
.signup-sub { font-size: 13px; color: rgba(33, 27, 27, 0.6); margin-top: 10px; }
.proof { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.proof div strong { font-family: var(--display); font-weight: 800; font-size: 22px; display: block; }
.proof div span { font-size: 12.5px; color: rgba(33, 27, 27, 0.6); }

.medallion { justify-self: center; }
.medallion svg { width: min(340px, 60vw); height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .medallion svg { animation: bloom 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) both 0.15s; }
  @keyframes bloom { from { transform: scale(0.85) rotate(-6deg); opacity: 0; } }
}

/* three doors */
.doors { background: var(--ink); }
.doors-in { padding: 64px 0 72px; }
.doors h2 { color: var(--paper); font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.doors .doors-sub { color: rgba(255, 253, 248, 0.65); margin-bottom: 36px; max-width: 44em; }
.door-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.door {
  border-radius: var(--radius); padding: 28px 26px 24px; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; min-height: 210px; position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.door:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
.door .dtitle { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.2vw, 40px); line-height: 1; }
.door p { font-size: 14px; opacity: 0.88; margin-top: 10px; }
.door .go { margin-top: auto; font-weight: 700; font-size: 14px; padding-top: 18px; }
.door-red { background: var(--czerwien); }
.door-blue { background: var(--kobalt); }
.door-gold { background: var(--marigold); color: var(--ink); }
.door-gold .go { color: var(--karmin); }

/* sections shared */
section.block { padding: 76px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.sec-head .sub { color: rgba(33, 27, 27, 0.65); max-width: 38em; margin-top: 8px; }
.sec-eyebrow { color: var(--kobalt); margin-bottom: 10px; }

/* directory teaser */
.pros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pro {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pro:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }
.pro .role { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--czerwien); }
.pro h3 { font-family: var(--display); font-weight: 800; font-size: 21px; }
.pro .where { font-size: 14px; color: rgba(33, 27, 27, 0.65); }
.pro .count { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 15px; color: var(--kobalt); }
.cta-strip {
  margin-top: 26px; border-radius: var(--radius);
  background: rgba(214, 38, 45, 0.06); border: 1px dashed rgba(214, 38, 45, 0.4);
  padding: 18px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cta-strip p { flex: 1; min-width: 260px; font-size: 15px; }
.cta-strip strong { color: var(--czerwien); }

/* jobs */
.jobs-band { background: #f4efe6; }
.job-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.job-logo { width: 58px; height: 58px; border-radius: 12px; background: var(--kobalt); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; flex: none; overflow: hidden; }
.job-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.job-body { flex: 1; min-width: 240px; }
.job-body h3 { font-family: var(--display); font-weight: 800; font-size: 20px; }
.job-body .meta { font-size: 14px; color: rgba(33, 27, 27, 0.65); margin-top: 4px; }
.job-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chip { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(42, 79, 201, 0.1); color: var(--kobalt); }
.chip.ok { background: rgba(46, 125, 79, 0.12); color: var(--leaf); }

/* own the audience */
.own { background: var(--czerwien); color: #fff; position: relative; }
.own .wrap { padding-top: 80px; padding-bottom: 80px; }
.own h2 { font-size: clamp(32px, 5vw, 56px); max-width: 15em; }
.own h2 em { font-style: normal; color: var(--marigold); }
.own .lede { margin-top: 16px; max-width: 40em; font-size: 17px; color: rgba(255, 255, 255, 0.9); }
.own .signup { max-width: 520px; }
.own .signup input[type=email] { border-color: transparent; }
.own .signup-sub { color: rgba(255, 255, 255, 0.75); }
.survey { margin-top: 46px; padding: 22px 26px; border-radius: var(--radius); background: rgba(0, 0, 0, 0.18); display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.survey p { flex: 1; min-width: 260px; font-size: 15px; }

/* sponsors */
.sponsor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.price .what { font-weight: 700; font-size: 16px; }
.price .num { font-family: var(--display); font-weight: 800; font-size: 34px; }
.price .num small { font-size: 15px; font-weight: 600; color: rgba(33, 27, 27, 0.55); }
.price p { font-size: 14px; color: rgba(33, 27, 27, 0.7); }
.price a { margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--czerwien); text-decoration: none; }
.price a:hover { text-decoration: underline; }
.rules-note { margin-top: 30px; font-size: 14.5px; color: rgba(33, 27, 27, 0.7); border-left: 3px solid var(--marigold); padding-left: 16px; max-width: 56em; }

/* footer */
footer.site { background: var(--ink); color: rgba(255, 253, 248, 0.8); }
.foot-in { padding: 54px 0 40px; display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer.site .mark-name { color: var(--paper); }
footer.site .mark-sub { color: rgba(255, 253, 248, 0.55); }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site nav a { text-decoration: none; font-size: 14px; }
footer.site nav a:hover { color: var(--marigold); }
.lang-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.lang-row a { font-size: 13px; text-decoration: none; color: rgba(255, 253, 248, 0.7); }
.lang-row a:hover, .lang-row a.active { color: var(--marigold); }
.foot-bottom { border-top: 1px solid rgba(255, 253, 248, 0.15); padding: 18px 0 26px; font-size: 12.5px; color: rgba(255, 253, 248, 0.5); }
.foot-bottom a { color: rgba(255, 253, 248, 0.7); }

/* reveal */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* responsive */
@media (max-width: 920px) {
  .hero-in { grid-template-columns: 1fr; padding: 48px 0 64px; }
  .medallion { order: -1; }
  .medallion svg { width: 180px; }
  .door-grid, .pros, .sponsor-grid { grid-template-columns: 1fr; }
  nav.main a:not(.btn) { display: none; }
}
