/* solarecrm.com — website styles (website P1, design signed off 25 Nov 2026). Tokens from spec 08 v2. */
@font-face { font-family: "D-DIN"; src: url("../fonts/site/d-din-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "D-DIN"; src: url("../fonts/site/d-din.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/site/barlow-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/site/barlow-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/site/barlow-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/site/barlow-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F7F4EE; --surface: #FFFFFF; --ink: #231F20; --ink-2: #5E5A55; --line: #E2DDD3; --line-2: #CFC8BB;
  --red: #E31B22; --red-hover: #C8151C; --red-press: #A8131A; --red-text: #B5121A;
  --link: #2E529E; --link-hover: #1D337A; --navy: #1D337A; --navy-900: #141F4A; --on-dark: #C9D6EA; --sky: #A0C6EC; --dark-line: #34437A;
  --radius: 4px; --ease: cubic-bezier(.2,0,0,1);
  --head: "D-DIN", "Barlow", Arial, sans-serif; --body: "Barlow", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: var(--radius); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); z-index: 20; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.muted, .small.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 34em; margin: 0 0 32px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0 0 16px; letter-spacing: -.005em; }
h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 20px; font-family: var(--body); font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
p { margin: 0 0 16px; }
.label { font: 700 13px/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.tag { font: 700 12px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.figure { font: 700 56px/1 var(--head); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: var(--radius);
  font: 600 17px/1.2 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 120ms var(--ease), color 120ms var(--ease); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-primary:active { background: var(--red-press); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: #EFEBE3; color: var(--ink); }
.btn-secondary:active { background: var(--line); }
.btn[disabled], .btn[aria-disabled="true"] { background: #D8D3CA; color: var(--ink-2); border-color: transparent; cursor: not-allowed; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.link-strong { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
  transition: background-color 200ms var(--ease); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; transition: height 200ms var(--ease); }
.site-header.scrolled { background: var(--surface); border-bottom-color: var(--ink); }
.site-header.scrolled .wrap { height: 56px; }
.site-header.scrolled .brand img { height: 30px; }
.brand img { height: 40px; width: auto; transition: height 200ms var(--ease); }
.nav { display: flex; gap: 28px; align-items: center; font-weight: 500; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.header-end { display: flex; align-items: center; gap: 16px; }
.header-end .signin { color: var(--ink); font-weight: 500; font-size: 16px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; border-radius: var(--radius); align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }

/* Sections and grids */
.section { padding: 88px 0; }
.section-tight { padding: 48px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--navy-900); color: #F7F4EE; }
.dark h2, .dark h3, .dark strong { color: #fff; }
.dark .muted, .dark p { color: var(--on-dark); }
.dark a { color: var(--sky); }
.g75 { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.g57 { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.g48 { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.top { align-items: start; }
.hero { padding: 72px 0 88px; }
.hero h1 { margin-bottom: 24px; }
.hero-note { margin: 28px 0 0; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 16px; max-width: 34em; }

/* Product shown as it is */
.shot { margin: 0; }
.shot-frame { border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.paper { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 2px 0 rgba(35,31,32,.06), 0 18px 30px -22px rgba(35,31,32,.35); overflow: hidden; position: relative; }
.phone { width: 300px; max-width: 100%; border: 12px solid var(--ink); border-radius: var(--radius); background: var(--ink); margin: 0 auto; }
.shot figcaption { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
.placeholder-shot { background: #E9E4DA; border-radius: var(--radius); padding: 32px; min-height: 240px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.callout { position: absolute; width: 24px; height: 24px; background: var(--ink); color: #fff; border-radius: var(--radius);
  font: 700 14px/24px var(--head); text-align: center; }
.numbered { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.numbered li { display: flex; gap: 12px; align-items: baseline; }
.numbered .n { flex: none; width: 24px; height: 24px; background: var(--ink); color: #fff; border-radius: var(--radius); font: 700 14px/24px var(--head); text-align: center; }

/* Lists */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 18px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .sub { font-size: 16px; color: var(--ink-2); }
.dark .rows li { border-color: var(--dark-line); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font: 700 22px/1.2 var(--head); color: var(--ink-2); width: 28px; flex: none; }
.steps li.on { border-top: 2px solid var(--ink); }
.steps li.on .n { color: var(--red-text); }
.steps .sub { font-size: 16px; color: var(--ink-2); }
.facts { border-left: 1px solid var(--ink); padding-left: 28px; display: flex; flex-direction: column; gap: 22px; }
.facts .figure { font-size: 44px; }

/* The logo's cell motif: at most once per page */
.cells { display: grid; grid-template-columns: repeat(6, 22px); gap: 3px; margin-bottom: 32px; }
.cells span { height: 22px; }
.cells-bg { background-color: #25418B; background-image: linear-gradient(90deg, var(--paper) 3px, transparent 3px), linear-gradient(var(--paper) 3px, transparent 3px);
  background-size: 28px 28px; border-radius: var(--radius); padding: 3px; }
.cells-bg > .inner { background: var(--paper); border-radius: var(--radius); margin: 28px; padding: 28px; }

/* Cards, tables, money */
.card { background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); padding: 32px; }
.money { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; font-variant-numeric: tabular-nums; }
.money .total { border-top: 1px solid var(--ink); padding-top: 10px; font-weight: 600; }
.money .r { text-align: right; }
.price-list { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; font-variant-numeric: tabular-nums; }
.price-list dt, .price-list dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-list dd { text-align: right; font: 700 24px/1.2 var(--head); }
.price-list dd small { font: 400 15px var(--body); color: var(--ink-2); }
.price-list dt:last-of-type, .price-list dd:last-of-type { border-bottom: 0; }
.table-box { overflow-x: auto; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--surface); }
.table-box table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 16px; }
.table-box th, .table-box td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-box thead th { border-bottom: 1px solid var(--ink); }
.table-box tr:last-child th, .table-box tr:last-child td { border-bottom: 0; }

/* Calculator */
.calc label { display: block; font-weight: 600; margin-bottom: 8px; }
.calc .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.calc input[type=number] { width: 120px; height: 48px; border: 1px solid var(--ink); border-radius: var(--radius); padding: 0 12px; font: 600 20px var(--body); font-variant-numeric: tabular-nums; background: var(--surface); }
.calc input[type=range] { width: 100%; height: 44px; accent-color: var(--navy); }
.preset { height: 48px; min-width: 56px; padding: 0 14px; border-radius: var(--radius); font: 600 16px var(--body); cursor: pointer; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); }
.preset[aria-pressed="true"] { background: var(--ink); color: #fff; }
.calc .result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.calc .big { font: 700 56px/1 var(--body); font-variant-numeric: tabular-nums; }

/* Forms (demo request, sign-up, contact) */
.form-card { background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); padding: 32px; max-width: 640px; }
.field { margin-bottom: 18px; }
.field label, .field > span { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field input[type=password], .field select, .field textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--ink); border-radius: var(--radius); padding: 10px 12px; font: 400 17px var(--body); background: var(--surface); color: var(--ink); }
.field textarea { min-height: 110px; }
.field [aria-invalid="true"], .field.has-error input, .field.has-error select { border: 2px solid var(--red-text); }
.error { color: var(--red-text); font-weight: 500; font-size: 15px; margin-top: 6px; }
.alert-error { background: #FBEAEA; border: 1px solid var(--red-text); border-radius: var(--radius); padding: 10px 12px; color: var(--red-text); font-weight: 600; margin-bottom: 18px; }
.alert-ok { background: #EAF1E9; border: 1px solid #2F6B3A; border-radius: var(--radius); padding: 12px 14px; color: #234F2B; margin-bottom: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.hp { position: absolute; left: -9999px; }
.collection { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

/* Narrow pages: sign-up steps, legal */
.narrow { max-width: 760px; margin: 0 auto; padding: 56px 40px 88px; }
.narrow .form-card { max-width: none; }
.legal-doc { line-height: 1.6; }
.legal-doc h1 { font-size: 40px; }
.legal-doc h2 { font-size: 24px; margin-top: 32px; }
.legal-doc table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 16px; }
.legal-doc th, .legal-doc td { border: 1px solid var(--line-2); padding: 6px 8px; text-align: left; vertical-align: top; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; font-size: 16px; }
.legal-draft { border: 2px dashed var(--red-text); color: var(--red-text); padding: 8px 12px; font-weight: 600; margin: 12px 0; }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--on-dark); padding: 64px 0 40px; font-size: 15px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: #fff; font-weight: 600; }
.foot { display: grid; grid-template-columns: 5fr 2fr 2fr 2fr; gap: 32px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot-logo { height: 64px; width: auto; }
.foot-legal { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--dark-line); font-size: 14px; }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--ink-2); padding-top: 24px; }
.crumbs a { color: var(--ink-2); }

@media (max-width: 1040px) {
  .nav, .header-end .signin { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 900px) {
  h1 { font-size: 42px; } h2 { font-size: 32px; }
  .g75, .g57, .g48 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .flip { order: 2; }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .dark .g2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .wrap, .narrow { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 34px; } h2 { font-size: 28px; }
  .lead { font-size: 18px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .figure, .calc .big { font-size: 44px; }
  .card, .form-card { padding: 22px; }
  .cells-bg > .inner { margin: 14px; padding: 20px; }
  .hero { padding: 48px 0 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.form-card h1 { font-size: 36px; }
.narrow > h1 { font-size: 44px; }
.dark .sub { color: var(--on-dark); }
.btn { white-space: nowrap; }
@media (max-width: 480px) { .site-header .btn-small { padding: 0 12px; font-size: 15px; } .header-end { gap: 10px; } .brand img { height: 34px; } }
