.hero-actions {
  display: grid;
  width: min(100%, 624px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.route-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  min-height: 94px;
  align-items: center;
  padding: 15px 19px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid transparent;
  text-decoration: none;
}

.route-card strong,
.route-card small { display: block; }
.route-card strong { font-size: clamp(1.05rem, 2vw, 1.24rem); }
.route-card small { margin-top: 4px; font-size: .875rem; line-height: 1.35; }
.route-ios { background: var(--lime); color: #221d32; }
.route-ios:hover { background: #edffbd; }
.route-pc { background: #ffffff13; color: #fff; border-color: #d8c5fb52; }
.route-pc small { color: #ded1f3; }
.route-pc:hover { background: #ffffff23; }

.device-icon {
  display: inline-block;
  position: relative;
  justify-self: center;
  border: 2px solid currentColor;
  color: inherit;
  flex: none;
}

.phone-icon { width: 17px; height: 28px; border-radius: 5px; }
.phone-icon::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  border-bottom: 2px solid currentColor;
}

.desktop-icon { width: 28px; height: 19px; border-radius: 4px; margin-bottom: 6px; }
.desktop-icon::before, .desktop-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
}
.desktop-icon::before { width: 2px; height: 5px; bottom: -6px; }
.desktop-icon::after { width: 14px; height: 2px; }

.hero-how {
  color: #eee4ff;
  background: none;
  border: 0;
  padding: 6px;
  margin-top: 12px;
  font-size: .92rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.install-section { scroll-margin-top: 24px; }
.iphone-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, .7fr);
  align-items: center;
  gap: 24px;
  background: #eee8f6;
  border: 1px solid #e0d6ee;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 22px;
}

.iphone-panel h2, .install-header h2 { margin-top: 0; }
.iphone-panel p, .install-header p { max-width: 660px; margin-bottom: 0; color: var(--muted); }
.iphone-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.iphone-links > a:not(.button) { color: #4d347a; font-weight: 700; text-underline-offset: 3px; }
.install-header { margin-bottom: 23px; }

.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.download-card {
  min-width: 0;
  border: 1px solid #e3d9ed;
  border-radius: 20px;
  padding: clamp(21px, 4vw, 42px);
  background: #fff;
}
.download-mac { background: #26203c; border-color: #473964; color: #fff; }
.download-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.download-card .platform-note { margin: 8px 0 21px; font-size: .92rem; color: var(--muted); }
.download-mac .platform-note { color: #ded1f1; }
.download-mac .button { background: var(--lime); color: #221d32; }
.download-card ol { margin: 20px 0 0; padding-left: 1.2em; }
.download-card li + li { margin-top: 7px; }
.download-windows li a { color: #542e8d; text-underline-offset: 3px; }
.terminal-guide {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #e3d9ed;
  border-radius: 15px;
  padding: 15px 19px;
}
.terminal-guide summary { cursor: pointer; font-weight: 750; }
.terminal-guide dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; }
.terminal-guide dd { margin: 0; overflow-wrap: anywhere; }
.terminal-guide code { background: #f1ebf8; padding: 2px 4px; border-radius: 4px; }

@media (max-width: 710px) {
  .iphone-panel { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 540px) {
  .hero-actions, .download-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 67px; gap: 10px; padding-block: 10px; }
}
