/* ProControl public site. One typeface, one accent, tokens shared with the app. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --canvas: #f3f4f7;
  --steel: #1a1f2e;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --blue: #135bec;
  --blue-deep: #0d4fd4;
  --on-blue: #ffffff;
  --on-steel: #e8edf4;
  --on-steel-2: #a8b3c7;
  --focus: #135bec;
  --shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.45);
  --radius: 10px;
  --measure: 34rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0f17;
    --canvas: #111723;
    --steel: #151b26;
    --ink: #e8edf4;
    --ink-2: #b6c0d1;
    --ink-3: #8b97ab;
    --line: #2a3441;
    --line-strong: #3a4657;
    --blue: #4d8dff;
    --blue-deep: #6ba1ff;
    --on-blue: #06101f;
    --focus: #6ba1ff;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  --paper: #0b0f17;
  --canvas: #111723;
  --steel: #151b26;
  --ink: #e8edf4;
  --ink-2: #b6c0d1;
  --ink-3: #8b97ab;
  --line: #2a3441;
  --line-strong: #3a4657;
  --blue: #4d8dff;
  --blue-deep: #6ba1ff;
  --on-blue: #06101f;
  --focus: #6ba1ff;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.skip {
  position: absolute; left: 1rem; top: -3rem; padding: 0.5rem 0.75rem;
  background: var(--blue); color: var(--on-blue); border-radius: 6px; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
@media (min-width: 48em) { .wrap { width: min(100% - 4rem, 72rem); } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 0.25rem 0.9rem; flex-wrap: wrap; justify-content: flex-end; font-size: 0.9375rem; }
@media (min-width: 30em) { .nav { gap: 0.25rem 1.25rem; font-size: 1rem; } }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 0.35rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
.nav .btn { padding: 0.45rem 0.9rem; }
.nav .btn:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; line-height: 1.2; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-deep); color: var(--on-blue); }
.btn-quiet { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--ink-3); color: var(--ink); }
.steel .btn-quiet { border-color: rgba(255, 255, 255, 0.25); color: var(--on-steel); }
.steel .btn-quiet:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero .wrap { display: grid; gap: 3rem; padding-block: 3.5rem 0; align-items: end; }
.hero-copy { padding-bottom: 3.5rem; }
.hero-copy p { margin-top: 1.5rem; font-size: 1.1875rem; color: var(--ink-2); }
.hero-shot { position: relative; justify-self: center; width: min(100%, 20rem); padding-bottom: 0; }
.hero-shot::before {
  content: ""; position: absolute; inset: 22% -100vw -100% -2rem; background: var(--steel); z-index: 0;
  border-top-left-radius: 24px;
}
.hero-shot img {
  position: relative; z-index: 1; width: 100%;
  border-radius: 28px 28px 0 0; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 0;
}
@media (min-width: 56em) {
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; padding-block: 5rem 0; }
  .hero-copy { padding-bottom: 6rem; }
  .hero-shot { justify-self: end; width: min(100%, 22rem); }
  .hero-shot::before { inset: 15% -100vw -100% -4rem; }
}

/* Sections */
.section { padding-block: 5rem; }
.section h2 + p { margin-top: 1rem; font-size: 1.125rem; color: var(--ink-2); }
.canvas { background: var(--canvas); }
.steel { background: var(--steel); color: var(--on-steel); }
.steel h2, .steel h3 { color: #fff; }
.steel p, .steel li { color: var(--on-steel-2); }
.steel a:not(.btn) { color: #fff; }

/* Three columns: field / office / plant */
.loop { display: grid; gap: 2.5rem; margin-top: 3rem; }
.loop > div { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.steel .loop > div { border-top-color: rgba(255, 255, 255, 0.35); }
.loop h3 { margin-bottom: 0.6rem; }
.loop p { font-size: 1rem; }
@media (min-width: 48em) { .loop { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Feature rows: text beside a screenshot */
.feature { display: grid; gap: 2rem; align-items: center; padding-block: 3rem; border-top: 1px solid var(--line); }
.features .feature:first-child { border-top: 0; padding-top: 0; }
.feature h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.feature p { margin-top: 0.85rem; color: var(--ink-2); }
.feature ul { margin-top: 1rem; display: grid; gap: 0.4rem; color: var(--ink-2); max-width: var(--measure); }
.feature li { padding-left: 1.1rem; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--blue); }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--canvas); box-shadow: var(--shadow); }
.shot img { width: 100%; }
.shot-phone { width: min(100%, 17rem); justify-self: center; border-radius: 24px; }
@media (min-width: 56em) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; padding-block: 4rem; }
  .feature.flip > .feature-copy { order: 2; }
  .shot-phone { justify-self: start; }
  .feature.flip .shot-phone { justify-self: end; }
}

/* Wide screenshot band */
.band { padding-block: 5rem 0; }
.band h2 + p { margin-top: 1rem; font-size: 1.125rem; color: var(--ink-2); }
.band .shot { margin-top: 2.5rem; border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.band .shot img { display: block; }

/* Plain facts list */
.facts { margin-top: 2.5rem; display: grid; max-width: 52rem; }
.facts li { display: grid; gap: 0.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts strong { font-weight: 600; color: var(--ink); }
.facts span { color: var(--ink-2); }
@media (min-width: 48em) { .facts li { grid-template-columns: 14rem 1fr; gap: 2rem; } }

/* FAQ */
.faq { margin-top: 2rem; max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 1.25rem; color: var(--ink-2); }

/* CTA */
.cta .wrap { display: grid; gap: 1.5rem; }
.cta p { color: var(--on-steel-2); font-size: 1.125rem; margin-top: 0.75rem; }
.cta .actions { margin-top: 0; }
@media (min-width: 56em) { .cta .wrap { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; } }

/* Contact */
.contact { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.contact dl { margin: 0; display: grid; gap: 1.25rem; }
.contact dt { color: var(--ink-3); font-size: 0.9375rem; }
.contact dd { margin: 0.15rem 0 0; font-size: 1.125rem; }
@media (min-width: 48em) { .contact { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; color: var(--ink-3); font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 1.25rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--ink-2); }
.site-footer p { max-width: none; }
@media (min-width: 48em) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
