:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #65748b;
  --soft: #eef3f8;
  --line: #dce4ee;
  --red: #b61f2b;
  --red-dark: #8f1420;
  --blue: #5578eb;
  --blue-dark: #2f56d8;
  --teal: #0b7a75;
  --green: #1f8a5f;
  --gold: #b87510;
  --shadow: 0 24px 80px rgba(22, 32, 51, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 54%, #eef4f7 100%);
  background-size: 72px 72px, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(220, 228, 238, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 180ms ease,
    background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(22, 32, 51, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #46576d;
  font-size: 0.92rem;
  font-weight: 800;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: #edf3f8;
  color: var(--red-dark);
  outline: none;
}

.top-nav .nav-login {
  border: 1px solid rgba(85, 120, 235, 0.22);
  color: var(--blue-dark);
}

.top-nav .nav-download {
  background: var(--ink);
  color: #ffffff;
}

.top-nav .nav-download:hover,
.top-nav .nav-download:focus-visible {
  background: var(--red-dark);
  color: #ffffff;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 132px);
  overflow: hidden;
  padding: clamp(56px, 7vw, 90px) clamp(20px, 5vw, 72px) clamp(68px, 7vw, 96px);
  border-bottom: 1px solid rgba(220, 228, 238, 0.72);
  background:
    linear-gradient(135deg, rgba(182, 31, 43, 0.1), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.86) 42%, rgba(244, 247, 251, 0.62) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 112px;
  background:
    linear-gradient(90deg, rgba(182, 31, 43, 0.15), transparent 28%, rgba(11, 122, 117, 0.18) 78%, transparent),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 720px;
  color: #111827;
  font-size: clamp(3.4rem, 9vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: #142033;
  font-size: clamp(2rem, 4.6vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.18rem;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: #44566e;
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
}

.hero-actions,
.installer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.action-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    border-color 180ms ease;
}

.action-button.primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(182, 31, 43, 0.28);
}

.action-button.secondary {
  border: 1px solid rgba(85, 120, 235, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-dark);
  box-shadow: 0 14px 34px rgba(22, 32, 51, 0.1);
}

.action-button:hover,
.action-button:focus-visible {
  filter: saturate(1.06);
  transform: translateY(-2px);
  outline: none;
}

.action-button.primary:hover,
.action-button.primary:focus-visible {
  box-shadow: 0 22px 46px rgba(182, 31, 43, 0.34);
}

.action-button.secondary:hover,
.action-button.secondary:focus-visible {
  border-color: rgba(47, 86, 216, 0.48);
  box-shadow: 0 18px 40px rgba(22, 32, 51, 0.13);
}

.action-button.is-downloading::after {
  content: "Đang chuẩn bị tải";
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 220px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border: 1px solid rgba(31, 138, 95, 0.22);
  border-radius: var(--radius);
  background: #effaf4;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(22, 32, 51, 0.12);
}

.button-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.action-button.secondary .button-icon {
  background: rgba(85, 120, 235, 0.1);
}

.button-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: #45566d;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(220, 228, 238, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 850;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scene-shell {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.dashboard-shell {
  top: 56px;
  right: clamp(-360px, -10vw, -120px);
  width: min(980px, 64vw);
  min-width: 720px;
  transform: rotate(-1.5deg);
  opacity: 0.88;
}

.browser-bar,
.client-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.76rem;
}

.browser-bar span,
.client-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.browser-bar span:nth-child(2) {
  background: #f59e0b;
}

.browser-bar span:nth-child(3) {
  margin-right: 10px;
  background: #22c55e;
}

.dashboard-frame {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 520px;
  background: #f4f7fb;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
}

.dash-sidebar img {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  object-fit: contain;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

.sidebar-link.active {
  border-left: 4px solid var(--blue);
  background: #f1f5ff;
  color: var(--blue-dark);
}

.dash-main {
  min-width: 0;
  padding: 22px;
}

.dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.dash-toolbar strong,
.wall-header strong,
.activity-panel strong {
  display: block;
  color: #1e293b;
}

.tiny-label {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.toolbar-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dbe4ef;
  border-radius: var(--radius);
  background: #ffffff;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 850;
}

.toolbar-actions span:nth-child(2) {
  border-color: rgba(182, 31, 43, 0.2);
  color: var(--red);
}

.live-layout {
  display: grid;
  grid-template-columns: 1fr 245px;
  gap: 16px;
}

.student-wall,
.activity-panel {
  border: 1px solid #dde6f0;
  border-radius: var(--radius);
  background: #ffffff;
}

.wall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #e2e8f0;
}

.wall-header span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.screen-card {
  position: relative;
  display: block;
  min-height: 82px;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(85, 120, 235, 0.08), transparent 48%),
    #f8fafc;
}

.screen-card::before {
  content: "";
  position: absolute;
  inset: 10px 10px auto;
  height: 9px;
  border-radius: 999px;
  background: #cbd5e1;
}

.screen-card::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.screen-card.warn {
  border-color: rgba(182, 31, 43, 0.34);
  background:
    linear-gradient(180deg, rgba(182, 31, 43, 0.12), transparent 48%),
    #fff8f8;
}

.screen-card.warn::after {
  background: var(--red);
}

.screen-card.muted::after {
  background: #94a3b8;
}

.screen-card b {
  position: absolute;
  left: 10px;
  bottom: 8px;
  color: #475569;
  font-size: 0.72rem;
}

.panel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e2e8f0;
}

.panel-tabs span {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
}

.panel-tabs .active {
  color: var(--blue-dark);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.feed-list {
  display: grid;
  gap: 0;
  padding: 8px 14px 14px;
}

.feed-list span {
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
  color: #475569;
  font-size: 0.72rem;
}

.feed-list b {
  margin-right: 6px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.feed-list .danger {
  color: var(--red);
}

.client-shell {
  right: clamp(24px, 7vw, 92px);
  bottom: 56px;
  width: 330px;
  transform: rotate(2deg);
  opacity: 0.96;
}

.client-window-bar span {
  background: var(--blue);
}

.client-login {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 26px 28px 28px;
  background: #ffffff;
}

.client-login img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.client-login strong {
  color: #1e293b;
  font-size: 1.32rem;
}

.input-row,
.check-row,
.primary-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.input-row {
  border: 1px solid #dfe6ef;
  color: #94a3b8;
  background: #ffffff;
}

.check-row {
  color: #475569;
  font-weight: 800;
}

.check-row::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-right: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
}

.primary-row {
  justify-content: center;
  background: var(--blue);
  color: #ffffff;
  font-weight: 950;
}

.client-login small {
  color: var(--green);
  font-weight: 850;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(20px, 3vw, 34px) clamp(20px, 5vw, 72px) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 16px 42px rgba(22, 32, 51, 0.08);
}

.signal-strip div {
  min-height: 124px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  margin-bottom: 7px;
  color: #1e293b;
  font-size: 1.05rem;
}

.signal-strip span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: clamp(70px, 8vw, 118px) clamp(20px, 5vw, 72px) 0;
}

.section-heading {
  max-width: 820px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.02rem;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.role-card,
.workflow-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(22, 32, 51, 0.07);
}

.role-card {
  min-height: 300px;
  padding: 26px;
}

.role-card p,
.workflow-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.role-kicker,
.workflow-step span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: rgba(182, 31, 43, 0.1);
  color: var(--red);
  font-weight: 950;
}

.role-kicker.teal {
  background: rgba(11, 122, 117, 0.12);
  color: var(--teal);
}

.role-kicker.gold {
  background: rgba(184, 117, 16, 0.14);
  color: var(--gold);
}

.web-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

.split-content {
  min-width: 0;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.feature-list div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  margin-bottom: 5px;
  color: #1e293b;
}

.feature-list span {
  color: var(--muted);
}

.web-preview {
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.preview-topbar {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.preview-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

.preview-topbar strong {
  color: #1e293b;
}

.preview-topbar em {
  color: var(--green);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.preview-body {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 18px;
  padding: 18px;
  background: #f4f7fb;
}

.preview-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-tools button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe4ef;
  border-radius: var(--radius);
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
}

.preview-screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.preview-screens span {
  position: relative;
  aspect-ratio: 1.35;
  border: 1px solid #dbe5ef;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(85, 120, 235, 0.09), transparent 52%),
    #ffffff;
}

.preview-screens span::before,
.preview-screens span::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #cbd5e1;
}

.preview-screens span::before {
  left: 12px;
  right: 36px;
  top: 12px;
  height: 8px;
}

.preview-screens span::after {
  right: 10px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  background: var(--green);
}

.preview-screens .alert {
  border-color: rgba(182, 31, 43, 0.35);
  background:
    linear-gradient(180deg, rgba(182, 31, 43, 0.11), transparent 52%),
    #fffafa;
}

.preview-screens .alert::after {
  background: var(--red);
}

.preview-body aside {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 16px;
  border: 1px solid #dbe4ef;
  border-radius: var(--radius);
  background: #ffffff;
}

.preview-body aside strong {
  margin-bottom: 8px;
  color: #1e293b;
}

.preview-body aside span {
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
  color: #64748b;
  font-size: 0.82rem;
}

.preview-body aside .danger {
  color: var(--red);
}

.desktop-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(85, 120, 235, 0.08), transparent 45%),
    #ffffff;
  box-shadow: 0 22px 64px rgba(22, 32, 51, 0.1);
}

.installer-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
}

.text-link {
  color: var(--blue-dark);
  font-weight: 950;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--red-dark);
  outline: none;
}

.installer-details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.installer-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.installer-details dt {
  color: #64748b;
  font-weight: 850;
}

.installer-details dd {
  margin: 0;
  color: #1e293b;
  font-weight: 950;
  text-align: right;
  word-break: break-word;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.workflow-step {
  min-height: 270px;
  padding: 24px;
}

.workflow-step span {
  background: #eef4ff;
  color: var(--blue-dark);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(70px, 8vw, 118px);
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: #607184;
  font-size: 0.95rem;
}

.site-footer div,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-footer span:first-of-type {
  color: var(--ink);
  font-weight: 900;
}

.site-footer a {
  color: var(--red);
  font-weight: 950;
}

.footer-year {
  color: #64748b;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .action-button,
  .site-header,
  .reveal {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .top-nav a:not(.nav-login):not(.nav-download) {
    display: none;
  }

  .dashboard-shell {
    right: -450px;
    opacity: 0.72;
  }

  .web-section,
  .desktop-card {
    grid-template-columns: 1fr;
  }

  .web-preview {
    max-width: 920px;
  }

  .workflow-grid,
  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-nav a:not(.nav-login):not(.nav-download) {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 58px;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.7);
  }

  .dashboard-shell {
    top: 168px;
    right: -620px;
    width: 900px;
    min-width: 900px;
    opacity: 0.36;
  }

  .client-shell {
    display: none;
  }

  .role-grid,
  .preview-body {
    grid-template-columns: 1fr;
  }

  .preview-screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand span {
    white-space: normal;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.05rem;
  }

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

  .action-button {
    width: 100%;
  }

  .hero-proof,
  .top-nav {
    align-items: stretch;
  }

  .hero-proof span {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    text-align: center;
  }

  .signal-strip,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    min-height: auto;
  }

  .role-card,
  .workflow-step {
    min-height: auto;
  }

  .desktop-card {
    padding: 26px 20px;
  }

  .installer-details div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .installer-details dd {
    text-align: left;
  }

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

@media (max-width: 420px) {
  .site-header {
    padding-inline: 16px;
  }

  .top-nav a {
    padding-inline: 10px;
  }

  .section,
  .hero,
  .site-footer {
    padding-inline: 16px;
  }

  .signal-strip {
    margin-inline: 16px;
  }

  h1 {
    font-size: 2.85rem;
  }

  .hero-proof span {
    flex-basis: 100%;
  }
}
