@font-face {
  font-family: Inter;
  src: url('./assets/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --header: #0b3445;
  --ink: #102e3b;
  --muted: #536774;
  --accent: #006c85;
  --guide-blue: #23658c;
  --line: #dce5e9;
  --paper: #f5f8fa;
  --white: #fff;
  --radius: 14px;
  font-family: Inter, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.5; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 3px solid #1486a6; outline-offset: 4px; }
.site-header a:focus-visible { outline-color: #94e3f7; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 5.5rem, 1312px); margin-inline: auto; }
.skip { position: absolute; top: -100px; z-index: 2; padding: .7rem; background: white; color: var(--header); }
.skip:focus { top: 5px; left: 5px; }

.site-header { background: var(--header); color: white; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; min-height: 72px; }
.wordmark { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.wordmark img { width: 184px; height: auto; }
.wordmark-trademark { margin-left: 4px; font-size: .94rem; font-weight: 700; line-height: 1; transform: translateY(-.8em); }
.header-inner nav { display: flex; align-items: center; gap: clamp(.8rem, 2.3vw, 2rem); }
.header-inner nav a { min-height: 44px; display: inline-flex; align-items: center; color: #e8f2f7; text-decoration: none; font-size: .9rem; font-weight: 650; white-space: nowrap; }
.header-inner nav a:hover { color: white; text-decoration: underline; text-underline-offset: 5px; }
.header-inner .header-setup { padding-inline: .82rem; border: 1px solid #568092; border-radius: 7px; background: #183f50; }
.header-inner .header-setup:hover { background: #244f61; text-decoration: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5.6vw, 5.2rem); padding-block: 2.7rem 2.3rem; }
.hero-copy h1 { max-width: 600px; font-size: clamp(2.65rem, 5.12vw, 4.45rem); line-height: 1.025; letter-spacing: -.057em; font-weight: 750; }
.hero h1 span { color: var(--accent); }
.hero-copy > p { max-width: 495px; margin-top: 1.03rem; color: var(--muted); font-size: clamp(1rem, 1.37vw, 1.14rem); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; border-radius: 7px; padding: .58rem .91rem; font-size: .9rem; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; }
.primary { color: white; background: var(--accent); }
.primary:hover { background: #00586e; }
.secondary { color: var(--accent); background: white; border-color: #b8d2db; }
.secondary:hover { background: #edf6fa; border-color: #8ab4c3; }
.hero-specs { display: flex; flex-wrap: wrap; gap: .35rem .8rem; margin: 1.15rem 0 0; padding: 0; list-style: none; font-size: .83rem; font-weight: 650; color: var(--muted); }
.hero-specs li { display: flex; align-items: center; gap: .35rem; }
.hero-specs li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #12819a; }
.hero-copy > .hero-firmware { margin-top: .7rem; font-size: .9rem; line-height: 1.55; }
.hero-firmware a { color: var(--accent); text-underline-offset: .14em; }

.hero-visual { width: 100%; min-height: 352px; aspect-ratio: 1.54; position: relative; overflow: hidden; isolation: isolate; border: 1px solid #416889; border-radius: var(--radius); background: radial-gradient(ellipse at 48% 37%, #527da5, #416a92 68%, #3a6088); }
.hero-visual::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 23px, #d4e7f311 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, #d4e7f311 23px 24px); }
.hero-plan { position: absolute; inset: 0; width: 100%; height: 94%; fill: none; stroke: #e1f0fa; mask-image: radial-gradient(ellipse, #0005, #000 80%); }
.hero-plan path { vector-effect: non-scaling-stroke; }
.plan-walls { stroke-width: 1.35; opacity: .68; }
.plan-detail { opacity: .48; }
.plan-fixtures { opacity: .22; }
.ring { position: absolute; aspect-ratio: 1; border: 1px solid transparent; border-bottom-color: #cde7fc24; border-right-color: #cde7fc1c; border-radius: 50%; top: 37%; left: 50%; transform: translate(-50%, -50%) rotate(24deg); }
.ring.outer { width: 53%; }
.ring.middle { width: 42%; }
.hero-sensor, .card-sensor { position: absolute; inset: 0; }
.cutout { position: absolute; top: 50%; left: 50%; height: auto; filter: drop-shadow(3px 9px 9px #15415332); }
.hero-litos .cutout { width: 27%; top: 54%; left: 21%; transform: translate(-50%, -50%) rotate(-14deg); }
.hero-hps .cutout { width: 24%; top: 43%; transform: translate(-48%, -50%) rotate(-5deg); }
.hero-skopos .cutout { width: 23%; top: 50%; left: 79%; transform: translate(-50%, -50%) rotate(13deg); }
.device-label { position: absolute; z-index: 2; bottom: 5%; transform: translateX(-50%); min-height: 30px; padding: .23rem .6rem; color: #254f5e; background: #f9fcfd; border: 1px solid #c3dce6; border-radius: 99px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.device-label:hover { color: #153b64; background: #e3f2ff; border-color: #a7d4fa; }
.device-label:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.label-litos { left: 21%; }
.label-hps { left: 50%; }
.label-skopos { left: 79%; }

.section { padding-block: 1.9rem 2rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .4rem 1rem; margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.6rem, 2.65vw, 2.16rem); line-height: 1.16; letter-spacing: -.037em; font-weight: 750; }
.section-heading p { color: var(--muted); margin-top: .42rem; font-size: .98rem; }
.inline-link { color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; font-size: .9rem; font-weight: 700; text-underline-offset: 4px; }
.inline-link:hover { color: #004c5f; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.card:hover { border-color: #aacdd8; box-shadow: 0 7px 20px #102e3b0a; }
.device-image { height: clamp(166px, 17.1vw, 218px); position: relative; overflow: hidden; isolation: isolate; }
.device-image::before {
  content: '';
  position: absolute;
  inset: -5px;
  background: radial-gradient(ellipse at center, #1c252946, #1c252914), var(--room-photo) var(--room-position, 50% 10%) / cover no-repeat;
  filter: blur(2px) contrast(.94) saturate(.8);
}
.image-litos { --room-photo: url('./assets/litos-living-room.webp'); background-color: #9d9e86; }
.image-hps { --room-photo: url('./assets/hps-entryway.webp'); background-color: #a4917c; }
.image-skopos { --room-photo: url('./assets/skopos-home-office.webp'); background-color: #82959b; }
.product-type { position: absolute; top: 13px; left: 13px; z-index: 1; padding: .25rem .55rem; color: #21566b; background: #ffffffcd; border: 1px solid #ffffffd9; border-radius: 6px; font-size: .8rem; font-weight: 700; }
/* Use the panel center as the zoom origin, with each static transform centering the silhouette. */
.card-sensor .cutout { width: auto; max-width: 81%; max-height: min(73%, calc(130% - 148px)); transform-origin: 0 0; filter: drop-shadow(0 2px 3px #0d202742) drop-shadow(0 7px 7px #0d202755); }
.card-sensor .cutout-l3 { transform: translate(1.6%, 1.3%) rotate(-11deg) translate(-50%, -50%); }
.card-sensor .cutout-h4pl { transform: translate(-2.2%, 1.2%) scaleX(-1) rotate(-9deg) translate(-50%, -50%); }
.card-sensor .cutout-sk2 { transform: translate(-1.6%, 1%) rotate(12deg) translate(-50%, -50%); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card-sensor .cutout { scale: 1; transition: scale 180ms ease; }
  .card-sensor.is-device-hovered .cutout { scale: 1.09; }
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1rem 1rem .85rem; }
.card h3 { margin-bottom: .28rem; font-size: 1.28rem; line-height: 1.25; letter-spacing: -.025em; }
.card p { flex: 1; color: var(--muted); font-size: .91rem; }
.card-action { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .65rem; }
.card-action span { font-size: .79rem; font-weight: 650; color: #385864; }
.compact { padding-inline: .62rem; }

.tools-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr); gap: 1.05rem; align-items: stretch; }
.resource-list { display: grid; align-self: start; gap: .64rem; }
.resource { display: flex; align-items: center; gap: .85rem; padding: .64rem 1rem; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.resource:hover { border-color: #a8cbd7; background: #fcfeff; }
.resource strong, .resource small { display: block; }
.resource strong { color: var(--guide-blue); font-size: .97rem; }
.resource:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.resource small { margin-top: .14rem; color: var(--muted); font-size: .86rem; }
.resource-icon { display: inline-grid; place-items: center; position: relative; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 9px; background: #edf5fa; color: var(--guide-blue); }
.resource-icon::before, .resource-icon::after { content: ''; position: absolute; }
.icon-setup::before { width: 15px; height: 15px; border-radius: 3px; border: 2px solid currentColor; }
.icon-setup::after { width: 7px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-1px) rotate(-45deg); }
.icon-pir::before { width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; }
.icon-pir::after { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.icon-radar::before { width: 17px; height: 17px; border: 2px solid currentColor; border-radius: 3px 50% 50% 50%; transform: rotate(-45deg); }
.icon-radar::after { width: 7px; height: 2px; background: currentColor; transform: rotate(-45deg); }
.icon-zones::before { width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 3px; }
.icon-zones::after { width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translate(-3px,-3px); }
.tool-preview { min-width: 0; overflow: hidden; padding: .72rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.preview-controls { display: flex; gap: .35rem; margin-bottom: .65rem; padding: .25rem; border-radius: 8px; background: #eef4f7; }
.preview-controls button { min-height: 38px; padding: .38rem .63rem; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: .85rem; font-weight: 700; }
.preview-controls button[aria-pressed=true] { border-color: #c7dce5; background: white; color: var(--accent); }
.preview-controls button:hover { color: var(--accent); }
.tool-preview img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 7px; background: #f1f6f8; }
.tool-preview figcaption { margin-top: .36rem; color: var(--muted); font-size: .77rem; }

.site-footer { background: white; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .9rem; min-height: 75px; padding-block: .5rem; color: var(--muted); font-size: .84rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .1rem .9rem; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-underline-offset: 3px; }

dialog { width: min(100% - 1.5rem, 530px); max-height: 90dvh; padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px #0f293955; }
dialog::backdrop { background: #14324399; }
.dialog-inner { position: relative; padding: 1.45rem; }
.dialog-close { position: absolute; right: .7rem; top: .7rem; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; font-size: 1.45rem; line-height: 1; }
.dialog-close:hover { background: #eef5f9; }
.dialog-category { color: var(--accent); font-size: .83rem; font-weight: 700; }
.dialog-inner h2 { margin: .23rem 2.7rem .5rem 0; }
.dialog-summary { color: var(--muted); }
.dialog-inner dl { margin-top: .8rem; border-block: 1px solid var(--line); padding: .46rem 0; }
.dialog-inner dl > div { display: grid; grid-template-columns: 5.4rem 1fr; gap: .55rem; padding: .3rem 0; font-size: .88rem; }
.dialog-inner dt { font-weight: 700; }
.dialog-inner dd { color: var(--muted); }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 3rem); }
  .hero { gap: 1.5rem; }
  .hero-visual { min-height: 320px; }
  .device-label { padding-inline: .42rem; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: .45rem; }
  .header-inner nav { width: 100%; display: flex; justify-content: space-between; gap: .3rem; padding-bottom: .5rem; }
  .header-inner nav a { font-size: .83rem; }
  .header-inner .header-setup { padding-inline: .58rem; }
  .wordmark img { width: 161px; }
  .hero { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 1.65rem 1.4rem; }
  .hero-copy h1 { font-size: clamp(2.4rem, 7.7vw, 3.8rem); }
  .hero-copy > p { margin-top: .8rem; }
  .hero-visual { min-height: 0; aspect-ratio: 1.58; }
  .hero-litos .cutout { width: 25%; top: 50%; }
  .hero-hps .cutout { width: 22%; top: 42%; }
  .hero-skopos .cutout { width: 21%; top: 47%; }
  .cards { grid-template-columns: 1fr; gap: .72rem; }
  .card { display: grid; grid-template-columns: minmax(106px, .48fr) minmax(0, 1fr); }
  .device-image { height: auto; min-height: 172px; }
  .image-litos { --room-position: 27% center; }
  .image-hps { --room-position: 70% center; }
  .product-type { font-size: .69rem; top: 8px; left: 8px; padding: .22rem .38rem; }
  .card-sensor .cutout { max-width: 79%; max-height: min(77%, calc(100% - 82px)); }
  .tools-layout { grid-template-columns: 1fr; gap: .8rem; }
  .section { padding-block: 1.35rem; }
  .section-heading { margin-bottom: .72rem; }
}
@media (max-width: 520px) {
  .image-skopos { --room-photo: url('./assets/skopos-home-office-phone.webp'); --room-position: center; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 1.5rem); }
  .hero-copy h1 { font-size: 2.28rem; }
  .hero-visual { aspect-ratio: 1.5; }
  .hero-specs { font-size: .75rem; gap: .3rem .5rem; }
  .card-sensor .cutout { max-width: 75%; }
  .card-body { padding: .76rem; }
  .device-label { font-size: .66rem; }
}
@media (max-width: 760px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* Skopos swings wider when zoomed. Reserve clearance in the narrow photo column. */
  .card-sensor .cutout-sk2 { max-width: 74%; max-height: min(77%, calc(100% - 94px)); }
}
@media (max-width: 380px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card-sensor .cutout-sk2 { max-width: 70%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
