/* Lead-capture ("free guide") components: announcement top bar, signup popup, landing page.
   Ported from Aquilla's ForPlay prototypes. The palette below is the ForPlay campaign's own
   (deliberately NOT the tenant theme vars — this round is bespoke ForPlay design, per the
   build-it-as-is call); when this productises for other tenants, re-point these vars at the
   tenant theme. Everything is prefixed lc- and scoped so nothing leaks into the storefront. */
:root {
    --lc-oat: #FBF3E6;
    --lc-sand: #EFDFC4;
    --lc-cocoa: #543018;
    --lc-soft: #8A6244;
    --lc-terra: #C75B39;
    --lc-terra-deep: #A9481F;
    --lc-ochre: #E2A23A;
    --lc-clay: #F2CFA8;
    --lc-blush: #F6E2DB;
    --lc-font: 'Quicksand', sans-serif;
    --lc-mono: 'DM Mono', monospace;
}

/* ============ TOP BAR ============ */
.lc-topbar { background: var(--lc-terra); color: var(--lc-oat); font-family: var(--lc-font); position: relative; z-index: 40; }
.lc-topbar-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 44px; text-align: center; }
.lc-topbar span { font-weight: 600; font-size: 14px; line-height: 1.4; }
.lc-topbar a { font-family: var(--lc-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: inherit; text-decoration: none; border: 1.5px solid rgba(251,243,230,0.55); border-radius: 999px; padding: 5px 14px; transition: background .15s, color .15s; }
.lc-topbar a:hover { background: var(--lc-oat); color: var(--lc-terra); border-color: var(--lc-oat); }
.lc-topbar-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--lc-oat); font-size: 22px; line-height: 1; cursor: pointer; opacity: 0.8; }
.lc-topbar-close:hover { opacity: 1; }
.lc-topbar[hidden] { display: none; }
@media (max-width: 560px) {
    .lc-topbar span { font-size: 12.5px; }
    .lc-topbar-in { gap: 10px; padding: 9px 40px; }
    .lc-topbar a { padding: 4px 11px; font-size: 10.5px; }
}

/* ============ SHARED FORM PIECES (popup + landing card) ============ */
.lc-field { display: flex; gap: 8px; }
.lc-field input { flex: 1; min-width: 0; font-family: var(--lc-font); font-weight: 500; font-size: 15px; color: var(--lc-cocoa); background: #fff; border: 1.5px solid var(--lc-clay); border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color .15s; }
.lc-field input::placeholder { color: #B79A82; }
.lc-field input:focus { border-color: var(--lc-terra); }
.lc-btn { font-family: var(--lc-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--lc-terra); color: #fff; border: none; border-radius: 10px; padding: 0 18px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.lc-btn:hover { background: var(--lc-terra-deep); }
.lc-btn:disabled { opacity: 0.6; cursor: default; }
.lc-btn:focus-visible, .lc-field input:focus-visible { outline: 2px solid var(--lc-ochre); outline-offset: 2px; }
.lc-consent { margin-top: 13px; display: flex; flex-direction: column; gap: 8px; }
.lc-check { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; color: var(--lc-soft); font-weight: 500; line-height: 1.4; cursor: pointer; }
.lc-check input { margin-top: 2px; width: 14px; height: 14px; accent-color: var(--lc-terra); flex-shrink: 0; }
.lc-fine { font-size: 10.5px; color: #A98C74; margin-top: 12px; line-height: 1.5; }
.lc-fine a { color: var(--lc-soft); text-decoration: underline; }
.lc-err { color: var(--lc-terra-deep); font-size: 11.5px; font-weight: 600; margin-top: 10px; display: none; }
.lc-success { display: none; }
.lc-success h3 { font-family: var(--lc-font); font-weight: 600; font-size: 21px; color: var(--lc-cocoa); margin: 0 0 6px; }
.lc-success p { font-size: 13px; color: var(--lc-soft); font-weight: 500; margin: 0 0 14px; }
.lc-code { border: 1.5px dashed var(--lc-terra); border-radius: 11px; padding: 12px; text-align: center; background: #fff; margin-bottom: 14px; }
.lc-code .lc-code-label { font-family: var(--lc-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lc-terra); }
.lc-code .lc-code-value { font-family: var(--lc-font); font-weight: 700; font-size: 23px; letter-spacing: 0.06em; color: var(--lc-cocoa); }
.lc-success .lc-mini { font-size: 11.5px; color: #A98C74; margin-top: 4px; }

/* ============ POPUP (modal + backdrop) ============ */
.lc-backdrop { position: fixed; inset: 0; background: rgba(84,48,24,0.55); z-index: 1200; display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .25s; font-family: var(--lc-font); }
.lc-backdrop.lc-open { display: flex; opacity: 1; }
.lc-modal { background: var(--lc-oat); border-radius: 22px; max-width: 720px; width: 100%; display: grid; grid-template-columns: 0.85fr 1fr; overflow: hidden; position: relative; box-shadow: 0 40px 90px -30px rgba(84,48,24,0.6); transform: translateY(14px); transition: transform .25s; }
.lc-backdrop.lc-open .lc-modal { transform: translateY(0); }
.lc-close { position: absolute; top: 14px; right: 16px; z-index: 2; background: rgba(251,243,230,0.85); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--lc-cocoa); cursor: pointer; }
.lc-close:hover { background: #fff; }
.lc-visual { background: linear-gradient(160deg, #6E421F, #3A2010); display: flex; align-items: center; justify-content: center; padding: 26px; }
.lc-visual img { width: 100%; max-width: 180px; height: auto; border-radius: 6px; box-shadow: 0 18px 36px -16px rgba(0,0,0,0.6); transform: rotate(-3deg); }
.lc-content { padding: 34px 32px 30px; }
.lc-eyebrow { font-family: var(--lc-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lc-terra); }
.lc-content h2 { font-family: var(--lc-font); font-weight: 600; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; color: var(--lc-cocoa); margin: 10px 0 8px; }
.lc-dot { color: var(--lc-terra); }
.lc-sub { font-size: 14.5px; color: var(--lc-soft); font-weight: 500; margin: 0 0 18px; line-height: 1.5; }
@media (max-width: 600px) {
    .lc-modal { grid-template-columns: 1fr; max-width: 400px; }
    .lc-visual { display: none; }
    .lc-content { padding: 40px 24px 26px; }
}

/* ============ LANDING PAGE ============ */
/* The landing section is full-bleed (its own oat background), so strip .site-main's vertical
   padding on this page. Non-:has browsers just show a thin page-bg strip — cosmetic only. */
.site-main:has(.lc-landing) { padding: 0; }
.lc-landing { font-family: var(--lc-font); color: var(--lc-cocoa); background: var(--lc-oat); font-weight: 450; line-height: 1.6; }
.lc-wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.lc-landing .lc-eyebrow { font-size: 12px; letter-spacing: 0.24em; }
.lc-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; padding: 60px 0 66px; }
.lc-hero-copy .lc-eyebrow { display: block; margin-bottom: 18px; }
.lc-hero h1 { font-family: var(--lc-font); font-weight: 600; font-size: 56px; line-height: 1.02; letter-spacing: -0.02em; color: var(--lc-cocoa); margin: 0; }
.lc-hero .lc-hero-sub { font-size: 17px; color: var(--lc-soft); font-weight: 500; margin: 22px 0 30px; max-width: 30em; }
.lc-card { background: #fff; border-radius: 18px; padding: 26px 26px 22px; box-shadow: 0 18px 44px -26px rgba(84,48,24,0.4); }
.lc-card .lc-field input { background: var(--lc-oat); font-size: 16px; padding: 14px 16px; border-radius: 11px; }
.lc-card .lc-btn { font-size: 13px; padding: 0 22px; border-radius: 11px; transition: background .15s, transform .15s; }
.lc-card .lc-btn:hover { transform: translateY(-1px); }
.lc-card .lc-consent { margin-top: 16px; gap: 9px; }
.lc-card .lc-check { font-size: 12.5px; gap: 9px; }
.lc-card .lc-check input { width: 15px; height: 15px; }
.lc-card .lc-fine { font-size: 11.5px; margin-top: 14px; }
.lc-card .lc-err { font-size: 12.5px; margin-top: 12px; }
.lc-card .lc-success h3 { font-size: 24px; margin-bottom: 8px; }
.lc-card .lc-success p { font-size: 14.5px; margin-bottom: 18px; }
.lc-card .lc-code { background: var(--lc-oat); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.lc-card .lc-code .lc-code-label { font-size: 10.5px; }
.lc-card .lc-code .lc-code-value { font-size: 26px; }
.lc-browse { font-size: 13px; color: var(--lc-soft); margin: 16px 0 0; }
.lc-browse a { color: var(--lc-terra); font-weight: 600; text-decoration: underline; }
.lc-hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.lc-halo { position: absolute; width: 78%; aspect-ratio: 1; background: radial-gradient(circle, var(--lc-clay) 0%, rgba(242,207,168,0) 68%); z-index: 0; }
.lc-cover-img { position: relative; z-index: 1; width: 80%; max-width: 340px; height: auto; border-radius: 8px; box-shadow: 0 30px 60px -24px rgba(84,48,24,0.55); transform: rotate(-2.5deg); transition: transform .3s; }
.lc-hero-visual:hover .lc-cover-img { transform: rotate(0) translateY(-4px); }

/* "What's inside" strip */
.lc-inside { background: var(--lc-sand); }
.lc-inside-in { max-width: 1080px; margin: 0 auto; padding: 44px 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.lc-feat .lc-ic { width: 36px; height: 36px; color: var(--lc-terra); }
.lc-feat h3 { font-family: var(--lc-font); font-weight: 600; font-size: 16px; color: var(--lc-cocoa); line-height: 1.2; margin: 10px 0 0; }
.lc-feat p { font-size: 13px; color: var(--lc-soft); font-weight: 500; margin: 6px 0 0; }

@media (max-width: 900px) {
    .lc-hero { grid-template-columns: 1fr; gap: 36px; padding: 36px 0 44px; }
    .lc-hero h1 { font-size: 44px; }
    .lc-hero-visual { order: -1; }
    .lc-cover-img { max-width: 250px; }
    .lc-inside-in { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
}
@media (max-width: 480px) {
    .lc-card .lc-field { flex-direction: column; }
    .lc-card .lc-btn { padding: 14px; }
    .lc-inside-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .lc-backdrop, .lc-modal, .lc-cover-img, .lc-btn { transition: none !important; }
}
