/* BNCC Localiza — portfolio landing theme
   Shared structure: ../shared/landing.css */

:root {
  --l-bg: #F6F8FC;
  --l-surface: #FFFFFF;
  --l-surface-2: #EAF1FF;
  --l-ink: #182B49;
  --l-muted: #5D6B82;
  --l-line: #DCE3EE;
  --l-line-strong: #B9C9DF;
  --l-accent: #1459C7;
  --l-accent-strong: #0C4199;
  --l-accent-soft: #EAF1FF;
  --l-on-accent: #FFFFFF;
  --l-highlight: #F5D66F;
  --l-display: "Lora", Georgia, serif;
  --l-body: "DM Sans", system-ui, sans-serif;
  --l-mono: "IBM Plex Mono", monospace;
  --l-display-weight: 500;
  --l-hero: 84px;
  --l-hero-leading: 1.02;
  --l-h2: 44px;
  --l-tracking: -.02em;
  --l-radius: 16px;
  --l-card-radius: 16px;
}

body { background: var(--l-bg); }

/* ---------- Type and brand ---------- */
h1, h2 { font-weight: 500; }
h3 { font-weight: 600; }
.p-hero h1 { letter-spacing: var(--l-tracking); }
.p-brand { color: var(--l-ink); }
.p-brand img { width: 30px; height: 30px; border-radius: 8px; }
.p-brand span { letter-spacing: -.02em; }
.p-btn { font-weight: 600; }
.p-eyebrow { color: var(--l-muted); }

/* Highlighter swipe inside the headline */
.bn-mark {
  background: linear-gradient(180deg, transparent 58%, var(--l-highlight) 58%, var(--l-highlight) 92%, transparent 92%);
  padding: 0 .04em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Hero composition: notebook + phone ---------- */
.p-visual.bn-visual {
  isolation: isolate;
  background:
    radial-gradient(80% 65% at 12% 0%, var(--l-surface) 0%, transparent 62%),
    linear-gradient(155deg, var(--l-surface) 0%, var(--l-surface-2) 52%, var(--l-accent-soft) 100%);
}

.bn-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--l-line-strong) 42%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--l-line-strong) 42%, transparent) 1px, transparent 1px);
  background-size: 27px 27px;
  opacity: .5;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  pointer-events: none;
}

.bn-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -24%;
  right: -20%;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--l-highlight) 46%, transparent) 0%, transparent 68%);
  pointer-events: none;
}

.bn-chip {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--l-highlight);
  color: var(--l-ink);
  font-family: var(--l-mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 0 8px 16px -12px color-mix(in srgb, var(--l-ink) 55%, transparent);
}

.bn-book {
  position: absolute;
  z-index: 2;
  left: 3%;
  top: 8%;
  width: 58%;
  height: 77%;
  transform: rotate(-4.5deg);
  transform-origin: 50% 60%;
  filter: drop-shadow(0 26px 30px color-mix(in srgb, var(--l-ink) 20%, transparent));
}

.bn-book__cover {
  position: relative;
  height: 100%;
  padding: 10px 11px 10px 24px;
  border-radius: 8px 16px 16px 8px;
  background: linear-gradient(145deg, var(--l-accent) 0%, var(--l-accent-strong) 100%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--l-accent-strong) 65%, transparent),
    inset -2px 0 0 color-mix(in srgb, var(--l-surface) 14%, transparent);
}

.bn-book__cover::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 17px;
  width: 1px;
  background: color-mix(in srgb, var(--l-surface) 22%, transparent);
}

.bn-rings {
  position: absolute;
  z-index: 3;
  top: 10%;
  bottom: 10%;
  left: -7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
}

.bn-rings i {
  display: block;
  width: 18px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--l-surface) 0%, var(--l-line) 100%);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--l-ink) 35%, transparent);
}

.bn-page {
  position: relative;
  height: 100%;
  padding: 18px 15px 16px;
  border-radius: 3px 11px 11px 3px;
  overflow: hidden;
  background-color: var(--l-surface);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 26px,
    color-mix(in srgb, var(--l-line) 92%, transparent) 26px 27px
  );
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--l-line) 45%, transparent);
}

.bn-page__head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--l-mono);
  font-size: 7px;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--l-muted);
}

.bn-page__title {
  position: relative;
  z-index: 2;
  margin-top: 7px;
  font-family: var(--l-display);
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--l-ink);
}

.bn-marker {
  background: linear-gradient(180deg, transparent 50%, var(--l-highlight) 50%, var(--l-highlight) 93%, transparent 93%);
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.bn-card {
  position: relative;
  z-index: 2;
  margin-top: 13px;
  padding: 8px 10px 9px 11px;
  border: 1px solid var(--l-line-strong);
  border-left: 3px solid var(--l-accent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--l-surface) 93%, var(--l-accent-soft));
  box-shadow: 0 8px 14px -14px color-mix(in srgb, var(--l-ink) 55%, transparent);
}

.bn-card--a { transform: rotate(-1.2deg); }
.bn-card--b { margin-top: 11px; margin-left: 8%; transform: rotate(1.4deg); }

.bn-card__tag {
  display: block;
  font-family: var(--l-mono);
  font-size: 7px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--l-muted);
}

.bn-card strong {
  display: block;
  margin-top: 2px;
  font-family: var(--l-mono);
  font-size: clamp(13px, 1.9vw, 18px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--l-accent-strong);
}

.bn-card > span:last-child {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  line-height: 1.3;
  color: var(--l-muted);
}

.bn-phone {
  position: absolute;
  z-index: 4;
  right: 2.5%;
  bottom: -7%;
  width: 43%;
  max-width: 238px;
  transform: rotate(3.5deg);
}

.bn-phone .p-phone {
  border-color: transparent;
  border-radius: 27px;
  background: var(--l-surface-2);
}

.bn-phone .p-phone img {
  object-position: center top;
  transform: scale(1.06);
}

/* ---------- Sections ---------- */
.p-strip__item strong { font-weight: 500; }

.p-feature {
  background: linear-gradient(180deg, var(--l-surface) 0%, color-mix(in srgb, var(--l-surface-2) 42%, var(--l-surface)) 100%);
}
.p-feature__num { color: var(--l-accent); font-weight: 500; }
.p-feature h3 { margin-top: auto; }

.p-statement {
  background: linear-gradient(135deg, var(--l-surface-2) 0%, color-mix(in srgb, var(--l-accent-soft) 55%, var(--l-surface)) 100%);
}
.p-statement h2 { color: var(--l-ink); }

.p-gallery { background: var(--l-surface); }
.p-gallery .p-screen__frame { background: var(--l-surface-2); }

.p-cta {
  background: linear-gradient(135deg, var(--l-accent) 0%, var(--l-accent-strong) 100%);
}
.p-cta h2 { font-weight: 500; }
.p-cta__note { color: color-mix(in srgb, var(--l-on-accent) 76%, transparent); }
.p-cta p { color: color-mix(in srgb, var(--l-on-accent) 84%, transparent); }

.p-footer__brand img { width: 28px; height: 28px; border-radius: 7px; }
.p-footer__brand .p-brand span { font-size: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .p-visual.bn-visual {
    width: 100%;
    max-width: 560px;
    min-height: 500px;
    margin-inline: auto;
  }
  .bn-book { left: 2%; top: 7%; width: 61%; height: 80%; }
  .bn-phone { right: 2%; bottom: -6%; width: 41%; }
}

@media (max-width: 640px) {
  :root { --l-gutter: 22px; }

  .p-visual.bn-visual { max-width: none; min-height: 420px; }
  .bn-book { left: -1%; top: 6%; width: 69%; height: 81%; }
  .bn-book__cover { padding: 8px 8px 8px 18px; border-radius: 7px 13px 13px 7px; }
  .bn-book__cover::before { left: 13px; }
  .bn-rings { left: -6px; width: 14px; }
  .bn-rings i { width: 14px; height: 5px; }
  .bn-page {
    padding: 14px 11px 12px;
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0 21px,
      color-mix(in srgb, var(--l-line) 92%, transparent) 21px 22px
    );
  }
  .bn-page__head { font-size: 6px; letter-spacing: .1em; }
  .bn-page__title { margin-top: 6px; font-size: 16px; }
  .bn-card { margin-top: 10px; padding: 7px 8px 8px 9px; }
  .bn-card--b { margin-top: 9px; margin-left: 5%; }
  .bn-card__tag { font-size: 6px; }
  .bn-card strong { font-size: 12px; }
  .bn-card > span:last-child { font-size: 7.5px; }
  .bn-phone { right: 0; bottom: -4%; width: 46%; }
  .bn-phone .p-phone { border-radius: 22px; }
  .bn-chip { top: 10px; right: 10px; padding: 4px 7px; font-size: 8px; }
}
