/* Literal Turn 9 artboard pages — chrome + form + responsive */

:root {
  --amber: #E7A020;
  --deep: #C6851A;
}

body.artboard-body h1 {
  font-weight: 400;
}

.artboard-page a:hover {
  filter: brightness(1.06);
}

.artboard-burger {
  display: none;
}

.artboard-form-section {
  padding: 48px 40px 84px;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.artboard-form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(231, 160, 32, 0.14), transparent 60%);
  pointer-events: none;
}

.artboard-form-inner {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.artboard-form-card {
  background: #12110f;
  color: #f7f5f0;
  border: 1px solid #262320;
  border-radius: 16px;
  overflow: hidden;
}

.artboard-form-intro {
  padding: 32px 34px 8px;
}

.artboard-form-eyebrow {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.artboard-form-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(28px, 4vw, 30px);
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
  font-weight: 400;
}

.artboard-form-blurb {
  font-size: 15px;
  line-height: 1.5;
  color: #b7b3ac;
  margin: 0;
}

.artboard-form-panel {
  margin-top: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 22px 34px 34px;
  max-width: none;
}

.artboard-form-section .artboard-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}

.artboard-form-section .field {
  margin-bottom: 14px;
}

.artboard-form-section .field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #c9c6c0;
  margin-bottom: 6px;
}

.artboard-form-section .field .req {
  color: var(--amber);
}

.artboard-form-section .field input,
.artboard-form-section .field select,
.artboard-form-section .field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  background: #161412;
  border: 1px solid #2e2a25;
  border-radius: 9px;
  padding: 12px 14px;
  color: #f7f5f0;
  font: inherit;
  font-size: 14px;
}

.artboard-form-section .field textarea {
  min-height: 88px;
  resize: vertical;
}

.artboard-form-section .field input:focus,
.artboard-form-section .field select:focus,
.artboard-form-section .field textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.artboard-form-section .field-consent {
  color: #8b8880;
  font-size: 13px;
  margin: 4px 0 10px;
}

.artboard-form-section .cm-turnstile {
  margin: 8px 0 12px;
  min-height: 56px;
  border: 1px dashed #2e2a25;
  border-radius: 9px;
  background: #0f0e0c;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.artboard-form-submit {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--amber);
  color: #12110f;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.artboard-form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.artboard-form-note {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #6f6b63;
  text-align: center;
}

.artboard-form-section .confirmation {
  padding: 8px 0 0;
  color: #c9c6c0;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  html,
  body.artboard-body {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }

  .artboard-nav-desktop {
    display: none !important;
  }

  .artboard-burger {
    display: inline-flex;
  }

  .artboard-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    box-sizing: border-box !important;
  }

  .artboard-page,
  .artboard-page * {
    box-sizing: border-box;
  }

  /* Wrap design-export text (often pre-wrap / nowrap) */
  .artboard-page p,
  .artboard-page h1,
  .artboard-page h2,
  .artboard-page div,
  .artboard-page span,
  .artboard-page a,
  .artboard-page li {
    max-width: 100% !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal !important;
  }

  /* Brand lockup must stay compact (do not stretch width:auto → 100%) */
  .artboard-page img[alt="CineMe"] {
    width: auto !important;
    max-width: 120px !important;
    height: 28px !important;
  }

  /* Sticky header */
  .artboard-page > div[style*="position:sticky"],
  .artboard-page > div[style*="position: sticky"] {
    padding: 14px 16px !important;
  }

  /* Section gutters — only on padded section shells, not every nested pad */
  .artboard-page > div[style*="padding:"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Drop desktop canvas heights so stacked content can grow */
  .artboard-page [style*="height:"] {
    height: auto !important;
    min-height: 0 !important;
  }

  /* Hero / tall media planes */
  .artboard-page [style*="height:660px"],
  .artboard-page [style*="min-height:640px"],
  .artboard-page [style*="min-height:520px"],
  .artboard-page [style*="min-height:480px"] {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    padding: 28px 20px !important;
    min-height: min(78vh, 560px) !important;
    height: auto !important;
    overflow: hidden !important;
  }

  /* Pixel widths from artboards → fluid (skip width:auto / % ) */
  .artboard-page [style*="width:"][style*="px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Grids → single column */
  .artboard-page [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    position: relative !important;
  }

  .artboard-page [style*="grid-template-columns: 1.05fr"],
  .artboard-page [style*="grid-template-columns:1.05fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    align-items: stretch !important;
  }

  /* Process strips → vertical; hide → separators */
  .artboard-page [style*="display:flex"][style*="align-items:stretch"],
  .artboard-page [style*="display: flex"][style*="align-items: stretch"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .artboard-page [style*="display:flex"][style*="color:#5a554e"],
  .artboard-page [style*="display: flex"][style*="color:#5a554e"] {
    display: none !important;
  }

  /*
   * Demote placed absolute blocks (left/top/right/bottom).
   * Keep pure full-bleed overlays (inset:0, no placement offset).
   */
  .artboard-page [style*="position:absolute"],
  .artboard-page [style*="position: absolute"] {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  /* Full-bleed hero media + gradients only */
  .artboard-page img[style*="inset:0"],
  .artboard-page img[style*="inset: 0"],
  .artboard-page div[style*="inset:0"]:not([style*="left:"]):not([style*="left :"]):not([style*="top:"]):not([style*="top :"]),
  .artboard-page div[style*="inset: 0"]:not([style*="left:"]):not([style*="left :"]):not([style*="top:"]):not([style*="top :"]) {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 0;
    pointer-events: none;
  }

  /* Hero copy / CTAs above media */
  .artboard-page [style*="height:660px"] > div[style*="left:"],
  .artboard-page [style*="height:660px"] > div[style*="bottom:"],
  .artboard-page [style*="min-height:640px"] > div[style*="left:"],
  .artboard-page [style*="min-height:640px"] > div[style*="bottom:"] {
    position: relative !important;
    z-index: 1;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    inset: auto !important;
  }

  /* Corner badges inside frame pairs */
  .artboard-page [style*="position:relative"] > span[style*="bottom:"],
  .artboard-page [style*="position: relative"] > span[style*="bottom:"] {
    position: absolute !important;
    left: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    height: auto !important;
    z-index: 2;
  }

  .artboard-page img {
    max-width: 100% !important;
  }

  .artboard-page img:not([alt="CineMe"]) {
    height: auto !important;
  }

  .artboard-page [style*="aspect-ratio"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .artboard-page [style*="aspect-ratio"] img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Type scale */
  .artboard-page h1,
  .artboard-page [style*="font-size:66px"] {
    font-size: clamp(30px, 8.5vw, 40px) !important;
    line-height: 1.08 !important;
  }

  .artboard-page [style*="font-size:52px"],
  .artboard-page [style*="clamp(36px"] {
    font-size: clamp(28px, 7.5vw, 36px) !important;
  }

  .artboard-page [style*="font-size:46px"],
  .artboard-page [style*="font-size:44px"],
  .artboard-page [style*="font-size:40px"] {
    font-size: clamp(24px, 6.5vw, 32px) !important;
  }

  .artboard-page [style*="font-size:36px"],
  .artboard-page [style*="font-size:34px"],
  .artboard-page [style*="font-size:30px"] {
    font-size: clamp(20px, 5.5vw, 26px) !important;
  }

  .artboard-page img[style*="mask-image"],
  .artboard-page img[style*="-webkit-mask-image"] {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    width: 100% !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }

  /* CTA row can wrap */
  .artboard-page [style*="display:flex"][style*="gap:18px"],
  .artboard-page [style*="display: flex"][style*="gap:18px"] {
    flex-wrap: wrap !important;
  }

  /* Form */
  .artboard-form-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .artboard-form-section .artboard-form-grid {
    grid-template-columns: 1fr;
  }

  .artboard-form-intro,
  .artboard-form-panel {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 480px) {
  .artboard-page [style*="gap:30px"],
  .artboard-page [style*="gap: 30px"],
  .artboard-page [style*="gap:40px"],
  .artboard-page [style*="gap: 40px"] {
    gap: 18px !important;
  }

  .artboard-page [style*="letter-spacing: .22em"],
  .artboard-page [style*="letter-spacing:.22em"],
  .artboard-page [style*="letter-spacing: .28em"],
  .artboard-page [style*="letter-spacing:.28em"] {
    letter-spacing: 0.12em !important;
  }
}
