/* FloorManager homepage — product-page layout.
   Loaded after home.css on index.html only. Pattern: sticky product bar, centred
   hero with one big product shot, then one feature group per section
   (eyebrow → headline → one line → big visual), alternating light and dark. */

/* ── Product bar ─────────────────────────────────────────────────── */
.prod-bar {
  position: sticky; top: 64px; z-index: 45;
  background: rgba(243, 245, 242, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.prod-bar-inner { display: flex; align-items: center; gap: 20px; height: 48px; }
.prod-bar-name { font: 700 16px/1 var(--font-display); letter-spacing: -0.01em; text-decoration: none; }
.prod-bar-links { margin-left: auto; display: flex; gap: 2px; }
.prod-bar-links a { padding: 6px 10px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: var(--radius); }
.prod-bar-links a:hover { color: var(--ink); }
.btn-xs { min-height: 32px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
.prod-bar .btn-primary { background: var(--teal-deep); color: #fff; }
.prod-bar .btn-primary:hover { background: var(--teal-deeper); box-shadow: none; }
@media (max-width: 860px) {
  .prod-bar-links { display: none; }
  .prod-bar-inner { justify-content: space-between; }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.p-hero { padding: 88px 0 0; overflow: hidden; text-align: center; }
.p-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 62%, rgba(45, 212, 191, .16), transparent 70%);
}
.p-hero-copy { max-width: 920px; }
.p-hero-name { font: 500 15px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.p-hero h1 { margin-top: 18px; font-size: clamp(36px, 5.6vw, 68px); font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.p-hero h1 .hl { color: var(--teal); }
.p-hero-sub { margin: 22px auto 0; max-width: 58ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--on-dark-muted); }
.p-hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.p-hero-ctas .btn { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 999px; }
.p-hero .hero-note { margin-top: 18px; }
.p-hero-shot { position: relative; margin-top: 64px; max-width: 1080px; }
.p-tenant { margin: 0 auto; padding: 28px 0 40px; border-top: 0; text-align: left; }
@media (max-width: 860px) {
  .p-hero { padding-top: 56px; }
  .p-hero-ctas .btn { flex: 1 1 220px; }
  .p-hero-shot { margin-top: 44px; }
}

/* ── Key figures ─────────────────────────────────────────────────── */
.p-stats { border-bottom: 1px solid var(--line); }
.p-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.p-stats-grid > div { padding: 40px 24px; text-align: center; border-left: 1px solid var(--line); }
.p-stats-grid > div:first-child { border-left: 0; }
.p-stats-grid dt { font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-stats-grid dd { margin: 10px 0 0; display: flex; justify-content: center; align-items: baseline; gap: 6px; }
.p-stats-grid .num { font: 700 clamp(34px, 4vw, 48px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-stats-grid .unit { font-size: 15px; font-weight: 600; color: var(--teal-deep); }
.p-stats-grid p { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .p-stats-grid { grid-template-columns: 1fr 1fr; }
  .p-stats-grid > div { padding: 28px 12px; border-top: 1px solid var(--line); }
  .p-stats-grid > div:nth-child(odd) { border-left: 0; }
  .p-stats-grid > div:nth-child(-n+2) { border-top: 0; }
}

/* ── Feature group: centred head ─────────────────────────────────── */
.p-group { padding: 120px 0; }
.p-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.p-eyebrow { display: inline-block; font-size: 17px; font-weight: 500; color: var(--teal-deep); }
.band-dark .p-eyebrow { color: var(--teal); }
.p-head h2 { margin-top: 10px; font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.p-head p { margin: 18px auto 0; max-width: 62ch; font-size: 17px; color: var(--muted); }
.band-dark .p-head p { color: var(--on-dark-muted); }
@media (max-width: 720px) { .p-group { padding: 72px 0; } .p-head { margin-bottom: 36px; } }

/* ── Chip strip + stage (the "auto calibration" pattern) ─────────── */
.p-chips {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin: 0 auto 28px;
}
.showcase-tab {
  appearance: none; cursor: pointer;
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  font: 500 14px/1 var(--font-body);
  transition: background-color .15s, color .15s, border-color .15s;
}
.showcase-tab:hover { border-color: var(--ink); }
.showcase-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 720px) {
  .p-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 0 16px; }
  .p-chips::-webkit-scrollbar { display: none; }
  .showcase-tab { flex: none; }
}

.p-stage { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--graphite); color: var(--on-dark); overflow: hidden; }
.p-stage-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line-dark); font: 500 12px/1 var(--font-mono); color: var(--on-dark-muted); }
.p-stage-bar .dots { display: flex; gap: 6px; }
.p-stage-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-dark-strong); }
.p-stage-body { position: relative; }
.showcase-tab-pane { display: none; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); min-height: 460px; }
.showcase-tab-pane.active { display: grid; animation: p-fade .35s ease; }
@keyframes p-fade { from { opacity: 0; } to { opacity: 1; } }
.p-step-copy { padding: 48px 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-content: center; }
.p-step-n { font: 600 13px/1 var(--font-mono); color: var(--teal); letter-spacing: .08em; }
.p-step-copy h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; text-wrap: balance; }
.p-step-copy p { color: var(--on-dark-muted); font-size: 16px; }
.p-step-copy .plan-tag { border-color: var(--line-dark-strong); color: var(--on-dark-muted); }
.p-step-copy .plan-tag.pro { color: var(--teal); background: rgba(45, 212, 191, .08); border-color: rgba(45, 212, 191, .35); }
.p-step-media { position: relative; background: var(--graphite-2); border-left: 1px solid var(--line-dark); overflow: hidden; }
.p-step-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.p-step-figures { display: grid; align-content: center; gap: 1px; background: var(--line-dark); }
.p-step-figures > div { background: var(--graphite-2); padding: 28px 36px; display: flex; align-items: baseline; gap: 16px; }
.p-step-figures .num { font: 700 clamp(26px, 3vw, 36px)/1 var(--font-display); color: var(--cyan); letter-spacing: -0.02em; min-width: 5.5ch; }
.p-step-figures span:last-child { color: var(--on-dark-muted); }
.p-step-phones { display: flex; justify-content: center; align-items: flex-end; gap: 20px; padding: 40px 24px 0; }
.p-step-phones img { width: min(200px, 42%); height: auto; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; border-radius: 22px 22px 0 0; border: 6px solid #1f2729; border-bottom: 0; background: #fff; }
.p-step-phones img + img { margin-bottom: 0; transform: translateY(-32px); }
@media (max-width: 860px) {
  .showcase-tab-pane { grid-template-columns: 1fr; min-height: 0; }
  .p-step-copy { padding: 28px 22px; }
  .p-step-media { border-left: 0; border-top: 1px solid var(--line-dark); aspect-ratio: 16 / 10; }
  .p-step-figures, .p-step-phones { aspect-ratio: auto; }
  .p-step-figures > div { padding: 20px 22px; }
}

/* ── Quotes trio ─────────────────────────────────────────────────── */
.p-trio { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; }
.p-trio li { background: var(--graphite-2); padding: 28px; }
.p-trio h3 { font-size: 19px; }
.p-trio p { margin-top: 8px; color: var(--on-dark-muted); font-size: 15px; }
#quotes .calc { border-radius: 14px; }
@media (max-width: 860px) { .p-trio { grid-template-columns: 1fr; } }

/* ── Split: media + points ───────────────────────────────────────── */
.p-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.p-media { margin: 0; border-radius: 20px; background: linear-gradient(160deg, var(--paper-2), #dfe6e1); min-height: 520px; overflow: hidden; }
.p-media-phones { display: flex; justify-content: center; align-items: flex-end; gap: 24px; padding: 56px 24px 0; }
.p-media-phones img { width: min(230px, 42%); height: auto; border-radius: 26px 26px 0 0; border: 7px solid var(--graphite); border-bottom: 0; background: #fff; box-shadow: 0 30px 60px -30px rgba(11, 15, 16, .5); aspect-ratio: 390 / 720; object-fit: cover; object-position: top; }
.p-media-phones img + img { transform: translateY(-40px); }
.p-points { list-style: none; margin: 0; padding: 0; display: grid; }
.p-points li { padding: 20px 0; border-top: 1px solid var(--line); font-size: 17px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.p-points li:last-child { border-bottom: 1px solid var(--line); }
.p-points strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .p-split { grid-template-columns: 1fr; gap: 28px; }
  .p-media { min-height: 0; }
  .p-media-phones { padding-top: 36px; }
}

/* ── Full-bleed photo group ──────────────────────────────────────── */
.p-photo { overflow: hidden; padding-bottom: 72px; }
.p-photo-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.p-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,15,16,.9) 0%, rgba(11,15,16,.35) 50%, rgba(11,15,16,.92) 100%); }
.p-photo .p-head { margin-bottom: 180px; }
.p-figs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line-dark-strong); }
.p-figs > div { padding: 24px 20px 0; border-left: 1px solid var(--line-dark); }
.p-figs > div:first-child { border-left: 0; padding-left: 0; }
.p-figs dt { font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.p-figs dd { margin: 8px 0 0; font: 600 clamp(19px, 2vw, 24px)/1.2 var(--font-display); color: var(--on-dark); }
@media (max-width: 860px) {
  .p-photo .p-head { margin-bottom: 96px; }
  .p-figs { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .p-figs > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ── Two-up tiles ────────────────────────────────────────────────── */
.p-tiles-wrap { padding-bottom: 0; }
.p-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.p-tile { border-radius: 20px; padding: 56px 44px; min-height: 340px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.p-tile h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; }
.p-tile p { color: var(--muted); font-size: 16px; max-width: 44ch; }
.p-tile-dark { background: var(--graphite); color: var(--on-dark); border-color: var(--graphite); position: relative; isolation: isolate; overflow: hidden; }
.p-tile-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 85% 10%, rgba(45, 212, 191, .22), transparent 65%); }
.p-tile-dark .p-eyebrow { color: var(--teal); }
.p-tile-dark p { color: var(--on-dark-muted); }
@media (max-width: 860px) { .p-tiles { grid-template-columns: 1fr; } .p-tile { padding: 36px 24px; min-height: 0; } }

/* ── Roles, compare, pricing inside the new groups ───────────────── */
.p-roles .role-tabs-bar { justify-content: center; }
#compare .compare { max-width: 980px; margin: 0 auto; }

/* ── One more thing ──────────────────────────────────────────────── */
.p-omt { padding-bottom: 40px; }
.p-omt .p-head { margin-bottom: 0; padding: 64px 32px; border: 1px dashed var(--line-strong); border-radius: 20px; max-width: 900px; }

/* ── Specs ───────────────────────────────────────────────────────── */
.p-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 40px; }
.p-specs dl { margin: 0; }
.p-specs h3 { font-size: 15px; font-family: var(--font-body); font-weight: 600; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.p-specs dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.p-specs dt { font-size: 13px; color: var(--muted); }
.p-specs dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; }
#specs .modules-foot { text-align: center; margin-top: 36px; }
@media (max-width: 1000px) { .p-specs { grid-template-columns: 1fr 1fr; gap: 32px 32px; } }
@media (max-width: 560px) { .p-specs { grid-template-columns: 1fr; } }

/* ── Buy band ────────────────────────────────────────────────────── */
.p-buy { padding: 96px 0; }
.p-buy-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; }
.p-buy-name { font: 500 14px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.p-buy h2 { margin-top: 14px; font-size: clamp(30px, 4.4vw, 52px); text-wrap: balance; }
.p-buy p:not(.p-buy-name) { margin-top: 14px; font-size: 18px; color: var(--on-dark-muted); }
.p-buy .cta-actions .btn { border-radius: 999px; }
@media (max-width: 860px) { .p-buy { padding: 64px 0; } .p-buy-inner { grid-template-columns: 1fr; } .p-buy .cta-actions .btn { flex: 1 1 220px; } }

/* Anchors land below both sticky bars */
section[id] { scroll-margin-top: 112px; }

/* ── Scroll effects (product.js adds .scrolly on wide screens without reduced motion) ── */
.p-pin-progress { display: none; }
.scrolly .p-pin { position: relative; }
.scrolly .p-pin-sticky { position: sticky; top: calc(112px + 24px); }
.scrolly .p-pin-progress { display: block; height: 2px; max-width: 520px; margin: -14px auto 22px; background: var(--line); border-radius: 2px; overflow: hidden; }
.scrolly .p-pin-progress span { display: block; height: 100%; background: var(--teal-deep); transform: scaleX(0); transform-origin: left; }
.scrolly .showcase-tab-pane.active { animation: p-step-in .45s ease; }
@keyframes p-step-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scrolly .showcase-tab-pane { min-height: min(460px, calc(100vh - 112px - 24px - 120px)); }

/* Hero shot grows from 90% to full size over the first half screen of scrolling. */
.scrolly [data-grow] .frame { transform: scale(calc(0.9 + 0.1 * var(--grow, 1))); transform-origin: 50% 0; will-change: transform; }
.scrolly [data-grow] .phone { transform: translateY(calc((1 - var(--grow, 1)) * 60px)); will-change: transform; }

/* Phones drift against each other as the section passes. */
.scrolly [data-rise] img { transform: translateY(calc(var(--rise, 0) * -60px)); will-change: transform; }
.scrolly [data-rise] img + img { transform: translateY(calc(-40px + var(--rise, 0) * 60px)); }

/* Photo parallax: product.js moves the image; scale gives it room. */
.scrolly .p-photo-bg { will-change: transform; }

/* ── Hero "new" pill ─────────────────────────────────────────────── */
.p-hero-new { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border: 1px solid var(--line-dark-strong); border-radius: 999px; color: var(--on-dark); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .15s; }
.p-hero-new:hover { border-color: var(--lime); }
.p-hero-new span { padding: 3px 9px; border-radius: 999px; background: var(--lime); color: var(--graphite); font-size: 12px; font-weight: 700; }
.p-hero-new svg { width: 14px; height: 14px; }

/* ── CO2 band ────────────────────────────────────────────────────── */
.band-co2 { position: relative; background: linear-gradient(180deg, #eef4ea 0%, var(--paper) 100%); color: var(--ink); border-top: 1px solid var(--line); }
.band-co2 .p-eyebrow { color: #4d7c0f; }
.co2-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1040px; margin: 0 auto; }
.co2-demo-copy h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.co2-demo-copy > p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.co2-country { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.co2-c { appearance: none; cursor: pointer; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: 500 14px/1 var(--font-body); }
.co2-c:hover { border-color: var(--ink); }
.co2-c.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.co2-c:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 2px; }
.co2-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.co2-receipt { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 24px 50px -32px rgba(11, 15, 16, .35); font-variant-numeric: tabular-nums; }
.co2-receipt-head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.co2-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.co2-row strong { display: block; font-size: 16px; }
.co2-row span { display: block; margin-top: 4px; font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
.co2-val { font: 600 20px/1 var(--font-mono); }
.co2-bar { display: flex; height: 10px; margin: 18px 0 4px; border-radius: 5px; overflow: hidden; background: var(--paper-2); }
.co2-bar span { display: block; height: 100%; transition: width .35s ease; }
.co2-bar .b-elec { background: var(--teal-deep); }
.co2-bar .b-mat { background: #84cc16; }
.co2-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: 16px; font-weight: 600; }
.co2-total output { font: 700 clamp(30px, 3.4vw, 40px)/1 var(--font-display); letter-spacing: -0.02em; }
.co2-receipt-foot { margin-top: 14px; font-size: 13px; color: var(--muted); }
.co2-points { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--line-strong); padding-top: 32px; }
.co2-points h3 { font-size: 18px; }
.co2-points p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.co2-scope { margin-top: 32px; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 1000px) { .co2-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .co2-demo { grid-template-columns: 1fr; gap: 28px; } .co2-receipt { padding: 22px; } }
@media (max-width: 560px) { .co2-points { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .co2-bar span { transition: none; } }

/* Three tiles, six spec groups */
.p-tiles { grid-template-columns: repeat(3, 1fr); }
.p-tile { padding: 44px 32px; min-height: 320px; }
.p-specs { grid-template-columns: repeat(3, 1fr); gap: 40px 40px; }
@media (max-width: 1000px) { .p-tiles { grid-template-columns: 1fr 1fr; } .p-tiles .p-tile:first-child { grid-column: 1 / -1; min-height: 0; } }
@media (max-width: 640px) { .p-tiles { grid-template-columns: 1fr; } .p-tile { padding: 32px 24px; min-height: 0; } }
