:root {
  color-scheme: light;
  --base: #fff;
  --surface: #f5f7ff;
  --surface-light: #e8efff;
  --ink: #111e41;
  --muted: #516183;
  --cobalt: #1745c6;
  --cobalt-dark: #11359e;
  --line: #d0dbf2;
  --radius: 20px;
  font: 100%/1.6 "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--base); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font: 500 clamp(2.5rem, 5vw, 4.25rem)/1.02 Georgia, serif; letter-spacing: -.055em; text-wrap: balance; }
h3 { font-size: 1.22rem; line-height: 1.25; }
em { font-style: normal; color: var(--cobalt); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1200px, calc(100% - 5rem)); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 8vw, 7.5rem); }
.skip { position: fixed; top: -100px; left: .75rem; z-index: 5; padding: .5rem 1rem; background: var(--cobalt); color: var(--base); }
.skip:focus { top: .75rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .38em; white-space: nowrap; font-size: 1.17rem; font-weight: 700; letter-spacing: -.035em; }
.brand strong { color: var(--cobalt); }
.brand-icon { width: 28px; height: 28px; margin-right: .3em; border-radius: 8px; background: var(--cobalt); color: var(--base); display: inline-grid; place-items: center; }
.brand-icon::after { content: ""; width: 12px; height: 13px; border: 2px solid currentColor; border-left-width: 4px; border-radius: 2px 4px 4px 2px; }
nav { display: flex; gap: clamp(1rem, 3.7vw, 2.8rem); font-size: .94rem; font-weight: 600; }
nav a:hover, .footer a:hover { color: var(--cobalt); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .68rem 1.15rem; border: 1px solid transparent; border-radius: 10px; font-size: .95rem; line-height: 1.4; font-weight: 700; text-align: center; }
.button:disabled { opacity: .6; cursor: wait; }
.primary { background: var(--cobalt); color: var(--base); }
.primary:hover { background: var(--cobalt-dark); }
.secondary { background: var(--base); border-color: var(--cobalt); color: var(--cobalt); }
.secondary:hover { background: var(--surface-light); }
.compact { padding: .48rem .72rem; min-height: 40px; }
.text-link { color: var(--cobalt); text-decoration: underline; text-underline-offset: .25em; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; margin-top: 1.5rem; }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 4.75rem); }
.hero h1 { font-size: clamp(3.25rem, 6.7vw, 6.6rem); }
.hero h1 em { display: block; margin-top: .15em; }
.kicker { display: flex; align-items: center; gap: .65rem; width: fit-content; color: var(--cobalt); font-size: .875rem; font-weight: 700; margin-bottom: 1.25rem; }
.kicker span { width: 17px; height: 1px; background: currentColor; }
.intro { font-size: clamp(1.05rem, 1.3vw, 1.22rem); color: var(--muted); margin-top: 1.35rem; max-width: 34rem; }
.intro strong { color: var(--ink); }
.hero-visual { min-height: 500px; aspect-ratio: 1.04; background: var(--surface-light); border: 1px solid var(--line); border-radius: 36px 36px 120px 36px; overflow: hidden; position: relative; display: flex; justify-content: center; align-items: end; isolation: isolate; }
.hero-photo { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 50% 62%; z-index: -2; }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 72%, #10286d55 100%); z-index: -1; }
.hero-visual figcaption { margin: 0 .8rem 1.2rem; padding: .25rem .7rem; border-radius: 8px; background: var(--cobalt-dark); font-size: .875rem; color: var(--base); text-align: center; }
.facts { background: var(--cobalt); color: var(--base); }
.facts-row { display: grid; grid-template-columns: .85fr 1fr 1.4fr; }
.facts-row div { padding: 1.4rem clamp(1rem, 3vw, 2.5rem); }
.facts-row div:first-child { padding-left: 0; }
.facts-row div + div { border-left: 1px solid #ffffff55; }
.facts-row strong, .facts-row span { display: block; }
.facts-row strong { font-size: 1.15rem; }
.facts-row span { font-size: .95rem; color: #edf2ff; }
.section-head { display: flex; gap: 1rem 3rem; align-items: end; justify-content: space-between; margin-bottom: 2rem; }
.section-head p { max-width: 26rem; }
.muted { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.feature { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature figure { background: var(--surface-light); padding: clamp(.7rem, 2vw, 1.6rem); }
.feature img { width: 100%; border-radius: 10px; }
.feature > div { padding: 1.55rem; }
.feature p, .steps p, details p { color: var(--muted); margin-top: .55rem; }
.image-link { display: block; border-radius: 10px; cursor: zoom-in; }
.image-link:hover { outline: 1px solid var(--cobalt); outline-offset: 3px; }
.companion { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.5rem; padding: 1.55rem; border: 1px solid var(--line); border-radius: var(--radius); }
.companion p { max-width: 46rem; color: var(--muted); margin-top: .55rem; }
.installation { background: var(--surface); border-block: 1px solid var(--line); }
.install-grid, .release, .faq { display: grid; grid-template-columns: .95fr 1.05fr; align-items: start; gap: clamp(2rem, 7vw, 6rem); }
.install-grid { row-gap: 2rem; }
.model-note { margin-top: 1.4rem; padding: 1rem 1.1rem; border-left: 3px solid var(--cobalt); border-radius: 0 10px 10px 0; background: var(--base); }
.model-note h3 { color: var(--cobalt-dark); }
.model-note p { color: var(--muted); margin-top: .4rem; }
.install-photos, .release-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.install-photos { grid-column: 1 / -1; }
.install-photos figure, .release-images figure { display: grid; align-content: start; gap: .55rem; }
.install-photos img, .release-images img { width: 100%; height: clamp(175px, 22vw, 280px); object-fit: contain; background: var(--surface-light); border-radius: 10px; }
.install-photos figcaption, .release-images figcaption { color: var(--muted); font-size: .9rem; }
.release-list { margin: 1.35rem 0 0; padding-inline-start: 1.2rem; color: var(--muted); }
.release-list li + li { margin-top: .55rem; }
.release-list strong { color: var(--ink); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; display: flex; align-items: start; gap: 1.1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); min-width: 2rem; min-height: 2rem; display: grid; place-items: center; border-radius: 50%; color: var(--cobalt); background: var(--surface-light); font-weight: 700; }
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
details:first-child { border-top: 1px solid var(--line); }
summary { font-weight: 650; }
.footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); }
.footer-row { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 1rem; }
.footer .brand { color: var(--ink); }
.footer nav { flex-wrap: wrap; gap: .65rem 1.4rem; }
dialog { width: min(600px, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #111e4199; }
.dialog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
dialog h2, .panel h2, .privacy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
form { display: grid; gap: 1rem; }
form .button { justify-self: start; align-self: end; }
label { display: grid; gap: .45rem; font-weight: 600; }
input { background: var(--base); color: var(--ink); border: 1px solid #7d90ba; border-radius: 8px; padding: .65rem .75rem; width: 100%; min-width: 0; }
.download-box, .panel-box, .invite-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 1.25rem; margin-block: 1rem; }
.download-box { background: var(--base); }
.download-box p, .panel-box p { margin-block: .6rem; }
.checksum { color: var(--muted); font: .875rem/1.55 Consolas, monospace; overflow-wrap: anywhere; }
.status { color: var(--cobalt); margin-top: 1rem; }
.status:empty { display: none; }
.panel h1, .privacy h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.panel > form { max-width: 32rem; }
.panel-bar, .form-row, .invite-card { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1.25rem; }
.panel-bar { justify-content: space-between; margin-top: 1.5rem; }
.form-row label:first-child { flex: 2 1 12rem; }
.form-row label:nth-child(2) { flex: 1 1 8rem; }
.invite-card { justify-content: space-between; align-items: center; }
.invite-card .actions { margin-top: 0; gap: .5rem; }
.invite-card p { color: var(--muted); overflow-wrap: anywhere; }
.invite-card > div { min-width: 0; overflow-wrap: anywhere; }
.history-list { padding-left: 1.25rem; }
.privacy h2 { margin-top: 2rem; }
.privacy p { margin-top: .7rem; max-width: 48rem; }
@media (max-width: 950px) {
  .hero-visual { min-height: 390px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .header-row { min-height: 72px; flex-wrap: wrap; gap: .55rem; padding-block: .75rem; }
  .header-row nav { width: 100%; order: 3; padding-top: .45rem; }
  .hero, .features, .install-grid, .release, .faq { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.9rem, 10vw, 4.3rem); }
  .hero-visual { min-height: 0; border-bottom-right-radius: 70px; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .facts-row div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #ffffff55; padding-left: 0; }
  .section-head, .footer-row { flex-wrap: wrap; }
  .footer-row { padding-block: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
