/* HOME INSTAL — demo */

@font-face { font-family: "Manrope"; font-weight: 500 800; font-display: swap; src: url(assets/fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026; }
@font-face { font-family: "Manrope"; font-weight: 500 800; font-display: swap; src: url(assets/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-024F; }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url(assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026; }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url(assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-024F; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-024F; }

:root {
  --bg: #F8F8F5;
  --ink: #19272D;
  --muted: #56636A;
  --accent: #245D78;
  --line: #DBE1E1;
  --white: #FFFFFF;
  --danger: #A8321F;
  --head: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono-f: "Plex Mono", ui-monospace, monospace;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--muted); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-family: var(--head); letter-spacing: -.025em; text-wrap: balance; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }
/* Shared 12-column grid: left block spans 1–7, right block 8–12, in every section. */
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.g > .l { grid-column: 1 / 8; }
.g > .r { grid-column: 8 / -1; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 40; background: var(--ink); color: var(--white); padding: 10px 14px; }
.skip:focus { left: 8px; }
.mono { font: 400 .75rem/1.4 var(--mono-f); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: var(--white); font: 600 .9375rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn--light { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--white); border-color: var(--white); }
.btn--line { background: transparent; border-color: rgba(248, 248, 245, .45); color: var(--bg); }
.btn--line:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.tel { padding: 4px 0; border: 0; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; color: var(--ink); font: 500 .9375rem/1.4 var(--body); text-decoration: none; cursor: pointer; transition: background-size .2s, color .15s; }
.tel:hover { color: var(--accent); background-size: 0 1px; background-position: right bottom; }

/* Header */
.head { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 1.0625rem/1 var(--head); letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.logo svg { color: var(--accent); flex: none; }
.head__demo { margin-right: auto; padding-left: 20px; border-left: 1px solid var(--line); font-size: .6875rem; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { padding: 6px 0; color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; transition: background-size .2s; }
.nav a:not(.btn):hover { background-size: 100% 1px; }
.nav a.nav__tel { margin-left: 8px; padding-left: 32px; border-left: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav .btn { margin-left: -8px; }
.menu { display: none; }

/* Hero */
.hero { padding-block: clamp(32px, 5.5vh, 56px) clamp(48px, 7vh, 72px); }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 40px 0 0; }
h1 { margin: 20px 0 24px; font-size: clamp(2.375rem, 5vw, 4.25rem); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; text-wrap: wrap; }
h1 span { display: block; color: var(--accent); }
.lead { max-width: 31em; margin-bottom: 32px; font-size: 1.125rem; line-height: 1.55; }
.hero__est { width: 100%; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }

/* Form */
.panel { padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-top: 2px solid var(--ink); background: var(--white); scroll-margin-top: 88px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.panel__head, .panel__foot, .field--wide { grid-column: 1 / -1; }
.panel__head { margin-bottom: 4px; }
.panel h2 { margin-top: 8px; font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
label { display: block; margin-bottom: 6px; color: var(--ink); font-size: .8125rem; font-weight: 500; }
input, select, textarea { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #C3CCCD; border-radius: 2px; background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--body); appearance: none; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 84px; resize: vertical; }
select { padding-right: 36px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2319272D' stroke-width='1.5'/%3E%3C/svg%3E") right 14px center no-repeat; }
select:invalid { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36, 93, 120, .18); }
[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .8125rem; line-height: 1.35; }
.err:not(:empty) { margin-top: 6px; }
.panel__foot { display: grid; gap: 10px; margin-top: 2px; }
.note { font-size: .8125rem; line-height: 1.45; }
.done { display: grid; gap: 14px; justify-items: start; }
.done h2 { margin-top: 0; }
.done .mono { color: var(--accent); }
.done .actions { margin-top: 8px; }

/* Sections */
.sec { padding-block: var(--sec); border-top: 1px solid var(--line); }
.sec__label { margin-bottom: clamp(28px, 4vw, 48px); }
.sec h2, .cta h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.06; letter-spacing: -.03em; }
.sec__head { row-gap: 24px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec__head p { max-width: 30em; font-size: .9375rem; }

.rows { border-top: 1px solid var(--ink); }
.rows li { align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.rows li > .mono:first-child { grid-column: 1 / 2; }
.rows h3 { grid-column: 2 / 8; font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; line-height: 1.15; }
.rows li > .mono:first-child { color: var(--accent); }
.rows p { grid-column: 8 / 12; }
.rows__code { grid-column: 12; justify-self: end; padding: 3px 7px; border: 1px solid var(--line); }

.about { row-gap: 40px; }
.about__h { grid-column: 1 / 8; grid-row: 1; }
.about__fig { grid-column: 1 / 6; grid-row: 2; align-self: end; }
.about__fig img { aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.about__fig figcaption { margin-top: 10px; font-size: .6875rem; }
.about__body { grid-column: 8 / -1; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 10px; }
.about__body .tel { margin-top: auto; }
.about__lead { color: var(--ink); font: 500 clamp(1.25rem, 1.9vw, 1.5rem)/1.4 var(--head); letter-spacing: -.015em; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.strip div { padding: 18px 24px 0 0; }
.strip div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.strip dd { margin-top: 6px; color: var(--ink); font: 600 1.125rem/1.3 var(--head); letter-spacing: -.01em; }

/* Contact + footer (dark) */
.cta { padding-block: var(--sec); background: var(--ink); color: #B4BFC2; }
.cta .mono { color: #9DAAAE; }
.cta h2 { max-width: 11em; color: var(--bg); }
.cta__in { row-gap: 32px; align-items: end; }
.cta__side { display: grid; gap: 24px; }
.cta__side p { max-width: 24em; font-size: 1.0625rem; }
.cta .actions { gap: 12px; }
.cta :focus-visible, .foot :focus-visible { outline-color: var(--bg); }
.foot { background: var(--ink); color: #B4BFC2; font-size: .8125rem; }
.foot__in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 40px; padding-block: 24px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(248, 248, 245, .16); }
.foot__name { color: var(--bg); font: 700 .9375rem/1.4 var(--head); letter-spacing: .02em; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-right: auto; }
.foot a { color: var(--bg); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .mono { color: #9DAAAE; font-size: .6875rem; }

/* Tablet */
@media (max-width: 1040px) {
  .head__demo { display: none; }
  .nav { gap: 24px; }
  .nav a.nav__tel { padding-left: 24px; }
}
@media (max-width: 899px) {
  html { scroll-padding-top: 72px; }
  .head__in { height: 60px; }
  .logo { margin-right: auto; }
  .menu { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 0 0 12px; border: 0; background: none; color: var(--ink); font: 400 .75rem/1 var(--mono-f); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .menu::after { content: ""; width: 18px; height: 7px; border-block: 1.5px solid currentColor; transition: height .15s; }
  .menu[aria-expanded="true"]::after { height: 0; border-bottom: 0; }
  .nav { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gut) 24px; background: var(--bg); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility 0s .15s; }
  .head.is-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); background: none; font: 600 1.25rem/1.2 var(--head); }
  .nav a.nav__tel { margin: 0; padding-left: 0; border-left: 0; }
  .nav .btn { margin: 20px 0 0; min-height: 48px; }

  .g > .l, .g > .r { grid-column: 1 / -1; }
  .hero { row-gap: 32px; padding-top: 36px; }
  .hero__text { padding: 0; }
  .hero__est { display: none; }
  .panel { scroll-margin-top: 72px; }
  .sec__head, .cta__in { align-items: start; }
  .rows h3 { grid-column: 2 / 12; }
  .rows p { grid-column: 2 / 12; }
  .rows li { row-gap: 8px; }
  .rows__code { grid-row: 1; }
  .about__h, .about__body, .about__fig { grid-column: 1 / -1; grid-row: auto; padding-top: 0; }
  .about__body .tel { margin-top: 4px; }
  .about { row-gap: 28px; }
  .about__fig { max-width: 560px; }
}

/* Mobile */
@media (max-width: 600px) {
  .lead { margin-bottom: 0; font-size: 1.0625rem; }
  .hero__text .actions { display: none; } /* the form follows directly below */
  .hero { row-gap: 28px; padding-top: 28px; }
  form { grid-template-columns: 1fr; }
  .rows li { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 8px 12px; padding: 22px 0; }
  .rows li > .mono:first-child { grid-column: 1; }
  .rows h3 { grid-column: 2; }
  .rows p { grid-column: 2 / -1; }
  .rows__code { grid-column: 3; grid-row: 1; }
  .strip { grid-template-columns: 1fr; }
  .strip div, .strip div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .cta .btn { flex: 1 1 140px; }
  .foot__in, .foot ul { flex-direction: column; gap: 6px; }
  .foot .mono { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
