/*
 * nicomótica · product landing page
 * Web-responsive adaptation of the brand one-pager flyer system.
 * Scoped to `.lp-page` so it never collides with the WordPress theme.
 *
 * Source of truth for tokens + visual language: /Brand/BRAND-GUIDELINES.md
 */

.lp-page {
  /* ── Brand tokens (mirror of /Brand/shared/tokens.css) ───── */
  --brand-cyan:   #1FC0F2;
  --brand-blue:   #009AD4;
  --brand-deep:   #003654;
  --brand-purple: #4B3CE6;
  --hero-gradient: linear-gradient(135deg, #1FC0F2 0%, #009AD4 50%, #4B3CE6 100%);

  --ink:       #040316;
  --ink-soft:  #454745;
  --ink-mute:  #6A6C6A;
  --line:      #e2e8f0;
  --bg-soft:   #f5f8fb;
  --bg-card:   #ffffff;

  --radius-pill: 999px;
  --radius-card: 14px;

  /* Layout container — keep landing pages full-bleed inside the WP wrapper */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;

  /* Reset spacing the WP theme might inject */
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.lp-page *,
.lp-page *::before,
.lp-page *::after { box-sizing: border-box; }

.lp-page img { display: block; max-width: 100%; height: auto; }

/* Inner container caps reading width on big screens */
.lp-section { padding-inline: clamp(1rem, 4vw, 4rem); }
.lp-inner { max-width: 1240px; margin-inline: auto; width: 100%; }

/* ── HERO ────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  color: #fff;
  background: var(--hero-gradient);
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 4rem) clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
.lp-hero::before, .lp-hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .35;
  pointer-events: none;
}
.lp-hero::before {
  width: 36rem; height: 36rem; right: -10rem; top: -12rem;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%);
}
.lp-hero::after {
  width: 28rem; height: 28rem; left: -8rem; bottom: -10rem;
  background: radial-gradient(circle, rgba(75,60,230,.55), rgba(75,60,230,0) 65%);
}

.lp-hero__top {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
  max-width: 1240px; margin-inline: auto;
}
.lp-hero__brand img { width: clamp(150px, 18vw, 220px); height: auto; }
.lp-hero__url {
  font-size: .75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,.9); font-weight: 500;
}

.lp-eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem 1rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius-pill);
  font-size: .7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff;
}
.lp-eyebrow .lp-eyebrow__dot {
  width: .4rem; height: .4rem; background: #fff; border-radius: 50%;
  box-shadow: 0 0 0 .3rem rgba(255,255,255,.25);
}

.lp-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  max-width: 1240px; margin-inline: auto;
  margin-top: 1.5rem;
}
.lp-hero__copy { min-width: 0; }
.lp-hero__title {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 1rem 0;
  color: #fff;
}
.lp-hero__title .lp-accent { color: #c9efff; }
.lp-hero__lead {
  font-size: clamp(.95rem, 1.2vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255,255,255,.92);
  font-weight: 400;
  margin: 0 0 1.5rem 0;
  max-width: 38rem;
}

/* hero stats */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  max-width: 38rem;
}
.lp-stat {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: .75rem .85rem;
}
.lp-stat__num {
  font-weight: 800;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.lp-stat__label {
  margin-top: .35rem;
  font-size: .6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  font-weight: 600;
}
.lp-stat__sub {
  margin-top: .2rem;
  font-size: .65rem;
  color: rgba(255,255,255,.72);
  font-weight: 400;
  line-height: 1.3;
}

.lp-hero__visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  box-shadow: 0 16px 40px rgba(0,0,0,.30), inset 0 0 0 1px rgba(255,255,255,.18);
}
.lp-hero__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── QUOTE DIVIDER ───────────────────────────────────────── */
.lp-quote {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 4rem);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}
.lp-quote__text {
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 auto;
  max-width: 50rem;
}
.lp-quote__text em {
  font-style: normal;
  color: var(--brand-blue);
  font-weight: 700;
}

/* ── FEATURES ────────────────────────────────────────────── */
.lp-features {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 4rem);
  background: var(--bg-soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1240px;
  margin-inline: auto;
}
.lp-feature {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 54, 84, .04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lp-feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--hero-gradient);
}
.lp-feature__icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(31,192,242,.14), rgba(75,60,230,.14));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--brand-blue);
}
.lp-feature__icon svg {
  width: 1.4rem; height: 1.4rem;
  stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.lp-feature__title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 .5rem 0;
  color: var(--ink);
}
.lp-feature__desc {
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* photo-card variant */
.lp-feature--photo {
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  display: block;
  min-height: 14rem;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.lp-feature--photo::before { z-index: 3; }
.lp-feature--photo .lp-feature__photo {
  position: absolute; inset: 0; z-index: 0;
}
.lp-feature--photo .lp-feature__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.lp-feature--photo .lp-feature__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(4,3,22,0) 0%, rgba(4,3,22,0) 55%,
    rgba(4,3,22,.45) 85%, rgba(4,3,22,.70) 100%);
}
.lp-feature--photo .lp-feature__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1.25rem;
}
.lp-feature--photo .lp-feature__title {
  color: #fff; margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}

/* ── SPECS STRIP ─────────────────────────────────────────── */
.lp-specs {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 4rem);
  background: var(--brand-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lp-specs::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(31,192,242,.18), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(75,60,230,.20), transparent 45%);
  pointer-events: none;
}
.lp-specs__inner { max-width: 1240px; margin-inline: auto; position: relative; }
.lp-specs__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.lp-specs__title {
  font-size: .85rem; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 700; color: #fff;
}
.lp-specs__meta {
  font-size: .8rem; color: rgba(255,255,255,.7); letter-spacing: 0.04em;
}
.lp-specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.lp-spec {
  border-left: 2px solid rgba(255,255,255,.25);
  padding-left: 1rem;
}
.lp-spec__num {
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.lp-spec__label {
  margin-top: .4rem;
  font-size: .65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.7); font-weight: 600;
  line-height: 1.4;
}

/* ── CTA ROW ─────────────────────────────────────────────── */
.lp-cta {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 4rem);
  background: #fff;
}
.lp-cta__inner {
  max-width: 1240px; margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.lp-cta__price-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.lp-cta__price-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--hero-gradient);
}
.lp-cta__avail {
  font-size: .7rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: var(--brand-blue);
  margin-bottom: .5rem;
}
.lp-cta__price {
  display: flex; align-items: baseline; gap: .5rem;
  margin-bottom: .25rem;
}
.lp-cta__price-num {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.lp-cta__price-label {
  font-size: .8rem; color: var(--ink-mute); font-weight: 500;
}
.lp-cta__notes {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: .85rem; line-height: 1.5;
  color: var(--ink-soft);
}
.lp-cta__notes b { color: var(--ink); font-weight: 600; }
.lp-cta__notes p { margin: 0 0 .6rem 0; }
.lp-cta__notes p:last-child { margin-bottom: 0; }
.lp-cta__notes a { color: var(--brand-blue); font-weight: 600; text-decoration: none; }
.lp-cta__notes a:hover { text-decoration: underline; }

/* WooCommerce add-to-cart styling override (scoped to landing pages) */
.lp-cta__addtocart {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.lp-cta__addtocart .product { padding: 0 !important; }
.lp-cta__addtocart form.cart {
  display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: 0 !important;
}
.lp-cta__addtocart .quantity input.qty {
  height: 48px; width: 80px; padding: 0 .75rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 1rem; text-align: center;
}
.lp-cta__addtocart button.single_add_to_cart_button {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem !important;
  background: var(--hero-gradient) !important;
  color: #fff !important;
  text-decoration: none !important;
  border: 0 !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 700; font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(0,154,212,.35);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lp-cta__addtocart button.single_add_to_cart_button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,154,212,.45);
}

.lp-cta__action h2 {
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .75rem 0;
  color: var(--ink);
}
.lp-cta__action p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}
.lp-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .85rem 1.5rem;
  background: var(--hero-gradient);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(0,154,212,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,154,212,.45); }
.lp-btn__wa { width: 1.1rem; height: 1.1rem; }

/* ── DIAGRAM PAIR (sensor flyer specialty) ───────────────── */
.lp-feature--diagram-pair {
  grid-column: span 1;
  padding: .5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: auto;
}
.lp-diagram-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.lp-diagram-frame img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}
.lp-diagram-label {
  position: absolute;
  color: var(--ink-soft);
  font-size: .55rem;
  line-height: 1.3;
}
.lp-diagram-label strong {
  display: block;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: 0.01em;
  margin-bottom: .15rem;
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────── */
@media (max-width: 900px) {
  .lp-hero__grid { grid-template-columns: 1fr; }
  .lp-hero__visual { aspect-ratio: 16 / 10; max-height: 360px; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-specs__grid { grid-template-columns: repeat(2, 1fr); }
  .lp-cta__inner { grid-template-columns: 1fr; }
  .lp-stats { max-width: none; }
}
@media (max-width: 560px) {
  .lp-hero__top { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .lp-hero__title { font-size: 1.85rem; }
  .lp-features { grid-template-columns: 1fr; }
  .lp-specs__grid { grid-template-columns: 1fr 1fr; }
  .lp-stats { grid-template-columns: 1fr; }
  .lp-stat { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
  .lp-stat__num, .lp-stat__label, .lp-stat__sub { margin: 0; }
}

/* ── PROJECTS PORTFOLIO ─────────────────────────────────── */
.lp-projects {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem);
  background: #fff;
}
.lp-projects__inner { max-width: 1240px; margin-inline: auto; }

.lp-projects__filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 2rem;
}
.lp-projects__filter {
  padding: .55rem 1rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem; font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.lp-projects__filter:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.lp-projects__filter.is-active {
  background: var(--hero-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,154,212,.30);
}

.lp-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.lp-project {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.lp-project:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 54, 84, .12);
}

.lp-project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef7fc 0%, #d8ecf7 100%);
  overflow: hidden;
}
.lp-project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lp-project__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-blue);
}
.lp-project__media--placeholder svg {
  width: 64px; height: 64px; opacity: .35;
}

.lp-project__tags {
  position: absolute; top: .75rem; left: .75rem; right: .75rem;
  display: flex; gap: .35rem; flex-wrap: wrap;
}
.lp-project__tag {
  padding: .25rem .65rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.lp-project__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lp-project__meta {
  font-size: .7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: .5rem;
}
.lp-project__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .5rem 0;
}
.lp-project__desc {
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .lp-projects__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lp-projects__grid { grid-template-columns: 1fr; }
}

/* ── ABOUT/INTRO blocks (used on Projects page hero) ─────── */
.lp-intro {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}
.lp-intro__inner {
  max-width: 1000px; margin-inline: auto; text-align: center;
}
.lp-intro__eyebrow {
  display: inline-block;
  font-size: .7rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--brand-blue);
  margin-bottom: 1rem;
}
.lp-intro__title {
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 1rem 0;
}
.lp-intro__title .lp-accent { color: var(--brand-blue); }
.lp-intro__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 auto;
}
