/* ============================================================================
   PIRATE WEASEL — OFFER LP STYLESHEET (canonical)

   Public URL (prod):  https://pirateweasel.com/offers/offer-lp.css
   Public URL (dev):   https://dev.pirateweasel.com/offers/offer-lp.css
   GHL load (once, Custom Code — not Custom CSS paste):

     <link rel="stylesheet" href="https://pirateweasel.com/offers/offer-lp.css?v=YYYYMMDD">

   Bump ?v= to the deploy date (or any new token) after each CSS change so
   browsers and GHL do not keep a stale sheet. See docs/offers/HOSTED-CSS.md.

   Source of truth ported from ADO branch cursor/ghl-sop-corrections-d957
   (docs/offers/form-chrome.css, mist-flag.html, mist-dorm.html) plus the
   live Flag/Dorm hero wrapper rules already in GHL Custom Code.

   Do not invent a new look here — edit tokens/rules to match the pack.
   ============================================================================ */

/* --- Brand tokens used by offer LP wrappers --- */
.pw-flag-wrap,
.pw-left,
.pw-mistbar,
.pw-mist,
.pw-offer-form,
.pw-visual--cream {
  --mist: #dff6f0;
  --sand: #e9e2d2;
  --cream: #fef5e8;
  --teal: #2a9e92;
  --coral: #f26b4e;
  --ink: #03251f;
}

/* ============================================================================
   1. SAND PAGE BACKGROUND
   Ports the live Flag/Dorm page-level "full-page sand, no white cutoff" rules.
   Linked only on offer LPs. Mist paint lives on .pw-mistbar itself so a GHL
   full-width mist section is not required.
   ============================================================================ */
html,
body,
#__next,
.hl-page-wrapper,
.page-wrapper,
.hl_page-preview--content,
.preview-container,
.hl_wrapper,
.fullSection,
.c-section,
section,
.pw-offer-sand,
.pw-flag-wrap {
  background: #e9e2d2 !important;
}

html,
body {
  margin: 0 !important;
  min-height: 100vh !important;
}

/* 100vw mist breakout can add a 1px horizontal scrollbar inside GHL columns */
html,
body {
  overflow-x: hidden;
}

.pw-flag-wrap {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
}

.pw-flag-wrap * {
  box-sizing: border-box;
}

/* Leftover 12px sand strip above the old .pw-mist markup — hide after the
   hosted sheet is linked so the bar is the thin SoR strip. Delete the
   .pw-top-sand node from GHL HTML when convenient. */
.pw-top-sand {
  display: none;
}

/* ============================================================================
   2. MIST BAR — full viewport-width breakout, ~10px vertical
   Classes: .pw-mistbar (canonical) and .pw-mist (live markup alias).
   Harmless inside a real full-width GHL section: stays edge-to-edge.
   ============================================================================ */
.pw-mistbar,
.pw-mist {
  box-sizing: border-box;
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #dff6f0;
  border-bottom: 1px solid rgba(3, 37, 31, 0.1);
  padding: 10px 24px;
  text-align: center;
}

.pw-mistbar *,
.pw-mist * {
  box-sizing: border-box;
}

.pw-mistbar .l1,
.pw-mist .l1 {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #03251f;
}

.pw-mistbar .l2,
.pw-mist .l2 {
  margin: 3px 0 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(3, 37, 31, 0.72);
}

/* ============================================================================
   3. FLAG HERO — two-col layout (.pw-flag-wrap > .pw-hero)
   Ported from live Flag Custom Code (custom-code-dDhZLEOQQz).
   ============================================================================ */
.pw-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 28px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.pw-flag-wrap .pw-eye {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.pw-brand {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.pw-rule {
  width: 26px;
  height: 2px;
  background: var(--teal, #2a9e92);
  display: inline-block;
  position: relative;
  top: -4px;
}

.pw-subbrand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal, #2a9e92);
}

.pw-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  font-weight: 700;
  margin: 0 0 24px;
}

.pw-flag-wrap .pw-sub p {
  margin: 0 0 13px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(3, 37, 31, 0.82);
  max-width: 46ch;
}

.pw-flag-wrap .pw-sub p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--ink, #03251f);
}

.pw-form-slot {
  margin-top: 28px;
  max-width: 430px;
}

.pw-form-slot .c-form,
.pw-form-slot [class*="form"] {
  width: 100% !important;
}

.pw-flag-wrap .pw-visual {
  position: relative;
  padding: 18px 18px 8px 8px;
  overflow: visible;
}

.pw-visual video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: var(--sand, #e9e2d2);
}

.pw-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--coral, #f26b4e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(3, 37, 31, 0.18);
  z-index: 2;
  pointer-events: none;
}

.pw-cap {
  margin: 14px 4px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(3, 37, 31, 0.55);
}

@media (max-width: 880px) {
  .pw-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 28px 18px 40px;
  }
}

/* ============================================================================
   4. DORM COPY / VISUAL chrome
   Ported from live Dorm Custom Code (.pw-left + .pw-visual img). GHL owns the
   two-col row; these rules only style the custom-HTML islands.
   ============================================================================ */
.pw-left {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
}

.pw-left * {
  box-sizing: border-box;
}

.pw-left .pw-eye {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.pw-left h1 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  font-weight: 700;
  margin: 0 0 28px;
}

.pw-left .pw-sub p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(3, 37, 31, 0.82);
  max-width: 46ch;
}

.pw-left .pw-sub p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--ink);
}

.pw-visual {
  position: relative;
  overflow: visible;
  font-family: Inter, system-ui, sans-serif;
  padding: 12px;
}

.pw-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* ============================================================================
   5. FORM CHROME UNIFICATION
   Ported verbatim in effect from docs/offers/form-chrome.css.
   Targets BOTH form roots; the unused selector is inert on each page.

     Flag form root:  #form-aVuFnPTKwc
     Dorm form root:  #form-lvjh2Ntnr9

   `html body #form-...` beats GHL's per-form `.form-XXXX #_builder-form` sheet.

   CSS cannot change heading / label / placeholder / button / consent TEXT,
   or cleanly remove the email mail icon (inline padding-left:36px). Toggle
   the field icon OFF in the GHL form builder.
   ============================================================================ */

/* --- 5a. Card shell: white, rounded, soft shadow, even padding --- */
html body #form-aVuFnPTKwc #_builder-form,
html body #form-lvjh2Ntnr9 #_builder-form {
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(3, 37, 31, 0.1) !important;
  padding: 24px !important;
  width: 100% !important;
  max-width: 430px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- 5b. Email label: EMAIL ADDRESS, all caps, quiet ink --- */
html body #form-aVuFnPTKwc #_builder-form .form-builder--item label,
html body #form-lvjh2Ntnr9 #_builder-form .form-builder--item label {
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #03251f !important;
}

/* --- 5c. Field chrome: grey (NOT blue), white fill, 8px radius --- */
html body #form-aVuFnPTKwc #_builder-form input[type="email"],
html body #form-aVuFnPTKwc #_builder-form input[type="text"].form-control,
html body #form-lvjh2Ntnr9 #_builder-form input[type="email"],
html body #form-lvjh2Ntnr9 #_builder-form input[type="text"].form-control {
  background: #ffffff !important;
  color: #344054 !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

html body #form-aVuFnPTKwc #_builder-form input:focus,
html body #form-lvjh2Ntnr9 #_builder-form input:focus {
  border-color: #2a9e92 !important;
  box-shadow: 0 0 0 3px rgba(42, 158, 146, 0.15) !important;
  outline: none !important;
}

/* --- 5d. Mail icon: visual backup hide (PRIMARY removal = builder toggle) --- */
html body #form-aVuFnPTKwc #_builder-form svg.input-icon,
html body #form-lvjh2Ntnr9 #_builder-form svg.input-icon {
  display: none !important;
}

/* --- 5e. Submit button: coral, white, EMAIL MY CODE, full-width --- */
html body #form-aVuFnPTKwc #_builder-form .form-builder--btn-submit,
html body #form-lvjh2Ntnr9 #_builder-form .form-builder--btn-submit {
  text-align: center !important;
  margin-top: 16px !important;
}

html body #form-aVuFnPTKwc #_builder-form .form-builder--btn-submit > div,
html body #form-lvjh2Ntnr9 #_builder-form .form-builder--btn-submit > div {
  width: 100% !important;
}

html body #form-aVuFnPTKwc #_builder-form .form-builder--btn-submit button,
html body #form-lvjh2Ntnr9 #_builder-form .form-builder--btn-submit button {
  display: block !important;
  width: 100% !important;
  background: #f26b4e !important;
  border: 0 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  border-radius: 10px !important;
  padding: 14px 20px !important;
  cursor: pointer !important;
  box-shadow: 0 6px 16px rgba(242, 107, 78, 0.28) !important;
}

html body #form-aVuFnPTKwc #_builder-form .form-builder--btn-submit button:hover,
html body #form-lvjh2Ntnr9 #_builder-form .form-builder--btn-submit button:hover {
  filter: brightness(0.96) !important;
}

/* --- 5f. Consent row: quiet ink; teal link (not GHL #335dff) --- */
html body #form-aVuFnPTKwc #_builder-form .terms-text-container,
html body #form-lvjh2Ntnr9 #_builder-form .terms-text-container {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #03251f !important;
}

html body #form-aVuFnPTKwc #_builder-form .terms-text-container a,
html body #form-lvjh2Ntnr9 #_builder-form .terms-text-container a {
  color: #2a9e92 !important;
  text-decoration: underline !important;
}

/* ============================================================================
   6. STOREFRONT OFFER FORM (.pw-offer-form)
   Same chrome as the GHL #form-* cards, without GHL builder ids. Used by
   pirateweasel.com/offers/dorm and /offers/flag-offer. Keep both selector
   families so leftover GHL pages and the storefront LPs stay in lockstep.
   ============================================================================ */

.pw-offer-form {
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(3, 37, 31, 0.1);
  padding: 24px;
  width: 100%;
  max-width: 430px;
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink, #03251f);
}

.pw-offer-form *,
.pw-offer-form *::before,
.pw-offer-form *::after {
  box-sizing: border-box;
}

.pw-offer-form__title {
  margin: 0 0 16px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #03251f;
}

.pw-offer-form__label {
  display: block;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 13px;
  color: #03251f;
}

.pw-offer-form__input {
  display: block;
  width: 100%;
  background: #ffffff;
  color: #344054;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  padding: 12px 14px;
}

.pw-offer-form__input::placeholder {
  color: #98a2b3;
  font-weight: 400;
}

.pw-offer-form__input:focus {
  border-color: #2a9e92;
  box-shadow: 0 0 0 3px rgba(42, 158, 146, 0.15);
  outline: none;
}

.pw-offer-form__submit {
  display: block;
  width: 100%;
  margin-top: 16px;
  background: #f26b4e;
  border: 0;
  color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(242, 107, 78, 0.28);
}

.pw-offer-form__submit:hover {
  filter: brightness(0.96);
}

.pw-offer-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  filter: none;
}

.pw-offer-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #03251f;
}

.pw-offer-form__consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #2a9e92;
}

.pw-offer-form__consent a {
  color: #2a9e92;
  text-decoration: underline;
}

.pw-offer-form__status {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.pw-offer-form__status[data-tone="ok"] {
  color: #2a9e92;
  font-weight: 600;
}

.pw-offer-form__status[data-tone="err"] {
  color: #f26b4e;
}

.pw-offer-form__hint {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #344054;
}

.pw-offer-form__input--code {
  letter-spacing: 0.28em;
  font-variant-numeric: tabular-nums;
}

.pw-offer-form__resend {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #03251f;
}

.pw-offer-form__link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #2a9e92;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.pw-offer-form__link:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pw-offer-form__code {
  margin: 0 0 12px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #03251f;
}

.pw-offer-form__submit--link {
  display: block;
  text-align: center;
  text-decoration: none;
}

/* ============================================================================
   7. DORM CREAM PRODUCT GRID
   One cream well. Badge sits on .pw-visual (overflow visible) so the coral
   disc is not cropped. Do not render a second grid or a second form.
   ============================================================================ */

.pw-visual--cream {
  background: var(--cream, #fef5e8);
  border-radius: 24px;
  padding: 28px 28px 16px;
}

.pw-dorm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  align-items: center;
}

.pw-dorm-grid__item {
  display: block;
  text-decoration: none;
}

.pw-dorm-grid__item--hero {
  grid-column: 1 / -1;
}

.pw-visual--cream img {
  background: var(--cream, #fef5e8);
}

.pw-visual--cream .pw-badge {
  top: 0;
  right: 0;
}

.pw-visual__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
