:root {
  color-scheme: light;
  --blue-900: #15345b;
  --blue-700: #2363a5;
  --blue-600: #378add;
  --blue-100: #e7f1ff;
  --ink: #162338;
  --muted: #54657b;
  --line: #d8e5f4;
  --surface: #ffffff;
  --background: #f4f8ff;
  --shadow: 0 20px 55px rgba(31, 74, 122, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(162, 207, 255, 0.45), transparent 30rem),
    var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(55, 138, 221, 0.45);
  outline-offset: 3px;
}

.installer-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.site-header,
.header-actions,
.brand,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.site-header {
  justify-content: space-between;
  min-height: 56px;
  gap: 20px;
}

.brand {
  gap: 10px;
  color: var(--blue-900);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #4c9de8, #2363a5);
  box-shadow: 0 7px 16px rgba(35, 99, 165, 0.25);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
}

.brand-name {
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.brand-image {
  object-fit: cover;
}

.header-actions {
  justify-content: flex-end;
  gap: 14px;
}

#language-select {
  min-height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.text-link,
.site-footer a {
  color: var(--blue-700);
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  padding: clamp(54px, 9vw, 112px) 0 clamp(58px, 9vw, 104px);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--blue-900);
  font-size: clamp(2.15rem, 5vw, 4.45rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h2 {
  color: var(--blue-900);
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h3 {
  color: var(--blue-900);
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-intro {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.primary-button {
  border: 1px solid var(--blue-600);
  background: var(--blue-600);
  box-shadow: 0 9px 18px rgba(55, 138, 221, 0.25);
  color: #ffffff;
  cursor: pointer;
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue-700);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.primary-button:disabled {
  background: #7faeda;
  border-color: #7faeda;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.install-status {
  max-width: 620px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #bcd6ef;
  border-radius: 10px;
  background: #edf6ff;
  color: var(--blue-900);
  font-size: 0.94rem;
}

.hero-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 250px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(188, 214, 239, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.app-icon-wrap {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 26px;
  background: var(--blue-100);
}

.app-icon {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

.card-kicker {
  margin-bottom: 8px;
  font-size: 0.68rem;
}

.hero-card h2 {
  margin-bottom: 11px;
  font-size: 1.4rem;
}

.hero-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.instructions {
  padding: 30px 0 72px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.instruction-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.instruction-card.is-highlighted {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.13);
}

.device-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 1.45rem;
  font-weight: 800;
}

.instruction-card h3 {
  margin-bottom: 16px;
}

.instruction-card ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.instruction-card li {
  padding-left: 4px;
}

.instruction-card li + li {
  margin-top: 10px;
}

.hint {
  margin: 18px 0 0;
  color: var(--blue-700);
  font-size: 0.88rem;
}

.online-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid #c7ddf2;
  border-radius: 16px;
  background: rgba(231, 241, 255, 0.72);
}

.online-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: #23864d;
  box-shadow: 0 0 0 5px rgba(35, 134, 77, 0.12);
}

.online-note h2 {
  margin-bottom: 7px;
  font-size: 1.12rem;
}

.online-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 66px;
  }

  .hero-card {
    max-width: 620px;
  }

  .instruction-grid {
    grid-template-columns: 1fr;
  }

  .instruction-card {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .installer-shell {
    width: min(100% - 24px, 540px);
    padding-top: 12px;
  }

  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .text-link {
    width: 100%;
    text-align: right;
    font-size: 0.9rem;
  }

  .hero {
    gap: 32px;
    padding: 60px 0 72px;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-icon-wrap {
    margin: 0 auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-button,
  .secondary-button {
    transition: none;
  }
}
