/* Stalonis website — the app's own palette and components (stalonis-app/css/styles.css), light only. */
:root {
  --paper: #eef0ec;
  --grid: #dde1db;
  --grid2: #c8cdc5;
  --ink: #23282e;
  --ink2: #5a6068;
  --ink3: #666c74;
  --accent: #1f5fcb;
  --accent-dark: #174ca6;
  --accent-soft: #dfe8fa;
  --panel: #fbfbfa;
  --white: #ffffff;
  --line: #d8dbd5;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 1px 2px rgba(35, 40, 46, 0.06), 0 8px 24px rgba(35, 40, 46, 0.08);
  --shadow-lg: 0 2px 4px rgba(35, 40, 46, 0.06), 0 24px 60px rgba(35, 40, 46, 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { letter-spacing: -0.015em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 251, 250, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand svg { width: 26px; height: 26px; }
header nav.links { display: flex; gap: 24px; margin-right: auto; }
header nav.links a { color: var(--ink2); text-decoration: none; font-size: 15px; font-weight: 500; }
header nav.links a:hover { color: var(--ink); }

/* segmented control, as in the app's Plan / Coupe / 3D switch */
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg a, .seg button {
  border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink2);
  padding: 5px 12px; border-radius: 6px; text-decoration: none; cursor: pointer; line-height: 1.4;
}
.seg a[aria-current="true"], .seg button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(35, 40, 46, 0.12); }

.button {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--accent); color: var(--white); border: 1px solid var(--accent);
  padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background 0.15s;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.button.ghost:hover { background: var(--paper); }
.button.big { padding: 13px 24px; font-size: 16px; }

/* ---------- hero on the app's grid paper ---------- */
.hero {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid2) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .wrap { padding-top: 80px; padding-bottom: 0; text-align: center; }
.eyebrow {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; margin: 0 auto 20px; max-width: 880px; font-weight: 700; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink2); margin: 0 auto 32px; max-width: 680px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { color: var(--ink3); font-size: 14px; margin: 14px 0 56px; }

.frame {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 1080px; margin: 0 auto;
}
.frame .bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--grid2); }
.frame img { width: 100%; height: auto; }

/* ---------- sections ---------- */
section.block { padding: 96px 0; }
section.block.tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 720px; margin: 0 0 48px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--accent); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 14px; }
.head p { color: var(--ink2); font-size: 18px; margin: 0; }

/* views switcher */
.views .seg { margin: 0 auto 28px; display: flex; width: max-content; max-width: 100%; overflow-x: auto; }
.views figure { margin: 0; }
.views .panel { display: none; }
.views .panel.on { display: block; }
.views .panel .shot {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--white); aspect-ratio: 16 / 10;
}
.views .panel .shot img { width: 100%; height: 100%; object-fit: cover; }
.views figcaption { text-align: center; color: var(--ink2); margin-top: 16px; }

/* cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.card .icon {
  width: 40px; height: 40px; border-radius: 9px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink2); }

/* audiences, with a picture each */
.aud { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.aud img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.aud div { padding: 24px; }
.aud h3 { font-size: 19px; margin: 0 0 8px; }
.aud p { margin: 0; color: var(--ink2); }

/* steps, as in the app's side panel: Draw, Site, Permit file, Export */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--ink2); font-size: 15px; }

/* split: text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.split ul { padding: 0; margin: 20px 0 0; list-style: none; }
.split li { padding: 8px 0 8px 30px; position: relative; color: var(--ink2); }
.split li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 16px; border-radius: 4px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231f5fcb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.split li strong { color: var(--ink); }

/* gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.gallery img:first-child { grid-row: span 2; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink2); }

/* call to action band */
.cta { background: var(--ink); color: var(--white); border-radius: 16px; padding: 56px; text-align: center; }
.cta h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; }
.cta p { color: #c9cdd3; margin: 0 0 28px; font-size: 18px; }
.cta .button.ghost { background: transparent; color: var(--white); border-color: #4a5058; }
.cta .button.ghost:hover { background: #30363d; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--ink2); font-size: 14px; background: var(--white); }
footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--ink2); text-decoration: none; }
footer nav a:hover { color: var(--ink); text-decoration: underline; }
footer p { margin: 8px 0 0; }

/* ---------- legal page ---------- */
.legal { padding: 64px 0 32px; max-width: 780px; }
.legal h1 { font-size: 40px; margin: 0 0 8px; }
.legal h2 { font-size: 26px; margin: 56px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: #3a4048; }
.legal .updated { color: var(--ink3); margin: 0 0 24px; }
.legal nav.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.legal nav.toc a { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  header nav.links { display: none; }
  header.top .wrap { gap: 12px; justify-content: space-between; }
  .brand { margin-right: auto; }
  .grid3, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  header .button { display: none; }
  .hero .wrap { padding-top: 48px; }
  .hero .note { margin-bottom: 36px; }
  section.block { padding: 64px 0; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery img:first-child { grid-row: auto; }
  .cta { padding: 36px 22px; }
}

@media print {
  header.top { position: static; }
  .hero { background: none; }
}

/* legal pages have no section links: push the language switch to the right */
.brand + .seg { margin-left: auto; }
.split > img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 70%; width: 100%; }
