:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --ink: #172126;
  --muted: #5f6f76;
  --line: #d9e1e5;
  --primary: #006d77;
  --primary-ink: #ffffff;
  --accent: #d1495b;
  --warning-bg: #fff4d8;
  --warning-ink: #73510a;
  --shadow: 0 18px 40px rgba(23, 33, 38, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
.download-button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  min-height: min(720px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 48px;
}

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

.app-icon {
  width: 96px;
  height: 96px;
  display: block;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.kicker {
  margin: 20px 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 26px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.login-panel,
.release-card,
.instruction-copy,
.instruction-screens,
.screenshot-trigger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel {
  padding: 26px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 109, 119, 0.16);
}

button,
.download-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 750;
  cursor: pointer;
}

button:hover:not(:disabled),
.download-button:hover:not(.is-disabled) {
  filter: brightness(0.95);
}

button:disabled,
.download-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

button.secondary {
  background: #e8eef1;
  color: var(--ink);
}

.status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--accent);
}

.dashboard {
  display: grid;
  gap: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
}

.topbar .kicker {
  margin-top: 0;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.release-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  min-height: 392px;
}

.release-summary {
  min-height: 124px;
}

.platform {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 800;
}

.muted,
.notes {
  color: var(--muted);
  line-height: 1.5;
}

.release-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.release-meta div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.warning {
  width: 100%;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning-ink);
  line-height: 1.45;
}

.warning-button {
  min-height: auto;
  border: 0;
  text-align: left;
  font-weight: 650;
}

.warning-button:hover:not(:disabled) {
  filter: none;
  cursor: pointer;
  outline: 2px solid rgba(115, 81, 10, 0.24);
}

.warning-button:focus-visible {
  filter: none;
  outline: 2px solid rgba(115, 81, 10, 0.24);
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-top: auto;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.download-button:focus-visible {
  outline: 3px solid rgba(0, 109, 119, 0.24);
  outline-offset: 2px;
}

.instruction-panel {
  display: grid;
  gap: 16px;
}

.instruction-copy {
  padding: 22px;
}

ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.instruction-screens {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding: 16px;
}

.screenshot-trigger {
  flex: 0 1 220px;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
  text-align: left;
}

.screenshot-trigger:hover,
.screenshot-trigger:focus-visible {
  filter: none;
  outline: 3px solid rgba(0, 109, 119, 0.18);
  outline-offset: 2px;
}

.screenshot-trigger img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: contain;
  background: #061010;
}

.screenshot-trigger span {
  display: block;
  min-height: 58px;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .instruction-screens {
    justify-content: flex-start;
  }

  .screenshot-trigger {
    flex: 0 0 150px;
  }

  .screenshot-trigger img {
    height: 88px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 38, 0.42);
}

.modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.icon-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  background: #e8eef1;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.gatekeeper-steps {
  color: var(--ink);
}

.modal-note {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.screenshot-modal {
  padding: 20px;
}

.screenshot-modal-panel {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(1400px, 100%);
  max-height: calc(100vh - 40px);
  padding: 20px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screenshot-modal-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 148px);
  object-fit: contain;
  justify-self: center;
  border-radius: 8px;
  background: #061010;
}

@media (max-width: 860px) {
  .hero,
  .release-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
    gap: 24px;
  }

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

  .release-card,
  .release-summary {
    min-height: 0;
  }
}
