/* Visible Connect marketing site */

:root {
  --ink: #12233f;        /* navy from the favicon: text, dark bands */
  --ink-soft: #4a5872;   /* secondary text */
  --paper: #ffffff;
  --mist: #f2f5f8;       /* alternate band */
  --line: #dde3ea;
  --signal: #0882a0;     /* the app's cyan, darkened for text contrast */
  --lamp: #f5a524;       /* a lit luminaire */
  --fault: #e5484d;

  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--signal); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.band { padding: clamp(64px, 9vw, 112px) 0; }
.band--mist { background: var(--mist); }
.band--ink { background: var(--ink); color: #fff; }
.band--ink .lede, .band--ink p { color: #c3cddc; }
.band__head { max-width: 40em; margin-bottom: 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--lamp { background: var(--lamp); color: var(--ink); }
.btn--lamp:hover { background: #ffb84a; }
.btn--line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.band--ink .btn--line { border-color: #3a4d6e; color: #fff; }
.band--ink .btn--line:hover { border-color: #fff; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.nav__logo svg { width: 30px; height: 30px; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav__menu a:not(.btn):hover, .nav__menu a[aria-current="page"] { color: var(--ink); }
.nav__menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 16px; }
}

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 11ch; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* The hero floor plan, as in the product film: luminaires appear, faults pulse */
.floor { perspective: 1600px; perspective-origin: 50% 30%; padding: 0 4%; }
.floor__plane { position: relative; transform: rotateX(44deg) rotateZ(-9deg); transform-style: preserve-3d; border-radius: 6px; box-shadow: 0 0 0 1px rgba(18,35,63,.12), 0 40px 80px -24px rgba(18,35,63,.35); animation: tilt 2.4s cubic-bezier(.2,.7,.2,1) both; }
.floor__plane img { width: 100%; height: auto; border-radius: 6px; }
.lum { position: absolute; left: var(--x); top: var(--y); width: 3.2%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, #19b6dc 30%, rgba(8,150,190,.3) 56%, transparent 72%); animation: pop .5s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: var(--d); }
.lum--warn { background: radial-gradient(circle, #fff 0 18%, var(--lamp) 32%, rgba(245,165,36,.35) 58%, transparent 72%); }
.lum--fault { background: radial-gradient(circle, #fff 0 18%, var(--fault) 32%, rgba(229,72,77,.35) 58%, transparent 72%); }
.lum--fault::after, .lum--warn::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 2px solid var(--fault); animation: alarm 1.5s ease-out infinite; animation-delay: calc(var(--d) + 2.2s); opacity: 0; }
.lum--warn::after { border-color: var(--lamp); }
.floor__stats { display: flex; gap: 28px; justify-content: flex-end; margin: 18px 0 0; color: var(--ink-soft); font-size: .95rem; letter-spacing: .04em; }
.floor__stats b { font-size: 1.6rem; color: var(--signal); margin-right: 6px; }
.floor__stats .floor__bad { color: var(--fault); }
@keyframes tilt { from { transform: rotateX(62deg) rotateZ(-24deg) translateY(40px); opacity: 0; } }
@keyframes pop { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes alarm { from { transform: scale(1); opacity: .95; } to { transform: scale(4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .floor__plane { animation: none; }
  .lum { animation: none; transform: translate(-50%, -50%); }
  .lum--fault::after, .lum--warn::after { animation: none; opacity: .8; transform: scale(2); }
}

/* Systems strip */
.systems { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.systems__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; }
.systems__row p { margin: 0; color: var(--ink-soft); }
.systems__row strong { font-size: 1.15rem; font-weight: 600; }
@media (max-width: 760px) { .systems__row p { flex-basis: 100%; } }

/* Product rows: screenshot + text */
.feature { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature--flip { grid-template-columns: 1.6fr 1fr; }
.feature--flip .feature__text { order: 2; }
.feature__text p { color: var(--ink-soft); }
.feature__text ul { padding-left: 1.1em; margin: 0; color: var(--ink-soft); }
.feature__text li { margin-bottom: .4em; }
@media (max-width: 900px) {
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__text { order: 0; }
}

.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(18,35,63,.06), 0 24px 48px -24px rgba(18,35,63,.28); }
.shot__bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--mist); border-bottom: 1px solid var(--line); }
.shot__bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9d1dc; }
.shot img { width: 100%; height: auto; }

/* Product film */
.film__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #fff; box-shadow: 0 24px 64px -24px rgba(0,0,0,.6); }

/* Steps: a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--lamp); margin-bottom: 12px; }
.steps p { color: var(--ink-soft); margin: 0; }
.band--ink .steps li { border-top-color: #3a4d6e; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Simple two-column lists */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.cols--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); max-width: 820px; }
.cols h3 { margin-bottom: .35em; }
.cols p { margin: 0; color: var(--ink-soft); }
.band--ink .cols p { color: #c3cddc; }

/* Closing call to action */
.closing { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.closing h2 { margin: 0; max-width: 18em; }

/* Page header (inner pages) */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }


/* About */
.prose { max-width: 38em; }
.prose p { color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Contact form */
.form { display: grid; gap: 18px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(8,130,160,.18); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { justify-self: start; }
.form__status { padding: 12px 14px; border-radius: 8px; margin: 0; }
.form__status--ok { background: #e7f6ec; color: #17603a; }
.form__status--error { background: #fdecec; color: #9b1c20; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; color: var(--ink-soft); font-size: .95rem; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--signal); }

/* Footer */
.footer { background: var(--ink); color: #c3cddc; padding: 56px 0 32px; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li { margin-bottom: 8px; }
.footer .nav__logo { color: #fff; margin-bottom: 12px; }
.footer__small { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2c3f5f; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

