/* ============================================================
   FIELDMOUSE — Product Spec Sheet Stylesheet
   Brand: Blue #7BBDD4 | Charcoal #3D3F42 | Font: Montserrat + Inter
   Aligned with Fieldmouse Brand Guide v1
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

/* ── RESET & BRAND VARIABLES ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core brand palette — matches Fieldmouse Brand Guide */
  --blue:           #7bbdd4;
  --blue-dark:      #4a9ab8;
  --blue-light:     #b0d8e9;
  --blue-text:      #1e6b8a;
  --charcoal:       #3d3f42;
  --charcoal-light: #5a5d61;
  --mid:            #636569;
  --off:            #f5f6f8;
  --white:          #ffffff;
  --white-75:       rgba(255, 255, 255, 0.75);
  --rule:           #e2e4e8;

  /* Product-specific tokens */
  --blue-pale:      #e8f4f9;   /* subtle tint for backgrounds */
  --charcoal-mid:   #4a4d51;   /* slightly lighter panel backgrounds */
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  font-size: 12px;
  line-height: 1.6;
  max-width: 1040px;
  margin: 0 auto;
}


/* ============================================================
   HEADER
   ============================================================ */

.spec-header {
  background: var(--charcoal);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 36px 24px;
  position: relative;
  overflow: hidden;
  gap: 24px;
}

/* Subtle arc watermark top-right */
.spec-header::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 30px solid rgba(123, 189, 212, 0.07);
}

.spec-header::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 20px solid rgba(123, 189, 212, 0.06);
}

.spec-header-left {
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.spec-header-icon {
  flex-shrink: 0;
  margin-top: 4px;
}

.product-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}

.by-fieldmouse {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 3px;
  margin-bottom: 10px;
}

.product-tagline {
  font-size: 10.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  max-width: 440px;
  line-height: 1.6;
}

.spec-header-right {
  z-index: 1;
  display: flex;
  gap: 28px;
  flex-shrink: 0;
  padding-top: 6px;
}

.stat {
  text-align: center;
}

.stat .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.stat .num img {
  display: block;
  margin: 0 auto;
}

.stat .lbl {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
}


/* ============================================================
   BADGES STRIP
   ============================================================ */

.badges {
  background: var(--blue);
  display: flex;
  overflow: hidden;
}

.badge-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.badge-item:last-child {
  border-right: none;
}

.badge-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
}


/* ============================================================
   BODY GRID — base & layout variants
   ============================================================ */

.spec-body {
  display: grid;
}

/* Sidebar layout: main content + 230px right panel (scout & platform) */
.spec-body--sidebar {
  grid-template-columns: 1fr 230px;
  border: 1px solid var(--rule);
  border-top: none;
}

/* Runner layout: 3-column */
.spec-body--runner {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
}


/* ============================================================
   SECTION LABELS — shared
   ============================================================ */

.spec-section-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.spec-section-label::before {
  content: '';
  width: 14px;
  height: 1.5px;
  background: var(--blue);
  flex-shrink: 0;
}

/* On dark backgrounds (specs panel dark, cta panel, hero intro) */
.specs-panel--dark .spec-section-label,
.cta-panel .spec-section-label,
.hero-intro .spec-section-label {
  color: var(--blue);
}


/* ============================================================
   FEATURES — shared
   ============================================================ */

.features {
  padding: 28px 28px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.feat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feat-icon-wrap {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 6px;
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.feat-icon-wrap svg {
  display: block;
}

.feat-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
  line-height: 1.2;
}

.feat-desc {
  font-size: 11px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  line-height: 1.55;
}


/* ============================================================
   SPECS PANEL — light (default) & dark variant
   ============================================================ */

.specs-panel {
  padding: 28px 20px 24px;
  background: var(--off);
  border-left: 1px solid var(--rule);
}

/* Dark variant — used on runner spec sheet */
.specs-panel--dark {
  background: var(--charcoal);
  border-left: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Group labels — used in scout specs panel */
.spec-group-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  margin: 18px 0 6px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.spec-group-label:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.specs-panel--dark .spec-group-label {
  color: rgba(255, 255, 255, 0.35);
  border-top-color: rgba(123, 189, 212, 0.15);
}

/* Spec rows */
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  gap: 8px;
}

.spec-row:last-child {
  border-bottom: none;
}


.spec-key {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--mid);
  flex-shrink: 0;
}

.spec-val {
  font-size: 11px;
  font-weight: 500;
  color: var(--charcoal);
  text-align: right;
}

/* Dark panel values (runner) */
.specs-panel--dark .spec-row {
  border-bottom-color: rgba(123, 189, 212, 0.1);
}

.specs-panel--dark .spec-key {
  color: var(--white-75);
  font-weight: 400;
  text-transform: none;
}

.specs-panel--dark .spec-val {
  font-size: 9.5px;
  color: var(--white);
  letter-spacing: 0.3px;
}


/* ============================================================
   PLATFORM PANEL — capabilities sidebar (platform spec sheet)
   ============================================================ */

.platform-panel {
  padding: 28px 20px 24px;
  background: var(--off);
  border-left: 1px solid var(--rule);
}

.platform-feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.platform-feature:last-child {
  border-bottom: none;
}

.pf-icon {
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 5px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pf-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.pf-desc {
  font-size: 9.5px;
  font-weight: 300;
  color: var(--charcoal-light);
  line-height: 1.5;
}


/* ============================================================
   APPLICATIONS TABLE — platform spec sheet
   ============================================================ */

.applications {
  padding: 24px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.app-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin-bottom: 12px;
}

.app-table:last-child {
  margin-bottom: 0;
}

.app-table th {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
  padding: 5px 8px;
  text-align: center;
  border-bottom: 1.5px solid var(--rule);
}

.app-table th:first-child {
  text-align: left;
}

.app-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--rule);
  color: var(--charcoal-light);
  text-align: center;
}

.app-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--charcoal);
}

.app-table tr.cat td {
  background: var(--charcoal);
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 8px;
  text-align: left;
}

.tick {
  color: var(--blue);
  font-weight: 700;
  font-size: 11px;
}


/* ============================================================
   USE CASES — platform spec sheet
   ============================================================ */

.usecases {
  padding: 24px 28px;
  border-right: 1px solid var(--rule);
  background: var(--white);
}

.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.usecase {
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  border-top: 3px solid var(--blue);
}

.usecase-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 5px;
}

.usecase-desc {
  font-size: 10px;
  font-weight: 300;
  color: var(--charcoal-light);
  line-height: 1.55;
}


/* ============================================================
   INTERFACES TABLE — scout spec sheet
   ============================================================ */

.interfaces {
  padding: 24px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.io-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.io-table th {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
  padding: 5px 10px;
  text-align: left;
  border-bottom: 1.5px solid var(--rule);
}

.io-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--charcoal-light);
  font-weight: 400;
  vertical-align: top;
}

.io-table td:first-child {
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
  width: 130px;
}

.io-table tr.io-category td {
  background: var(--charcoal);
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
}


/* ============================================================
   BENEFITS — shared card style
   ============================================================ */

.benefits {
  padding: 24px 28px;
  border-right: 1px solid var(--rule);
  background: var(--off);
}

.benefits-header {
  margin-bottom: 14px;
}

/* Card grid variant — runner */
.benefits--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
}

.benefits--grid .benefits-header {
  grid-column: 1 / 3;
  margin-bottom: 2px;
}

.benefit {
  background: var(--white);
  border-top: 2.5px solid var(--blue);
  padding: 14px 16px;
  border-radius: 0 0 4px 4px;
}

.benefit-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 5px;
  line-height: 1.3;
}

.benefit-desc {
  font-size: 10px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  line-height: 1.55;
}


/* ============================================================
   CTA PANEL
   ============================================================ */

.cta-panel {
  background: var(--charcoal);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-headline {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
}

.cta-sub {
  font-size: 9.5px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  margin-bottom: 14px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--blue-light);
  letter-spacing: 0.3px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(123, 189, 212, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-btn {
  display: block;
  text-align: center;
  background: var(--blue);
  color: var(--charcoal);
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 3px;
  text-decoration: none;
  margin-top: 4px;
  transition: background 0.2s;
}

.cta-btn:hover {
  background: var(--blue-dark);
}


/* ============================================================
   RUNNER LAYOUT — grid positioning (3-column)
   ============================================================ */

.spec-body--runner .features {
  grid-column: 1 / 3;
  padding: 30px 32px 30px 44px;
}

.spec-body--runner .specs-panel {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.spec-body--runner .benefits {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  padding: 26px 32px 26px 44px;
}

.spec-body--runner .cta-panel {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  padding: 26px 28px;
  border-top: none;
}


/* ============================================================
   PLATFORM LAYOUT — grid positioning (1fr + 230px sidebar)
   ============================================================ */

.spec-body--platform .features   { grid-column: 1; grid-row: 1; }
.spec-body--platform .platform-panel { grid-column: 2; grid-row: 1 / 3; }
.spec-body--platform .applications { grid-column: 1; grid-row: 2; }
.spec-body--platform .usecases   { grid-column: 1; grid-row: 3; }
.spec-body--platform .cta-panel  { grid-column: 2; grid-row: 3; }


/* ============================================================
   SCOUT LAYOUT — grid positioning (1fr + 230px sidebar)
   ============================================================ */

.spec-body--scout .features    { grid-column: 1; grid-row: 1; }
.spec-body--scout .specs-panel { grid-column: 2; grid-row: 1 / 4; }
.spec-body--scout .interfaces  { grid-column: 1; grid-row: 2; }
.spec-body--scout .benefits    { grid-column: 1; grid-row: 3; border-bottom: none; }
.spec-body--scout .cta-panel   { grid-column: 2; grid-row: 4; }


/* ============================================================
   FEATURES — 3-column variant (scout page 1)
   ============================================================ */

.features--3col .features-grid {
  grid-template-columns: repeat(3, 1fr);
}


/* ============================================================
   SCOUT PAGE 2 — Grid layout
   ============================================================ */

.spec-body--scout-p2 {
  display: grid;
  grid-template-columns: 1fr 230px;
  border: 1px solid var(--rule);
  border-top: none;
}

.spec-body--scout-p2 .interfaces   { grid-column: 1; grid-row: 1; }
.spec-body--scout-p2 .benefits     { grid-column: 1; grid-row: 2; border-bottom: none; }
.spec-body--scout-p2 .specs-panel  { grid-column: 2; grid-row: 1 / 3; }
.spec-body--scout-p2 .cta-panel    { grid-column: 2; grid-row: 3; }


/* ============================================================
   RUNNER 2-PAGE — Hero section (page 1)
   ============================================================ */

.hero-section {
  display: flex;
  min-height: 500px;
  border-bottom: 1px solid var(--rule);
}

.hero-image-wrap {
  flex: 1;
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  position: relative;
  overflow: hidden;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 50px solid rgba(123, 189, 212, 0.07);
}

.hero-image-wrap img {
  max-height: 490px;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.hero-intro {
  width: 290px;
  flex-shrink: 0;
  background: var(--charcoal);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 3px solid var(--blue);
}

.hero-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 10px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 22px;
}

.hero-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 10px;
  font-weight: 500;
  color: var(--blue-light);
  line-height: 1.4;
}

.hero-hl-dot {
  width: 5px;
  height: 5px;
  min-width: 5px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 4px;
  flex-shrink: 0;
}


/* ============================================================
   RUNNER 2-PAGE — Full-width features (page 1)
   ============================================================ */

.features--full {
  border-right: none;
}

.features--full .features-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feat--wide {
  grid-column: span 2;
}


/* ============================================================
   RUNNER 2-PAGE — Page wrappers & print break
   ============================================================ */

.page2-wrapper {
  margin-top: 2px;
}

@media print {
  .page1-wrapper {
    page-break-after: always;
    break-after: page;
  }

  .page2-wrapper {
    margin-top: 0;
  }
}


/* ============================================================
   RUNNER 2-PAGE — Page 2 bar
   ============================================================ */

.page2-bar {
  background: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 28px;
  border-top: 3px solid var(--blue);
}

.page2-product {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
}

.page2-product span {
  color: var(--blue);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: none;
}

.page2-num {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}


/* ============================================================
   SOFTWARE CAPABILITIES — runner page 2
   ============================================================ */

.software-caps {
  padding: 20px 32px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.sw-stats {
  display: flex;
}

.sw-stat {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-right: 1px solid var(--rule);
}

.sw-stat:last-child {
  border-right: none;
}

.sw-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 5px;
}

.sw-stat-lbl {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
}


/* ============================================================
   RUNNER PAGE 2 — Grid layout
   ============================================================ */

.spec-body--runner-p2 {
  display: grid;
  grid-template-columns: 1fr 1fr 290px;
  border: 1px solid var(--rule);
  border-top: none;
}

.spec-body--runner-p2 .software-caps {
  grid-column: 1 / 3;
  grid-row: 1;
}

.spec-body--runner-p2 .benefits {
  grid-column: 1 / 3;
  grid-row: 2;
  padding: 28px 32px;
}

.spec-body--runner-p2 .specs-panel {
  grid-column: 3;
  grid-row: 1 / 3;
}

.spec-body--runner-p2 .cta-panel {
  grid-column: 3;
  grid-row: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* ============================================================
   PRINT
   ============================================================ */

@media print {
  body {
    max-width: 100%;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
}
